@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&family=Sora:wght@600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --surface-tint: #f8faf6;
  --surface-glass: rgba(255, 255, 255, 0.76);
  --surface-glass-strong: rgba(255, 255, 255, 0.88);
  --border: rgba(17, 37, 28, 0.12);
  --border-strong: rgba(17, 37, 28, 0.18);
  --glass-border: rgba(255, 255, 255, 0.52);
  --ink: #111a17;
  --muted: #626f68;
  --faint: #929b96;
  --green: #047a4b;
  --green-dark: #073f2e;
  --green-soft: #dff3e9;
  --yellow: #f2c84b;
  --yellow-soft: #fff4cd;
  --blue: #245d9e;
  --red: #b3261e;
  --silver: #a9b0b8;
  --bronze: #bd7438;
  --shadow: 0 1px 2px rgba(17, 37, 28, 0.05), 0 14px 34px rgba(17, 37, 28, 0.11), 0 36px 80px rgba(17, 37, 28, 0.08);
  --soft-shadow: 0 1px 2px rgba(17, 37, 28, 0.04), 0 8px 22px rgba(17, 37, 28, 0.08), 0 20px 54px rgba(17, 37, 28, 0.05);
  --lift-shadow: 0 2px 5px rgba(17, 37, 28, 0.08), 0 16px 36px rgba(17, 37, 28, 0.13), 0 36px 90px rgba(17, 37, 28, 0.08);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.76) inset, 0 0 0 1px var(--glass-border) inset, 0 16px 42px rgba(17, 37, 28, 0.1);
  --primary-gradient: linear-gradient(135deg, #fff0a6 0%, #f2c84b 40%, #db9f21 100%);
  --green-gradient: linear-gradient(135deg, #0b8d59 0%, #047a4b 46%, #073f2e 100%);
  --glass-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64));
  --radius: 20px;
  --page-pad: clamp(16px, 4vw, 22px);
  --font-body: "Manrope", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "Sora", "Manrope", "Segoe UI Variable", system-ui, sans-serif;
  font-family:
    var(--font-body);
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% -8%, rgba(242, 200, 75, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(4, 122, 75, 0.12), transparent 28rem),
    linear-gradient(180deg, #fbfcf9 0%, #f0f4ee 54%, #fafbf8 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: min(576px, 100%);
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 252, 248, 0.72)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 0 0 1px rgba(255, 255, 255, 0.36) inset,
    0 12px 34px rgba(17, 37, 28, 0.06);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  overflow: hidden;
  max-width: 210px;
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 850;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background:
    linear-gradient(145deg, #0b8f50, #045633);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

main {
  width: min(576px, 100%);
  margin: 0 auto;
  padding: 0 var(--page-pad) 112px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: view-enter 220ms ease both;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  width: min(576px, 100%);
  min-height: 76px;
  transform: translateX(-50%);
  overflow: visible;
  border-top: 1px solid rgba(17, 37, 28, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 16px rgba(17, 37, 28, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.main-nav::before {
  content: "";
  position: absolute;
  inset: -18px 0 auto;
  height: 18px;
  background: linear-gradient(180deg, rgba(233, 238, 244, 0.92), rgba(233, 238, 244, 0));
  display: none;
  pointer-events: none;
}

.main-nav button {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 76px;
  min-height: 76px;
  padding: 8px 2px 9px;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #686d72;
  font-size: 0.72rem;
  font-weight: 850;
  transition: color 160ms ease;
}

.main-nav button:hover {
  color: var(--green-dark);
}

.main-nav button:active {
  transform: none !important;
}

.main-nav button.is-active {
  color: var(--green);
}

.nav-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.nav-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.15;
}

.main-nav button.is-active:not([data-view="ranking"]) .nav-icon {
  color: white;
  background: #202126;
  box-shadow: 0 8px 18px rgba(17, 37, 28, 0.16);
}

.main-nav button[data-view="ranking"] {
  color: #5e6268;
}

.main-nav button[data-view="ranking"] .nav-icon {
  width: 32px !important;
  height: 32px !important;
  flex-basis: 32px !important;
  margin: 0 auto !important;
  border: 0 !important;
  background: #b18a00;
  color: white;
  box-shadow: 0 4px 10px rgba(177, 138, 0, 0.3);
  transition:
    width 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    height 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    flex-basis 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 220ms ease,
    background 220ms ease;
}

.main-nav button[data-view="ranking"] .nav-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.2;
}

.main-nav button[data-view="ranking"].is-active {
  color: #2f3134;
}

.main-nav button[data-view="ranking"].is-active .nav-icon {
  width: 40px !important;
  height: 40px !important;
  flex-basis: 40px !important;
  background: #202126 !important;
  transform: none !important;
  box-shadow:
    0 0 0 3px rgba(177, 138, 0, 0.35),
    0 0 0 5px rgba(177, 138, 0, 0.12),
    0 6px 16px rgba(17, 37, 28, 0.18) !important;
}

.main-nav button > span:last-child {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 1em;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .view.is-active,
  .feed-card,
  .hero-cta,
  .countdown-progress.compact i,
  .game-card-details,
  .ranking-details,
  .ranking-pick-detail {
    animation: none;
  }

  .main-nav button,
  .main-nav button::before,
  .main-nav button::after,
  .nav-icon,
  .primary-button,
  .danger-button,
  .ghost-button,
  .tab-button,
  .quick-link {
    transition: none;
  }
}

.container {
  width: 100%;
  margin: 0 auto;
}

.hero {
  position: relative;
  display: flex;
  width: 100vw;
  min-height: 480px;
  margin: 0 calc(50% - 50vw) 8px;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 34px 34px;
  background:
    linear-gradient(160deg, rgba(6, 79, 53, 0.76), rgba(10, 28, 23, 0.9)),
    linear-gradient(180deg, rgba(5, 42, 29, 0.16), rgba(5, 42, 29, 0.72)),
    url("assets/hero-bolao-bypaola.png") center / cover;
  color: white;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 12px),
    radial-gradient(circle at 20% 20%, rgba(244, 196, 48, 0.16), transparent 15rem),
    radial-gradient(circle at 85% 62%, rgba(255, 255, 255, 0.08), transparent 11rem);
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(576px, 100%);
  margin: 0 auto;
  padding: 16px var(--page-pad) 20px;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hero h1 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 32rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.52;
}

.hero-actions,
.quick-links,
.status-row,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-actions {
  margin-top: 16px;
}

.primary-button,
.danger-button,
.ghost-button,
.tab-button,
.quick-link {
  min-height: 40px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.primary-button,
.ghost-button {
  position: relative;
  overflow: hidden;
  transition:
    transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1),
    background 300ms cubic-bezier(0.25, 0.8, 0.25, 1),
    color 300ms cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.primary-button,
.danger-button {
  padding: 10px 14px;
  border: 0;
}

.primary-button {
  background: var(--primary-gradient);
  color: #231c0c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 1px 2px rgba(86, 58, 4, 0.12),
    0 12px 24px rgba(242, 200, 75, 0.24);
}

.hero-cta {
  position: relative;
  min-height: 48px;
  overflow: hidden;
  padding: 13px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, #fff0a6 0%, #f2c84b 38%, #fff8c6 50%, #e4ad2c 62%, #f5d76d 100%);
  background-size: 230% 100%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.46),
    0 2px 5px rgba(86, 58, 4, 0.1),
    0 14px 30px rgba(242, 200, 75, 0.34);
  animation: cta-shine 2.6s ease-in-out infinite;
}

@keyframes cta-shine {
  0%,
  48% {
    background-position: 0% 50%;
  }

  76%,
  100% {
    background-position: 100% 50%;
  }
}

.danger-button {
  background: linear-gradient(135deg, #d64a3f, var(--red));
  color: white;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(179, 38, 30, 0.18);
}

.ghost-button,
.tab-button,
.quick-link {
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: var(--glass-gradient);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(17, 37, 28, 0.04);
}

.ghost-button:hover,
.primary-button:hover,
.danger-button:hover,
.tab-button:hover,
.quick-link:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.46),
    0 10px 24px rgba(17, 37, 28, 0.09);
}

.primary-button:active,
.ghost-button:active,
.danger-button:active,
.tab-button:active,
.quick-link:active {
  transform: scale(0.96);
}

.tab-button.is-active,
.quick-link:hover {
  border-color: var(--green);
  background: var(--green-gradient);
  color: white;
}

.chip {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip.green {
  background: var(--green-soft);
  color: var(--green);
}

.chip.yellow {
  background: var(--yellow-soft);
  color: #6d4f00;
}

.chip.blue {
  background: #e4edf8;
  color: var(--blue);
}

.chip.muted {
  background: rgba(15, 31, 25, 0.08);
  color: var(--muted);
}

.chip.dark {
  background: rgba(16, 35, 26, 0.78);
  color: white;
}

.source-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(11, 179, 255, 0.24);
  border-radius: 999px;
  background: rgba(231, 247, 255, 0.92);
  color: #0879b8;
  font-size: 0.72rem;
  font-weight: 900;
}

.source-chip img {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

.source-chip.game-source-chip {
  justify-self: start;
  width: fit-content;
  margin-top: 1px;
  border-color: rgba(11, 179, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(231, 247, 255, 0.96), rgba(255, 255, 255, 0.86));
  color: #0879b8;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.48),
    0 8px 18px rgba(8, 121, 184, 0.08);
}

.source-chip.source-icon-only,
.source-inline.source-icon-only {
  display: inline-grid;
  width: 18px;
  height: 18px;
  min-height: 0;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.source-chip.source-icon-only img,
.source-inline.source-icon-only img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

.source-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
}

.source-inline img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.game-source-inline {
  justify-self: end;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.game-source-inline img {
  width: 20px;
  height: 20px;
}

.countdown-card {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(244, 196, 48, 0.46);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 246, 215, 0.98), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(2, 122, 69, 0.16), transparent 12rem);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(17, 43, 30, 0.14);
}

.countdown-card.hero-prize {
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 14px;
  border-color: rgba(244, 196, 48, 0.64);
  background:
    linear-gradient(135deg, #fff8dc, rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(244, 196, 48, 0.28), transparent 11rem),
    radial-gradient(circle at 0% 100%, rgba(2, 122, 69, 0.16), transparent 10rem);
}

.countdown-card.hero-prize > .countdown-copy {
  display: grid;
  gap: 9px;
  align-items: start;
  justify-content: start;
  min-width: 0;
}

.countdown-copy h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.05;
}

.countdown-number {
  display: flex;
  align-items: end;
  gap: 8px;
}

.countdown-number small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.countdown-number small {
  padding-bottom: 4px;
  text-transform: uppercase;
}

.countdown-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 31, 25, 0.08);
}

.countdown-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

.countdown-prize {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
}

.countdown-prize img {
  width: min(132px, 100%);
  aspect-ratio: 1.18;
  padding: 4px;
  border: 1px solid rgba(15, 31, 25, 0.08);
  border-radius: 16px;
  object-fit: contain;
  background: white;
  box-sizing: border-box;
  box-shadow: 0 12px 26px rgba(17, 43, 30, 0.14);
}

.countdown-card > div:not(.countdown-copy):not(.countdown-progress):not(.countdown-compact-head) {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.countdown-card span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.countdown-card strong {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.92;
}

.countdown-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.countdown-card.feed,
.countdown-card.prizes {
  grid-template-columns: 1fr;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 16px;
}

.countdown-compact-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.countdown-compact-head > span {
  display: grid;
  gap: 0;
}

.countdown-compact-head small {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
}

.countdown-card.feed strong,
.countdown-card.prizes strong {
  font-size: 2rem;
}

.countdown-card.feed p,
.countdown-card.prizes p {
  text-align: left;
}

.countdown-progress.compact {
  height: 9px;
  margin: 3px 0;
  background: rgba(15, 31, 25, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.countdown-progress.compact i {
  box-shadow:
    0 0 18px rgba(244, 196, 48, 0.5),
    0 0 10px rgba(2, 122, 69, 0.34);
  animation: progress-glow 1.8s ease-in-out infinite alternate;
}

@keyframes progress-glow {
  from {
    filter: saturate(1);
  }

  to {
    filter: saturate(1.35) brightness(1.08);
  }
}

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.countdown-card.is-complete {
  border-color: rgba(2, 122, 69, 0.42);
  background: linear-gradient(135deg, #e0f4e9, #ffffff);
}

.match-board,
.leader-rail,
.stat-card,
.feed-card,
.ranking-card,
.prize-card,
.rule-panel,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius);
  background: var(--glass-gradient);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.match-board {
  padding: 14px;
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}

.team {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.player-name,
.participant-name {
  overflow-wrap: anywhere;
}

.team span {
  color: var(--muted);
  font-size: 0.78rem;
}

.flag-badge {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: center;
  width: fit-content;
  min-width: 0;
  overflow: hidden;
  padding: 0 8px 0 0;
  border: 1px solid rgba(15, 31, 25, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(17, 43, 30, 0.07);
}

.flag-badge.large {
  grid-template-columns: 1fr;
  justify-items: center;
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 18px;
}

.flag-badge.mini {
  padding: 0 7px 0 0;
  box-shadow: none;
}

.flag-img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow:
    inset 0 0 0 1px rgba(15, 31, 25, 0.08),
    2px 0 8px rgba(17, 43, 30, 0.08);
}

.flag-badge.mini .flag-img {
  width: 24px;
  height: 24px;
}

.flag-badge.large .flag-img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.flag-code {
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0;
}

.match-flags {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  vertical-align: middle;
}

.match-flags.inline {
  margin-inline: 2px;
}

.match-score-flags {
  gap: 7px;
}

.match-score {
  min-width: 34px;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.match-separator {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.versus {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

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

.meta-item {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-tint);
}

.meta-item small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.meta-item strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 0.84rem;
  text-overflow: ellipsis;
}

.games-panel {
  display: grid;
  gap: 10px;
}

.games-panel h2 {
  margin: 0 0 2px;
  color: white;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.game-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: var(--glass-gradient);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--soft-shadow);
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.game-card-trigger {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.game-card-trigger:focus-visible,
.game-prediction-button:focus-visible {
  outline: 3px solid rgba(2, 122, 69, 0.24);
  outline-offset: 3px;
}

.game-card:hover {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(17, 37, 28, 0.05), 0 10px 24px rgba(17, 37, 28, 0.1);
  transform: translateY(-1px);
}

.game-card:active {
  transform: scale(0.97);
}

.game-card-top {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.game-card.is-current {
  border-color: rgba(255, 255, 255, 0.5);
  background: var(--glass-gradient);
  box-shadow: var(--soft-shadow);
}

.game-card.is-finished {
  border-color: rgba(255, 255, 255, 0.5);
  background: var(--glass-gradient);
  box-shadow: var(--soft-shadow);
}

.game-card.is-selected {
  outline: 2px solid rgba(2, 122, 69, 0.24);
  outline-offset: 2px;
  box-shadow: var(--lift-shadow);
}

.game-card-label {
  display: inline-grid;
  min-width: 112px;
  place-items: center;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.game-card.is-open .game-card-label {
  background: var(--green-soft);
  color: var(--green);
}

.game-card.is-closed .game-card-label {
  background: #ffe5e2;
  color: var(--red);
}

.game-card-flags {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.game-card-date {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: right;
}

.game-prediction-button {
  justify-self: end;
  width: auto;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    0 6px 14px rgba(242, 200, 75, 0.16);
}

.game-card-details {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 31, 25, 0.08);
  animation: details-enter 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top center;
}

@keyframes details-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.game-detail-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(248, 251, 248, 0.92);
}

.game-detail-line small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.game-detail-line strong {
  color: var(--green-dark);
  font-size: 0.78rem;
}

.game-result-line.compact,
.mom-line.compact,
.player-stat-pill.compact {
  padding: 7px;
  border-radius: 12px;
  background: rgba(248, 251, 248, 0.92);
}

.player-stat-list.compact {
  display: grid;
  gap: 6px;
}

.player-stat-pill.compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
}

.game-stat-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-stat-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  background: rgba(248, 251, 248, 0.92);
}

.game-stat-column-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.game-stat-column-title svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.game-stat-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.game-stat-entry .player-photo {
  width: 30px;
  height: 30px;
  border-width: 1px;
  outline-width: 1px;
}

.game-stat-entry strong {
  overflow: hidden;
  color: var(--green-dark);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-stat-entry > span:last-child,
.game-stat-empty {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: white;
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 950;
}

.game-stat-empty {
  justify-self: start;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
}

.game-stat-column.assist .game-stat-entry > span:last-child {
  color: var(--blue);
}

.mom-line.compact .player-photo,
.player-stat-pill.compact .player-photo {
  width: 36px;
  height: 36px;
  border-width: 1px;
  outline-width: 1px;
}

.game-card-details .form-hint,
.stats-empty.compact {
  display: block;
  padding: 8px;
  border-radius: 12px;
  background: rgba(248, 251, 248, 0.92);
  font-size: 0.78rem;
}

.prediction-builder-view {
  min-height: calc(100vh - 80px);
  padding: 18px 0 92px;
  background:
    radial-gradient(circle at 82% 0%, rgba(2, 122, 69, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 249, 244, 0.88));
}

.prediction-shell {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px);
}

.prediction-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(205, 222, 216, 0.78);
  color: #61706d;
  cursor: pointer;
}

.prediction-close svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
}

.prediction-head {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-right: 56px;
  text-align: center;
}

.prediction-head h2 {
  margin-bottom: 0;
  color: #0d1512;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
}

.prediction-head p {
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.52rem);
  font-weight: 700;
}

.prediction-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(18px, 5vw, 58px);
  align-items: center;
  width: min(720px, 100%);
  margin: 0 auto;
}

.prediction-team {
  display: grid;
  gap: 14px;
  justify-items: center;
  color: #6b7480;
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prediction-team img {
  width: clamp(86px, 16vw, 148px);
  height: clamp(62px, 10vw, 104px);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(17, 43, 30, 0.14);
}

.prediction-versus {
  color: rgba(98, 104, 104, 0.48);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.prediction-mode-row,
.prediction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(15, 31, 25, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.prediction-mode-row div,
.prediction-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.prediction-mode-row strong,
.prediction-section-title strong {
  color: var(--green-dark);
}

.prediction-mode-row small,
.prediction-section-title small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.combo-toggle {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(2, 122, 69, 0.2);
  border-radius: 999px;
  background: white;
  color: var(--green);
  font-weight: 950;
  cursor: pointer;
}

.combo-toggle.is-active {
  background: var(--green);
  color: white;
  box-shadow: 0 10px 22px rgba(2, 122, 69, 0.18);
}

.prediction-score-list {
  display: grid;
  gap: 10px;
}

.prediction-score-list.is-combo {
  grid-template-columns: 1fr;
}

.prediction-score-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 31, 25, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.prediction-score-list.is-combo .prediction-score-card {
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  align-items: center;
}

.prediction-score-label {
  justify-self: center;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prediction-score-list.is-combo .prediction-score-label {
  justify-self: start;
}

.prediction-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.prediction-team-score {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.prediction-team-score > span {
  color: #6b7480;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prediction-stepper {
  display: grid;
  grid-template-columns: 44px minmax(36px, auto) 44px;
  gap: 14px;
  align-items: center;
}

.prediction-stepper button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(15, 31, 25, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.68);
  color: #111;
  font-size: 1.8rem;
  font-weight: 800;
  cursor: pointer;
}

.prediction-stepper strong {
  min-width: 42px;
  color: #070b09;
  font-family: var(--font-display);
  font-size: 2.1rem;
  text-align: center;
}

.prediction-score-x {
  align-self: center;
  color: rgba(98, 104, 104, 0.52);
  font-size: 1.2rem;
  font-weight: 950;
}

.prediction-warning {
  margin-top: -6px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.prediction-players-section,
.prediction-player-groups,
.prediction-player-group {
  display: grid;
}

.prediction-players-section {
  gap: 12px;
}

.prediction-section-title {
  display: grid;
  gap: 3px;
}

.prediction-scoring-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.prediction-scoring-hints span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(15, 31, 25, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.prediction-scoring-hints .rule-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
}

.prediction-scoring-hints .rule-icon svg {
  width: 12px;
  height: 12px;
}

.prediction-scoring-hints strong {
  color: var(--green-dark);
}

.prediction-player-groups {
  gap: 16px;
}

.prediction-player-group {
  gap: 10px;
}

.prediction-player-group h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.prediction-player-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.prediction-player-choice {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

.prediction-player-choice .player-photo {
  width: 48px;
  height: 48px;
}

.prediction-player-choice span {
  overflow: hidden;
  max-width: 100%;
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-player-choice.is-selected {
  border-color: rgba(2, 122, 69, 0.42);
  background: #e7f8ed;
  box-shadow: 0 10px 22px rgba(2, 122, 69, 0.1);
}

.prediction-summary {
  position: sticky;
  bottom: 76px;
  z-index: 2;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.prediction-summary span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.prediction-summary.is-ready span {
  color: var(--green-dark);
}

.prediction-submit:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.game-stats-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: var(--glass-gradient);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.game-stats-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.game-stats-head span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.game-stats-head h3 {
  margin: 4px 0 0;
}

.game-result-line,
.mom-line,
.player-stat-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border-radius: 14px;
  background: var(--surface-tint);
}

.game-result-line strong {
  margin-left: auto;
  font-family: var(--font-display);
  color: var(--green);
}

.game-result-line small {
  color: var(--muted);
  font-size: 0.7rem;
}

.mom-line span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.mom-line strong,
.player-stat-pill strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-stat-list {
  display: grid;
  gap: 8px;
}

.player-stat-pill {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.player-stat-pill > span {
  display: inline-grid;
  min-width: 30px;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
}

.player-stat-pill .stat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
  color: var(--green-dark);
}

.stat-count svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}

.stat-count span {
  display: inline;
  min-width: auto;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.stat-count.assist {
  color: var(--blue);
}

.stats-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.section-band {
  padding: 20px 0 0;
}

.section-band.flush {
  padding-top: 0;
}

.section-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.5;
}

.home-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.podium-section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.section-heading.compact {
  margin-bottom: 0;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.podium-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 7px;
  justify-items: center;
  min-height: 138px;
  padding: 12px 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: var(--glass-gradient);
  text-align: center;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.72;
}

.podium-card.gold {
  min-height: 158px;
  border-color: rgba(244, 196, 48, 0.66);
}

.podium-card.gold::before {
  background: linear-gradient(180deg, rgba(255, 238, 153, 0.72), transparent 58%);
}

.podium-card.silver::before {
  background:
    linear-gradient(160deg, rgba(247, 249, 251, 0.92), rgba(166, 178, 192, 0.78) 38%, rgba(255, 255, 255, 0.7) 58%, transparent 78%),
    linear-gradient(180deg, rgba(190, 200, 211, 0.86), transparent 62%);
}

.podium-card.bronze::before {
  background: linear-gradient(180deg, rgba(232, 176, 118, 0.6), transparent 58%);
}

.podium-card > * {
  position: relative;
  z-index: 1;
}

.podium-place {
  display: inline-grid;
  min-width: 34px;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.podium-card.gold .podium-place {
  background: var(--yellow);
}

.podium-card strong {
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-card small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-points {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-gradient);
  color: white;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.leader-rail,
.stat-card,
.rule-panel {
  padding: 14px;
}

.leader-rail {
  box-shadow: var(--shadow);
}

.stat-card,
.prize-card,
.rule-panel,
.leader-rail {
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.stat-card:hover,
.prize-card:hover,
.rule-panel:hover,
.leader-rail:hover {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(17, 37, 28, 0.05), 0 10px 24px rgba(17, 37, 28, 0.1);
  transform: translateY(-1px);
}

.leader-rail h3,
.stat-card h3,
.prize-card h3,
.rule-panel h3 {
  margin: 0 0 8px;
}

.leader-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.leader-points {
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 950;
}

.stats-grid,
.prizes-grid,
.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stat-card span,
.leader-rail p,
.feed-card small,
.ranking-meta,
.prize-card p,
.rule-panel p,
.form-hint,
.empty-state {
  color: var(--muted);
}

.stat-card h3 {
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.22;
}

.stat-card p,
.prize-card p,
.rule-panel p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 560;
  line-height: 1.52;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 8px;
  text-align: center;
}

.feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.feed-filter {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  overflow-x: auto;
  padding: 0 2px 2px;
  scrollbar-width: none;
}

.feed-filter::-webkit-scrollbar {
  display: none;
}

.feed-filter .tab-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.feed-search-input {
  width: 100%;
  min-height: 42px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid rgba(10, 56, 36, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.feed-search-input::placeholder {
  color: rgba(78, 91, 84, 0.72);
}

.feed-search-input:focus {
  outline: none;
  border-color: rgba(5, 122, 69, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 3px rgba(5, 122, 69, 0.12);
}

.feed-card {
  display: grid;
  grid-template-columns: minmax(100px, 0.5fr) minmax(0, 1.5fr);
  grid-template-areas: "user pick";
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54)),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--soft-shadow);
  animation: slideInFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  backdrop-filter: blur(14px) saturate(1.12);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease,
    border-color 200ms ease;
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

.feed-card:hover {
  border-color: rgba(244, 196, 48, 0.5);
  box-shadow: 0 1px 2px rgba(17, 37, 28, 0.05), 0 10px 24px rgba(17, 37, 28, 0.1);
  transform: translateY(-1px);
}

.feed-card:active {
  transform: scale(0.97);
}

.feed-participant,
.feed-player,
.feed-score,
.feed-pick {
  min-width: 0;
}

.feed-participant,
.feed-player {
  grid-area: user;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  align-self: center;
  justify-items: start;
  text-align: left;
}

.feed-participant .avatar {
  align-self: center;
}

.feed-player {
  justify-content: end;
}

.feed-participant strong,
.feed-player strong,
.ranking-person strong {
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-participant small,
.feed-player small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-participant .social-handle,
.ranking-person .social-handle,
.podium-card .social-handle {
  display: inline-flex;
  max-width: 100%;
}

.feed-score {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.feed-pick {
  grid-area: pick;
  display: grid;
  grid-template-columns: minmax(0, 1.30fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: center;
  align-self: center;
  justify-items: center;
  text-align: center;
}

.feed-score-stack {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-self: center;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.score-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 6px 9px;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.96), var(--yellow-soft));
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 8px 18px rgba(242, 200, 75, 0.12);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-line.code-score {
  display: grid;
  grid-template-columns: 20px minmax(34px, auto) 20px;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 6px 11px;
}

.score-country {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 22px;
  min-width: 22px;
  justify-content: center;
  color: var(--ink);
  font-size: 0.61rem;
  font-weight: 950;
}

.score-line strong {
  min-width: 38px;
  color: var(--green-dark);
  text-align: center;
}

.feed-player-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(248, 250, 246, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
  text-align: left;
}

.feed-player-photo-frame {
  display: grid;
  align-self: center;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  outline: 1px solid var(--yellow);
  outline-offset: 1px;
  overflow: hidden;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(17, 43, 30, 0.14);
}

.feed-player-photo-frame .player-photo {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  outline: 0;
  outline-offset: 0;
  object-fit: cover;
  box-shadow: none;
}

.feed-player-photo-frame img.player-photo {
  transform: scale(1.1);
}

.feed-player-pick strong {
  overflow: hidden;
  color: var(--green-dark);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-date {
  display: block;
  padding-left: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1;
}

.score-flag {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(15, 31, 25, 0.08);
}

.avatar,
.player-photo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  background: var(--avatar-bg, var(--green));
  color: white;
  font-weight: 900;
}

.avatar {
  width: 38px;
  height: 38px;
  font-size: 0.78rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.avatar.large {
  width: 48px;
  height: 48px;
}

.player-photo {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
  font-size: 0.72rem;
  box-shadow: 0 8px 18px rgba(17, 43, 30, 0.14);
}

.tiktok,
.social-handle {
  color: var(--blue);
  font-weight: 800;
}

.social-handle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.social-handle span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-icon {
  display: inline-grid;
  width: 11.5px;
  height: 11.5px;
  flex: 0 0 auto;
  place-items: center;
  background: transparent;
}

.social-icon img {
  width: 11.5px;
  height: 11.5px;
  display: block;
  object-fit: contain;
}

.ranking-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ranking-list {
  display: grid;
  gap: 8px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 40px 38px minmax(0, 1fr) auto 20px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  background: var(--glass-gradient);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px) saturate(1.08);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.ranking-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 1px 2px rgba(17, 37, 28, 0.05), 0 10px 24px rgba(17, 37, 28, 0.1);
}

.ranking-row:active {
  transform: scale(0.97);
}

.ranking-row.is-expanded {
  border-color: rgba(2, 122, 69, 0.26);
}

.ranking-row.gold {
  border-color: rgba(218, 171, 39, 0.42);
  background:
    linear-gradient(110deg, #fffdf4 0%, #f7e7a9 36%, #ffffff 56%, #edd891 100%),
    radial-gradient(circle at 0% 50%, rgba(214, 160, 24, 0.12), transparent 9rem);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    0 1px 2px rgba(17, 37, 28, 0.04),
    0 10px 22px rgba(145, 103, 18, 0.08);
}

.ranking-row.silver {
  border-color: rgba(122, 133, 147, 0.52);
  background:
    linear-gradient(110deg, #f2f5f8 0%, #c8d0da 36%, #ffffff 56%, #aeb9c5 100%),
    radial-gradient(circle at 0% 50%, rgba(139, 151, 165, 0.22), transparent 9rem);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 1px 2px rgba(17, 37, 28, 0.04),
    0 10px 22px rgba(74, 85, 98, 0.12);
}

.ranking-row.bronze {
  border-color: rgba(177, 105, 53, 0.38);
  background:
    linear-gradient(110deg, #fff8f1 0%, #edc19b 36%, #ffffff 56%, #dca77c 100%),
    radial-gradient(circle at 0% 50%, rgba(177, 105, 53, 0.1), transparent 9rem);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 1px 2px rgba(17, 37, 28, 0.04),
    0 10px 22px rgba(126, 76, 35, 0.07);
}

.place-badge {
  display: grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 7px 16px rgba(17, 37, 28, 0.08);
}

.gold .place-badge {
  background: var(--primary-gradient);
  color: #2d2400;
}

.silver .place-badge {
  background: linear-gradient(135deg, #f7f9fb, #b8c1cc 42%, #758291 100%);
  color: #1f2832;
}

.bronze .place-badge {
  background: linear-gradient(135deg, #df9a5c, var(--bronze));
  color: white;
}

.ranking-person {
  align-self: center;
  min-width: 0;
}

.ranking-person small {
  display: block;
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.prediction-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.prediction-chip strong {
  min-width: auto;
  color: var(--green-dark);
  text-align: center;
  white-space: nowrap;
}

.prediction-flag {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  object-fit: cover;
}

.prediction-chip.is-correct {
  border-color: rgba(2, 122, 69, 0.36);
  background: #e7f8ed;
  color: var(--green-dark);
}

.prediction-chip.is-wrong {
  border-color: rgba(179, 38, 30, 0.28);
  background: #fff0ee;
  color: #7f1d1d;
}

.prediction-check {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 0.5rem;
  line-height: 1;
}

.prediction-check.is-wrong {
  background: var(--red);
}

.ranking-score {
  display: grid;
  min-width: 48px;
  align-content: center;
  justify-items: end;
  padding: 0 4px 0 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
}

.ranking-score strong {
  display: block;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1;
}

.ranking-score span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.ranking-chevron {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--green-dark);
  transition: transform 180ms ease;
}

.ranking-chevron svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ranking-row.is-expanded .ranking-chevron {
  transform: rotate(180deg);
}

.ranking-details {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 31, 25, 0.08);
  animation: details-enter 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top center;
}

.ranking-pick-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 14px;
  background: rgba(248, 251, 248, 0.92);
  animation: details-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 50ms);
  transform-origin: top center;
}

.ranking-pick-game,
.ranking-pick-player {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ranking-pick-game {
  flex-wrap: wrap;
}

.ranking-pick-game > strong {
  color: var(--green-dark);
  font-size: 0.78rem;
}

.ranking-pick-score-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  line-height: 1.25;
}

.ranking-pick-score-code .score-flag {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

.ranking-pick-player .player-photo {
  width: 30px;
  height: 30px;
  border-width: 1px;
  outline-width: 1px;
}

.ranking-pick-player span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
}

.ranking-pick-player strong {
  display: block;
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-pick-points {
  min-width: 42px;
  text-align: right;
}

.ranking-pick-points strong {
  display: block;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1;
}

.ranking-pick-points span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
}

.table-wrap {
  overflow: visible;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.person-cell {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.prize-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.prize-card.is-locked {
  border-color: rgba(15, 31, 25, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(239, 243, 240, 0.92)),
    var(--glass-gradient);
}

.prize-card.is-locked .prize-visual {
  filter: saturate(0.65);
}

.prize-card.is-unlocked {
  border-color: rgba(2, 122, 69, 0.34);
}

.prize-copy {
  display: grid;
  gap: 8px;
}

.prize-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rule-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(17, 37, 28, 0.08);
}

.rule-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.prize-visual {
  position: relative;
  display: grid;
  min-height: 116px;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(140deg, rgba(242, 201, 76, 0.3), rgba(29, 95, 167, 0.14)),
    var(--surface-tint);
  color: var(--green);
  font-size: 2.4rem;
  font-weight: 950;
  overflow: hidden;
}

.prize-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(15, 31, 25, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  box-shadow: 0 8px 18px rgba(17, 43, 30, 0.12);
}

.prize-lock svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.prize-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-progress {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.prize-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.prize-progress-head strong {
  color: var(--green);
  font-size: 0.78rem;
}

.prize-progress.is-complete .countdown-progress i {
  background: linear-gradient(90deg, var(--green), #18b473);
}

.rule-heading {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin-bottom: 10px;
}

.rule-heading h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 850;
}

.rule-source {
  margin-left: auto;
}

.scoring-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.scoring-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.scoring-item .rule-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.scoring-item .rule-icon svg {
  width: 14px;
  height: 14px;
}

.scoring-item span {
  font-weight: 400;
}

.rule-panel p {
  font-weight: 400;
}

.rule-panel ul,
.rule-panel ol {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.empty-state {
  padding: 18px;
  box-shadow: none;
  text-align: center;
}

.countdown-card.hero-prize {
  grid-template-columns: minmax(0, 1fr) 158px;
}

.countdown-prize img {
  width: min(158px, 100%);
  transform: scale(1.08);
}

.source-inline,
.game-source-inline {
  width: fit-content;
  height: auto;
  justify-self: end;
  padding: 5px 9px;
  border: 1px solid rgba(11, 179, 255, 0.18);
  border-radius: 999px;
  background: rgba(231, 247, 255, 0.9);
  color: #0879b8;
  font-size: 0.68rem;
  font-weight: 950;
}

.game-card {
  min-height: 76px;
  padding: 14px;
}

.game-card.is-next-prediction {
  border-color: rgba(244, 196, 48, 0.72);
  animation: next-game-flash 1.7s ease-in-out infinite;
}

@keyframes next-game-flash {
  0%,
  100% {
    box-shadow: var(--soft-shadow);
  }

  50% {
    box-shadow:
      0 0 0 3px rgba(242, 200, 75, 0.22),
      0 16px 34px rgba(242, 200, 75, 0.22);
  }
}

.game-card-top {
  grid-template-columns: minmax(132px, auto) minmax(0, 1fr) auto 24px;
  gap: 10px;
}

.game-card-label {
  min-width: 132px;
  padding: 7px 10px;
  font-size: 0.66rem;
}

.game-card-date {
  font-size: 0.82rem;
}

.game-card-chevron {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--green-dark);
  transition: transform 330ms ease;
}

.game-card-chevron svg {
  width: 18px;
  height: 18px;
}

.game-card.is-selected .game-card-chevron {
  transform: rotate(180deg);
}

.game-prediction-button {
  justify-self: center;
  min-height: 36px;
  padding: 9px 18px;
  font-size: 0.78rem;
}

.game-prediction-button.is-disabled {
  border: 1px solid rgba(15, 31, 25, 0.12);
  background: #e5e9e5;
  color: #7b847f;
  box-shadow: none;
}

.game-prediction-button.is-disabled:hover {
  transform: none;
}

.flag-badge.mini .flag-img {
  width: 30px;
  height: 30px;
}

.flag-code {
  font-size: 0.74rem;
}

.match-score {
  min-width: 42px;
  font-size: 1.08rem;
}

.game-card-details,
.ranking-details,
.ranking-pick-detail {
  animation-duration: 330ms;
}

.game-stat-entry .player-photo,
.ranking-pick-player .player-photo {
  width: 36px;
  height: 36px;
}

.mom-line.compact .player-photo,
.player-stat-pill.compact .player-photo {
  width: 43px;
  height: 43px;
}

.game-stat-entry strong {
  font-size: 0.76rem;
}

.combo-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(15, 31, 25, 0.12);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.combo-switch-track {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #d9e0dc;
  transition: background 240ms ease;
}

.combo-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 10px rgba(17, 37, 28, 0.18);
  transition: transform 240ms ease;
}

.combo-switch.is-active {
  border-color: rgba(2, 122, 69, 0.24);
  color: var(--green-dark);
}

.combo-switch.is-active .combo-switch-track {
  background: var(--green);
}

.combo-switch.is-active .combo-switch-thumb {
  transform: translateX(24px);
}

.combo-score-box {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    grid-template-rows 330ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease,
    transform 330ms cubic-bezier(0.22, 1, 0.36, 1);
}

.combo-score-box.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.combo-score-box-inner {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  padding: 0 2px;
}

.combo-score-box.is-open .combo-score-box-inner {
  padding-top: 2px;
}

.combo-score-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(2, 122, 69, 0.12);
  border-radius: 14px;
  background: rgba(231, 248, 237, 0.74);
}

.combo-score-box-head strong {
  color: var(--green-dark);
  font-size: 0.86rem;
}

.combo-score-box-head small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.prediction-scoring-hints span.is-exact,
.scoring-item.is-exact {
  border-color: rgba(244, 196, 48, 0.55);
  background: linear-gradient(135deg, #fff7d7, rgba(255, 255, 255, 0.86));
  color: #5f4700;
}

.prediction-contact-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 31, 25, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.prediction-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prediction-contact-grid .full {
  grid-column: 1 / -1;
}

.prediction-contact-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.prediction-contact-grid input[type="text"],
.prediction-contact-grid input:not([type]) {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(10, 56, 36, 0.14);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.social-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.social-choice {
  display: flex !important;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 31, 25, 0.1);
  border-radius: 12px;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
}

.social-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.social-choice.is-selected {
  border-color: rgba(2, 122, 69, 0.36);
  background: #e7f8ed;
}

.social-choice .social-icon,
.social-choice .social-icon img {
  width: 18px;
  height: 18px;
}

.prediction-total-preview {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green-dark);
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
}

.new-prediction-banner {
  display: grid;
  min-height: 42px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(2, 122, 69, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #e7f8ed, #fff8dc);
  color: var(--green-dark);
  font-weight: 950;
  animation: new-prediction-pop 1.6s ease both;
}

@keyframes new-prediction-pop {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }

  22% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feed-card.is-combo {
  border-color: rgba(2, 122, 69, 0.24);
  background:
    linear-gradient(145deg, rgba(231, 248, 237, 0.82), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.62);
}

.combo-feed-toggle {
  cursor: pointer;
  border-color: rgba(2, 122, 69, 0.28);
  background:
    linear-gradient(180deg, rgba(231, 248, 237, 0.96), rgba(214, 242, 224, 0.92));
  color: var(--green-dark);
}

.combo-feed-toggle .score-flag {
  box-shadow:
    inset 0 0 0 1px rgba(15, 31, 25, 0.08),
    0 0 0 1px rgba(2, 122, 69, 0.18);
}

.combo-feed-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.combo-feed-label svg {
  width: 14px;
  height: 14px;
  transition: transform 330ms ease;
}

.feed-card.is-expanded .combo-feed-label svg {
  transform: rotate(180deg);
}

.feed-combo-details {
  display: grid;
  grid-column: 1 / -1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 330ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease;
}

.feed-card.is-expanded .feed-combo-details {
  max-height: 260px;
  opacity: 1;
  padding-top: 4px;
}

.feed-combo-details > * {
  min-height: 0;
}

.feed-combo-line {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-top: 1px solid rgba(15, 31, 25, 0.08);
}

.feed-combo-line > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.rules-grid .rule-panel,
.prizes-grid .prize-card {
  border-color: rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 246, 0.68)),
    var(--glass-gradient);
}

@media (max-width: 430px) {
  main,
  .topbar {
    padding-inline: 14px;
  }

  .hero-inner {
    padding: 16px 14px 20px;
  }

  .podium-grid {
    gap: 6px;
  }

  .podium-card {
    min-height: 130px;
    padding: 10px 6px 9px;
    border-radius: 15px;
  }

  .podium-card.gold {
    min-height: 146px;
  }

  .podium-card .avatar.large {
    width: 40px;
    height: 40px;
  }

  .podium-card strong {
    font-size: 0.72rem;
  }

  .podium-points {
    padding-inline: 6px;
    font-size: 0.66rem;
  }

  .countdown-card.hero-prize {
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 10px;
    padding: 12px;
  }

  .countdown-copy h2 {
    font-size: 1.02rem;
  }

  .countdown-number {
    align-items: center;
  }

  .countdown-card.hero-prize strong {
    font-size: 2.72rem;
  }

  .countdown-number small {
    font-size: 0.66rem;
  }

  .game-card-top {
    grid-template-columns: minmax(0, 1fr) auto 22px;
    grid-template-areas:
      "label date chevron"
      "flags flags flags";
    row-gap: 8px;
  }

  .game-card-label {
    grid-area: label;
    justify-self: start;
  }

  .game-card-flags {
    grid-area: flags;
  }

  .game-card-date {
    grid-area: date;
  }

  .game-card-chevron {
    grid-area: chevron;
  }

  .prediction-shell {
    width: min(100% - 16px, 980px);
    padding: 16px 8px;
  }

  .prediction-head {
    padding-right: 48px;
  }

  .prediction-close {
    width: 46px;
    height: 46px;
  }

  .prediction-matchup {
    gap: 12px;
  }

  .prediction-team {
    font-size: 0.82rem;
  }

  .prediction-score-list.is-combo {
    grid-template-columns: 1fr;
  }

  .prediction-score-list.is-combo .prediction-score-card {
    grid-template-columns: 1fr;
  }

  .prediction-score-list.is-combo .prediction-score-label {
    justify-self: center;
  }

  .prediction-score-row {
    gap: 6px;
  }

  .prediction-contact-grid,
  .social-choice-row {
    grid-template-columns: 1fr;
  }

  .prediction-stepper {
    grid-template-columns: 38px minmax(30px, auto) 38px;
    gap: 8px;
  }

  .prediction-stepper button {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .prediction-player-list {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }

  .feed-card {
    grid-template-columns: minmax(100px, 0.5fr) minmax(0, 1.5fr);
    gap: 8px;
    padding: 10px;
    min-height: 66px;
  }

  .feed-card.is-combo {
    grid-template-areas:
      "user pick"
      "details details";
  }

  .feed-combo-details {
    grid-area: details;
  }

  .feed-combo-line {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .feed-participant,
  .feed-player {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .feed-participant strong,
  .feed-participant small,
  .feed-player strong,
  .feed-player small {
    max-width: 100%;
  }

  .feed-pick {
    grid-template-columns: minmax(0, 1.30fr) minmax(0, 1.2fr);
    gap: 30px;
    justify-items: center;
  }

  .feed-player-pick {
    min-height: 40px;
    padding: 4px 9px 4px 4px;
  }

  .feed-player-photo-frame {
    width: 34px;
    height: 34px;
  }

  .score-line {
    font-size: 0.68rem;
  }

  .score-country {
    font-size: 0.58rem;
  }

  .score-flag {
    width: 16px;
    height: 16px;
  }

  .feed-date {
    padding-left: 0;
  }

  .ranking-row {
    grid-template-columns: 34px 34px minmax(0, 1fr) 42px 18px;
    gap: 7px;
    padding: 9px;
  }

  .ranking-pick-detail {
    grid-template-columns: 1fr auto;
  }

  .ranking-pick-player {
    grid-column: 1 / -1;
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .player-photo {
    width: 38px;
    height: 38px;
  }

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

@media (min-width: 720px) {
  .topbar {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}


/* ================================================================
   PATCH v1 — Tela de Palpite (Bolão ByPaola)
   ================================================================ */

/* Ícones das hints: tamanho e stroke corretos */
.prediction-scoring-hints .rule-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 50% !important;
}
.prediction-scoring-hints .rule-icon svg {
  width: 13px !important;
  height: 13px !important;
  stroke-width: 2.2 !important;
}

/* Scoring hints: grid 2 colunas */
.prediction-scoring-hints {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  flex-wrap: unset !important;
}
@media (max-width: 520px) {
  .prediction-scoring-hints { grid-template-columns: 1fr; }
}

.scoring-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border-radius: 14px;
}
.scoring-section--result {
  background: linear-gradient(135deg, rgba(4,122,75,0.09), rgba(4,122,75,0.03));
  border: 1px solid rgba(4,122,75,0.18);
}
.scoring-section--player {
  background: linear-gradient(135deg, rgba(36,93,158,0.08), rgba(36,93,158,0.03));
  border: 1px solid rgba(36,93,158,0.15);
}
.scoring-section-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scoring-section-label svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: none;
}
.scoring-section--result .scoring-section-label { color: var(--green); }
.scoring-section--player .scoring-section-label { color: var(--blue); }

.scoring-hint-item {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 5px !important;
  background: rgba(255,255,255,0.76) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15,31,25,0.07) !important;
  font-size: 0.76rem !important;
  min-height: unset !important;
  width: 100%;
}
.scoring-hint-item strong {
  color: var(--ink);
  font-weight: 800;
  flex: 1;
}
.scoring-hint-item em {
  font-style: normal;
  color: var(--green);
  font-weight: 900;
  font-size: 0.72rem;
  white-space: nowrap;
}
.scoring-hint-item.is-exact {
  background: linear-gradient(135deg, rgba(4,122,75,0.1), rgba(255,255,255,0.82)) !important;
  border-color: rgba(4,122,75,0.22) !important;
}
.scoring-hint-item.is-exact strong { color: var(--green-dark); }

/* Contact card redesenhado */
.prediction-contact-card {
  border-radius: 16px !important;
  border: 1px solid rgba(4,122,75,0.22) !important;
  background: linear-gradient(135deg, rgba(223,243,233,0.82), rgba(255,255,255,0.94)) !important;
  padding: 14px !important;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.prediction-contact-card.has-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(179,38,30,0.09) !important;
  animation: shake-error 300ms ease;
}
@keyframes shake-error {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.prediction-contact-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.prediction-contact-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0a6, #f2c84b);
  box-shadow: 0 4px 12px rgba(242,200,75,0.4);
}
.prediction-contact-icon svg {
  width: 17px;
  height: 17px;
  fill: #231c0c;
  stroke: none;
}
.prediction-contact-title-block {
  display: grid;
  gap: 3px;
}
.prediction-contact-title-block strong {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 850;
}
.prediction-contact-title-block small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
}
.prediction-contact-title-block small em {
  font-style: normal;
  color: var(--green-dark);
  font-weight: 850;
}
/* esconde título antigo se presente */
.prediction-contact-card > .prediction-section-title { display: none; }

/* Validação inline */
label.field-error { color: var(--red) !important; }
label.field-error input,
input.input-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(179,38,30,0.1) !important;
}
.field-required {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(179,38,30,0.1);
  color: var(--red);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Proporção das flags */
.prediction-team img {
  width: clamp(60px, 10vw, 100px) !important;
  height: clamp(44px, 7vw, 72px) !important;
}
.prediction-versus {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem) !important;
}
.prediction-matchup {
  gap: clamp(10px, 3vw, 32px) !important;
  margin: 4px auto !important;
}
.prediction-team {
  font-size: 0.85rem !important;
  gap: 8px !important;
}

/* Espaçamento equilibrado */
.prediction-shell { gap: 14px !important; }
.prediction-head { gap: 5px !important; padding-right: 48px !important; }
.prediction-head h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important; margin-bottom: 0 !important; }
.prediction-head p { font-size: clamp(0.85rem, 1.6vw, 1rem) !important; }
.prediction-mode-row { padding: 10px 12px !important; }
.prediction-score-card { padding: 10px 12px !important; }
.prediction-players-section { gap: 10px !important; }
.prediction-player-choice { padding: 6px 4px !important; }
.prediction-player-choice .player-photo { width: 42px !important; height: 42px !important; }
.prediction-player-choice span:last-child { font-size: 0.64rem !important; }
.prediction-stepper button { width: 40px !important; height: 40px !important; font-size: 1.5rem !important; }
.prediction-stepper strong { font-size: 1.8rem !important; min-width: 36px !important; }
