:root {
  color-scheme: dark;
  --white: #fff;
  --muted: rgb(255 255 255 / 0.68);
  --soft: rgb(255 255 255 / 0.5);
  --line: rgb(255 255 255 / 0.14);
  --panel: rgb(0 0 0 / 0.16);
  --panel-strong: rgb(0 0 0 / 0.75);
  --danger: #f87171;
  --success: #4ade80;
  --warning: #facc15;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  margin: 1.5rem 0;
}

.fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-image: linear-gradient(to bottom, #000, transparent 30%, transparent 70%, #000), url("../assets/bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 0.3s ease;
}

.splash img {
  width: 150px;
  filter: drop-shadow(0 16px 32px rgb(0 0 0 / 0.6));
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 20rem;
  height: 100vh;
  flex: 0 0 20rem;
  padding: 1rem;
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border-radius: 0.75rem;
}

.sidebar-hero {
  position: relative;
  z-index: 20;
  overflow: visible;
  padding-bottom: 0.25rem;
}

.sidebar-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-logo {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  transition: opacity 0.2s;
}

.sidebar-logo:hover {
  opacity: 0.9;
}

.sidebar-logo img,
.sidebar-logo .league-picture.xl {
  height: 8rem;
  width: 8rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.45));
}

.sidebar-user {
  position: relative;
  z-index: 2;
  padding: 0 0.5rem 0.5rem;
}

.sidebar-leaderboard {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding-top: 1rem;
}

.sidebar-leaderboard .leaderboard-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
  scrollbar-color: rgb(255 255 255 / 0.22) transparent;
  scrollbar-width: thin;
}

.sidebar-leaderboard .leaderboard-list::-webkit-scrollbar {
  width: 0.45rem;
}

.sidebar-leaderboard .leaderboard-list::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 0.22);
  border-radius: 999px;
}

.sidebar-footer {
  flex: 0 0 auto;
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding: 0.75rem;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.75rem;
}

.main-column {
  flex: 1;
  min-width: 0;
}

.content {
  min-height: 100vh;
  padding-bottom: 0;
}

.page {
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page.wide {
  max-width: 56rem;
}

.page.narrow {
  max-width: 42rem;
}

.page.centered,
.page.form-page {
  min-height: 100vh;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page.form-page {
  max-width: 30rem;
}

.page-title,
.page h1 {
  margin: 0 0 1.5rem;
  font-size: 1.875rem;
  line-height: 1;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-toolbar h1 {
  margin: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  position: relative;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 0.5rem;
  background: var(--panel);
  box-shadow: 0 20px 50px -12px rgb(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
}

.card:not(.no-shadow)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 80%;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.4), transparent);
  filter: blur(10px);
  transform: translate(-50%, 100%);
}

.page-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.page-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.muted,
.page-card p {
  color: var(--muted);
  line-height: 1.6;
}

.icon-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.icon-row > span {
  font-size: 1.5rem;
}

.rules-list {
  display: grid;
  gap: 1rem;
}

.example-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.example-row span {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.875rem;
}

.success strong {
  color: var(--success);
}

.success {
  color: var(--success);
}

.warning strong {
  color: var(--warning);
}

.danger strong,
.error {
  color: var(--danger);
}

.danger-text {
  color: var(--danger);
}

.mt {
  margin-top: 2rem !important;
}

.about-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.about-logo img {
  height: 4rem;
}

.about-logo h1 {
  margin: 0;
  font-size: 1.5rem;
}

.creator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.creator-row div,
.creator-row nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.creator-row img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.creator-row nav,
.creator-row a {
  color: rgb(255 255 255 / 0.55);
  font-size: 0.875rem;
}

.coffee {
  height: 2.5rem;
}

.footer-note {
  margin: 2rem 0;
  color: rgb(255 255 255 / 0.5);
  text-align: center;
  font-size: 0.875rem;
}

.button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.button {
  min-height: 2.5rem;
  border-radius: 999px;
  background: transparent;
  padding: 0.5rem 1rem;
  color: #fff;
  font-weight: 700;
}

.button:hover {
  background: rgb(0 0 0 / 0.2);
}

.button.secondary {
  border-color: transparent;
  color: rgb(255 255 255 / 0.6);
}

.button.small {
  min-height: 2.25rem;
  font-size: 0.875rem;
}

.button.inline {
  width: max-content;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.chip-group {
  display: flex;
  gap: 0.5rem;
}

.chip {
  border-radius: 999px;
  border-color: transparent;
  background: rgb(255 255 255 / 0.1);
  padding: 0.4rem 1rem;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
  font-weight: 600;
}

.chip.active {
  background: #fff;
  color: #000;
}


.match-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.match-view-toolbar > span {
  color: rgb(255 255 255 / 0.72);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.match-view-toolbar .chip {
  cursor: pointer;
}

@media (max-width: 560px) {
  .match-view-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .match-view-toolbar .chip-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.closed-matches-archive {
  margin: -0.25rem 0 1.15rem;
  overflow: hidden;
  padding: 0;
  border-color: rgb(250 204 21 / 0.18);
  background: linear-gradient(135deg, rgb(113 63 18 / 0.24), rgb(15 23 42 / 0.62));
}

.closed-matches-archive summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.closed-matches-archive summary::-webkit-details-marker {
  display: none;
}

.closed-archive-icon {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgb(250 204 21 / 0.24);
  border-radius: 0.85rem;
  background: rgb(250 204 21 / 0.12);
  box-shadow: 0 0 1.5rem rgb(250 204 21 / 0.08);
}

.closed-archive-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.closed-archive-copy strong {
  color: #fff;
  font-size: 1rem;
}

.closed-archive-copy small {
  color: rgb(255 255 255 / 0.58);
}

.closed-archive-action {
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.78);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.closed-matches-archive[open] .closed-archive-action {
  background: #fff;
  color: #111827;
}

.closed-matches-archive[open] .closed-archive-action::before {
  content: "Ocultar";
}

.closed-matches-archive[open] .closed-archive-action {
  font-size: 0;
}

.closed-matches-archive[open] .closed-archive-action::before {
  font-size: 0.78rem;
}

.closed-archive-content {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding: 1rem;
}

.archived-match-section + .archived-match-section {
  margin-top: 1.1rem;
}

.archived-match-section h2 {
  color: rgb(255 255 255 / 0.62);
  font-size: 0.95rem;
}

.archived-match-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.archived-match-card {
  padding: 0.72rem;
  border-color: rgb(255 255 255 / 0.08);
  background: rgb(0 0 0 / 0.18);
}

.archived-match-card:hover {
  background: rgb(255 255 255 / 0.06);
}

.archived-match-card .match-main {
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.archived-match-card .team-row {
  gap: 0.45rem;
  min-height: 1.8rem;
}

.archived-match-card .flag {
  width: 2rem;
  height: 1.35rem;
}

.archived-match-card .team-name {
  font-size: 0.84rem;
}

.archived-match-card .score,
.archived-match-card .prediction,
.archived-match-card .score-input {
  width: 1.9rem;
  height: 1.55rem;
  font-size: 0.9rem;
}

.archived-match-card .points-box {
  width: 2.65rem;
}

.archived-match-card .points-face {
  font-size: 1.05rem;
}

.archived-match-card .points-score {
  font-size: 0.64rem;
}

.archived-match-card .match-footer {
  font-size: 0.7rem;
}

@media (max-width: 960px) {
  .archived-match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .closed-matches-archive summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .closed-archive-action {
    grid-column: 1 / -1;
    text-align: center;
  }

  .closed-archive-content {
    padding: 0.75rem;
  }

  .archived-match-grid {
    grid-template-columns: 1fr;
  }
}

.match-day h2,
.match-group h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  color: rgb(255 255 255 / 0.8);
  font-size: 1.125rem;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.match-card {
  padding: 1rem;
  transition: background 0.2s;
}

.match-card:hover {
  background: rgb(255 255 255 / 0.1);
}

.match-main {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.team-list {
  flex: 1;
  min-width: 0;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.25rem;
}

.team-row + .team-row {
  margin-top: 0.5rem;
}

.flag {
  width: 3rem;
  height: 2rem;
  border-radius: 0.125rem;
  object-fit: contain;
}

.team-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.score,
.prediction,
.score-input {
  width: 2.5rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 800;
}

.score-input {
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.prediction {
  border: 1px solid rgb(96 165 250 / 0.35);
  background: rgb(37 99 235 / 0.3);
}

.points-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3.5rem;
  overflow: hidden;
  border: 1px solid rgb(34 197 94 / 0.24);
  border-radius: 0.5rem;
  background: rgb(22 163 74 / 0.12);
}

.points-box.zero {
  border-color: rgb(239 68 68 / 0.24);
  background: rgb(220 38 38 / 0.12);
}

.points-face {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.points-score {
  width: 100%;
  padding: 0.2rem;
  background: #166534;
  text-align: center;
  font-size: 0.75rem;
}

.zero .points-score {
  background: #991b1b;
}

.match-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.75rem;
}

.match-footer .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live {
  margin-left: auto;
  color: #ef4444;
  font-weight: 800;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.leaderboard-card {
  padding: 1rem;
}

.leader-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.5rem;
  transition: background 0.2s;
}

.leader-row.current {
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(12px);
}

.leader-row:hover {
  background: rgb(255 255 255 / 0.05);
}

.leader-rank-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: 3rem;
  flex: 0 0 3rem;
}

.rank {
  min-width: 1.6rem;
  text-align: center;
  font-size: 1.125rem;
}

.leader-info {
  flex: 1;
  min-width: 0;
}

.leader-name-wrap,
.podium-name-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.leader-name,
.leader-user,
.podium-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-name-wrap .leader-movement,
.podium-name-wrap .leader-movement {
  flex: 0 0 auto;
}

.leader-user {
  color: rgb(255 255 255 / 0.5);
  font-size: 0.875rem;
}

.leader-score {
  color: rgb(255 255 255 / 0.72);
  font-size: 1.125rem;
  font-weight: 700;
}

.leader-score-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
}

.leader-movement {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  animation: leaderboardMovementPulse 5s ease-out 1;
}

.leader-movement.up {
  color: #22c55e;
  background: rgb(34 197 94 / 0.14);
  box-shadow: 0 0 0.7rem rgb(34 197 94 / 0.12);
}

.leader-movement.down {
  color: #f87171;
  background: rgb(248 113 113 / 0.14);
  box-shadow: 0 0 0.7rem rgb(248 113 113 / 0.12);
}

.leader-movement-arrow {
  font-size: 0.78em;
}

.sidebar-leaderboard .leader-movement {
  padding: 0.16rem 0.32rem;
  font-size: 0.64rem;
}

.podium-name-wrap .leader-movement {
  margin-bottom: 0;
}

@keyframes leaderboardMovementPulse {
  0% {
    opacity: 0;
    transform: translateY(0.25rem) scale(0.88);
  }
  18% {
    opacity: 1;
    transform: translateY(-0.08rem) scale(1.08);
  }
  35% {
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sidebar-leaderboard .leader-row {
  padding: 0.375rem 0.5rem;
}

.sidebar-leaderboard .leader-rank-wrap {
  width: 1.8rem;
  flex-basis: 1.8rem;
  gap: 0;
}

.sidebar-leaderboard .rank {
  min-width: 1.15rem;
  font-size: 0.875rem;
}

.sidebar-leaderboard .leader-score,
.sidebar-leaderboard .leader-name {
  font-size: 0.875rem;
}

.podium {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1rem;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 8rem;
  text-align: center;
}

.podium-name {
  min-width: 0;
  font-weight: 700;
}

.podium-user {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.75rem;
}

.podium-score {
  margin: 0.5rem 0;
  font-weight: 800;
}

.podium-block {
  width: 100%;
  display: grid;
  place-items: center;
  border-inline: 1px solid rgb(255 255 255 / 0.05);
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.16), rgb(0 0 0 / 0.22));
  color: rgb(255 255 255 / 0.28);
  font-size: 4rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.podium-item.first .podium-block {
  height: 7rem;
}

.podium-item.second .podium-block {
  height: 5rem;
}

.podium-item.third .podium-block {
  height: 4rem;
}

.profile-picture,
.league-picture {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
}

.profile-picture {
  border-radius: 999px;
}

.league-picture {
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.1);
}

.profile-picture img,
.league-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-picture.xs { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
.profile-picture.sm { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
.profile-picture.md { width: 4rem; height: 4rem; font-size: 1.5rem; }
.profile-picture.lg { width: 5rem; height: 5rem; font-size: 1.875rem; }
.profile-picture.xl { width: 6rem; height: 6rem; font-size: 1.875rem; }
.league-picture.sm { width: 2.5rem; height: 2.5rem; }
.league-picture.md { width: 4rem; height: 4rem; }
.league-picture.lg { width: 5rem; height: 5rem; }
.league-picture.xl { width: 6rem; height: 6rem; }

.user-menu {
  position: relative;
}

.user-button {
  width: 100%;
  justify-content: flex-start;
  gap: 0.75rem;
  border-color: rgb(255 255 255 / 0.1);
  border-radius: 0.75rem;
  background: rgb(0 0 0 / 0.2);
  padding: 0.5rem;
}

.stat-tile {
  position: relative;
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background-image: url("../assets/sidebar-menu-bg.png");
  background-position: center;
  background-size: cover;
}

.stat-tile small {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.625rem;
  text-transform: uppercase;
}

.stat-tile strong {
  display: block;
  font-size: 1.25rem;
}

.menu-list {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-top: 0;
  border-radius: 0 0 0.75rem 0.75rem;
  background: rgb(0 0 0 / 0.24);
  backdrop-filter: blur(18px);
}

.menu-list.open {
  display: block;
}

.sidebar-user .user-menu {
  z-index: 40;
}

.sidebar-user .menu-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 0.15rem);
  z-index: 60;
  width: auto;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0.75rem;
  background: rgb(8 12 24 / 0.92);
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 0.45);
}

.menu-list a,
.menu-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  padding: 0.75rem 1rem;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.menu-list a:hover,
.menu-list button:hover {
  background: rgb(255 255 255 / 0.1);
}

.form-card {
  padding: 1.5rem;
}

.form-card h1 {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.1);
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus,
.textarea:focus {
  border-color: rgb(255 255 255 / 0.4);
}

.textarea {
  min-height: 6rem;
  resize: vertical;
}

.status {
  margin-top: 0.35rem;
  min-height: 1.1rem;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.8rem;
}

.form-actions,
.actions {
  display: flex;
  gap: 0.75rem;
}

.form-actions > * {
  flex: 1;
}

.image-picker {
  display: grid;
  place-items: center;
  gap: 0.75rem;
}

.image-picker input {
  display: none;
}

.image-picker label {
  color: rgb(255 255 255 / 0.6);
  cursor: pointer;
  font-size: 0.875rem;
}

.league-list {
  display: grid;
  gap: 0.75rem;
}

.league-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1rem;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.league-card:hover {
  background: rgb(255 255 255 / 0.08);
}

.league-card h3 {
  margin: 0;
  font-size: 1.125rem;
}

.league-card p {
  margin: 0.25rem 0 0;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.875rem;
}

.league-header {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.back-link {
  color: rgb(255 255 255 / 0.5);
  font-size: 0.875rem;
}

.invite-link {
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.1);
  padding: 0.75rem 1rem;
}

.invite-link code {
  display: block;
  overflow: hidden;
  color: rgb(255 255 255 / 0.75);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-box {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-top: 1rem;
}

.qr-box canvas {
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem;
}

.mobile-header,
.mobile-nav {
  display: none;
}

.join-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.join-box {
  width: min(100%, 28rem);
}

.join-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 300;
}

.join-brand img {
  height: 3rem;
}

.center-text {
  text-align: center;
}

.toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.5rem;
}

.toast {
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 0.82);
  padding: 0.75rem 1rem;
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.35);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(0 0 0 / 0.68);
  backdrop-filter: blur(12px);
}

.auth-panel {
  width: min(100%, 26rem);
  position: relative;
}

.auth-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.25rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .main-column {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .content {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    background: rgb(0 0 0 / 0.8);
    padding: calc(env(safe-area-inset-top) + 0.75rem) 1rem 0.75rem;
    backdrop-filter: blur(18px);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
  }

  .mobile-brand img,
  .mobile-brand .league-picture.sm {
    width: auto;
    height: 2rem;
  }

  .mobile-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 300;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    background: rgb(0 0 0 / 0.9);
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 4.5rem;
    color: rgb(255 255 255 / 0.5);
  }

  .mobile-nav span {
    font-size: 1.25rem;
  }

  .mobile-nav small {
    font-size: 0.65rem;
  }

  .mobile-user-button {
    min-height: 2.5rem;
    gap: 0.5rem;
    border-radius: 0.5rem;
    background: rgb(255 255 255 / 0.1);
    padding: 0 0.5rem 0 0;
  }

  .mobile-menu {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 3.55rem);
    right: 0;
    left: 0;
    z-index: 50;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 0;
    background: rgb(0 0 0 / 0.84);
  }

  .page {
    padding-top: 2rem;
  }

  .match-grid {
    grid-template-columns: 1fr;
  }

  .page-toolbar {
    align-items: flex-start;
  }

  .chip {
    padding-inline: 0.8rem;
  }

  .creator-row,
  .example-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-toolbar {
    flex-direction: column;
  }

  .about-logo {
    align-items: center;
    text-align: center;
  }

  .team-row {
    gap: 0.5rem;
  }

  .flag {
    width: 2.25rem;
    height: 1.5rem;
  }

  .team-name {
    font-size: 0.875rem;
  }

  .podium-item {
    width: 6.5rem;
  }
}


.google-button {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: #1f2937;
  border-color: rgb(255 255 255 / .8);
}
.google-button:hover {
  background: #f8fafc;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgb(255 255 255 / .55);
  font-size: .85rem;
  margin: -.25rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgb(255 255 255 / .14);
}


.admin-dashboard {
  gap: 1.25rem;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04)), var(--panel);
}

.admin-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 55%;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(250 204 21 / 0.28), transparent 65%);
  pointer-events: none;
}

.admin-kicker {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--warning);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
}

.admin-hero p,
.admin-panel-head p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.admin-orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 9rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgb(250 204 21 / 0.35);
  border-radius: 999px;
  background: radial-gradient(circle, rgb(250 204 21 / 0.22), rgb(0 0 0 / 0.24));
  box-shadow: inset 0 0 40px rgb(250 204 21 / 0.08), 0 20px 60px rgb(0 0 0 / 0.4);
  text-align: center;
}

.admin-orb span {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
}

.admin-orb small,
.admin-stat small,
.admin-progress small,
.admin-next-match small,
.admin-mini-user small,
.admin-distribution-row small {
  color: var(--muted);
}

.admin-stat-grid,
.admin-phase-grid,
.admin-grid-bottom {
  display: grid;
  gap: 1rem;
}

.admin-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.admin-stat-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.12);
  font-size: 1.5rem;
}

.admin-stat strong {
  display: block;
  margin: 0.15rem 0;
  font-size: 1.75rem;
}

.admin-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-stat.success {
  border-color: rgb(74 222 128 / 0.35);
}

.admin-stat.danger {
  border-color: rgb(248 113 113 / 0.4);
}

.admin-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(20rem, 0.8fr);
  gap: 1rem;
}

.admin-grid-bottom {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(16rem, 0.8fr);
}

.admin-panel {
  margin-bottom: 0;
}

.admin-panel-head,
.admin-phase-title,
.admin-progress-head,
.admin-distribution-row,
.admin-next-match,
.admin-mini-user,
.admin-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-panel-head {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-panel-head h2,
.admin-phase-title h3 {
  margin: 0;
}

.admin-panel-head > span {
  font-size: 1.75rem;
}

.admin-phase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-phase-card {
  padding: 1rem;
  background: rgb(255 255 255 / 0.06);
}

.admin-phase-title {
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-phase-title span {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-progress + .admin-progress {
  margin-top: 0.85rem;
}

.admin-progress-head {
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.admin-bar,
.admin-split-bar {
  overflow: hidden;
  height: 0.65rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
}

.admin-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

.admin-progress.success .admin-bar span {
  background: linear-gradient(90deg, #22c55e, #84cc16);
}

.admin-progress.warning .admin-bar span {
  background: linear-gradient(90deg, #facc15, #fb923c);
}

.admin-alert-list,
.admin-mini-list,
.admin-distribution-list,
.admin-next-list,
.admin-inactive-list {
  display: grid;
  gap: 0.65rem;
}

.admin-alert {
  align-items: flex-start;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: rgb(255 255 255 / 0.06);
}

.admin-alert > span {
  font-size: 1.25rem;
}

.admin-alert strong,
.admin-alert small,
.admin-mini-user strong,
.admin-mini-user small {
  display: block;
}

.admin-alert.danger {
  border-color: rgb(248 113 113 / 0.35);
}

.admin-alert.warning {
  border-color: rgb(250 204 21 / 0.35);
}

.admin-alert.success {
  border-color: rgb(74 222 128 / 0.28);
}

.admin-mini-user {
  border-radius: 0.65rem;
  padding: 0.5rem;
  background: rgb(255 255 255 / 0.05);
}

.admin-mini-user > div {
  flex: 1;
  min-width: 0;
}

.admin-mini-user b {
  margin-left: auto;
  color: var(--warning);
}

.admin-distribution-row {
  align-items: stretch;
  flex-direction: column;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  padding-bottom: 0.75rem;
}

.admin-split-bar {
  display: flex;
  height: 0.85rem;
}

.admin-split-bar span {
  height: 100%;
}

.admin-split-bar .home,
.admin-legend .home {
  background: #60a5fa;
}

.admin-split-bar .draw,
.admin-legend .draw {
  background: #facc15;
}

.admin-split-bar .away,
.admin-legend .away {
  background: #f87171;
}

.admin-votes,
.admin-legend {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.admin-legend span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.admin-next-match {
  align-items: flex-start;
  border-radius: 0.65rem;
  padding: 0.65rem;
  background: rgb(255 255 255 / 0.05);
}

.admin-next-game {
  display: grid;
  place-items: center;
  min-width: 3rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  padding: 0.3rem 0.5rem;
  color: var(--warning);
  font-weight: 900;
}

.admin-inactive-list {
  display: flex;
  flex-wrap: wrap;
}

.admin-inactive-list span {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgb(255 255 255 / 0.06);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 1100px) {
  .admin-stat-grid,
  .admin-grid-main,
  .admin-grid-bottom,
  .admin-phase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .admin-hero,
  .admin-grid-main,
  .admin-grid-bottom,
  .admin-stat-grid,
  .admin-phase-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-orb {
    width: 7rem;
    height: 7rem;
    flex-basis: 7rem;
  }
}

.admin-live-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  color: var(--muted);
}

.admin-live-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgb(74 222 128 / 0.7);
  animation: adminPulse 1.8s infinite;
}

#admin-dashboard-root[data-refreshing="1"] .admin-live-dot {
  background: var(--warning);
}

@keyframes adminPulse {
  0% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0.7); }
  70% { box-shadow: 0 0 0 0.6rem rgb(74 222 128 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0); }
}
.admin-mini-user {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.admin-mini-user .rank,
.admin-mini-user .profile-picture {
  flex: 0 0 auto;
}

.admin-mini-user > div {
  overflow: hidden;
}

.admin-mini-user strong,
.admin-mini-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mini-user b {
  flex: 0 0 auto;
  max-width: 5.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(250 204 21 / 0.12);
  padding: 0.25rem 0.5rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .admin-mini-user {
    gap: 0.45rem;
  }

  .admin-mini-user b {
    max-width: 4.5rem;
    font-size: 0.8rem;
  }
}

.prize-pot-card,
.payment-card {
  margin-bottom: 1.25rem;
}

.prize-pot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  overflow: hidden;
  padding: 1rem;
  background: linear-gradient(135deg, rgb(250 204 21 / 0.16), rgb(255 255 255 / 0.05)), var(--panel);
}

.prize-pot-card::before {
  content: "";
  position: absolute;
  right: -5rem;
  top: -8rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(250 204 21 / 0.28), transparent 65%);
}

.prize-pot-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prize-pot-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  background: rgb(250 204 21 / 0.14);
  font-size: 2rem;
}

.prize-pot-main small,
.payment-breakdown small,
.prize-split small {
  display: block;
  color: var(--muted);
}

.prize-pot-main strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
}

.prize-pot-main p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.prize-split,
.payment-breakdown {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
}

.prize-split span,
.payment-breakdown div {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.75rem;
  background: rgb(0 0 0 / 0.16);
  padding: 0.65rem;
}

.prize-split b,
.payment-breakdown strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--warning);
  font-size: 1.25rem;
}

.prize-split.big {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0;
}

.payment-badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgb(250 204 21 / 0.3);
  border-radius: 999px;
  background: rgb(250 204 21 / 0.1);
  padding: 0.35rem 0.7rem;
  color: var(--warning);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-card h1 {
  margin: 0.75rem 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1;
}

.payment-breakdown {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .prize-pot-card,
  .payment-breakdown,
  .prize-split.big {
    grid-template-columns: 1fr;
  }
}

.admin-payment-summary .prize-pot-card {
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
  box-shadow: none;
}

.admin-payment-summary .prize-pot-main strong {
  font-size: 2rem;
}

.admin-payment-list {
  display: grid;
  gap: 0.6rem;
}

.admin-payment-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.05);
  padding: 0.55rem;
}

.admin-payment-row.reported {
  border-color: rgb(250 204 21 / 0.35);
}

.admin-payment-row.paid {
  border-color: rgb(74 222 128 / 0.3);
}

.admin-payment-user {
  flex: 1;
  min-width: 0;
}

.admin-payment-user strong,
.admin-payment-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-payment-user small {
  color: var(--muted);
}

.admin-payment-row .button {
  flex: 0 0 auto;
}

.admin-payment-admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
}

.admin-unpaid-removal-panel .admin-panel-head span {
  filter: drop-shadow(0 0 1rem rgb(248 113 113 / 0.45));
}

.admin-payment-row.removable {
  border-color: rgb(248 113 113 / 0.24);
}

@media (max-width: 980px) {
  .admin-payment-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-payment-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-payment-row .button {
    width: 100%;
  }
}
.binance-pay-box {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid rgb(250 204 21 / 0.28);
  border-radius: 1rem;
  background: rgb(250 204 21 / 0.08);
  padding: 1rem;
  margin: 1rem 0;
}

.binance-pay-box img {
  width: 100%;
  max-width: 10rem;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.35rem;
}

.binance-pay-box small {
  display: block;
  color: var(--muted);
}

.binance-pay-box strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--warning);
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .binance-pay-box {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
.admin-payment-review-panel {
  border-color: rgb(250 204 21 / 0.28);
  background: linear-gradient(135deg, rgb(250 204 21 / 0.09), rgb(255 255 255 / 0.04)), var(--panel);
}

.admin-payment-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-payment-review-summary span {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.75rem;
  background: rgb(0 0 0 / 0.16);
  padding: 0.75rem;
}

.admin-payment-review-summary small {
  display: block;
  color: var(--muted);
}

.admin-payment-review-summary strong {
  display: block;
  color: var(--warning);
  font-size: 1.6rem;
}

.admin-payment-list.prominent .admin-payment-row.reported {
  border-color: rgb(250 204 21 / 0.5);
  background: rgb(250 204 21 / 0.1);
}

.admin-payment-reference {
  margin-top: 0.45rem;
  border: 1px solid rgb(250 204 21 / 0.28);
  border-radius: 0.65rem;
  background: rgb(0 0 0 / 0.18);
  padding: 0.5rem;
}

.admin-payment-reference span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-payment-reference b {
  display: block;
  overflow-wrap: anywhere;
  color: var(--warning);
  font-size: 1.1rem;
  line-height: 1.25;
}

.admin-payment-reference.empty {
  border-color: rgb(255 255 255 / 0.12);
}

.admin-payment-details {
  margin-top: 1rem;
}

.admin-payment-details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.admin-payment-details .admin-payment-list {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .admin-payment-review-summary {
    grid-template-columns: 1fr;
  }
}
.admin-payment-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.4rem;
}

.danger-button {
  border-color: rgb(248 113 113 / 0.35) !important;
  background: rgb(127 29 29 / 0.45) !important;
  color: #fecaca !important;
}

.danger-button:hover {
  background: rgb(185 28 28 / 0.55) !important;
}

@media (max-width: 520px) {
  .admin-payment-actions {
    width: 100%;
  }

  .admin-payment-actions .button {
    width: 100%;
  }
}
.prediction-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgb(96 165 250 / 0.12), rgb(250 204 21 / 0.08)), var(--panel);
}

.prediction-actions strong {
  display: block;
  font-size: 1.1rem;
}

.prediction-actions p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.hidden-download-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .prediction-actions {
    align-items: stretch;
    flex-direction: column;
  }
}


/* Ajustes compactos para pote y menú móvil */
.prize-pot-card {
  grid-template-columns: minmax(0, 0.82fr) minmax(16rem, 1.18fr);
  gap: 0.75rem;
  padding: 0.75rem;
}

.prize-pot-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  font-size: 1.45rem;
}

.prize-pot-main {
  gap: 0.75rem;
}

.prize-pot-main strong {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
}

.prize-pot-main p {
  font-size: 0.82rem;
}

.prize-split {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prize-split span {
  min-width: 0;
  padding: 0.5rem;
}

.prize-split small {
  font-size: 0.68rem;
  line-height: 1.15;
}

.prize-split b {
  font-size: 1rem;
}

.mobile-user-points {
  display: grid;
  min-width: 2.9rem;
  text-align: left;
  line-height: 1;
}

.mobile-user-points small {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mobile-user-points strong {
  font-size: 0.92rem;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .prize-pot-card {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .prize-pot-main {
    align-items: flex-start;
  }

  .prize-pot-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.15rem;
  }

  .prize-pot-main strong {
    font-size: 1.7rem;
  }

  .prize-pot-main p {
    font-size: 0.76rem;
  }

  .prize-split,
  .prize-split.big {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .prize-split span {
    border-radius: 0.55rem;
    padding: 0.42rem 0.35rem;
  }

  .prize-split small {
    font-size: 0.58rem;
  }

  .prize-split b {
    font-size: 0.82rem;
  }

  .mobile-user-button {
    min-width: 8.6rem;
    justify-content: space-between;
    padding: 0 0.55rem 0 0;
  }

  .mobile-user-button .leader-score {
    padding-inline: 0.45rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .mobile-user-button {
    min-width: 8rem;
    gap: 0.35rem;
  }

  .mobile-user-points {
    min-width: 2.45rem;
  }

  .mobile-user-points strong {
    font-size: 0.82rem;
  }
}

.admin-mini-user-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-mini-user-link:hover {
  border-color: rgb(250 204 21 / 0.45);
  background: rgb(250 204 21 / 0.08);
  transform: translateY(-1px);
}


.payment-pot-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-pot-inline .prize-pot-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  font-size: 1.2rem;
}

.payment-pot-inline span:last-child {
  display: grid;
  line-height: 1.05;
}


.pago-movil-card {
  margin-top: 1rem;
  padding: 1rem;
  border-color: rgb(250 204 21 / 0.22);
  background: linear-gradient(135deg, rgb(250 204 21 / 0.1), rgb(255 255 255 / 0.04)), rgb(0 0 0 / 0.14);
}

.pago-movil-card h2 {
  margin: 0.6rem 0 0.75rem;
}

.payment-bs-total {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.85rem;
}

.payment-bs-total small,
.pago-movil-grid small {
  color: var(--muted);
}

.payment-bs-total strong {
  color: var(--warning);
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
}

.payment-bs-total span {
  color: var(--muted);
  font-size: 0.8rem;
}

.pago-movil-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.pago-movil-grid div {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.65rem;
  background: rgb(0 0 0 / 0.18);
  padding: 0.65rem;
}

.pago-movil-grid strong {
  display: block;
  margin-top: 0.15rem;
}

@media (max-width: 560px) {
  .pago-movil-grid {
    grid-template-columns: 1fr;
  }
}


.unpaid-participant .leader-name,
.unpaid-participant .leader-score,
.unpaid-participant .podium-name,
.unpaid-participant .podium-score {
  color: #808080 !important;
}

.unpaid-participant .profile-picture {
  opacity: 0.55;
  filter: grayscale(1);
}

.leader-row.payment-paid .leader-name,
.leader-row.payment-paid .leader-score,
.leader-row.payment-reported .leader-name,
.leader-row.payment-reported .leader-score,
.podium-item.payment-paid .podium-name,
.podium-item.payment-paid .podium-score,
.podium-item.payment-reported .podium-name,
.podium-item.payment-reported .podium-score {
  color: rgb(255 255 255 / 0.92) !important;
}

.leader-row.payment-paid .profile-picture,
.leader-row.payment-reported .profile-picture,
.podium-item.payment-paid .profile-picture,
.podium-item.payment-reported .profile-picture {
  opacity: 1;
  filter: none;
}

.admin-excel-button {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: rgb(34 197 94 / 0.5);
  color: #fff;
  box-shadow: 0 0.75rem 1.5rem rgb(22 163 74 / 0.22);
}

.admin-excel-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 1rem 2rem rgb(22 163 74 / 0.3);
}

.demo-page {
  gap: 1rem;
}

.demo-hero {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  overflow: hidden;
  position: relative;
}

.demo-hero::after {
  background: radial-gradient(circle, rgb(255 215 0 / 0.18), transparent 58%);
  content: "";
  height: 18rem;
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 18rem;
}

.demo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.demo-score-card {
  background: linear-gradient(145deg, rgb(228 0 70 / 0.92), rgb(255 183 3 / 0.78));
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 0.32);
  color: #fff;
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}

.demo-score-card small,
.demo-score-card span {
  color: rgb(255 255 255 / 0.78);
}

.demo-score-card strong {
  font-size: 1.25rem;
}

.demo-score-card b {
  color: #07111f;
  background: #ffd700;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  width: max-content;
}

.demo-steps,
.demo-grid,
.demo-points-grid {
  display: grid;
  gap: 1rem;
}

.demo-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-step {
  padding: 1.1rem;
}

.demo-step > span {
  align-items: center;
  background: #ffd700;
  border-radius: 999px;
  color: #07111f;
  display: inline-flex;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  width: 2rem;
}

.demo-step h2,
.demo-phone h2,
.demo-points h2 {
  margin-top: 0;
}

.demo-step p {
  color: var(--muted);
  margin-bottom: 0;
}

.demo-grid {
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
}

.demo-match-card {
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 1rem;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.demo-match-card div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.demo-match-card input {
  background: #fff;
  border: 0;
  border-radius: 0.75rem;
  color: #07111f;
  font-size: 1.25rem;
  font-weight: 900;
  height: 2.5rem;
  text-align: center;
  width: 3rem;
}

.demo-match-card small,
.demo-lock-note {
  color: var(--muted);
}

.demo-lock-note {
  margin-top: 0.85rem;
}

.demo-points-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-points-grid div {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1rem;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
}

.demo-points-grid span {
  font-size: 2rem;
}

.demo-points-grid small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .demo-hero,
  .demo-grid,
  .demo-steps,
  .demo-points-grid {
    grid-template-columns: 1fr;
  }
}

.demo-phase-window {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.demo-phase-window div {
  background: linear-gradient(135deg, rgb(255 215 0 / 0.12), rgb(228 0 70 / 0.1));
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.9rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem;
}

.demo-phase-window span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.demo-phase-window strong {
  color: #ffd700;
}

.admin-alert .warning-button {
  margin-top: 0.65rem;
  width: max-content;
}

.warning-button {
  background: linear-gradient(135deg, #f59e0b, #facc15);
  border-color: rgb(250 204 21 / 0.55);
  color: #1f1300;
}

.warning-button:hover {
  box-shadow: 0 0.85rem 1.75rem rgb(245 158 11 / 0.25);
}

.admin-alert-chips,
.admin-alert-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.admin-alert-chips span,
.admin-alert-matches span {
  align-items: center;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  color: rgb(255 255 255 / 0.86);
  display: inline-flex;
  font-size: 0.74rem;
  gap: 0.25rem;
  padding: 0.28rem 0.48rem;
}

.admin-alert-matches img {
  border-radius: 999px;
  height: 0.9rem;
  object-fit: cover;
  width: 0.9rem;
}

.admin-alert-matches b {
  color: #facc15;
  font-size: 0.72rem;
}

.admin-alert-matches em {
  color: var(--muted);
  font-style: normal;
}

.results-admin-stack {
  gap: 1rem;
}

.results-admin-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.results-admin-counter {
  align-items: center;
  background: linear-gradient(135deg, rgb(34 197 94 / 0.16), rgb(250 204 21 / 0.14));
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 1rem;
  display: grid;
  min-width: 6rem;
  padding: 0.8rem 1rem;
  text-align: center;
}

.results-admin-counter strong {
  color: #facc15;
  font-size: 1.8rem;
  line-height: 1;
}

.results-admin-counter span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.result-form {
  position: relative;
}

.result-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.result-game-pill {
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.25rem 0.55rem;
}

.result-lock-button {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  height: 2.2rem;
  justify-content: center;
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
  width: 2.2rem;
}

.result-lock-button.open {
  background: rgb(34 197 94 / 0.16);
}

.result-lock-button.locked {
  background: rgb(250 204 21 / 0.16);
  border-color: rgb(250 204 21 / 0.35);
}

.result-lock-button:hover {
  transform: translateY(-1px) scale(1.04);
}

.result-form.result-locked {
  background: linear-gradient(135deg, rgb(255 255 255 / 0.045), rgb(250 204 21 / 0.055));
  border-color: rgb(250 204 21 / 0.18);
}

.result-form.result-locked .result-input {
  opacity: 0.58;
}

.result-advancer-box {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid rgb(250 204 21 / 0.25);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgb(250 204 21 / 0.12), rgb(255 255 255 / 0.045));
}

.result-advancer-box strong {
  display: block;
  color: #fff;
}

.result-advancer-box small {
  display: block;
  color: rgb(255 255 255 / 0.62);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.advancer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.advancer-option {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.65rem;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
  grid-template-columns: auto 1fr;
  padding: 0.55rem;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.advancer-option input {
  grid-row: span 2;
}

.advancer-option span {
  color: rgb(255 255 255 / 0.55);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.advancer-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advancer-option.selected,
.advancer-option:has(input:checked) {
  border-color: rgb(250 204 21 / 0.55);
  background: rgb(250 204 21 / 0.14);
}

.advancer-option:hover {
  transform: translateY(-1px);
}

.result-form.result-locked .advancer-option {
  cursor: default;
  opacity: 0.78;
}

@media (max-width: 560px) {
  .advancer-options {
    grid-template-columns: 1fr;
  }
}

.results-closed-panel {
  padding: 0;
  overflow: hidden;
}

.results-closed-panel summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.25rem 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  padding: 1rem 1.15rem;
}

.results-closed-panel summary::-webkit-details-marker {
  display: none;
}

.results-closed-panel summary span {
  font-weight: 900;
}

.results-closed-panel summary strong {
  background: #facc15;
  border-radius: 999px;
  color: #15110a;
  min-width: 2rem;
  padding: 0.25rem 0.55rem;
  text-align: center;
}

.results-closed-panel summary small {
  color: var(--muted);
  grid-column: 1 / -1;
}

.results-closed-list {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  max-height: 38rem;
  overflow-y: auto;
  padding: 1rem;
}

@media (max-width: 640px) {
  .results-admin-hero {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-visibility-panel {
  border-color: rgb(250 204 21 / 0.22);
}

.admin-visibility-status {
  background: linear-gradient(135deg, rgb(15 23 42 / 0.84), rgb(250 204 21 / 0.12));
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 1rem;
  display: grid;
  gap: 0.25rem;
  margin: 0.9rem 0;
  padding: 0.85rem;
}

.admin-visibility-status strong {
  color: #facc15;
  font-size: 1rem;
}

.admin-visibility-status small {
  color: var(--muted);
  line-height: 1.35;
}

.admin-visibility-status.locked {
  background: linear-gradient(135deg, rgb(127 29 29 / 0.48), rgb(15 23 42 / 0.86));
}

.admin-visibility-status.open {
  background: linear-gradient(135deg, rgb(20 83 45 / 0.48), rgb(15 23 42 / 0.86));
}

.admin-visibility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
