:root {
  color-scheme: dark;
  --bg: #05130f;
  --panel: #0d1916;
  --panel-2: #12231f;
  --line: rgba(210, 236, 221, 0.16);
  --text: #f8fbf4;
  --muted: #c8d3c9;
  --soft: #e3ebe3;
  --gold: #ffd166;
  --green: #22c55e;
  --red: #ef476f;
  --blue: #4cc9f0;
  --navy: #071427;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  /* clip (not hidden) prevents horizontal scroll without creating a scroll
     container — `overflow-x: hidden` here breaks `position: sticky` headers. */
  overflow-x: clip;
  background: #05130f;
}

@keyframes kk-pitch-drift {
  from { background-position: 0 0, 0 0, 50% 20%; }
  to { background-position: 76px 38px, -76px 38px, 50% 20%; }
}

@keyframes kk-stadium-sweep {
  0%, 100% { transform: translate3d(-6%, -2%, 0) rotate(-2deg); opacity: 0.2; }
  50% { transform: translate3d(6%, 2%, 0) rotate(2deg); opacity: 0.38; }
}

@keyframes kk-scoreline-flow {
  from { background-position: 0 0, 0 0, 0 0, 50% 50%; }
  to { background-position: 0 0, 0 0, 180px 90px, 50% 50%; }
}

@keyframes kk-page-glow {
  0%, 100% { background-position: 0 0, 0 0, 12% 4%, 85% 10%, 48% 0%, 0 0; }
  50% { background-position: 27px 27px, -27px 27px, 18% 8%, 78% 13%, 52% 5%, 0 0; }
}

@keyframes kk-hero-field-run {
  from { background-position: 0 0, 0 0, 50% 0, 0 0; }
  to { background-position: 96px 48px, -96px 48px, 50% 0, 220px 0; }
}

@keyframes kk-hero-light-sweep {
  0%, 100% { transform: translate3d(-12%, -5%, 0) rotate(-4deg); opacity: 0.16; }
  50% { transform: translate3d(12%, 4%, 0) rotate(4deg); opacity: 0.38; }
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 12% 4%, rgba(76, 201, 240, 0.12), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.12), transparent 28rem),
    radial-gradient(circle at 48% 0%, rgba(255, 209, 102, 0.1), transparent 34rem),
    linear-gradient(145deg, #03130f 0%, #06121f 46%, #03110c 100%);
  background-size: 54px 54px, 54px 54px, auto, auto, auto, auto;
  animation: kk-page-glow 32s ease-in-out infinite;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 18%, transparent 0 7.2rem, rgba(255, 255, 255, 0.11) 7.25rem 7.34rem, transparent 7.42rem);
  background-size: 76px 76px, 76px 76px, auto;
  opacity: 0.3;
  animation: kk-pitch-drift 38s linear infinite;
  will-change: background-position;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 34%, rgba(255, 209, 102, 0.12) 46%, transparent 60%),
    linear-gradient(72deg, transparent 0 40%, rgba(76, 201, 240, 0.1) 52%, transparent 66%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 90px),
    radial-gradient(ellipse at 50% 100%, rgba(34, 197, 94, 0.16), transparent 52%);
  opacity: 0.3;
  transform-origin: center;
  animation: kk-stadium-sweep 26s ease-in-out infinite, kk-scoreline-flow 48s linear infinite;
  mix-blend-mode: screen;
  will-change: transform, opacity, background-position;
  z-index: 0;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.shell {
  width: min(1480px, calc(100% - 28px));
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 0 44px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

@media (max-width: 680px) {
  body::before {
    inset: -20%;
    background-size: 48px 48px, 48px 48px, auto;
    opacity: 0.34;
    animation-duration: 30s;
  }

  body::after {
    inset: -28%;
    opacity: 0.32;
    animation-duration: 22s, 44s;
  }

  .hero::before {
    inset: -2% -18%;
    background-size: 36px 36px, 36px 36px, auto, auto;
    opacity: 0.5;
    animation-duration: 22s;
  }

  .hero::after {
    opacity: 0.5;
    animation-duration: 14s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  body::after,
  .hero::before,
  .hero::after {
    animation: none;
  }
}

.portal-mode .shell {
  padding-top: 8px;
}

.site-nav,
.portal-header {
  border: 1px solid rgba(227, 235, 227, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(3, 19, 15, 0.86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.site-nav {
  min-height: 64px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 12px 14px;
  position: sticky;
  top: 12px;
  z-index: 20;
}

.site-topbar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-brand,
.portal-title {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 8px;
  background: #071009;
  padding: 5px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.brand-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-text strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.site-links a,
.site-links button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 900;
}

.site-cta,
.site-links .site-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
  color: #071009;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), #fff0a3);
}

.topline-portal-cta {
  flex: 0 0 auto;
  min-width: 116px;
  border: 1px solid transparent;
}

.hero,
.hero-copy,
.hero-dashboard,
.public-games,
.public-scoreboard,
.layout,
.workbench,
.tab-panel,
.panel,
.group-card,
.match-card,
.game-card,
.admin-panel,
.modal-panel,
.detail-grid {
  min-width: 0;
  max-width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 20px 0 34px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  inset: 0 -12%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 2%, transparent 0 7.5rem, rgba(255, 255, 255, 0.14) 7.55rem 7.65rem, transparent 7.72rem),
    repeating-linear-gradient(90deg, rgba(34, 197, 94, 0.09) 0 9%, rgba(34, 197, 94, 0.03) 9% 18%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: kk-hero-field-run 26s linear infinite;
}

.hero::after {
  inset: -24% -34%;
  background:
    linear-gradient(108deg, transparent 0 38%, rgba(255, 209, 102, 0.16) 47%, transparent 59%),
    linear-gradient(78deg, transparent 0 42%, rgba(76, 201, 240, 0.12) 51%, transparent 64%);
  transform-origin: center;
  animation: kk-hero-light-sweep 16s ease-in-out infinite;
}

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

.hero h1 {
  margin: 8px 0 14px;
  max-width: 900px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

.hero-brand-lockup {
  width: fit-content;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 8px;
  padding: 9px 12px 9px 9px;
  background: rgba(1, 9, 7, 0.44);
}

.hero-brand-lockup strong,
.hero-brand-lockup span {
  display: block;
}

.hero-brand-lockup strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.hero-brand-lockup span {
  margin-top: 3px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lede {
  max-width: 780px;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  margin: 0;
}

.flag-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.flag-ribbon span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #f8fbf4;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.hero-actions a:first-child {
  color: #071009;
  background: linear-gradient(135deg, var(--gold), #fff2b0);
  border-color: transparent;
}

.hero-dashboard {
  display: grid;
  gap: 14px;
}

.hero-match-card {
  min-height: 264px;
}

.hero-fixture {
  width: 100%;
  min-height: 264px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 16px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(76, 201, 240, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #07251a;
  background-size: 26px 26px, 26px 26px, auto, auto, auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
}

.hero-fixture::after {
  content: "";
  position: absolute;
  inset: auto -12% -48px -12%;
  height: 92px;
  border-top: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.hero-fixture-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-fixture-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.hero-fixture-teams div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.hero-fixture-teams img,
.hero-fixture-teams b {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f8fbf4;
  color: #071009;
  object-fit: contain;
  padding: 6px;
  font-size: 15px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.hero-flag {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: -12px;
  border-radius: 999px;
  background: rgba(1, 9, 7, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 25px;
  z-index: 1;
}

.hero-fixture-teams i {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.hero-fixture-teams span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.hero-fixture-teams small {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--gold);
  background: rgba(1, 9, 7, 0.42);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.hero-fixture-teams strong {
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.hero-fixture em {
  justify-self: center;
  border-radius: 999px;
  padding: 7px 14px;
  color: #071009;
  background: var(--gold);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.hero-fixture-strip {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.score-card, .panel, .group-card, .match-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 35, 31, 0.96), rgba(8, 20, 17, 0.98));
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

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

.score-card div, .progress-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.score-card div:last-child, .progress-box div:last-child { border-bottom: 0; padding-bottom: 0; }
.score-card span, .progress-box span { color: var(--soft); }
.score-card strong, .progress-box strong { color: var(--text); }
.score-card div.live strong { color: var(--green); }
.score-card div.live span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: var(--green); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }

.user-bracket-status {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.user-bracket-status.complete {
  border-color: rgba(143, 240, 189, 0.26);
  background: rgba(34, 197, 94, 0.08);
}

.user-bracket-status.pending {
  border-color: rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.07);
}

.user-bracket-status span,
.user-bracket-status em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.user-bracket-status strong {
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.public-games {
  padding: 24px 0 8px;
}

.public-standings {
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}
.public-standings-body { min-width: 0; max-width: 100%; }
.public-standings-note { margin: 0 0 12px; color: var(--muted); font-size: 0.82rem; }
.public-standings-empty { margin: 8px 0; color: var(--muted); font-size: 0.9rem; max-width: 60ch; }

.public-bracket {
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}
.public-bracket-body { min-width: 0; max-width: 100%; }

/* Landing: how-to-join + rules/cost + deadlines + join form */
.join-process,
.pool-info,
.join-request-section {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}

/* Season-closed collapsible — keeps "how to join" available but de-emphasized while entries are shut. */
.season-closed {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.season-closed > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.season-closed > summary::-webkit-details-marker { display: none; }
.season-closed > summary:hover { background: rgba(255, 255, 255, 0.03); }
.season-closed-lock { font-size: 1.5rem; flex: 0 0 auto; }
.season-closed-copy { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.season-closed-copy strong { font-size: 1.02rem; font-weight: 800; }
.season-closed-copy small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.season-closed-chev { flex: 0 0 auto; color: var(--muted); font-size: 1rem; transition: transform 0.2s; }
.season-closed[open] > summary .season-closed-chev { transform: rotate(180deg); }
.season-closed-body { padding: 0 20px 14px; }
.season-closed-body .join-process,
.season-closed-body .join-request-section { border-top: 1px solid var(--line); }

.join-process .section-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 24px 56px;
  margin-bottom: 26px;
}

.join-process .section-head p:last-child {
  max-width: none;
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--soft);
}

.join-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.join-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.07), rgba(3, 19, 15, 0)) , var(--panel-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.join-step:hover {
  border-color: rgba(255, 209, 102, 0.42);
  transform: translateY(-2px);
}

.join-step .join-step-num {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ffe9a3);
  color: #071009 !important;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.28);
}

.join-step strong {
  display: block;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 5px;
}

.join-step span {
  display: block;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.deadline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.portal-deadlines {
  margin-bottom: 18px;
}

.deadline-card {
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(76, 201, 240, 0.06)), rgba(3, 19, 15, 0.78);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deadline-card.closed {
  border-color: var(--line);
  background: rgba(3, 19, 15, 0.7);
}

.deadline-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.deadline-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deadline-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #071009;
  background: var(--green);
}

.deadline-pill.closed {
  background: var(--red);
  color: #fff;
}
.deadline-pill.phase-upcoming { background: var(--gold); color: #071009; }
.deadline-pill.phase-open { background: var(--green); color: #041008; }
.deadline-card.phase-open { border-color: rgba(34, 197, 94, 0.45); }
.deadline-window {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}
.member-stat.rank strong { color: var(--text); }

.deadline-date {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.1;
}

.deadline-note {
  color: var(--soft);
  font-size: 0.9rem;
}

.deadline-detail {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.info-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--panel);
}

.info-card-wide {
  grid-column: 1 / -1;
}

.info-card .eyebrow {
  margin-bottom: 10px;
}

.info-big {
  display: block;
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1.05;
  margin-bottom: 8px;
}

.info-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

.info-rows {
  display: grid;
  gap: 8px;
}

.info-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  min-width: 0;
}

.info-rows > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-rows span {
  color: var(--soft);
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.info-rows strong {
  color: var(--text);
  font-weight: 800;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.info-rules-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.join-request-card {
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 16px;
  padding: 28px 32px;
  width: 100%;
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.06), rgba(3, 19, 15, 0)), var(--panel);
}

.join-request-card h2 {
  margin: 4px 0 6px;
}

.join-request-card > p {
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 620px;
}

.join-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}

.join-request-form .field:nth-child(3),
.join-request-form #join-submit,
.join-request-form .status {
  grid-column: 1 / -1;
}

.join-request-form #join-submit {
  justify-self: start;
  min-width: 240px;
  padding-left: 36px;
  padding-right: 36px;
}

.field-optional {
  color: var(--muted);
  font-weight: 500;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1120px) {
  .join-process .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .join-process .section-head p:last-child {
    max-width: 60ch;
  }
  .join-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .join-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .join-request-form {
    grid-template-columns: 1fr;
  }
  .join-request-form #join-submit {
    justify-self: stretch;
    min-width: 0;
  }
  .join-request-card {
    padding: 22px 18px;
  }
}

@media (max-width: 560px) {
  .join-steps,
  .pool-info-grid {
    grid-template-columns: 1fr;
  }
  .info-card-wide {
    grid-column: auto;
  }
}

.featured-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.featured-games.compact {
  grid-template-columns: 1fr;
}

.public-scoreboard {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.5fr) minmax(250px, 0.75fr);
  gap: 18px;
}

.scoreboard-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(3, 19, 15, 0.72);
}

.scoreboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.scoreboard-heading span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scoreboard-heading strong {
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071009;
  background: var(--gold);
  font-size: 14px;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding-top: 0;
}

.portal-header {
  position: sticky;
  top: 10px;
  z-index: 120;
  align-self: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(76, 201, 240, 0.08)),
    linear-gradient(180deg, rgba(5, 19, 15, 0.98), rgba(5, 19, 15, 0.94)),
    rgba(5, 19, 15, 0.96);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.portal-topbar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-title {
  min-width: 0;
  width: fit-content;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.portal-title .brand-mark {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 209, 102, 0.56);
}

.portal-title .brand-text strong {
  font-size: 18px;
}

.portal-title .brand-text span {
  color: var(--gold);
}

.auth-screen {
  display: grid;
  min-height: 46vh;
  place-items: start center;
  padding: 30px 0;
}

.auth-card {
  width: min(480px, 100%);
  padding: 26px 24px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 209, 102, 0.1), transparent 60%),
    rgba(7, 18, 13, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-brand-mark {
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
}
.auth-brand .eyebrow { margin: 0 0 2px; }

.auth-card h2 {
  margin: 0;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.05;
}

.auth-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
}
.auth-sub { font-size: 0.95rem; }

.auth-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-perk {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 11px;
}

.auth-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.auth-field input {
  font-size: 1.05rem;
}
#auth-code {
  letter-spacing: 0.45em;
  font-weight: 800;
  text-align: center;
}
.auth-btn {
  width: 100%;
  font-size: 1.02rem;
  padding: 13px 18px;
}
.auth-foot {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 14px;
}
.auth-foot a { color: var(--gold); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.code-step {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.sticky-panel {
  position: fixed;
  top: 86px;
  right: max(14px, calc((100vw - 1480px) / 2));
  z-index: 19;
  width: min(340px, calc(100vw - 28px));
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sticky-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.session-row span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.session-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.field {
  display: grid;
  gap: 7px;
}

label {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  background: rgba(1, 9, 7, 0.92);
  border: 1px solid rgba(227, 235, 227, 0.26);
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(229, 196, 107, 0.16);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.primary { color: #071009; background: linear-gradient(135deg, var(--gold), #f7dc8e); }
.secondary { color: var(--text); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.mini {
  min-height: 34px;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px;
}

.account-toggle {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 230px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 8px;
  color: #071009;
  text-align: left;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  border: 1px solid transparent;
}

.account-toggle.active {
  border-color: rgba(255, 209, 102, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12);
}

.chat-toggle {
  position: relative;
  flex: 0 0 auto;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 999px;
  background: rgba(1, 9, 7, 0.55);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.chat-toggle:hover {
  border-color: rgba(255, 209, 102, 0.7);
  background: rgba(255, 209, 102, 0.12);
  transform: translateY(-1px);
}

.chat-toggle.active {
  border-color: rgba(255, 209, 102, 0.75);
  background: rgba(255, 209, 102, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12);
}

.chat-toggle.has-unread {
  border-color: rgba(239, 71, 111, 0.7);
}

.chat-toggle-badge {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent, #ef476f);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(239, 71, 111, 0.5);
  animation: chat-badge-pop 0.32s cubic-bezier(0.2, 1.4, 0.5, 1) 1;
}

@keyframes chat-badge-pop {
  0% { transform: scale(0.2); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.chat-toggle-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .chat-toggle {
    width: 42px;
    height: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
  }
  .chat-toggle-copy { display: none; }
}

/* Notifications bell + inbox */
.notify-bell {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 999px;
  background: rgba(1, 9, 7, 0.55);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.notify-bell:hover {
  border-color: rgba(255, 209, 102, 0.7);
  background: rgba(255, 209, 102, 0.12);
  transform: translateY(-1px);
}

.help-toggle {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 999px;
  background: rgba(1, 9, 7, 0.55);
  color: var(--gold);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.help-toggle:hover {
  border-color: rgba(255, 209, 102, 0.7);
  background: rgba(255, 209, 102, 0.12);
  transform: translateY(-1px);
}

.help-toggle-icon {
  width: 19px;
  height: 19px;
}

.help-modal-panel {
  max-width: 560px;
}

.help-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.help-modal-head h2 {
  margin: 4px 0 0;
}

.help-modal-intro {
  margin: 0 0 18px;
  color: var(--muted, #c8d3c9);
  font-size: 14px;
  line-height: 1.5;
}

.help-form .field {
  margin-bottom: 16px;
}

.help-image-preview {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.help-image-preview img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(210, 236, 221, 0.18);
}

.help-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.notify-bell.has-unread {
  border-color: rgba(255, 209, 102, 0.7);
}

.notify-bell-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.notify-bell.has-unread .notify-bell-icon {
  animation: notify-bell-swing 1.6s ease-in-out 1;
}

.notify-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent, #ef476f);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(239, 71, 111, 0.45);
}

.notify-anchor {
  position: relative;
  display: inline-flex;
}
.notify-panel {
  position: absolute;
  z-index: 130;
  top: calc(100% + 12px);
  left: 0;
  right: auto;
  width: min(380px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(210, 236, 221, 0.18);
  border-radius: 16px;
  background: rgba(6, 17, 14, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.notify-panel.open {
  animation: notify-pop 0.18s ease both;
}

.notify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(210, 236, 221, 0.14);
}

.notify-panel-head strong {
  font-size: 15px;
  font-weight: 900;
}

.notify-panel-actions {
  display: inline-flex;
  gap: 6px;
}

.notify-push-cta {
  display: flex;
  align-items: center;
  gap: 11px;
  width: calc(100% - 18px);
  margin: 9px 9px 3px;
  padding: 11px 12px;
  border: 1px solid rgba(122, 222, 173, 0.32);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(38, 95, 70, 0.45), rgba(28, 60, 48, 0.4));
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.notify-push-cta:hover {
  border-color: rgba(122, 222, 173, 0.55);
  transform: translateY(-1px);
}

.notify-push-icon {
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
}

.notify-push-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.notify-push-copy strong {
  font-size: 13px;
  font-weight: 900;
}

.notify-push-copy em {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--soft);
}

.notify-push-go {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7adead, #4fc78a);
  color: #0a2018;
  white-space: nowrap;
}

.notify-push-cta.is-on {
  border-color: rgba(122, 222, 173, 0.45);
  background: linear-gradient(135deg, rgba(38, 95, 70, 0.32), rgba(24, 52, 42, 0.28));
}
.notify-push-cta.is-on .notify-push-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9af0c4;
}
.notify-push-cta.is-on .notify-push-go {
  background: transparent;
  border: 1px solid rgba(122, 222, 173, 0.5);
  color: #9af0c4;
}

.notify-list {
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notify-empty {
  padding: 26px 18px;
  text-align: center;
  color: var(--soft);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
}

.notify-item {
  position: relative;
  display: flex;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.notify-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(210, 236, 221, 0.16);
}

.notify-item.unread {
  background: rgba(255, 209, 102, 0.08);
  border-color: rgba(255, 209, 102, 0.28);
}

.notify-item.unread::before {
  content: "";
  position: absolute;
  margin-left: -7px;
  margin-top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.notify-item-glyph {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(1, 9, 7, 0.5);
  border: 1px solid rgba(210, 236, 221, 0.14);
  font-size: 17px;
}

.notify-item.kind-deadline .notify-item-glyph { border-color: rgba(239, 71, 111, 0.4); }
.notify-item.kind-result .notify-item-glyph { border-color: rgba(6, 214, 160, 0.4); }

.notify-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notify-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.notify-item-top strong {
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.25;
}

.notify-item-top time {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--soft);
}

.notify-item-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--soft);
}

.notify-item-deadline {
  margin-top: 2px;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 900;
  color: #ffd9a3;
  background: rgba(239, 71, 111, 0.16);
  border: 1px solid rgba(239, 71, 111, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
}

@keyframes notify-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes notify-bell-swing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-11deg); }
  60% { transform: rotate(7deg); }
  80% { transform: rotate(-4deg); }
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .notify-panel {
    position: fixed;
    top: 104px;
    left: 9px;
    right: 9px;
    width: auto;
    max-width: none;
    max-height: min(74vh, 540px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notify-panel.open,
  .notify-bell.has-unread .notify-bell-icon { animation: none; }
}

.account-copy,
.account-copy span,
.account-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy {
  display: grid;
  gap: 2px;
}

.account-copy span {
  color: rgba(7, 16, 9, 0.72);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.account-copy strong {
  color: rgba(7, 16, 9, 0.78);
  font-size: 12px;
}

.account-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.notify-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--soft);
  font-size: 13px;
}

.notify-row input {
  min-height: 18px;
  padding: 0;
}

.status {
  min-height: 42px;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}

.tabs {
  min-width: 0;
  max-width: 100%;
}

.portal-links {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

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

.stats-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.stats-panel-wide {
  grid-column: 1 / -1;
}

.stats-hero {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.stats-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.8fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 80% 0%, rgba(76, 201, 240, 0.16), transparent 16rem),
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(34, 197, 94, 0.08)),
    rgba(5, 19, 15, 0.86);
}

.stats-hero-card h3 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1;
}

.stats-hero-card span {
  color: var(--soft);
  line-height: 1.35;
}

.stats-hero-media {
  min-height: 164px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(227, 235, 227, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(34, 197, 94, 0.13) 0 12%, rgba(34, 197, 94, 0.06) 12% 24%),
    linear-gradient(135deg, #0c4a2d, #092b21);
  background-size: 34px 34px, auto, auto;
}

.stats-hero-media > i {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-hero-media > b {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071009;
  background: var(--gold);
  font-size: 26px;
}

.stats-hero-gauges,
.stats-pool-gauges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stats-pool-gauges {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-pool-snapshot { gap: 16px; }
.pool-stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pool-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: rgba(13, 25, 22, 0.6); display: grid; gap: 3px; align-content: start; }
.pool-stat-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pool-stat-value { font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.pool-stat-value small { font-size: 0.6rem; color: var(--muted); font-weight: 700; }
.pool-stat-meta { font-size: 0.7rem; color: var(--gold); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .pool-stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stats-hero-readout {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.stats-hero-readout > .readout-prob,
.stats-hero-readout > .readout-facts {
  border: 1px solid rgba(227, 235, 227, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(1, 9, 7, 0.5);
}

.readout-prob > span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readout-prob-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
}

.readout-prob-row > b {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.readout-prob-row > strong {
  color: var(--gold);
  font-size: 13px;
  text-align: right;
}

.readout-facts {
  display: grid;
  gap: 10px;
}

.readout-facts > div {
  min-width: 0;
}

.readout-facts span {
  display: block;
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readout-facts strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stats-kpis div,
.stats-prize-grid article,
.stats-market-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(1, 9, 7, 0.58);
}

.stats-kpis span,
.stats-prize-grid span,
.stats-market-card span,
.stats-market-card em {
  display: block;
  color: var(--soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-kpis strong,
.stats-prize-grid strong,
.stats-market-card strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
}

.stats-toolbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.stats-toolbar button {
  flex: 0 0 auto;
  min-width: 86px;
}

.stats-toolbar button.active {
  color: #071009;
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  border-color: transparent;
}

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

.stats-panel-head h3 {
  margin: 3px 0 0;
}

.stats-panel-head > span {
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-gauge {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px 10px;
  background: rgba(1, 9, 7, 0.52);
  text-align: center;
}

.stat-gauge-ring {
  --gauge-color: var(--gold);
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(1, 9, 7, 0.95) 0 58%, transparent 59%),
    conic-gradient(var(--gauge-color) var(--value), rgba(255, 255, 255, 0.1) 0);
}

.stat-gauge.green .stat-gauge-ring { --gauge-color: var(--green); }
.stat-gauge.blue .stat-gauge-ring { --gauge-color: var(--blue); }

.stat-gauge-ring strong {
  color: var(--text);
  font-size: 20px;
}

.stat-gauge > span,
.stat-gauge > em {
  display: block;
}

.stat-gauge > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-gauge > em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
}

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

.stats-game-card {
  min-width: 0;
  height: auto;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 15px;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 209, 102, 0.1), transparent 12rem),
    rgba(1, 9, 7, 0.55);
  text-align: left;
}

.stats-game-card.live {
  border-color: rgba(34, 197, 94, 0.5);
}

.stats-game-card.final {
  border-color: rgba(255, 209, 102, 0.32);
}

.stats-game-top,
.stats-probability-grid > div,
.stats-bracket-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.stats-game-top b,
.stats-bracket-rank {
  min-width: 42px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071009;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.stats-game-top span,
.stats-game-card small,
.stats-bracket-card span,
.stats-market-card p {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.stats-game-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.stats-game-teams > i {
  align-self: center;
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.stats-game-teams > span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.stats-game-teams strong,
.stats-game-teams em {
  display: block;
}

.stats-game-teams strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.stats-game-teams em {
  color: var(--gold);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.stats-probability-grid {
  display: grid;
  gap: 9px;
}

.stats-probability-grid span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
}

.stats-probability-grid strong {
  color: var(--text);
  font-size: 13px;
}

.stats-field-overview {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: stretch;
}

.stats-field-overview.no-field {
  grid-template-columns: 1fr;
}

.stats-pitch-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-pitch-wrap .mini-pitch {
  flex: 1 1 auto;
}

.stats-field-overview .mini-pitch {
  min-height: 164px;
  margin-top: 0;
}

.stats-match-updates {
  display: grid;
  gap: 8px;
  align-content: start;
}

.stats-field-overview.no-field .stats-match-updates {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stats-field-overview.no-field .stats-match-updates > span {
  grid-column: 1 / -1;
}

.stats-match-updates > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-match-updates div {
  display: grid;
  grid-template-columns: 34px minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.stats-match-updates div.stats-media-row {
  grid-template-columns: 34px minmax(72px, 0.44fr) minmax(0, 1fr);
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 201, 240, 0.12), transparent 9rem),
    rgba(255, 255, 255, 0.055);
}

.stats-match-updates b {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071009;
  background: var(--gold);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.stats-match-updates .stats-media-row b {
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.stats-match-updates strong,
.stats-match-updates div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-match-updates div span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-match-updates strong {
  color: var(--text);
  font-size: 12px;
}

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

.stats-live-grid div {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 7px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.045);
}

.stats-live-grid .slg-row {
  display: grid;
  grid-template-columns: minmax(28px, auto) minmax(0, 1fr) minmax(28px, auto);
  gap: 8px;
  align-items: center;
}

.stats-live-grid span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-live-grid strong,
.stats-live-grid em {
  color: var(--text);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

.stats-live-grid em {
  text-align: right;
}

.stats-live-grid i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0 var(--left), rgba(76, 201, 240, 0.9) var(--left) 100%);
}

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

.stats-player-strip article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(34, 197, 94, 0.055);
}

.stats-player-strip img {
  grid-row: span 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.stats-player-strip span,
.stats-player-strip strong,
.stats-player-strip em {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-player-strip span {
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.stats-player-strip strong {
  color: var(--text);
  font-size: 12px;
}

.stats-player-strip em {
  color: var(--soft);
  font-size: 11px;
  font-style: normal;
}

.tiny-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.tiny-meter i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.stats-bracket-board,
.stats-odds-board,
.stats-pool-snapshot {
  display: grid;
  gap: 12px;
}

/* ---- Forecast board ---- */
.forecast-note { margin: 0 0 14px; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.forecast-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.forecast-col-head { margin: 0 0 10px; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.forecast-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.forecast-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(8, 22, 17, 0.5); }
.forecast-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.forecast-group-head h5 { margin: 0; font-size: 0.9rem; }
.forecast-status { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.forecast-status.done { color: #7ddaa3; }
.forecast-group-sub { font-size: 0.66rem; color: var(--muted); margin: 2px 0 8px; }
.forecast-team { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name pct" "adv adv" "rec rec"; gap: 2px 8px; padding: 6px 0; border-top: 1px solid rgba(210, 236, 221, 0.07); align-items: center; }
.forecast-team:first-of-type { border-top: none; }
.forecast-team-name { grid-area: name; font-size: 0.82rem; font-weight: 600; }
.forecast-team-pct { grid-area: pct; font-size: 0.86rem; font-weight: 700; color: var(--gold); }
.forecast-team-rec { grid-area: rec; font-size: 0.66rem; color: var(--muted); }
.forecast-team-adv { grid-area: adv; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.forecast-team-adv i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #52c486, #7ddaa3); }
.forecast-team.lead .forecast-team-adv i { background: linear-gradient(90deg, var(--gold), #ffe9a8); }
.forecast-team.longshot .forecast-team-pct { color: var(--muted); }
.forecast-players { display: grid; gap: 8px; }
.forecast-player { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(8, 22, 17, 0.5); }
.forecast-player.leader { border-color: rgba(255, 209, 102, 0.55); }
.forecast-player-rank { font-size: 1rem; font-weight: 700; color: var(--gold); text-align: center; }
.forecast-player-main strong { font-size: 0.9rem; }
.forecast-player-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.74rem; color: var(--muted); margin: 3px 0; }
.forecast-player-nums b { color: var(--ink, #eaf3ec); }
.forecast-player-nums .proj b { color: var(--gold); }
.forecast-player-nums .upside.up { color: #7ddaa3; }
.forecast-player-nums .proj small { color: var(--muted); font-weight: 600; font-size: 0.66rem; margin-left: 1px; }
.forecast-player.tied .forecast-player-rank { color: var(--soft); }
.forecast-player-rank .tie-mark { font-size: 0.6rem; font-weight: 800; color: var(--muted); vertical-align: super; margin-right: 1px; }
.forecast-odds-line { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 3px; font-size: 0.74rem; font-weight: 700; }
.forecast-win { color: var(--gold); }
.forecast-podium { color: var(--muted); font-weight: 600; }
.forecast-drivers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.forecast-driver { font-size: 0.68rem; color: var(--muted); background: rgba(255, 255, 255, 0.05); border-radius: 999px; padding: 2px 8px; }
.forecast-driver em { color: #7ddaa3; font-style: normal; }
@media (max-width: 760px) { .forecast-split { grid-template-columns: 1fr; } }

.stats-bracket-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(1, 9, 7, 0.5);
}

.stats-bracket-card.leader {
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.08);
}

.stats-bracket-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.stats-bracket-card .tiny-meter {
  margin-top: 8px;
}

.stats-bracket-card > b {
  color: var(--gold);
  font-size: 20px;
}

.stats-market-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(76, 201, 240, 0.055)),
    rgba(1, 9, 7, 0.5);
}

.stats-market-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}

.stats-market-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 209, 102, 0.07);
}

.stats-market-strip span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-market-strip strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-prize-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-prize-grid em {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-empty {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(1, 9, 7, 0.42);
}

.stats-empty strong {
  color: var(--text);
}

.stats-empty span {
  color: var(--soft);
  line-height: 1.4;
}

.portal-brief {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(120px, 1fr) repeat(3, minmax(90px, 0.65fr));
  gap: 8px;
}

.portal-brief div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(5, 19, 15, 0.72);
}

.portal-brief span,
.portal-brief strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-brief span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-brief strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
}

.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tab span[aria-hidden],
.admin-subtab span[aria-hidden] {
  font-size: 1.05em;
  line-height: 1;
}

.tab.active {
  color: #081008;
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  border-color: transparent;
}

.tab-panel { display: none; padding: 16px 0 0; }
.tab-panel.active { display: block; }

.wizard-shell {
  display: grid;
  gap: 14px;
}

.wizard-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}

.wizard-steps {
  scrollbar-width: none;
}

.wizard-steps::-webkit-scrollbar {
  display: none;
}

.wizard-step-tab {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  color: var(--soft);
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.wizard-step-tab span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071009;
  background: rgba(255, 209, 102, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.wizard-step-tab strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.wizard-step-tab.active {
  color: #071009;
  background: linear-gradient(135deg, var(--gold), #fff2b0);
  border-color: transparent;
}

.wizard-step-tab.complete {
  border-color: rgba(34, 197, 94, 0.45);
}

.wizard-step-tab.complete span {
  color: #071009;
  background: var(--green);
}

.wizard-step-tab.locked {
  opacity: 0.62;
}

.wizard-step-tab.stage-locked-tab {
  opacity: 0.78;
  border-color: rgba(255, 209, 102, 0.28);
}

.wizard-step-tab.stage-locked-tab span {
  background: rgba(255, 209, 102, 0.16);
  color: var(--gold);
}

.stage-lock-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.08);
  color: var(--soft);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

.stage-lock-banner[data-stage-state="closed"] {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.stage-lock-icon {
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.wizard-step.stage-locked .groups-grid,
.wizard-step.stage-locked .thirds-grid,
.wizard-step.stage-locked .bracket-board,
.wizard-step.stage-locked .review-grid {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.35);
}

.wizard-current-status {
  min-height: 36px;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

button:disabled,
.wizard-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.rules-command {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 14px;
  align-items: stretch;
}

.rules-command-hero,
.rules-command-prize article,
.rules-command-scoring article,
.rules-command-checks article {
  min-width: 0;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(76, 201, 240, 0.12), transparent 13rem),
    linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(34, 197, 94, 0.06)),
    rgba(5, 19, 15, 0.82);
}

.rules-command-hero {
  grid-row: span 3;
  display: grid;
  grid-template-rows: auto minmax(132px, 1fr);
  gap: 18px;
  padding: 18px;
}

.rules-command-hero h3 {
  margin: 6px 0 10px;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 0.98;
}

.rules-command-hero p {
  max-width: 58ch;
  margin: 0;
  color: var(--soft);
  line-height: 1.42;
}

.rules-command-meter {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  border: 1px solid rgba(227, 235, 227, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(34, 197, 94, 0.15) 0 12%, rgba(34, 197, 94, 0.07) 12% 24%),
    linear-gradient(135deg, #0c4a2d, #092b21);
  background-size: 34px 34px, auto, auto;
}

.rules-command-meter span,
.rules-command-meter strong {
  min-width: 0;
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 7px;
  color: #071009;
  background: rgba(255, 209, 102, 0.92);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.rules-command-meter strong {
  background: linear-gradient(135deg, var(--gold), #fff0a3);
}

.rules-command-prize,
.rules-command-scoring,
.rules-command-checks {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.rules-command-prize {
  grid-template-columns: minmax(0, 1fr);
}

.rules-command-scoring {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-command-prize article,
.rules-command-scoring article,
.rules-command-checks article {
  padding: 13px;
}

.rules-command-prize span,
.rules-command-scoring strong,
.rules-command-checks b {
  color: var(--gold);
}

.rules-command-prize span,
.rules-command-scoring strong {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-command-prize strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 20px;
  line-height: 1.08;
}

.rules-command-prize p,
.rules-command-scoring span,
.rules-command-checks span {
  display: block;
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.34;
}

.rules-command-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-command-checks article {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.rules-command-checks b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  font-size: 12px;
}

.pool-breakdown {
  display: grid;
  gap: 12px;
}
.pool-breakdown .pool-error span { color: var(--red); font-size: 13px; }

.pool-pot {
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 14px;
  padding: 16px 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 209, 102, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(255, 209, 102, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pool-pot-main { display: grid; gap: 2px; }
.pool-pot-label { color: var(--soft); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pool-pot-amount {
  color: var(--gold); font-size: 38px; font-weight: 900; line-height: 1.05;
  text-shadow: 0 2px 14px rgba(255, 209, 102, 0.35);
}
.pool-pot-sub { color: var(--soft); font-size: 12.5px; }

.pool-prize-rows { display: grid; gap: 6px; }
.pool-prize-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.045);
}
.pool-prize-row:first-child { border-color: rgba(255, 209, 102, 0.34); background: rgba(255, 209, 102, 0.07); }
.pool-prize-place { font-weight: 800; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-prize-pct { color: var(--muted); font-size: 12px; font-weight: 700; }
.pool-prize-amount { color: var(--gold); font-size: 16px; font-weight: 900; }
.pool-prize-row.empty span { color: var(--soft); font-size: 12.5px; }

.pool-trophy {
  margin-top: 4px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.13), rgba(76, 201, 240, 0.07));
}
.pool-trophy-img {
  width: 72px;
  height: 88px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 209, 102, 0.5);
  background: rgba(0, 0, 0, 0.25);
}
.pool-trophy-copy { min-width: 0; }
.pool-trophy-copy strong { display: block; color: var(--gold); font-size: 13.5px; font-weight: 900; margin-bottom: 3px; }
.pool-trophy-copy p { margin: 0; color: var(--text); font-size: 12.5px; line-height: 1.45; }
@media (max-width: 480px) {
  .pool-trophy-img { width: 60px; height: 74px; }
}

.pool-stakes {
  border: 1px solid rgba(76, 201, 240, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.12), rgba(76, 201, 240, 0.03));
}
.pool-stakes.locked { border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.pool-stakes-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pool-stakes-head strong { font-size: 14px; color: var(--text); }
.pool-stakes-pct {
  font-size: 11px; font-weight: 900; color: #0a1622;
  background: var(--blue); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.pool-stakes p { margin: 6px 0 0; color: var(--soft); font-size: 12.5px; line-height: 1.45; }
.pool-stakes p strong { color: var(--text); }
.pool-stakes-meter { margin-top: 10px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pool-stakes-meter i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #7ad9ff);
  animation: pool-stakes-fill 0.9s cubic-bezier(0.3, 1, 0.5, 1) both;
}
@keyframes pool-stakes-fill { from { width: 0 !important; } }

.pool-race { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pool-race-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  background: rgba(255, 255, 255, 0.045); display: grid; gap: 2px; min-width: 0;
}
.pool-race-item span { color: var(--soft); font-size: 11px; font-weight: 700; }
.pool-race-item strong { color: var(--text); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-race-item strong em { font-style: normal; color: #4ade80; font-weight: 900; }

.pool-podium { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: rgba(255, 255, 255, 0.04); display: grid; gap: 9px; }
.pool-podium-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pool-podium-head strong { color: var(--text); font-size: 13px; font-weight: 950; }
.pool-podium-head span { color: var(--soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.pool-podium-rows { display: grid; gap: 6px; }
.pool-podium-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); }
.pool-podium-row.leader { background: linear-gradient(150deg, rgba(255, 209, 102, 0.12), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 209, 102, 0.32); }
.pool-podium-rank { grid-row: span 2; align-self: center; font-size: 15px; text-align: center; }
.pool-podium-name { min-width: 0; color: var(--text); font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-podium-name em { font-style: normal; font-weight: 900; font-size: 11px; }
.pool-podium-name em.up { color: #4ade80; }
.pool-podium-name em.down { color: #f87171; }
.pool-podium-gap { grid-column: 2; color: var(--soft); font-size: 10px; font-weight: 700; }
.pool-podium-pts { grid-row: span 2; align-self: center; color: var(--text); font-size: 17px; font-weight: 950; font-variant-numeric: tabular-nums; }
.pool-podium-pts small { display: block; font-size: 9px; font-weight: 800; color: var(--soft); text-transform: uppercase; }
.pool-podium-charge { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.pool-podium-charge span { color: var(--soft); font-size: 11px; font-weight: 700; }
.pool-podium-charge strong { color: var(--text); font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-podium-charge strong em { font-style: normal; color: #4ade80; font-weight: 900; }

.rules-accept {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: rgba(34, 197, 94, 0.08);
}

.rules-accept input {
  min-height: 20px;
  padding: 0;
}

.section-head.compact h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.section-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  justify-content: stretch;
  gap: 16px 48px;
  align-items: center;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 5px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.section-head p:last-child {
  max-width: none;
  width: 100%;
  color: var(--soft);
  margin: 0;
  line-height: 1.5;
}

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

.group-card { padding: 14px; }

.group-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(76, 201, 240, 0.08)),
    rgba(8, 20, 17, 0.96);
}

.group-card h3, .panel h3, .round h3 {
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.team-row span { overflow-wrap: anywhere; }

.team-name,
.slot-name,
.third-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

.third-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(13, 25, 22, 0.94);
  border-radius: 8px;
}

.third-card strong {
  display: flex;
  color: var(--text);
}
.third-card span { color: var(--soft); font-size: 13px; }
.third-card input { min-height: 20px; padding: 0; }

.bracket-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 12px;
}

.round {
  min-width: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.slot {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(1, 9, 7, 0.7);
}

.slot-label {
  color: var(--soft);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}

.slot-name {
  min-height: 20px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.winner-select {
  border-color: rgba(31, 189, 115, 0.44);
}

/* ---- Round-by-round knockout picker ---- */
/* The board containers default to the old 5-column bracket grid; the picker is a single child,
   so neutralize that layout when it's present. */
/* The picker is a single full-width child; neutralize the 5-column bracket grid.
   .is-picker is set in JS so this never depends on :has() winning. */
.bracket-board.is-picker,
.bracket-board:has(> .ko-picker) {
  display: block;
  grid-template-columns: none;
  overflow: visible;
}
.ko-picker {
  display: grid;
  gap: 14px;
  width: 100%;
}

.ko-stepper {
  position: sticky;
  top: 6px;
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(13, 25, 22, 0.97), rgba(7, 16, 14, 0.97));
  backdrop-filter: blur(6px);
  overflow-x: auto;
  scrollbar-width: none;
}
.ko-stepper::-webkit-scrollbar { display: none; }

.ko-step-chip {
  flex: 1 1 0;
  min-width: 64px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ko-step-chip:hover { background: rgba(255, 255, 255, 0.08); }
.ko-step-chip.active {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(255, 209, 102, 0.14);
}
.ko-step-chip.done { color: var(--green); }
.ko-step-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
}
.ko-step-chip.active .ko-step-dot { background: var(--gold); color: #07140b; }
.ko-step-chip.done .ko-step-dot { background: var(--green); color: #07140b; }
.ko-step-name { font-size: 11px; letter-spacing: 0.02em; }

.ko-picker-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ko-picker-bar {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.ko-picker-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.25s ease;
}
.ko-picker-progress-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--soft);
  white-space: nowrap;
}

.ko-round-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}
.ko-round-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.ko-round-head h4 { margin: 2px 0 0; font-size: 19px; }
.ko-round-pts {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.ko-insight {
  padding: 10px 12px;
  border: 1px solid rgba(76, 201, 240, 0.28);
  border-left-width: 3px;
  border-radius: 8px;
  background: rgba(76, 201, 240, 0.08);
  font-size: 13px;
  line-height: 1.45;
  color: var(--soft);
}
.ko-insight.champ {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.1);
}

.ko-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  align-items: start;
}
/* Later rounds have fewer matches — give them a touch more room but still flow side-by-side. */
.ko-match-grid.sf,
.ko-match-grid.final { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); max-width: 760px; }

.ko-match {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(1, 9, 7, 0.55);
}
.ko-match.done { border-color: rgba(34, 197, 94, 0.45); }
.ko-match.pending { opacity: 0.65; }
.ko-match-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
/* Two teams stack vertically, each a full-width readable row — no cramped side-by-side squares. */
.ko-match-teams {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.ko-vs {
  justify-self: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ko-team {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 58px;
  padding: 10px 42px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.ko-team:hover { border-color: rgba(255, 209, 102, 0.5); background: rgba(255, 209, 102, 0.07); }
.ko-team:active { transform: scale(0.98); }
.ko-team.picked {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.16);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.4);
}
.ko-team.empty {
  cursor: default;
  opacity: 0.6;
  border-style: dashed;
}
.ko-team.empty:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.ko-team-flag { flex: 0 0 auto; width: 34px; text-align: center; font-size: 28px; line-height: 1; }
.ko-team-name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.ko-team-tag {
  flex: 0 0 auto;
  align-self: center;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.14);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}
.ko-team-check {
  position: absolute;
  top: 50%;
  right: 14px;
  font-size: 15px;
  color: var(--green);
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}
.ko-team.picked .ko-team-check { opacity: 1; transform: translateY(-50%) scale(1); }

.ko-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.ko-nav-spacer { flex: 0 0 auto; }
.ko-nav {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ko-nav:hover { background: rgba(255, 255, 255, 0.1); }
.ko-nav.next.ready {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  color: #07140b;
}

/* Final-step tiebreaker scoreboard (appears once the champion is picked) */
.ko-tb {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 209, 102, 0.32);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 209, 102, 0.08), rgba(8, 22, 16, 0.6));
}
.ko-tb.pending {
  border-style: dashed;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.ko-tb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.ko-tb-head span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.ko-tb-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.ko-tb-vs {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--muted);
}
.ko-tb-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.ko-tb-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
}
.ko-tb-flag { font-size: 1.5rem; line-height: 1; }
.ko-tb-name { font-weight: 800; font-size: 0.95rem; }
.ko-tb-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ko-tb-score {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  min-width: 1.4em;
}
.ko-tb-steppers { display: flex; gap: 8px; }
.ko-tb-step {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.ko-tb-step:hover { background: rgba(255, 255, 255, 0.12); }
.ko-tb-step:active { transform: scale(0.92); }

/* Read-only tiebreaker reflection on the Review step */
.tiebreaker-side.readonly { gap: 6px; }
.tiebreaker-board.readonly { align-items: center; }
.tiebreaker-final-score {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Stage-dependent center of the submitted-bracket card */
.submitted-center-pending {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.submitted-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  line-height: 1.4;
}
.submitted-soon-icon { font-size: 1.4rem; line-height: 1; }
.submitted-soon strong { display: block; color: var(--soft); font-size: 1rem; }
.submitted-soon em { display: block; margin-top: 3px; color: var(--muted); font-size: 0.84rem; font-style: normal; }

@media (max-width: 560px) {
  .ko-round-head { flex-direction: column; align-items: start; gap: 4px; }
  .ko-round-pts { text-align: left; }
  .ko-step-name { font-size: 10px; }
  .ko-match-grid,
  .ko-match-grid.sf,
  .ko-match-grid.final { grid-template-columns: 1fr; max-width: none; }
  .ko-team { min-height: 52px; }
  .ko-nav { flex: 1; text-align: center; }
  .ko-tb-score { font-size: 2.1rem; }
  .ko-tb-step { width: 34px; height: 34px; }
}

.submitted-bracket-view {
  margin-bottom: 14px;
}

.submitted-bracket-card {
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(76, 201, 240, 0.08)),
    rgba(4, 14, 12, 0.94);
  background-size: 28px 28px, 28px 28px, auto, auto;
  overflow: hidden;
}

.submitted-bracket-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.submitted-bracket-head h3 {
  margin: 3px 0 4px;
  font-size: clamp(28px, 6vw, 54px);
  line-height: 0.92;
  text-transform: uppercase;
}

.submitted-bracket-head span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.submitted-bracket-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.submitted-bracket-controls button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 12px;
}

.submitted-bracket-controls button.active {
  color: #071009;
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  border-color: transparent;
}

.submitted-stage-tracker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.submitted-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.submitted-stage.phase-open {
  border-color: rgba(82, 224, 158, 0.4);
  background: rgba(82, 224, 158, 0.08);
}

.submitted-stage.phase-upcoming {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.07);
}

.submitted-stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.submitted-stage-name {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.submitted-stage-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  white-space: nowrap;
}

.submitted-stage-pill.phase-open {
  background: linear-gradient(135deg, #52e09e, #9af0c4);
  color: #071009;
}

.submitted-stage-pill.phase-upcoming {
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  color: #1a1300;
}

.submitted-stage-pill.phase-closed {
  background: rgba(255, 255, 255, 0.06);
}

.submitted-stage-detail {
  display: block;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.submitted-group-block {
  margin-bottom: 14px;
}

.submitted-group-block h4 {
  margin: 0 0 9px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--soft);
}

.submitted-bracket-stage {
  width: 100%;
  max-width: 100%;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
}

.submitted-side {
  flex: 0 0 720px;
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 8px;
}

.submitted-side.right {
  direction: rtl;
}

.submitted-side.right > * {
  direction: ltr;
}

.submitted-round {
  display: grid;
  align-content: start;
  gap: 7px;
}

.submitted-round h4 {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submitted-match {
  min-height: 72px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 8px;
  background: rgba(1, 9, 7, 0.7);
  transition: opacity 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.submitted-match strong {
  color: var(--soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submitted-match span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 800;
}

.submitted-match .winner {
  color: var(--gold);
}

.submitted-match.picked {
  border-color: rgba(255, 209, 102, 0.24);
}

.submitted-center {
  flex: 0 0 230px;
  align-self: stretch;
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 209, 102, 0.26);
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 209, 102, 0.18), transparent 42%),
    rgba(1, 9, 7, 0.76);
}

.submitted-center > span,
.submitted-center em,
.submitted-center div span {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submitted-center > strong {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--text);
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1;
  max-width: 100%;
}

/* Champion hero: the flag emoji inherited the big champion font and spilled out of the
   28px shared .flag circle, overlapping the country name. Give it its own larger circle
   and a font-size capped to sit inside it, with the name as a separate controlled row. */
.submitted-center > strong .flag {
  width: 72px;
  height: 72px;
  font-size: 38px;
  line-height: 1;
  overflow: hidden;
  background: rgba(255, 209, 102, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.4);
}

.submitted-center > strong .flag img.flag-img {
  width: 72px;
  height: 72px;
}

.submitted-center > strong > span:not(.flag) {
  font-size: clamp(18px, 3.2vw, 28px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.submitted-center div {
  width: 100%;
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 10px;
}

.submitted-center div strong {
  color: var(--text);
}

.submitted-bracket-view[data-focus-round="r32"] .sub-ko-round:not([data-round-column="r32"]),
.submitted-bracket-view[data-focus-round="r16"] .sub-ko-round:not([data-round-column="r16"]),
.submitted-bracket-view[data-focus-round="qf"] .sub-ko-round:not([data-round-column="qf"]),
.submitted-bracket-view[data-focus-round="sf"] .sub-ko-round:not([data-round-column="sf"]),
.submitted-bracket-view[data-focus-round="final"] .sub-ko-round:not([data-round-column="final"]) {
  display: none;
}

/* Collapsible group predictions */
.submitted-groups {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
  overflow: hidden;
}

.submitted-groups > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--soft);
}

.submitted-groups > summary::-webkit-details-marker { display: none; }

.submitted-groups-hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.submitted-groups-body {
  padding: 0 14px 14px;
}

/* Round-by-round read-only knockout bracket */
.submitted-center.banner {
  flex: none;
  width: 100%;
  min-height: 0;
  margin-bottom: 14px;
  align-content: start;
}

.submitted-ko {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.sub-ko-round {
  display: grid;
  gap: 9px;
}

.sub-ko-round-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 209, 102, 0.22);
  padding-bottom: 6px;
}

.sub-ko-round-head h4 {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sub-ko-round-head span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.sub-ko-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 9px;
}

.sub-ko-grid.final,
.sub-ko-grid.sf {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.sub-ko-match {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(1, 9, 7, 0.7);
  display: grid;
  gap: 7px;
}

.sub-ko-match.done {
  border-color: rgba(255, 209, 102, 0.26);
}

.sub-ko-match.bronze {
  border-color: rgba(205, 127, 50, 0.4);
}

.sub-ko-match-label {
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sub-ko-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.sub-ko-team {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 5px;
  padding: 9px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.sub-ko-team.picked {
  background: rgba(255, 209, 102, 0.14);
  border-color: rgba(255, 209, 102, 0.5);
}

.sub-ko-team.out {
  opacity: 0.45;
}

.sub-ko-team.empty {
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
}

.sub-ko-team .team-badge {
  width: 34px;
  height: 24px;
  flex: 0 0 auto;
}

.sub-ko-team .team-badge img,
.sub-ko-team .team-badge b {
  width: 28px;
  height: 24px;
  padding: 2px;
}

/* The global .team-badge img.flag-img rule sizes flags at 46x32 and, by source order,
   wins the specificity tie against the scoped 26x26 rule above — overflowing this small
   badge and spilling onto the team name. Re-scope it to fit the KO review badge. */
.sub-ko-team .team-badge img.flag-img {
  width: 32px;
  height: 22px;
  border-radius: 4px;
  padding: 0;
}

.sub-ko-team .team-badge b {
  font-size: 15px;
}

.sub-ko-team-name {
  max-width: 100%;
  overflow-wrap: break-word;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.sub-ko-team.picked .sub-ko-team-name {
  color: var(--gold);
}

.sub-ko-check {
  position: absolute;
  top: 5px;
  right: 6px;
  margin: 0;
  font-size: 12px;
  color: var(--gold);
  font-weight: 900;
}

.sub-ko-vs {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.submitted-bracket-card .submitted-bracket-controls {
  justify-content: center;
  margin-top: 4px;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.review-list {
  display: grid;
  gap: 9px;
}

.review-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.review-list span { color: var(--soft); }

.submit-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.submit-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.submit-actions button {
  min-width: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.profile-panel {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.profile-panel h3 {
  margin-bottom: 0;
}

.avatar-chip,
.avatar-preview {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 999px;
  color: #071009;
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  font-size: 13px;
  font-weight: 900;
}

.avatar-chip img,
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview {
  width: 94px;
  height: 94px;
  font-size: 26px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

.avatar-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 209, 102, 0.07);
}

.avatar-actions {
  display: grid;
  gap: 8px;
}

.avatar-actions small {
  color: var(--soft);
  line-height: 1.35;
}

.profile-toggle {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 8px;
  padding: 14px;
  background: rgba(34, 197, 94, 0.08);
}

.profile-toggle input {
  min-height: 20px;
  padding: 0;
}

.profile-toggle strong,
.profile-toggle em {
  display: block;
}

.profile-toggle em {
  margin-top: 4px;
  color: var(--soft);
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
}

.paid-confirm {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 209, 102, 0.09);
}

.paid-confirm input {
  min-height: 20px;
  padding: 0;
}

.paid-confirm strong,
.paid-confirm em {
  display: block;
}

.paid-confirm em {
  margin-top: 4px;
  color: var(--soft);
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
}

.notification-summary {
  display: grid;
  gap: 9px;
}

.notification-options {
  display: grid;
  gap: 12px;
}

.notification-options > div {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.05);
}

.notification-options span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notification-options label {
  min-height: 32px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--text);
  font-size: 13px;
}

.notification-options input {
  min-height: 18px;
  padding: 0;
}

.notification-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.notification-summary span {
  color: var(--soft);
}

.profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

/* "All" view stacks the Live / Results / Upcoming sections top-down (each section
   keeps its own card grid inside) instead of dropping the section blocks into the
   card grid, which left them side-by-side and misaligned on desktop. */
.games-list.sections {
  display: block;
}

.games-list.sections > .game-group:last-child {
  margin-bottom: 0;
}

.game-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(4, 14, 12, 0.88);
  border-radius: 8px;
  padding: 18px;
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 12px;
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.game-card.live { border-color: rgba(34, 197, 94, 0.58); }
.game-card.final { border-color: rgba(255, 209, 102, 0.38); }
.game-card.empty {
  cursor: default;
  min-height: 132px;
  opacity: 0.82;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(76, 201, 240, 0.08)),
    rgba(4, 14, 12, 0.94);
}

.game-card:active {
  transform: translateY(0) scale(0.99);
}
.game-card.empty:hover {
  transform: none;
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(4, 14, 12, 0.88);
}

.game-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  color: #071009;
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.game-card.live .status-pill {
  color: #041008;
  background: var(--green);
}

.live-clock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 1px 6px 1px 5px;
  border-radius: 999px;
  background: rgba(4, 16, 8, 0.28);
  color: inherit;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.live-clock.on-dark {
  background: rgba(34, 197, 94, 0.18);
  color: var(--green);
}

.live-clock .live-clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  animation: kk-pulse 1.8s ease infinite;
}

.status-pill .live-clock {
  margin-left: 6px;
}

.team-logos {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-badge {
  position: relative;
  width: 46px;
  height: 40px;
  display: inline-grid;
  place-items: center;
}

.team-badge img,
.team-badge b {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  object-fit: contain;
  padding: 4px;
}

.team-badge b {
  display: inline-grid;
  place-items: center;
  color: #071009;
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
}

.team-badge.large {
  width: 76px;
  height: 74px;
}

.team-badge.large img,
.team-badge.large b {
  width: 66px;
  height: 66px;
  font-size: 16px;
}

.team-badge.large b {
  font-size: 34px;
}

.game-card > strong,
.game-card > span,
.game-card-top > span,
.game-card small {
  display: block;
}

.game-card > span,
.game-card-top > span {
  color: var(--soft);
  font-size: 13px;
}

.game-card small {
  color: rgba(248, 251, 244, 0.64);
  line-height: 1.35;
}

.scoreline {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.tap-chip {
  justify-self: start;
  margin-top: 2px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #071009;
  background: var(--gold);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.games-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.games-toolbar button {
  min-height: 36px;
  padding: 0 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.games-toolbar button,
.pool-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* Give emoji/icon glyphs room to breathe next to heading text */
h2 > span[aria-hidden="true"],
h3 > span[aria-hidden="true"],
h4 > span[aria-hidden="true"],
.eyebrow > span[aria-hidden="true"] {
  margin-right: 0.42em;
}

.games-toolbar button.active {
  color: #071009;
  background: var(--gold);
}

.games-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.games-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.06);
  min-height: 76px;
}

.games-summary span,
.games-summary strong {
  display: block;
}

.games-summary span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.games-summary strong {
  font-size: 24px;
}

/* ── World Cup view: sub-nav, group standings, knockout bracket ── */
.wc-subnav { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.wc-subnav-btn { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--soft); font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: all 0.15s ease; }
.wc-subnav-btn:hover { border-color: rgba(255, 209, 102, 0.5); color: #fff; }
.wc-subnav-btn.active { background: var(--gold); color: #071009; border-color: var(--gold); }
.wc-panel[hidden] { display: none; }

.wc-view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.wc-view-head h3 { margin: 2px 0 0; font-size: 1.15rem; }
.wc-view-head p { margin: 0; color: var(--muted); font-size: 0.8rem; max-width: 46ch; }
.wc-view-head .eyebrow { margin: 0; }

.wc-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; font-size: 0.72rem; color: var(--muted); }
.wc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.wc-legend i.q-top { background: #52c486; }
.wc-legend i.q-third { background: #ffd166; }
.wc-legend i.q-out { background: rgba(255, 255, 255, 0.18); }

.wc-panel { min-width: 0; max-width: 100%; }
.wc-groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; min-width: 0; max-width: 100%; }
.wc-group-card, .wc-thirds-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 8px; background: rgba(8, 22, 17, 0.5); display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; overflow: hidden; }
.wc-group-card.clickable, .wc-group-card[role="button"] { cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.wc-group-card[role="button"]:hover, .wc-group-card[role="button"]:focus-visible { border-color: rgba(255, 209, 102, 0.55); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28); outline: none; }
.wc-group-card.decided { border-color: rgba(82, 196, 134, 0.4); }
.wc-thirds-card { margin-top: 16px; }
.wc-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wc-group-head h4 { margin: 0; font-size: 0.95rem; }
.wc-group-prog { display: inline-flex; align-items: center; gap: 8px; }
.wc-pips { display: inline-flex; gap: 3px; }
.wc-pip { width: 16px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.wc-pip.done { background: var(--gold); }
.wc-grp-lock { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); white-space: nowrap; }
.wc-grp-lock.done { color: #7ddaa3; background: rgba(82, 196, 134, 0.16); }

.wc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; max-width: 100%; }
.wc-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.wc-table th { color: var(--muted); font-weight: 700; text-align: center; padding: 4px 3px; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.02em; border-bottom: 1px solid var(--line); }
.wc-table td { text-align: center; padding: 5px 3px; border-bottom: 1px solid rgba(210, 236, 221, 0.06); }
.wc-table th.wc-team, .wc-table td.wc-team { text-align: left; }
.wc-table td.wc-team span { display: inline-block; vertical-align: middle; }
.wc-pos { color: var(--muted); font-weight: 700; width: 1.4em; }
.wc-pts { font-weight: 800; color: var(--gold); }
.wc-gd { color: var(--soft); }
.wc-adv { font-weight: 700; color: #9db8ff; font-size: 0.72rem; }
.wc-adv-mini { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 46px; height: 16px; padding: 0 4px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.wc-adv-mini .wc-adv-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; opacity: 0.85; }
.wc-adv-mini .wc-adv-fill.q-top { background: linear-gradient(90deg, rgba(82, 196, 134, 0.55), rgba(82, 196, 134, 0.3)); }
.wc-adv-mini .wc-adv-fill.q-third { background: linear-gradient(90deg, rgba(255, 209, 102, 0.5), rgba(255, 209, 102, 0.28)); }
.wc-adv-mini .wc-adv-fill.q-out { background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12)); }
.wc-adv-mini em { position: relative; z-index: 1; font-style: normal; font-weight: 800; font-size: 0.68rem; color: #eaf2ff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); }
.wc-group-race { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; min-width: 0; }
.wc-race-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.wc-race-track { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; min-width: 0; }
.wc-race-track.empty { opacity: 0.5; }
.wc-race-seg { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 26px; padding: 0 3px; font-size: 0.6rem; overflow: hidden; white-space: nowrap; transition: flex-grow 0.4s ease; }
.wc-race-seg b { font-size: 0.78rem; line-height: 1; }
.wc-race-seg i { font-style: normal; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.wc-race-seg.q-top { background: linear-gradient(180deg, rgba(82, 196, 134, 0.5), rgba(82, 196, 134, 0.28)); }
.wc-race-seg.q-third { background: linear-gradient(180deg, rgba(255, 209, 102, 0.45), rgba(255, 209, 102, 0.26)); }
.wc-race-seg.q-out { background: rgba(255, 255, 255, 0.07); }
.wc-table tr.q-top td.wc-pos { color: #7ddaa3; }
.wc-table tr.q-top { background: linear-gradient(90deg, rgba(82, 196, 134, 0.1), transparent); }
.wc-table tr.q-third { background: linear-gradient(90deg, rgba(255, 209, 102, 0.08), transparent); }
.wc-table tr.q-third td.wc-pos { color: var(--gold); }
.wc-table tr.q-out td { opacity: 0.6; }
.wc-table tr.q-in td.wc-pos { color: #7ddaa3; }
.wc-table tr.q-in { background: linear-gradient(90deg, rgba(82, 196, 134, 0.1), transparent); }
.wc-third-grp { color: var(--muted); font-style: normal; font-size: 0.66rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.wc-third-state { font-size: 0.66rem; font-weight: 700; }
.wc-table tr.q-in .wc-third-state { color: #7ddaa3; }
.wc-table tr.q-out .wc-third-state { color: var(--muted); }
.wc-thirds-note { margin: 4px 0 2px; font-size: 0.68rem; color: var(--muted); }
.wc-group-cue { font-size: 0.64rem; color: var(--muted); opacity: 0.7; margin-top: 2px; }
.wc-group-card[role="button"] { cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.wc-group-card[role="button"]:hover { border-color: rgba(255, 209, 102, 0.4); transform: translateY(-2px); }
.wc-group-card[role="button"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wc-group-card[role="button"]:hover .wc-group-cue, .wc-group-card[role="button"]:focus-visible .wc-group-cue { color: var(--gold); opacity: 1; }

/* Public (landing) group modal */
.pg-legend { margin: 10px 0 14px; }
.pg-team-cards { display: grid; gap: 8px; margin: 4px 0 18px; }
.pg-team-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: rgba(255, 255, 255, 0.03); min-width: 0; }
.pg-team-card.q-top { border-color: rgba(82, 196, 134, 0.35); background: linear-gradient(90deg, rgba(82, 196, 134, 0.1), rgba(255, 255, 255, 0.02)); }
.pg-team-card.q-third { border-color: rgba(255, 209, 102, 0.3); background: linear-gradient(90deg, rgba(255, 209, 102, 0.08), rgba(255, 255, 255, 0.02)); }
.pg-team-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.pg-team-id { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-team-id strong { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; }
.pg-pos { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 0.72rem; font-weight: 800; color: var(--muted); flex: 0 0 auto; }
.pg-team-tag { flex: 0 0 auto; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.pg-team-tag.q-top { background: rgba(82, 196, 134, 0.18); color: #7ddaa3; }
.pg-team-tag.q-third { background: rgba(255, 209, 102, 0.16); color: var(--gold); }
.pg-team-rec { font-size: 0.74rem; color: var(--soft); }
.pg-section-title { margin: 18px 0 10px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.pg-matches { margin-bottom: 14px; }

.wc-bk-banner { font-size: 0.78rem; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin: 0 0 14px; }
.wc-bk-banner.ready { color: #7ddaa3; border-color: rgba(82, 196, 134, 0.35); }
.wc-bk-banner.live { color: #ff9b9b; border-color: rgba(255, 120, 120, 0.35); }
.wc-bk-banner strong { color: var(--gold); }
.wc-bracket-scroll { display: flex; gap: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; min-width: 0; max-width: 100%; }
.wc-bk-round { flex: 0 0 220px; min-width: 210px; max-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.wc-bk-round h4 { margin: 0 0 2px; font-size: 0.8rem; color: var(--soft); position: sticky; top: 0; }
.wc-bk-round-list { display: flex; flex-direction: column; gap: 10px; }
.wc-bk-match { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: rgba(8, 22, 17, 0.55); display: flex; flex-direction: column; gap: 5px; }
.wc-bk-match.decided { border-color: rgba(82, 196, 134, 0.4); }
.wc-bk-num { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.wc-bk-team { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.03); font-size: 0.78rem; }
.wc-bk-team.empty { opacity: 0.6; }
.wc-bk-team.projected { background: rgba(255, 209, 102, 0.07); }
.wc-bk-team.locked { background: rgba(82, 196, 134, 0.1); }
.wc-bk-team.win { background: rgba(82, 196, 134, 0.22); font-weight: 700; }
.wc-bk-seed { font-size: 0.6rem; color: var(--muted); flex: 0 0 auto; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-bk-name { font-weight: 600; text-align: right; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-proj-tag { font-style: normal; font-size: 0.56rem; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(255, 209, 102, 0.4); border-radius: 4px; padding: 0 3px; margin-left: 3px; }
.wc-bk-winner { font-size: 0.7rem; color: #7ddaa3; font-weight: 700; }

@media (max-width: 600px) {
  .wc-groups-grid { grid-template-columns: 1fr; }
  .wc-view-head p { max-width: none; }
  .wc-bk-round { min-width: 180px; }
}

.game-center-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.game-group {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.game-group h3 {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.game-group h3 em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.02em;
}

.game-group-live h3 {
  color: #ff6b6b;
}

/* "Up next" fallback when nothing is live — keep it neutral, not the live red. */
.game-group-next h3 {
  color: #fff;
}
.game-group-note {
  margin: 8px 2px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
}

.game-section-more {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

/* Live results are the priority on the games tab — show them first and tighten the space above. */
.game-group-final h3 {
  color: #52e09e;
}

.admin-subtabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 18px 0 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.admin-subtab {
  appearance: none;
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(8, 22, 17, 0.5);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.admin-subtab:hover { color: var(--ink, #eaf3ec); border-color: rgba(255, 209, 102, 0.4); }
.admin-subtab.active {
  background: linear-gradient(120deg, rgba(255, 209, 102, 0.18), rgba(13, 25, 22, 0.7));
  border-color: rgba(255, 209, 102, 0.6);
  color: var(--gold);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: 14px;
}
.admin-grid [data-admin-panel][hidden] { display: none; }

@media (min-width: 1400px) {
  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Form-light status panels stay compact; only the heavy ops + table panels claim the full row. */
  .admin-panel.wide {
    grid-column: span 2;
  }
  .admin-panel.wide.full-bleed {
    grid-column: 1 / -1;
  }
}

/* Stages & field tab: even 2-column ops layout on desktop instead of one tall stack. */
@media (min-width: 760px) {
  .admin-grid[data-admin-view="stages"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-grid[data-admin-view="stages"] .admin-panel[data-admin-panel="stages"] {
    grid-column: auto;
  }
  /* Pick stages spans the full row; Official field + Official results sit side by
     side directly beneath it. On mobile they all stack (base 1fr grid below). */
  .admin-grid[data-admin-view="stages"] .admin-panel.wide[data-admin-panel="stages"] {
    grid-column: 1 / -1;
  }
}

/* Members tab: the add-access + missing-brackets collapsibles read as full-width
   bands so the forms inside them have room to breathe instead of cramping in one column. */
@media (min-width: 760px) {
  .admin-grid[data-admin-view="members"] .admin-collapsible {
    grid-column: 1 / -1;
  }
}

/* Cap the participant roster at three columns on desktop so cards stay readable
   instead of fanning out to four-plus on very wide screens. */
@media (min-width: 1100px) {
  .participants-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Members tab: "Online now" reads as a full-width roster strip directly above the
   participant manager, so it never balloons or sits unevenly beside collapsed cards. */
.online-panel { display: flex; flex-direction: column; gap: 12px; }
.online-head { display: flex; flex-direction: column; gap: 2px; }
.online-head h3 { display: flex; align-items: center; gap: 8px; }
.online-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 7px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 800;
  color: #071009; background: var(--gold);
}
.online-count.is-zero { color: var(--muted); background: rgba(255, 255, 255, 0.08); }
#admin-online-list {
  max-height: 200px;
  overflow-y: auto;
  align-content: start;
}

.admin-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}

.admin-command-strip {
  display: block;
  margin-bottom: 14px;
}

.admin-ops-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
  gap: 12px;
}

.admin-ops-board.attention .admin-ops-hero,
.admin-ops-board.attention .admin-command-card {
  border-color: rgba(255, 154, 166, 0.45);
}

.admin-ops-hero {
  min-width: 0;
  display: grid;
  align-content: end;
  gap: 9px;
  min-height: 176px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(76, 201, 240, 0.22), transparent 14rem),
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(34, 197, 94, 0.08)),
    rgba(5, 19, 15, 0.86);
}

.admin-ops-hero span,
.admin-ops-hero strong,
.admin-ops-hero em {
  display: block;
}

.admin-ops-hero span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-ops-hero strong {
  color: var(--text);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.98;
}

.admin-ops-hero em {
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.admin-ops-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 2px 0 0;
  padding: 6px 12px;
  border: 1px solid rgba(76, 201, 240, 0.28);
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.1);
  white-space: nowrap;
}

.admin-ops-sync svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--blue, #4cc9f0);
}

.admin-ops-sync span {
  display: inline;
  color: var(--soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-ops-sync strong {
  display: inline;
  color: var(--text);
  font-size: 13px;
  line-height: 1;
}

.admin-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-ops-actions .mini {
  width: auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 209, 102, 0.34);
  color: var(--text);
  text-decoration: none;
}

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

.admin-command-card {
  min-width: 0;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  padding: 15px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 209, 102, 0.1), transparent 12rem),
    rgba(5, 19, 15, 0.72);
}

.admin-command-card.primary {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(34, 197, 94, 0.09)),
    rgba(5, 19, 15, 0.82);
}

.admin-command-card.ok {
  border-color: rgba(34, 197, 94, 0.32);
}

.admin-command-card.warn {
  border-color: rgba(255, 209, 102, 0.5);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 209, 102, 0.16), transparent 12rem),
    rgba(5, 19, 15, 0.78);
}

.admin-command-card.error,
.admin-health article.error,
.admin-row.issue {
  border-color: rgba(255, 154, 166, 0.55);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 107, 129, 0.16), transparent 12rem),
    rgba(28, 8, 10, 0.72);
}

.admin-command-card span,
.admin-command-card strong,
.admin-command-card em {
  display: block;
}

.admin-command-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-command-card strong {
  margin-top: 6px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.admin-command-card em {
  margin-top: 6px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.admin-command-card .admin-command-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-command-ico {
  font-size: 15px;
  line-height: 1;
  font-style: normal;
  filter: saturate(1.1);
}

.admin-summary-ico {
  font-size: 13px;
  line-height: 1;
  font-style: normal;
  margin-right: 5px;
}

.admin-summary span {
  display: inline-flex;
  align-items: center;
}

.admin-health article {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 0%, rgba(76, 201, 240, 0.12), transparent 12rem),
    rgba(5, 19, 15, 0.78);
}

.admin-health h3 {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: 24px;
}

.admin-health span {
  display: block;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.4;
}

.admin-health-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.admin-health-meter i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #fff0a3);
}

.admin-health-meter.blue i {
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.admin-health-meter.green i {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.admin-summary span,
.admin-summary strong {
  display: block;
}

.admin-summary span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-summary strong {
  margin-top: 6px;
  color: var(--gold);
  font-size: 28px;
}

.admin-panel {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.admin-help {
  margin: -4px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.admin-help-more {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.admin-help-more:hover { text-decoration: underline; }

.admin-panel.wide {
  grid-column: 1 / -1;
}

.admin-collapsible {
  gap: 0;
}

.admin-collapsible > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 2px 0;
}

.admin-collapsible > summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible > summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--gold);
  font-size: 14px;
  transition: transform 0.15s ease;
}

.admin-collapsible[open] > summary::after {
  transform: rotate(90deg);
}

.admin-collapsible > summary h3 {
  margin: 0;
}

.admin-collapse-hint {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-collapsible[open] .admin-collapse-hint {
  display: none;
}

.admin-collapsible-body {
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: 12px;
}

.admin-field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.admin-field-actions .ghost {
  background: transparent;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.18));
  color: var(--soft);
}

/* Pick-stage timeline — focused status + auto countdown per stage. */
.auto-schedule {
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.06);
}
.autosched-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.autosched-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.autosched-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.autosched-step .as-ico { font-size: 17px; line-height: 1.2; flex: 0 0 auto; }
.autosched-step .as-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.autosched-step .as-body b { font-size: 0.86rem; font-weight: 800; }
.autosched-step .as-body em { font-style: normal; font-size: 0.8rem; line-height: 1.4; color: var(--soft); }
.autosched-step.ok { border-color: rgba(143, 240, 189, 0.4); background: rgba(143, 240, 189, 0.07); }
.autosched-step.ok .as-body em { color: #9af0c4; }
.autosched-step.warn { border-color: rgba(255, 209, 102, 0.45); background: rgba(255, 209, 102, 0.08); }
.autosched-step.warn .as-body em { color: #ffd166; }
.autosched-step.pending { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.06); }
.autosched-step.closed { border-color: rgba(255, 255, 255, 0.14); }
.autosched-note {
  margin: 10px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--soft);
}
.autosched-note b { color: #fff; font-weight: 700; }
.stage-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.stage-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.stage-card.state-open { border-color: rgba(143, 240, 189, 0.32); background: rgba(143, 240, 189, 0.05); }
.stage-card.state-closed { border-color: rgba(255, 209, 102, 0.3); background: rgba(255, 209, 102, 0.05); }
.stage-card.state-upcoming { border-color: rgba(255, 255, 255, 0.12); }
.stage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stage-card-title { font-weight: 800; color: var(--ink, #e3ebe3); display: inline-flex; align-items: center; gap: 6px; }
.stage-pill {
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.stage-pill.state-open { color: #071009; background: #8ff0bd; }
.stage-pill.state-closed { color: #1a0f00; background: #ffd166; }
.stage-pill.state-upcoming { color: var(--soft); background: rgba(255, 255, 255, 0.08); }
.stage-card-detail { color: var(--soft); font-size: 0.86rem; margin: 0; }
.stage-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.stage-card-actions .stage-btn { position: relative; }
.stage-card-actions .stage-btn.is-active {
  border-color: rgba(255, 209, 102, 0.55);
  color: #071009;
  background: var(--gold);
  cursor: default;
}
.stage-card-actions .stage-btn.is-active:disabled { opacity: 1; }
.stage-card-actions .stage-btn.is-frozen { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.5); }
.stage-card-via {
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}

.admin-table {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.admin-entry {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(143, 240, 189, 0.16);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(92px, 0.7fr) minmax(110px, 0.9fr) minmax(90px, 0.7fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.participant-row {
  grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(72px, 0.45fr) minmax(150px, 1fr) minmax(92px, 0.55fr) minmax(260px, auto);
}

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

.admin-inline-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-inline-field input { min-width: 0; max-width: 100%; }

.admin-inline-field small {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-inline-field input {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 13px;
}

.admin-check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.admin-check input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.admin-row.complete {
  border-color: rgba(143, 240, 189, 0.26);
}

/* Members toolbar + search */
.members-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.members-search { position: relative; flex: 1 1 220px; display: flex; align-items: center; }
.members-search-icon { position: absolute; left: 11px; opacity: 0.65; font-size: 0.85rem; pointer-events: none; }
.members-search input { width: 100%; min-height: 40px; padding: 8px 12px 8px 32px; border-radius: 10px; }
.members-count { font-size: 0.78rem; font-weight: 700; color: var(--muted); flex: 0 0 auto; }

/* Participant cards (members display overhaul) */
.participants-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); overflow-x: visible; }
.participant-card {
  display: flex; flex-direction: column; gap: 11px;
  border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 12px; padding: 13px;
  background: rgba(255, 255, 255, 0.04); min-width: 0;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
@media (hover: hover) {
  .participant-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.06); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); }
}
.participant-card.submitted { border-left-color: rgba(143, 240, 189, 0.6); }
.participant-card.signed-in { border-left-color: rgba(255, 209, 102, 0.55); }
.participant-card.not-in { border-left-color: rgba(255, 120, 120, 0.45); }
.participant-card.is-online { border-color: rgba(47, 226, 138, 0.5); border-left-color: #2fe28a; box-shadow: 0 0 0 1px rgba(47, 226, 138, 0.18); }
.participant-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; }
.participant-avatar-wrap { position: relative; width: 40px; height: 40px; flex: 0 0 auto; }
.participant-avatar { width: 40px; height: 40px; font-size: 0.92rem; }
.participant-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; align-items: flex-start; text-align: left; padding: 2px 4px; margin: -2px -4px; border: 0; background: none; color: inherit; font: inherit; border-radius: 8px; cursor: pointer; transition: background 0.15s ease; }
.participant-id:hover { background: rgba(255, 209, 102, 0.1); }
.participant-id:hover .participant-name { text-decoration: underline; text-decoration-color: rgba(255, 209, 102, 0.5); }
.participant-name { font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.participant-email { color: var(--muted); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.participant-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.participant-status-pill {
  flex: 0 1 auto; min-width: 0; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.08); color: var(--soft); border: 1px solid var(--line);
}
.participant-status-pill.online { background: rgba(47, 226, 138, 0.14); color: #2fe28a; border-color: rgba(47, 226, 138, 0.4); }
.participant-status-pill.signed-in { background: rgba(255, 209, 102, 0.12); color: #ffd166; border-color: rgba(255, 209, 102, 0.32); }
.participant-status-pill.not-in { background: rgba(255, 120, 120, 0.1); color: #ff9b9b; border-color: rgba(255, 120, 120, 0.3); }
.participant-tag { flex: 0 1 auto; min-width: 0; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255, 255, 255, 0.06); color: var(--soft); border: 1px solid transparent; }
.participant-tag.bracket.submitted { background: rgba(143, 240, 189, 0.14); color: #8ff0bd; border-color: rgba(143, 240, 189, 0.32); }
.participant-tag.bracket.signed-in { background: rgba(255, 209, 102, 0.1); color: #ffd166; border-color: rgba(255, 209, 102, 0.26); }
.participant-tag.bracket.not-in { background: rgba(255, 120, 120, 0.08); color: #ff9b9b; border-color: rgba(255, 120, 120, 0.24); }
.participant-tag.paid { background: rgba(143, 240, 189, 0.13); color: #8ff0bd; }
.participant-tag.unpaid { background: rgba(255, 209, 102, 0.13); color: #ffd166; }
.participant-tag.muted { color: var(--muted); }
.participant-tag.reach.reachable { background: rgba(143, 240, 189, 0.14); color: #8ff0bd; border-color: rgba(143, 240, 189, 0.3); }
.participant-tag.reach.no-device { background: rgba(255, 209, 102, 0.13); color: #ffd166; border-color: rgba(255, 209, 102, 0.28); }
.participant-tag.reach.off { background: rgba(255, 120, 120, 0.08); color: #ff9b9b; border-color: rgba(255, 120, 120, 0.22); }
.admin-notify-recipients { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: rgba(255, 255, 255, 0.02); }
.admin-notify-recipients-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.admin-notify-recipients-list { display: grid; gap: 4px; max-height: 280px; overflow-y: auto; }
.admin-notify-recipient { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; }
.admin-notify-recipient:hover { background: rgba(255, 255, 255, 0.04); }
.admin-notify-recipient input { flex: 0 0 auto; }
.admin-notify-recipient-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.admin-notify-recipient-tags { display: flex; gap: 6px; flex: 0 0 auto; }
.admin-notify-recipient-tags small { font-size: 0.62rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, 0.06); color: var(--soft); }
.admin-notify-recipient-tags small.in { background: rgba(143, 240, 189, 0.14); color: #8ff0bd; }
.admin-notify-recipient-tags small.out { background: rgba(255, 209, 102, 0.13); color: #ffd166; }
.admin-notify-recipient-tags small.reach.reachable { background: rgba(143, 240, 189, 0.14); color: #8ff0bd; }
.admin-notify-recipient-tags small.reach.no-device { background: rgba(255, 209, 102, 0.13); color: #ffd166; }
.admin-notify-recipient-tags small.reach.off { background: rgba(255, 120, 120, 0.08); color: #ff9b9b; }
.participant-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 420px) { .participant-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.participant-card .admin-row-actions { justify-content: flex-start; }
.participant-empty { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

/* Online-now panel */
.online-list { display: flex; flex-wrap: wrap; gap: 9px; }
.online-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 8px; border-radius: 999px; background: rgba(47, 226, 138, 0.08); border: 1px solid rgba(47, 226, 138, 0.3); }
.online-chip-avatar { position: relative; width: 30px; height: 30px; flex: 0 0 auto; }
.online-chip-avatar .avatar-chip { width: 30px; height: 30px; font-size: 0.78rem; }
.online-chip-meta { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.online-chip-meta strong { font-size: 0.82rem; font-weight: 700; }
.online-chip-meta small { font-size: 0.68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.online-empty { color: var(--muted); font-size: 0.85rem; padding: 4px 2px; }

/* Brackets submission confirmation */
.brackets-confirm-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.brackets-confirm-banner.all-in { border-color: rgba(143, 240, 189, 0.4); background: rgba(143, 240, 189, 0.08); }
.brackets-confirm-banner.pending { border-color: rgba(255, 209, 102, 0.36); background: rgba(255, 209, 102, 0.07); }
.brackets-confirm-icon { font-size: 1.6rem; line-height: 1; }
.brackets-confirm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brackets-confirm-text strong { font-size: 1.02rem; }
.brackets-confirm-text small { color: var(--muted); font-size: 0.8rem; }
.brackets-confirm-meter { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.brackets-confirm-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8ff0bd, #2fe28a); transition: width 0.4s ease; }

.admin-row.missing {
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.07);
}

.admin-row span,
.admin-row b,
.admin-row strong,
.admin-row em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-row span {
  color: var(--paper);
  font-weight: 900;
}

.admin-row .avatar-chip,
.admin-row span.avatar-chip {
  color: #071009;
  border-color: rgba(7, 16, 9, 0.4);
}

.admin-row small {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.admin-row b {
  color: #071009;
  background: var(--gold);
  border-radius: 999px;
  padding: 6px 9px;
  text-align: center;
  font-size: 12px;
}

.admin-row strong {
  color: var(--paper);
}

.admin-row em {
  color: var(--soft);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.admin-row .mini {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-row .mini.danger:not(:disabled) {
  border-color: rgba(255, 154, 166, 0.46);
  color: #ffb8c1;
  background: rgba(255, 154, 166, 0.08);
}

.admin-row .mini:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

/* Two-step remove: armed state turns the button into a clear confirm prompt. */
.mini.danger.is-armed,
.admin-row .mini.danger.is-armed {
  color: #1a0307;
  background: #ff6b7d;
  border-color: #ff6b7d;
  font-weight: 800;
  animation: remove-arm-pulse 1.1s ease-in-out infinite;
}
@keyframes remove-arm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 125, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(255, 107, 125, 0); }
}

.bracket-snapshot {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.bracket-snapshot summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bracket-snapshot .review-list {
  margin-top: 10px;
}

.export-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border-radius: 6px;
  padding: 0 14px;
  color: #071009;
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: auto;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 7, 6, 0.82);
  backdrop-filter: blur(12px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-panel {
  width: min(1120px, calc(100vw - 36px));
  height: auto;
  max-height: min(calc(100dvh - 36px), 980px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  margin: 0;
  border: 1px solid rgba(227, 235, 227, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 0%, rgba(76, 201, 240, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(13, 25, 22, 0.99), rgba(3, 19, 15, 0.99));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.52);
  padding: 22px;
}

#game-modal-body,
#stats-modal-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* v122 — premium desktop modal sizing: use more of the available canvas.
   NOTE: .member-drawer-card / .bet-modal-card desktop overrides live AFTER their
   base rules (search "v123 — desktop player/bet modal width") so source order wins. */
@media (min-width: 1024px) {
  .modal-panel {
    width: min(1180px, calc(100vw - 72px));
    max-height: min(calc(100dvh - 56px), 1000px);
    padding: 28px 30px;
  }
  #game-modal-body,
  #stats-modal-body { padding-right: 8px; }
  .detail-grid { gap: 18px; }
  .detail-panel { padding: 20px; }
  .detail-hero { gap: 24px; padding: 26px; margin-bottom: 18px; }
  .match-pulse { gap: 10px; margin-top: 22px; }
}

@media (min-width: 1440px) {
  .modal-panel { width: min(1280px, calc(100vw - 140px)); padding: 32px 36px; }
  .detail-grid { gap: 22px; }
}

.modal-close {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  font-weight: 700;
  background: var(--gold);
  color: #071009;
  box-shadow: 0 -10px 24px rgba(3, 19, 15, 0.45);
}

/* Knockout-open prompt: compact, celebratory pop-up nagging unpicked members. */
.ko-open-backdrop { z-index: 620; }
.ko-open-panel {
  width: min(440px, calc(100vw - 36px));
  max-height: none;
  text-align: center;
  align-items: center;
  gap: 6px;
  padding: 30px 26px 24px;
  border-color: rgba(255, 209, 102, 0.4);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 209, 102, 0.28), transparent 18rem),
    linear-gradient(180deg, rgba(13, 25, 22, 0.99), rgba(3, 19, 15, 0.99));
}
.ko-open-burst {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 18px rgba(255, 209, 102, 0.45));
}
.ko-open-eyebrow { color: var(--gold); margin: 0; }
#ko-open-title { margin: 2px 0 6px; font-size: 1.5rem; }
.ko-open-copy { margin: 0 0 6px; color: var(--muted, #cfe0d6); line-height: 1.5; }
.ko-open-deadline {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--gold);
}
.ko-open-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}
.ko-open-actions .primary {
  display: block;
  width: 100%;
  padding: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.ko-open-actions .ghost { width: 100%; padding: 10px; }

/* When the knockout is open and unpicked, the wizard floats to the top of the Bracket tab and
   gets a gold ring so it reads as the primary call to action. */
#entry.ko-priority .wizard-shell {
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12), 0 18px 50px rgba(0, 0, 0, 0.4);
  position: relative;
}
#entry.ko-priority .wizard-shell::before {
  content: "⚔️ Knockout bracket is open — make your picks";
  display: block;
  margin: -2px 0 14px;
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #071009;
  background: linear-gradient(90deg, var(--gold), #ffe6a0);
}

.detail-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: end;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(239, 71, 111, 0.2), rgba(76, 201, 240, 0.12)),
    rgba(7, 37, 26, 0.78);
  background-size: 34px 34px, 34px 34px, auto, auto;
  overflow: hidden;
  position: relative;
}

.detail-hero.live-overlay {
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 20% 16%, rgba(255, 209, 102, 0.2), transparent 18rem),
    radial-gradient(circle at 78% 0%, rgba(76, 201, 240, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(3, 19, 15, 0.98), rgba(7, 20, 39, 0.92));
  background-size: 30px 30px, 30px 30px, auto, auto, auto;
}

.detail-hero h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  text-transform: none;
}

.detail-hero p {
  color: var(--soft);
  margin: 0;
}

.detail-score {
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 900;
  color: var(--gold);
}

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

.match-pulse div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(1, 9, 7, 0.5);
}

.match-pulse span,
.match-pulse strong {
  display: block;
}

.match-pulse span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-pulse strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.live-ticker {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 8px;
  padding: 10px;
  background: rgba(1, 9, 7, 0.52);
}

.live-ticker > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-ticker > div {
  max-height: 96px;
  overflow: auto;
  display: grid;
  gap: 7px;
}

.live-ticker b,
.live-ticker em,
.live-ticker strong {
  display: inline;
  font-size: 12px;
}

.live-ticker b {
  color: #071009;
  background: var(--gold);
  border-radius: 999px;
  padding: 2px 7px;
  margin-right: 6px;
  white-space: nowrap;
}

.live-ticker em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
  margin-right: 6px;
}

.live-ticker em.tick-goal { color: #34d399; }
.live-ticker em.tick-card { color: #fbbf24; }
.live-ticker em.tick-sub { color: #60a5fa; }
.live-ticker em.tick-delay { color: #cbd5e1; }
.live-ticker em.tick-play { color: var(--gold); }

.live-ticker strong {
  color: var(--soft);
  font-weight: 700;
}

.mini-pitch {
  min-height: 142px;
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(227, 235, 227, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(34, 197, 94, 0.16) 0 12%, rgba(34, 197, 94, 0.08) 12% 24%),
    linear-gradient(135deg, #0c4a2d, #092b21);
  background-size: 32px 32px, auto, auto;
}

.mini-half {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.36);
}

.mini-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.mini-spot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.mini-end {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, transparent), transparent);
  opacity: 0.85;
}

.mini-end.left {
  left: 0;
}

.mini-end.right {
  right: 0;
  background: linear-gradient(270deg, color-mix(in srgb, var(--c) 60%, transparent), transparent);
}

.mini-box {
  position: absolute;
  top: 50%;
  width: 16%;
  height: 56%;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, 0.26);
}

.mini-box.left {
  left: 0;
  border-left: 0;
  border-radius: 0 7px 7px 0;
}

.mini-box.right {
  right: 0;
  border-right: 0;
  border-radius: 7px 0 0 7px;
}

.mini-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.mini-route-line {
  fill: none;
  stroke: color-mix(in srgb, var(--tone, #fff) 82%, #fff);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--tone, #fff) 55%, transparent));
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: kk-draw 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mini-origin {
  position: absolute;
  left: var(--from-x);
  top: var(--from-y);
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone, #fff) 60%, rgba(255, 255, 255, 0.5));
  box-shadow: 0 0 0 2px rgba(3, 13, 8, 0.5);
  z-index: 3;
  transition: left 0.55s ease, top 0.55s ease;
}

.mini-poss {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--c) 46%, rgba(255, 255, 255, 0.18));
  border-radius: 999px;
  background: rgba(3, 13, 8, 0.72);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.mini-poss b {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.mini-poss em {
  color: color-mix(in srgb, var(--c) 72%, #fff);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-pitch i {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 26, 22, 0.9);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.mini-pitch i .mini-glyph {
  font-size: 13px;
  line-height: 1;
}

.mini-pitch i .mini-clock {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.mini-pitch i.cat-goal {
  background: linear-gradient(160deg, #16a34a, #0d6b32);
}

.mini-pitch i.cat-card {
  background: linear-gradient(160deg, #fbbf24, #d97706);
  color: #1a1205;
}

.mini-pitch i.cat-sub {
  background: linear-gradient(160deg, #38bdf8, #1d6fa5);
}

.mini-pitch i.cat-chance {
  background: linear-gradient(160deg, #a78bfa, #6d4bd1);
}

.mini-pitch.live-state .mini-ball {
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 16px;
  border: 0;
  background: radial-gradient(circle at 34% 30%, #fff, #cbd5d1 62%, #7c8781);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 255, 255, 0.55);
  animation: kk-ball-travel 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
  z-index: 4;
}

.mini-state {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(3, 13, 8, 0.64);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.mini-pitch > .mini-clock {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 13, 8, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.mini-pitch > .mini-clock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green, #2ecc71);
  box-shadow: 0 0 6px var(--green, #2ecc71);
}

.mini-pitch b.mini-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--soft);
}

.mini-pitch-legend {
  margin-top: 14px;
}

.mini-pitch-legend .kk-leg-note {
  display: none;
}

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

.detail-teams > i {
  align-self: center;
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-team {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px 10px;
  background: rgba(1, 9, 7, 0.44);
  text-align: center;
}

.live-overlay .detail-team {
  align-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.1), transparent 7rem),
    rgba(1, 9, 7, 0.58);
}

.detail-team.winner {
  border-color: rgba(255, 209, 102, 0.64);
  background: rgba(255, 209, 102, 0.12);
}

.detail-team span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.detail-team strong {
  color: var(--text);
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1;
}

.detail-team em {
  border-radius: 999px;
  padding: 4px 8px;
  color: #071009;
  background: var(--gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-facts div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 11px;
  background: rgba(1, 9, 7, 0.48);
}

.detail-facts span,
.detail-facts strong {
  display: block;
}

.detail-facts span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-facts strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
}

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

.detail-panel.wide {
  grid-column: 1 / -1;
}

.detail-panel {
  padding: 16px;
}

.live-stat-panel,
.play-panel {
  min-height: 100%;
}

.pitch-panel,
.running-panel {
  min-height: 100%;
}

.pitch-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.pitch-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pitch-head h3 .live-dot {
  width: 8px;
  height: 8px;
}

.pitch-head span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

/* Apple-Sports-style live field */
.kk-field-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

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

.kk-field-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kk-field-team.away {
  justify-content: flex-end;
}

.kk-field-team .team-badge {
  flex: 0 0 auto;
}

.kk-ft-abbr {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.kk-field-team strong {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--c, var(--ink));
  text-shadow: 0 0 18px color-mix(in srgb, var(--c, #fff) 55%, transparent);
}

.kk-field-title {
  text-align: center;
  display: grid;
  gap: 2px;
}

.kk-field-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.kk-field-title h3 .live-dot {
  width: 8px;
  height: 8px;
}

.kk-field-title span {
  font-size: 11px;
  font-weight: 800;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kk-field {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 310px;
  overflow: hidden;
  border: 2px solid rgba(227, 235, 227, 0.3);
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 9%, rgba(0, 0, 0, 0.05) 9% 18%),
    linear-gradient(150deg, #0e5233, #08301f 70%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.4);
}

.kk-goal-burst {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.kk-goal-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 60%, transparent), transparent 70%);
  animation: kk-goal-flash 4.2s ease-out forwards;
}

@keyframes kk-goal-flash {
  0% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 0.45; }
  100% { opacity: 0; }
}

.kk-goal-word {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
  animation: kk-goal-pop 4.2s cubic-bezier(0.2, 1.3, 0.4, 1) forwards;
}

.kk-goal-word b {
  font-size: clamp(34px, 9vw, 62px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 3px 0 color-mix(in srgb, var(--c) 80%, #000), 0 0 26px color-mix(in srgb, var(--c) 70%, transparent);
}

.kk-goal-word em {
  font-style: normal;
  font-weight: 900;
  font-size: clamp(13px, 3vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c);
}

.kk-goal-word small {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.86);
}

@keyframes kk-goal-pop {
  0% { transform: scale(0.4); opacity: 0; }
  10% { transform: scale(1.12); opacity: 1; }
  20% { transform: scale(1); }
  80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.04); opacity: 0; }
}

.kk-goal-confetti i {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0;
  transform-origin: center;
  animation: kk-goal-confetti 1.7s ease-out forwards;
  animation-delay: var(--d, 0s);
}

.kk-goal-confetti i:nth-child(3n) { background: #fff; }
.kk-goal-confetti i:nth-child(3n+1) { background: var(--gold, #ffd166); }
.kk-goal-confetti i:nth-child(2n) { width: 6px; height: 10px; }

@keyframes kk-goal-confetti {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.6); }
  12% { opacity: 1; }
  100% {
    opacity: 0;
    transform:
      translate(calc((var(--i) - 7.5) * 26px), calc(-60px - (var(--i) * 3px)))
      rotate(calc(var(--i) * 120deg)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kk-goal-flash, .kk-goal-word, .kk-goal-confetti i { animation-duration: 2.4s; }
  .kk-goal-confetti i { display: none; }
}

.kk-end {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  background: linear-gradient(var(--side, 90deg), color-mix(in srgb, var(--c) 34%, transparent), transparent);
  pointer-events: none;
}

.kk-end.left {
  left: 0;
  --side: 90deg;
}

.kk-end.right {
  right: 0;
  --side: 270deg;
}

.kk-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 24px, transparent 24px 48px);
  pointer-events: none;
}

.kk-line.mid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.kk-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.kk-box {
  position: absolute;
  top: 24%;
  width: 15%;
  height: 52%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.kk-box.left {
  left: -2px;
  border-left: 0;
}

.kk-box.right {
  right: -2px;
  border-right: 0;
}

.kk-dir {
  position: absolute;
  top: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--c) 78%, #fff);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0.92;
}

.kk-dir.left {
  left: 10px;
}

.kk-dir.right {
  right: 10px;
}

.kk-possession-chip {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(92%, 420px);
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--c) 68%, rgba(255, 255, 255, 0.24));
  border-radius: 999px;
  background: rgba(3, 13, 8, 0.76);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.kk-possession-chip .team-badge {
  width: 22px;
  height: 16px;
  border-radius: 5px;
  overflow: hidden;
}
.kk-possession-chip .team-badge img,
.kk-possession-chip .team-badge img.flag-img,
.kk-possession-chip .team-badge b {
  width: 22px;
  height: 16px;
  border-radius: 5px;
  font-size: 9px;
}

.kk-possession-chip b,
.kk-possession-chip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kk-possession-chip b {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.kk-possession-chip em {
  color: color-mix(in srgb, var(--c) 75%, #fff);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.kk-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 3;
  pointer-events: none;
}

.kk-route-line {
  fill: none;
  stroke: color-mix(in srgb, var(--tone) 80%, #fff);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--tone) 55%, transparent));
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: kk-draw 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.kk-origin {
  position: absolute;
  left: var(--from-x);
  top: var(--from-y);
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 55%, rgba(255, 255, 255, 0.5));
  box-shadow: 0 0 0 2px rgba(4, 12, 8, 0.55);
  z-index: 3;
  transition: left 0.6s ease, top 0.6s ease;
}

.kk-target {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border: 2px solid color-mix(in srgb, var(--tone) 60%, transparent);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0.65;
  z-index: 3;
  transition: left 0.6s ease, top 0.6s ease;
}

.kk-runner {
  position: absolute;
  width: 38px;
  height: 54px;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-rows: 35px 10px 7px;
  justify-items: center;
  align-items: start;
  color: var(--kit-text, #fff);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.42));
  z-index: 4;
  animation: kk-runner-settle 0.5s ease-out both;
}

.kk-runner .kit-shirt {
  position: relative;
  display: block;
  width: 38px;
  height: 35px;
  border: 2px solid var(--kit-trim, rgba(255, 255, 255, 0.75));
  border-radius: 8px 8px 9px 9px;
  background: var(--kit-pattern, var(--marker, color-mix(in srgb, var(--tone) 82%, #fff)));
  background-size: 100% 100%;
  clip-path: polygon(12% 0, 31% 0, 40% 11%, 60% 11%, 69% 0, 88% 0, 100% 23%, 88% 40%, 88% 100%, 12% 100%, 12% 40%, 0 23%);
  box-shadow: 0 0 0 2px rgba(4, 12, 8, 0.88), 0 0 17px color-mix(in srgb, var(--marker, var(--tone)) 44%, transparent);
  overflow: hidden;
}

.kk-runner .kit-shirt::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: -2px;
  height: 12px;
  border-radius: 0 0 999px 999px;
  border: 3px solid var(--kit-trim, rgba(255, 255, 255, 0.75));
  border-top: 0;
  background: rgba(4, 12, 8, 0.18);
  z-index: 2;
}

.kk-runner .kit-shirt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--kit-trim) 0 18%, transparent 18% 82%, var(--kit-trim) 82%);
  opacity: 0.92;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.kk-runner .kit-brand {
  position: absolute;
  left: 11px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
  z-index: 3;
}

.kk-runner .kit-crest {
  position: absolute;
  right: 7px;
  top: 9px;
  display: grid;
  place-items: center;
  min-width: 11px;
  height: 9px;
  padding: 0 2px;
  border: 1px solid color-mix(in srgb, currentColor 76%, transparent);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
  color: #071426;
  font-size: 5px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  z-index: 3;
}

.kk-runner .kit-shirt b {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kit-trim, #000) 88%, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  padding: 0 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 4;
}

.kk-runner .kit-shorts {
  display: block;
  width: 23px;
  height: 10px;
  border: 2px solid rgba(4, 12, 8, 0.76);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: var(--shorts, var(--kit-trim, #111827));
}

.kk-runner .kit-socks {
  display: block;
  width: 18px;
  height: 6px;
  border-radius: 0 0 5px 5px;
  background: var(--socks, linear-gradient(180deg, #f8fafc 0 42%, var(--kit-trim, #111827) 42% 58%, #f8fafc 58%));
  box-shadow: 0 0 0 1px rgba(4, 12, 8, 0.7);
}

.kk-runner.kit-usa {
  --kit-trim: #1f2f65;
  --kit-text: #071426;
  --kit-pattern:
    radial-gradient(ellipse at 17% 24%, rgba(255, 255, 255, 0.72) 0 17%, transparent 19%),
    radial-gradient(ellipse at 70% 54%, rgba(255, 255, 255, 0.58) 0 16%, transparent 18%),
    repeating-linear-gradient(169deg, #f8fafc 0 7px, #c8102e 7px 13px, #f8fafc 13px 21px);
  --shorts: #1f2f65;
  --socks: linear-gradient(180deg, #f8fafc 0 43%, #c8102e 43% 58%, #f8fafc 58%);
}

.kk-runner.kit-usa .kit-shirt {
  border-color: #1f2f65;
}

.kk-runner.kit-usa .kit-shirt::after {
  background:
    linear-gradient(90deg, #1f2f65 0 18%, transparent 18% 82%, #1f2f65 82%),
    linear-gradient(180deg, #1f2f65 0 12%, transparent 12%);
}

.kk-runner.kit-usa .kit-shirt b {
  background: #1f2f65;
  color: #fff;
}

.kk-runner.kit-par {
  --kit-trim: #21418c;
  --kit-text: #fff;
  --kit-pattern:
    radial-gradient(circle at 18% 30%, rgba(150, 45, 20, 0.34) 0 2px, transparent 2.5px),
    radial-gradient(circle at 72% 62%, rgba(150, 45, 20, 0.28) 0 1.8px, transparent 2.3px),
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.32) 12% 18%, transparent 18%),
    repeating-linear-gradient(90deg, #f8fafc 0 7px, #d52b1e 7px 14px);
  --shorts: #21418c;
  --socks: linear-gradient(180deg, #f8fafc 0 45%, #21418c 45% 60%, #f8fafc 60%);
}

.kk-runner.kit-par .kit-shirt {
  border-color: #21418c;
}

.kk-runner.kit-par .kit-shirt::after {
  background:
    linear-gradient(90deg, #21418c 0 20%, transparent 20% 80%, #21418c 80%),
    linear-gradient(180deg, #21418c 0 12%, transparent 12%);
}

.kk-runner.kit-par .kit-shirt b {
  background: #21418c;
  color: #fff;
}

.kk-runner.attack {
  --marker: var(--attack);
  --kit-trim: var(--attack-trim);
  --kit-text: var(--attack-text);
  --kit-pattern: var(--attack-pattern);
  --shorts: var(--attack-trim);
}

.kk-runner.defense {
  --marker: var(--defend);
  --kit-trim: var(--defend-trim);
  --kit-text: var(--defend-text);
  --kit-pattern: var(--defend-pattern);
  --shorts: var(--defend-trim);
  opacity: 0.82;
  width: 34px;
  height: 48px;
}

.kk-runner.defense .kit-shirt {
  width: 34px;
  height: 31px;
}

.kk-runner.defense .kit-shorts {
  width: 21px;
  height: 9px;
}

.kk-runner.defense .kit-socks {
  width: 16px;
  height: 5px;
}

.kk-runner.attack.one {
  left: var(--runner-a-x);
  top: var(--runner-a-y);
}

.kk-runner.attack.two {
  left: var(--runner-b-x);
  top: var(--runner-b-y);
  animation-delay: 0.18s;
}

.kk-runner.attack.three {
  left: var(--runner-c-x);
  top: var(--runner-c-y);
  animation-delay: 0.32s;
}

.kk-runner.defense.one {
  left: var(--def-a-x);
  top: var(--def-a-y);
  animation-delay: 0.08s;
}

.kk-runner.defense.two {
  left: var(--def-b-x);
  top: var(--def-b-y);
  animation-delay: 0.24s;
}

.kk-runner.defense.three {
  left: var(--def-c-x);
  top: var(--def-c-y);
  animation-delay: 0.38s;
}

/* Live possession strip — sits below the pitch so the flag never overlaps the field. */
.kk-field-now {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--c) 50%, rgba(255, 255, 255, 0.14));
  border-left: 3px solid var(--c);
  border-radius: 10px;
  background: rgba(3, 13, 8, 0.55);
}
.kk-field-now .kk-now-poss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.kk-field-now .team-badge {
  width: 24px;
  height: 17px;
  border-radius: 4px;
  flex: 0 0 auto;
  overflow: hidden;
}
.kk-field-now .team-badge img,
.kk-field-now .team-badge img.flag-img,
.kk-field-now .team-badge b {
  width: 24px;
  height: 17px;
  border-radius: 4px;
  font-size: 9px;
}
.kk-field-now b {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.kk-field-now em {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  color: color-mix(in srgb, var(--c) 72%, #fff);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Match stats — a full-width row below the pitch (ESPN-style), not covering the field. */
.kk-field-statbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.kk-field-statbar b {
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.kk-field-statbar span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.kk-field-statbar strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.kk-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2.5px solid var(--ring);
  border-radius: 999px;
  background: var(--pin, rgba(20, 26, 22, 0.92));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.3);
  animation: kk-pin-in 0.35s ease both;
  z-index: 2;
}

.kk-pin .kk-pin-glyph {
  font-size: 14px;
  line-height: 1;
}

.kk-pin .kk-pin-clock {
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.kk-pin.cat-goal {
  --pin: linear-gradient(160deg, #16a34a, #0d6b32);
}

.kk-pin.cat-card {
  --pin: linear-gradient(160deg, #fbbf24, #d97706);
  color: #1a1205;
}

.kk-pin.cat-sub {
  --pin: linear-gradient(160deg, #38bdf8, #1d6fa5);
}

.kk-pin.cat-chance {
  --pin: linear-gradient(160deg, #a78bfa, #6d4bd1);
}

.kk-pin.cat-play {
  --pin: rgba(30, 38, 33, 0.9);
}

.kk-pin.latest {
  width: 40px;
  height: 40px;
  z-index: 4;
  animation: kk-pin-in 0.35s ease both, kk-pin-pulse 1.8s ease-in-out 0.35s infinite;
}

.kk-pin.latest .kk-pin-glyph {
  font-size: 17px;
}

.kk-ball {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at 34% 30%, #fff, #cbd5d1 60%, #8b9690);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55), 0 0 12px rgba(255, 255, 255, 0.6);
  z-index: 6;
  animation: kk-ball-travel 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.kk-formation {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.kk-pos {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  z-index: 2;
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1), top 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.kk-pos b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 80%, #04140b);
  color: #fff;
  border: 2px solid color-mix(in srgb, var(--c) 55%, #fff);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.kk-pos em {
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kk-pos.active {
  z-index: 5;
}

.kk-pos.active b {
  background: #fff;
  color: #04140b;
  border-color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 72%, transparent), 0 0 16px rgba(255, 255, 255, 0.65);
  animation: kk-pos-pulse 1.4s ease-in-out infinite;
}

@keyframes kk-pos-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

.kk-momentum {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 900;
}

.kk-mom-side {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  white-space: nowrap;
}

.kk-mom-side b {
  color: color-mix(in srgb, var(--c) 78%, #fff);
}

.kk-mom-bar {
  flex: 1;
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.kk-mom-bar i {
  display: block;
  height: 100%;
  transition: width 0.6s ease;
}

.kk-field-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  text-align: center;
  padding: 20px;
}

.kk-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(227, 235, 227, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.kk-callout b {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--soft);
}

.kk-callout.live b {
  background: var(--green);
  color: #04140b;
}

.kk-callout p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.kk-field-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(52, 211, 153, 0.16), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  color: #fff;
}
.kk-field-winner::before {
  content: "🏆";
  font-size: 16px;
}
.kk-field-winner.draw {
  background: linear-gradient(120deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.08));
}
.kk-field-winner.draw::before {
  content: "🤝";
}
.kk-field-winner .team-badge {
  width: 26px;
  height: 18px;
  border-radius: 4px;
  flex: 0 0 auto;
  overflow: hidden;
}
.kk-field-winner .team-badge img,
.kk-field-winner .team-badge img.flag-img,
.kk-field-winner .team-badge b {
  width: 26px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
}
.kk-field-winner b {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.kk-field-winner .kk-fw-score {
  margin-left: auto;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.kk-field-winner em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
}

.kk-replay {
  margin: 4px 0 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(8, 24, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 9px;
}
.kk-replay-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kk-replay-play {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 12px;
  color: #04140f;
  background: linear-gradient(120deg, #34d399, #22d3ee);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.kk-replay-play:hover {
  filter: brightness(1.06);
}
.kk-replay-play:active {
  transform: scale(0.97);
}
.kk-replay-play.playing {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.kk-replay-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.kk-replay-clock {
  font-weight: 800;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}
.kk-replay-score {
  margin-left: auto;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
}
.kk-replay-track {
  position: relative;
  display: grid;
  gap: 2px;
}
.kk-replay-bar {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: visible;
}
.kk-replay-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.55), rgba(56, 189, 248, 0.55));
  pointer-events: none;
}
.kk-bubble {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: var(--c, #34d399);
  color: #04140f;
  font-size: 10px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s ease;
}
.kk-bubble:hover,
.kk-bubble.active {
  transform: translate(-50%, -50%) scale(1.25);
}
.kk-bubble.cat-card {
  background: #facc15;
}
.kk-replay-scrub {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.kk-replay-scrub::-webkit-slider-runnable-track {
  height: 16px;
  background: transparent;
}
.kk-replay-scrub::-moz-range-track {
  height: 16px;
  background: transparent;
}
.kk-replay-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, #fff 0 5px, #38bdf8 6px 8px, #fff 9px);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 2px 7px rgba(0, 0, 0, 0.6);
  margin-top: -3px;
  cursor: grab;
}
.kk-replay-scrub:active::-webkit-slider-thumb {
  cursor: grabbing;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.32), 0 2px 9px rgba(0, 0, 0, 0.65);
}
.kk-replay-scrub::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, #fff 0 5px, #38bdf8 6px 8px, #fff 9px);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 2px 7px rgba(0, 0, 0, 0.6);
  cursor: grab;
}
.kk-replay-caption {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
  min-height: 14px;
}
.kk-field.is-goal .kk-ball {
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.55), 0 0 12px rgba(250, 204, 21, 0.8);
}

/* --- ESPN-style 3D goal celebration overlay --- */
.kk-replay-goal {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  perspective: 900px;
}
.kk-replay-goal .krg-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c, #34d399) 55%, transparent) 0%, rgba(4, 12, 9, 0.55) 60%, rgba(4, 12, 9, 0.82) 100%);
  animation: krg-flash 2.6s ease-out forwards;
}
@keyframes krg-flash {
  0% { opacity: 0; }
  8% { opacity: 1; }
  70% { opacity: 0.9; }
  100% { opacity: 0; }
}
.kk-replay-goal .krg-net {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 62%);
  animation: krg-net 2.6s ease-out forwards;
  transform-origin: 50% 45%;
}
@keyframes krg-net {
  0% { opacity: 0; transform: scale(0.6); }
  16% { opacity: 0.9; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.18); }
}
.kk-replay-goal .krg-word {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  animation: krg-word 2.6s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  transform-style: preserve-3d;
}
.kk-replay-goal .krg-word b {
  display: block;
  font-size: clamp(34px, 11vw, 64px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.92;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--c, #34d399) 70%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px color-mix(in srgb, var(--c, #34d399) 55%, transparent));
}
.kk-replay-goal .krg-team {
  display: block;
  margin-top: 4px;
  font-size: clamp(13px, 4vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.kk-replay-goal .krg-word small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}
.kk-replay-goal .krg-word em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--c, #34d399) 70%, #fff);
}
@keyframes krg-word {
  0% { opacity: 0; transform: translateY(14px) rotateX(70deg) scale(0.7); }
  18% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1.08); }
  30% { transform: translateY(0) rotateX(0deg) scale(1); }
  82% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}
.kk-replay-goal .krg-confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.kk-replay-goal .krg-confetti i {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  background: hsl(calc(var(--i) * 33), 90%, 60%);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: krg-confetti 1.6s ease-out var(--d, 0s) forwards;
}
@keyframes krg-confetti {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.4); }
  12% { opacity: 1; }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + (var(--i) - 11) * 14px), calc(-50% + (var(--i) - 11) * (var(--i) - 11) * 1.6px - 60px))
      rotate(calc(var(--i) * 90deg)) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .kk-replay-goal .krg-net,
  .kk-replay-goal .krg-confetti i,
  .kk-replay-goal .krg-word { animation-duration: 0.01ms; }
}

.kk-field-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  color: var(--soft);
}

.kk-leg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kk-leg i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  color: #fff;
}

.kk-leg i.dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.kk-leg.ball-key i {
  width: 13px;
  height: 13px;
  background: radial-gradient(circle at 34% 30%, #fff, #cbd5d1 60%, #8b9690);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 6px rgba(255, 255, 255, 0.55);
}

.kk-leg i.kit-usa {
  background:
    radial-gradient(ellipse at 18% 28%, rgba(255, 255, 255, 0.72) 0 18%, transparent 20%),
    repeating-linear-gradient(169deg, #f8fafc 0 5px, #c8102e 5px 9px, #f8fafc 9px 14px) !important;
  border: 2px solid #1f2f65;
}

.kk-leg i.kit-par {
  background:
    radial-gradient(circle at 18% 30%, rgba(150, 45, 20, 0.3) 0 1.4px, transparent 1.8px),
    repeating-linear-gradient(90deg, #f8fafc 0 5px, #d52b1e 5px 10px) !important;
  border: 2px solid #21418c;
}

.kk-leg.cat-goal i {
  background: linear-gradient(160deg, #16a34a, #0d6b32);
}

.kk-leg.cat-card i {
  background: linear-gradient(160deg, #fbbf24, #d97706);
  color: #1a1205;
}

.kk-leg.cat-sub i {
  background: linear-gradient(160deg, #38bdf8, #1d6fa5);
}

.kk-leg.cat-chance i {
  background: linear-gradient(160deg, #a78bfa, #6d4bd1);
}

.kk-leg-note {
  margin-left: auto;
  opacity: 0.8;
}

@keyframes kk-pin-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes kk-pin-pulse {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 0 color-mix(in srgb, var(--ring) 70%, transparent);
  }
  50% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 8px color-mix(in srgb, var(--ring) 0%, transparent);
  }
}

@keyframes kk-ball-travel {
  from {
    left: var(--from-x);
    top: var(--from-y);
  }
  to {
    left: var(--x);
    top: var(--y);
  }
}

@keyframes kk-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes kk-runner-settle {
  from {
    transform: translate(-50%, calc(-50% + 11px)) scale(0.97);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kk-pin,
  .kk-pin.latest,
  .kk-ball,
  .kk-route-line,
  .kk-runner,
  .kk-target,
  .mini-route-line,
  .mini-pitch.live-state .mini-ball {
    animation: none;
  }

  .kk-route-line,
  .mini-route-line {
    stroke-dashoffset: 0;
  }
}

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

.running-stats div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.running-stats span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.running-stats strong,
.running-stats em {
  min-width: 34px;
  border-radius: 999px;
  padding: 4px 7px;
  text-align: center;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.running-stats strong {
  color: #071009;
  background: var(--gold);
}

.running-stats em {
  color: #071009;
  background: var(--blue);
}

.detail-panel h3,
.detail-roster h4,
.stats-compare h4 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sportsbook-panel,
.prematch-panel,
.portal-pool-panel {
  display: grid;
  gap: 14px;
  border-color: rgba(255, 209, 102, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(76, 201, 240, 0.055)),
    rgba(1, 9, 7, 0.52);
}

/* Pool impact — richer, icon-led layout with avatars and progress bars. */
.kk-pool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.kk-pool-head h3 {
  margin: 2px 0 0;
}
.kk-pool-fixture {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.kk-pool-fixture .kk-pool-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
  font-size: 12px;
  color: #fff;
}
.kk-pool-fixture .kk-pool-team .team-badge {
  width: 22px;
  height: 15px;
  min-width: 22px;
  border-radius: 3px;
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
}
.kk-pool-fixture .kk-pool-team .team-badge img,
.kk-pool-fixture .kk-pool-team .team-badge b {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  font-size: 8px;
  line-height: 15px;
}
.kk-pool-fixture > i {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: var(--soft);
}
.kk-pool-brackets {
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.1);
  font-weight: 900;
  font-size: 12px;
}
.kk-pool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.kk-pool-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(1, 9, 7, 0.52);
}
.kk-pool-card.leader {
  border-color: rgba(255, 209, 102, 0.3);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(1, 9, 7, 0.52));
}
.kk-pool-card header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--soft);
}
.kk-pool-ico {
  font-size: 14px;
}
.kk-pool-card header .kk-pool-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 900;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.12);
  border-radius: 999px;
  padding: 1px 8px;
}
.kk-pool-leader {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kk-pool-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: #04140b;
  background: linear-gradient(135deg, #ffd166, #4cc9f0);
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex: 0 0 auto;
}
.kk-pool-avatar.sm {
  width: 22px;
  height: 22px;
  font-size: 9px;
  border-width: 1.5px;
  margin-left: -7px;
  box-shadow: 0 0 0 2px rgba(1, 9, 7, 0.85);
}
.kk-pool-leader-meta {
  min-width: 0;
}
.kk-pool-leader-meta strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.kk-pool-leader-meta em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--soft);
}
.kk-pool-champ {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.kk-pool-champ span {
  color: var(--soft);
  font-weight: 600;
}
.kk-pool-exposure {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.kk-pool-exposure li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}
.kk-exp-team {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.kk-exp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.kk-exp-avatars {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}
.kk-exp-avatars .kk-pool-avatar:first-child {
  margin-left: 0;
}
.kk-exp-more {
  margin-left: -7px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 900;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 2px rgba(1, 9, 7, 0.85);
}
.kk-exp-count {
  flex: 0 0 auto;
  min-width: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--gold);
}
.kk-pool-grand {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.3;
}
.kk-pool-grand span {
  font-size: 14px;
  flex: 0 0 auto;
}
.info-grand-prize {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(76, 201, 240, 0.08));
}
.info-grand-trophy {
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
}
.info-grand-prize strong {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 2px;
}
.info-grand-prize p {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}
.kk-pool-money {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.kk-pool-prizes {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.kk-pool-prizes li {
  display: grid;
  grid-template-columns: 20px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.kk-pool-prizes li:first-child {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.32);
}
.kk-pool-prizes .kk-prize-medal {
  font-size: 15px;
  line-height: 1;
}
.kk-pool-prizes .kk-prize-place {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.kk-pool-prizes .kk-prize-amt {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.kk-pool-prizes .kk-prize-pct {
  font-size: 10px;
  font-weight: 700;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.kk-pool-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.kk-pool-note {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--soft);
}
.kk-pool-empty {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--soft);
}
.kk-pool-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.kk-pool-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd166, #f4a261);
}
.kk-pool-bar.live > i {
  background: linear-gradient(90deg, #34d399, #22d3ee);
}
@media (max-width: 720px) {
  .kk-pool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sportsbook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sportsbook-head h3 {
  margin: 2px 0 0;
}

.sportsbook-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sportsbook-head img {
  width: min(128px, 34vw);
  max-height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.market-grid,
.prematch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.market-grid article,
.prematch-grid article,
.market-empty {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(1, 9, 7, 0.48);
}

.market-grid span,
.prematch-grid span {
  display: block;
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-grid strong,
.prematch-grid strong,
.market-empty strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.market-grid em,
.prematch-grid em,
.market-empty span {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.prematch-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prematch-news article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(1, 9, 7, 0.46);
}

.prematch-news img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.prematch-news div {
  padding: 10px;
}

.prematch-news span,
.prematch-news strong,
.prematch-news em {
  display: block;
}

.prematch-news span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prematch-news strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.prematch-news em {
  margin-top: 5px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

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

.stat-bar-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-bar-teams span:last-child {
  text-align: right;
}

.stat-bars {
  display: grid;
  gap: 12px;
}

.stat-bar-row {
  display: grid;
  gap: 7px;
}

.stat-bar-values {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
}

.stat-bar-values span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.stat-bar-values strong {
  color: var(--text);
  font-size: 14px;
}

.stat-bar-values strong:last-child {
  text-align: right;
}

.stat-bar-track {
  height: 9px;
  display: flex;
  gap: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-bar-track i,
.stat-bar-track b {
  display: block;
  min-width: 6px;
}

.stat-bar-track i {
  background: linear-gradient(90deg, var(--gold), #fff0a3);
}

.stat-bar-track b {
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.play-timeline {
  max-height: 440px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.play-item {
  display: grid;
  grid-template-columns: minmax(44px, auto) 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.play-item.side-home {
  border-left-color: var(--home-color, var(--gold));
}

.play-item.side-away {
  border-left-color: var(--away-color, #4cc9f0);
}

.play-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1;
}

.play-item strong em.play-team {
  display: inline;
  margin: 0 0 0 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.play-item time {
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071009;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.play-item strong,
.play-item p,
.play-item em {
  display: block;
}

.play-item strong {
  color: var(--text);
  font-size: 14px;
}

.play-item p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}

.play-item em {
  margin-top: 6px;
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.play-item.goal {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.08);
}

.play-item.goal time {
  background: var(--green);
}

.play-item.card {
  border-color: rgba(255, 209, 102, 0.34);
}

.play-item.delay {
  border-color: rgba(76, 201, 240, 0.28);
}

.stats-compare div div,
.detail-roster div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.stats-compare span,
.detail-roster span {
  color: var(--soft);
}

.stats-compare strong,
.detail-roster strong {
  text-align: right;
}

.detail-roster .starter strong {
  color: var(--gold);
}

.standings-panel,
.games-panel {
  padding: 16px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding: 18px 0 26px;
  color: var(--soft);
  text-align: center;
}

.site-footer p {
  margin: 0;
  flex: none;
  font-size: 13px;
}

.site-footer a {
  flex: none;
  color: var(--soft);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer a span {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.install-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: min(430px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 8px;
  padding: 16px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(76, 201, 240, 0.09)),
    rgba(5, 19, 15, 0.98);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.44);
}

.install-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: 20px;
}

.install-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 24px;
}

.install-head img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.install-head strong,
.install-head span {
  display: block;
}

.install-head strong {
  font-size: 18px;
}

.install-head span,
.install-note,
.install-steps {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.4;
}

.install-benefits {
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  display: grid;
  gap: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.install-benefits li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.35;
}

.install-benefits li span {
  font-size: 14px;
  line-height: 1.2;
}

.install-action {
  display: grid;
  gap: 6px;
}

.install-action .primary {
  min-height: 44px;
  font-weight: 800;
}

.install-action .secondary {
  min-height: 40px;
  margin-top: 2px;
}

.install-action-sub {
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}

.install-platform {
  display: grid;
  gap: 6px;
}

.install-platform-head {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.install-steps {
  margin: 0;
  padding-left: 20px;
}

.install-steps li + li {
  margin-top: 5px;
}

.install-glyph {
  color: var(--gold);
  font-weight: 900;
}

.install-note {
  margin: 0;
}

.install-note a {
  color: var(--gold);
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

.error { color: #ff9aa6; }
.ok { color: #8ff0bd; }

@media (max-width: 1120px) {
  .hero, .layout, .review-grid { grid-template-columns: 1fr; }
  .portal-header { grid-template-columns: 1fr; align-items: stretch; gap: 9px; min-height: 0; }
  .portal-topbar { justify-content: space-between; }
  .portal-header .tabs { justify-content: flex-start; }
  .site-nav { grid-template-columns: 1fr; align-items: stretch; top: 8px; }
  .site-topbar { justify-content: space-between; }
  .site-links { justify-content: flex-start; }
  .sticky-panel {
    display: none;
    position: fixed;
    top: 112px;
    right: 14px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .sticky-panel.open {
    display: grid;
  }
  .groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thirds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-games, .game-center-list, .games-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-games.compact, .public-scoreboard { grid-template-columns: 1fr; }
  .admin-grid, .admin-health, .admin-command-strip, .detail-grid, .detail-hero, .rules-command, .profile-grid, .stats-dashboard { grid-template-columns: 1fr; }
  .admin-ops-board { grid-template-columns: 1fr; }
  .stats-hero-card { grid-template-columns: 1fr; }
  .stats-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-game-board { grid-template-columns: 1fr; }
  .market-grid, .prematch-grid, .prematch-news, .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 18px, 1480px); padding-top: 12px; }
  .shell:has(.site-nav:not([hidden])) {
    padding-top: 72px;
  }
  .portal-mode .shell {
    padding-top: 126px;
  }
  .layout { margin-top: 0; padding-top: 0; }
  .site-nav {
    position: fixed;
    top: max(6px, env(safe-area-inset-top));
    left: 9px;
    right: 9px;
    width: auto;
    gap: 8px;
    min-height: 0;
    padding: 8px;
    z-index: 120;
    overflow: clip;
  }
  .site-topbar {
    width: 100%;
    justify-content: space-between;
  }
  .topline-portal-cta {
    width: 42px;
    min-width: 42px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 0;
  }
  .topline-portal-cta::after {
    content: "↗";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #071009;
    font-size: 19px;
    font-weight: 950;
  }
  .site-brand {
    width: auto;
    flex: 1 1 auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 4px;
    border-radius: 8px;
    background: rgba(1, 9, 7, 0.38);
  }
  .site-brand .brand-mark {
    width: 38px;
    height: 38px;
    padding: 4px;
  }
  .site-brand .brand-text strong {
    font-size: 14px;
  }
  .site-brand .brand-text span {
    font-size: clamp(8px, 2.4vw, 10px);
    white-space: nowrap;
    letter-spacing: -0.1px;
  }
  .site-links {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    gap: 6px;
    padding-bottom: 2px;
  }
  .site-links a,
  .site-links button {
    flex: 0 0 auto;
    min-width: 86px;
    min-height: 36px;
    padding: 0 10px;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }
  .hero { min-height: 0; padding: 12px 0 20px; }
  .hero h1 { font-size: 56px; }
  .hero-fixture { min-height: 244px; padding: 14px; }
  .hero-fixture-teams { gap: 8px; }
  .hero-fixture-teams img,
  .hero-fixture-teams b { width: 54px; height: 54px; }
  .hero-flag { width: 40px; height: 40px; font-size: 22px; }
  .groups-grid, .thirds-grid, .featured-games, .game-center-list, .admin-summary, .admin-health, .admin-command-strip, .stats-compare, .roster-grid, .detail-facts, .market-grid, .prematch-grid, .prematch-news { grid-template-columns: 1fr; }
  .featured-games,
  .game-center-list,
  .games-list { gap: 18px; }
  .scoreboard-section { padding: 16px; }
  .game-card { padding: 18px; }
  .portal-mode #games.tab-panel {
    padding-top: 34px;
  }
  .portal-mode #games .games-list,
  .portal-mode #games .game-center-list {
    gap: 22px;
  }
  .portal-mode #games .games-list {
    padding-top: 14px;
  }
  .portal-mode #games .game-card {
    min-height: 0;
    padding: 18px;
    gap: 12px;
  }
  .portal-mode #games .game-card-top {
    margin-bottom: 0;
  }
  .portal-mode #games .team-logos {
    min-height: 42px;
    gap: 8px;
  }
  .portal-mode #games .game-card > strong {
    margin-top: 0;
    line-height: 1.08;
  }
  .portal-mode #games .scoreline {
    margin-top: 0;
    line-height: 1;
  }
  .portal-mode #games .tap-chip {
    margin-top: 2px;
  }
  .wizard-steps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(96px, 1fr);
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .games-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
  .games-summary div { min-height: 76px; padding: 14px; }
  .games-summary strong { font-size: 22px; }
  .wizard-actions { grid-template-columns: 1fr; }
  .wizard-step-tab {
    min-height: 44px;
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 7px;
  }
  .wizard-step-tab span {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .wizard-step-tab strong { font-size: 12px; }
  .rules-command-scoring { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rules-command {
    gap: 12px;
  }
  .rules-command-hero {
    grid-row: auto;
    grid-template-rows: auto;
    padding: 15px;
  }
  .rules-command-hero h3 {
    font-size: 34px;
  }
  .rules-command-hero p {
    font-size: 13px;
  }
  .rules-command-meter {
    grid-auto-flow: column;
    grid-auto-columns: minmax(58px, 1fr);
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .rules-command-meter span,
  .rules-command-meter strong {
    min-height: 36px;
    padding: 6px;
    font-size: 9px;
    white-space: nowrap;
  }
  .rules-command-meter strong {
    font-size: 9px;
  }
  .rules-command-prize,
  .rules-command-scoring,
  .rules-command-checks {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .rules-command-prize article,
  .rules-command-scoring article,
  .rules-command-checks article {
    padding: 11px;
  }
  .rules-command-prize strong {
    font-size: 17px;
  }
  .rules-command-prize p,
  .rules-command-scoring span,
  .rules-command-checks span {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .pool-pot-amount { font-size: 32px; }
  .pool-race { grid-template-columns: 1fr; }
  .stats-hero { margin: 14px 0 16px; }
  .stats-hero-card { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .stats-hero-media { min-height: 132px; }
  .stats-hero-gauges,
  .stats-pool-gauges,
  .stats-kpis,
  .stats-prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats-dashboard,
  .stats-game-board { grid-template-columns: 1fr; gap: 12px; }
  .stats-panel { padding: 14px; gap: 12px; }
  .stats-field-overview { grid-template-columns: 1fr; gap: 10px; }
  .stats-field-overview .mini-pitch { min-height: 156px; }
  .stats-live-grid,
  .stats-player-strip,
  .admin-command-grid { grid-template-columns: 1fr; }
  .stats-match-updates div { grid-template-columns: 31px minmax(0, 1fr); }
  .stats-match-updates div strong { grid-column: 2; white-space: normal; }
  .stats-field-overview.no-field .stats-match-updates { grid-template-columns: 1fr; }
  .stats-match-updates div.stats-media-row { grid-template-columns: 34px minmax(0, 1fr); }
  .stats-match-updates div.stats-media-row span,
  .stats-match-updates div.stats-media-row strong { grid-column: 2; white-space: normal; overflow: visible; }
  .readout-prob-row { grid-template-columns: 40px minmax(0, 1fr) 44px; }
  .stats-live-grid div { padding: 8px 9px; }
  .stats-live-grid .slg-row { grid-template-columns: minmax(26px, auto) minmax(0, 1fr) minmax(26px, auto); gap: 7px; }
  .stats-kpis div,
  .stats-prize-grid article,
  .stats-market-card { padding: 11px; }
  .stats-kpis strong,
  .stats-prize-grid strong,
  .stats-market-card strong { font-size: 14px; }
  .stat-gauge { padding: 11px 8px; }
  .stat-gauge-ring { width: 74px; }
  .stat-gauge-ring strong { font-size: 17px; }
  .stats-game-card { padding: 12px; gap: 10px; }
  .stats-game-teams { gap: 6px; }
  .stats-game-teams > span { padding: 8px 6px; }
  .stats-game-teams strong { font-size: 11px; }
  .stats-game-teams em { font-size: 16px; }
  .stats-toolbar button { min-width: 78px; min-height: 34px; padding: 0 10px; font-size: 11px; }
  .stats-panel h3 { font-size: 18px; line-height: 1.12; }
  .stats-panel-head { display: grid; }
  .stats-panel-head > span { width: fit-content; }
  .admin-ops-hero { min-height: 150px; padding: 15px; }
  .admin-ops-hero strong { font-size: 30px; }
  .admin-command-card { padding: 13px; }
  .admin-command-card strong { font-size: 16px; }
  .profile-actions { grid-template-columns: 1fr; }
  .avatar-editor { grid-template-columns: 1fr; justify-items: start; }
  .admin-row { grid-template-columns: 1fr; align-items: start; }
  .admin-row b { width: fit-content; }
  .admin-row .mini { justify-self: start; width: 100%; }
  .admin-row-actions { width: 100%; justify-content: stretch; }
  .admin-row-actions .mini { flex: 1 1 calc(50% - 7px); }
  .section-head { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .portal-header {
    position: fixed;
    top: max(6px, env(safe-area-inset-top));
    left: 9px;
    right: 9px;
    width: auto;
    gap: 8px;
    padding: 8px 8px 2px;
    overflow: clip;
    z-index: 120;
  }
  .portal-title {
    width: auto;
    flex: 1 1 auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 4px;
  }
  .portal-title .brand-mark {
    width: 38px;
    height: 38px;
    padding: 4px;
  }
  .portal-title .brand-text strong {
    font-size: 14px;
  }
  .portal-title .brand-text span {
    font-size: clamp(8px, 2.4vw, 10px);
    white-space: nowrap;
    letter-spacing: -0.1px;
  }
  .account-toggle {
    flex: 0 0 auto;
    width: 42px;
    height: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
  }
  .sticky-panel {
    top: 104px;
    right: 9px;
    width: calc(100vw - 18px);
    max-height: calc(100vh - 116px);
  }
  .account-toggle .account-copy {
    display: none;
  }
  .tabs {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .tabs::-webkit-scrollbar {
    display: block;
    height: 4px;
  }
  .portal-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
  }
  .portal-header .site-links.portal-links {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  #admin-tab {
    grid-column: auto;
  }
  .portal-links .tab {
    flex: 0 0 auto;
    min-width: 86px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }
  .portal-header .site-links.portal-links .tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 86px;
    max-width: none;
  }
  .portal-links #admin-tab { min-width: 132px; }
  .portal-brief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .portal-brief div {
    padding: 8px 9px;
  }
  .portal-brief div:first-child {
    grid-column: 1 / -1;
  }
  .portal-brief span {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .portal-brief strong {
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .submit-actions { grid-template-columns: 1fr; }
  .modal-backdrop {
    place-items: center;
    padding: 12px;
  }
  .modal-panel {
    width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
    padding: 12px;
  }
  .modal-close {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 0;
    float: none;
  }
  .detail-hero {
    min-height: 0;
    padding: 14px;
  }
  .detail-hero h2 { font-size: 26px; }
  .detail-score { font-size: 32px; }
  .match-pulse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-ticker > div {
    max-height: 120px;
  }
  .detail-teams {
    grid-template-columns: 1fr;
  }
  .detail-teams > i {
    justify-self: center;
  }
  .detail-team {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    text-align: left;
  }
  .detail-team strong {
    font-size: 32px;
  }
  .stat-bar-values {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 7px;
  }
  .stat-bar-values span {
    font-size: 10px;
  }
  .pitch-head {
    display: grid;
  }
  .pitch-head span {
    text-align: left;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kk-field {
    min-height: 260px;
  }
  .kk-field-team strong {
    font-size: 22px;
  }
  .kk-possession-chip {
    top: 9px;
    max-width: calc(100% - 18px);
  }
  .kk-runner {
    width: 33px;
    height: 47px;
    grid-template-rows: 31px 9px 6px;
  }
  .kk-runner.defense {
    width: 30px;
    height: 43px;
  }
  .kk-runner .kit-shirt {
    width: 33px;
    height: 31px;
  }
  .kk-runner.defense .kit-shirt {
    width: 30px;
    height: 28px;
  }
  .kk-runner .kit-shorts {
    width: 20px;
    height: 9px;
  }
  .kk-runner .kit-socks {
    width: 16px;
    height: 5px;
  }
  .kk-runner .kit-brand {
    left: 9px;
    top: 11px;
  }
  .kk-runner .kit-crest {
    right: 6px;
    top: 8px;
    min-width: 10px;
    height: 8px;
    font-size: 4.5px;
  }
  .kk-runner .kit-shirt b {
    font-size: 8px;
    min-width: 13px;
    height: 12px;
    top: 16px;
  }
  .kk-field-statbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kk-field-statbar b {
    padding: 7px 6px;
  }
  .kk-field-now em {
    font-size: 10px;
  }
  .kk-pin {
    width: 30px;
    height: 30px;
  }
  .kk-pin .kk-pin-glyph {
    font-size: 12px;
  }
  .kk-pin.latest {
    width: 36px;
    height: 36px;
  }
  .kk-leg-note {
    margin-left: 0;
    width: 100%;
  }
  .running-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .running-stats div {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 5px;
    padding: 8px;
  }
  .running-stats strong,
  .running-stats em {
    min-width: 0;
    width: 100%;
    padding: 4px 6px;
  }
  .play-timeline {
    max-height: 360px;
  }
  .review-list div,
  .stats-compare div div,
  .detail-roster div {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }
  .stats-compare strong,
  .detail-roster strong {
    text-align: left;
  }
  .install-banner {
    right: 9px;
    bottom: 9px;
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    overflow-y: auto;
    gap: 10px;
    padding: 14px;
  }
  .install-head strong { font-size: 16px; }
  .install-benefits li { font-size: 12px; }
  .bracket-board {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 14px;
    overflow-x: visible;
  }
  .round {
    min-width: 0;
  }
  .match-card {
    padding: 10px;
    gap: 8px;
  }
  .slot {
    padding: 7px 8px;
  }
  .slot select,
  .slot .slot-name {
    width: 100%;
    min-width: 0;
  }
  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-bottom: 22px;
    text-align: center;
  }
  .site-footer p,
  .site-footer a {
    flex: none;
  }
}

.push-block {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.05);
}

.push-block-title {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.push-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 2px;
}

.push-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.push-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.4;
}
.push-result.ok { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.08); }
.push-result.fail { border-color: rgba(239, 71, 111, 0.4); background: rgba(239, 71, 111, 0.08); }
.push-result-dev { font-weight: 800; }
.push-result-detail { color: var(--muted); word-break: break-word; }

/* ===== v58: live hub — standings board, clubhouse chat, modal media, motion ===== */
@keyframes kk-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kk-pop-in {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes kk-slide-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes kk-grow {
  from { width: 0; }
}
@keyframes kk-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

.tab-panel.active { animation: kk-fade-up 0.34s ease both; }
.modal-panel { animation: kk-pop-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }

.game-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 102, 0.55);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4);
}
.game-card.live .status-pill { animation: kk-pulse 1.8s ease infinite; }
.tiny-meter i { animation: kk-grow 0.8s ease both; }

.standings-live-banner { margin-bottom: 14px; }
.standings-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: linear-gradient(120deg, rgba(34, 197, 94, 0.12), rgba(76, 201, 240, 0.08));
  animation: kk-fade-up 0.3s ease both;
}
.standings-banner.warn { background: linear-gradient(120deg, rgba(255, 209, 102, 0.14), rgba(239, 71, 111, 0.08)); }
.standings-banner.is-provisional { border-color: rgba(255, 209, 102, 0.4); }
.standings-banner strong { color: var(--text); }
.standings-banner span:not(.live-dot) { color: var(--muted); font-size: 0.86rem; }
.standings-banner .sb-ico { font-size: 1.1rem; }
.standings-banner .sb-main { display: grid; gap: 2px; min-width: 0; }
.standings-banner .sb-note {
  flex: 1 1 100%;
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(210, 236, 221, 0.12);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--soft);
}
.standings-banner .sb-note strong { color: var(--gold); font-weight: 700; }
.standings-banner .sb-pill {
  display: inline-flex; align-items: center; gap: 4px;
  margin-right: 6px; padding: 2px 9px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap;
  color: var(--gold); background: rgba(255, 209, 102, 0.16);
}
.standings-banner .sb-pill.done { color: #7ddaa3; background: rgba(82, 196, 134, 0.16); }
.standings-info-tag .sic-ico { margin-right: 5px; font-size: 0.82rem; }
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: kk-pulse 1.8s ease infinite;
}

.standings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: start;
}
.standings-side { display: grid; gap: 14px; }
.panel-hint { margin: 4px 0 12px; color: var(--muted); font-size: 0.84rem; }

.standings-history { margin-top: 14px; }
.standings-history-head {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between;
}
.standings-history-meta { display: grid; gap: 6px; justify-items: end; text-align: right; }
.hist-meta-you { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.hist-meta-you .hist-meta-label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.hist-meta-you strong { color: var(--text); font-size: 0.98rem; }
.hist-meta-best { color: var(--muted); font-size: 0.8rem; }
.hist-meta-scope { color: var(--muted); font-size: 0.78rem; }

.standings-history-chart { margin-top: 12px; }

/* Interactive podium bar race — scrub/play the pool's evolution checkpoint by checkpoint. */
.hist-race-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hist-race-play {
  flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 209, 102, 0.5); background: rgba(255, 209, 102, 0.12);
  color: var(--gold); font-size: 0.86rem; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.hist-race-play:hover:not(:disabled) { background: rgba(255, 209, 102, 0.22); transform: translateY(-1px); }
.hist-race-play.playing { background: var(--gold); color: #1a1205; }
.hist-race-play:disabled { opacity: 0.4; cursor: default; }
.hist-race-slider { flex: 1 1 auto; min-width: 0; accent-color: var(--gold); cursor: pointer; height: 6px; }
.hist-race-slider:disabled { opacity: 0.4; cursor: default; }
.hist-race-frame { flex: 0 0 auto; display: grid; gap: 1px; text-align: right; min-width: 92px; }
.hist-race-frame strong { font-size: 0.86rem; color: var(--text); }
.hist-race-frame span { font-size: 0.72rem; color: var(--muted); }
/* Vertical podium: each player is an absolutely-positioned column so reorders + height
   changes glide between game checkpoints instead of snapping. Fixed height keeps the panel
   compact no matter how many brackets are racing. */
.hist-race-podium {
  position: relative;
  height: 240px;
  margin-top: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hist-race-col {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  box-sizing: border-box;
  transition: left 0.6s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.45s ease, width 0.6s ease;
}
.hist-race-col-pts {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.hist-race-col-pts b { font-weight: 800; font-size: 0.78rem; color: var(--text); }
.hist-race-col-gain {
  font-style: normal; font-weight: 800; font-size: 0.6rem; line-height: 1;
  min-height: 0.6rem; color: transparent;
}
.hist-race-col-gain.up { color: var(--green); }
.hist-race-col-gain.down { color: var(--red, #ef476f); }
.hist-race-col-rankline { display: inline-flex; align-items: center; gap: 3px; }
.hist-race-col-move { font-style: normal; font-weight: 800; font-size: 0.62rem; line-height: 1; }
.hist-race-col-move.up { color: var(--green); }
.hist-race-col-move.down { color: var(--red, #ef476f); }
.hist-race-col-bar-wrap {
  flex: 1 1 auto;
  width: 100%;
  max-width: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hist-race-col-bar {
  display: block;
  width: 100%;
  height: 8%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--gold), rgba(255, 209, 102, 0.45));
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.18);
  transition: height 0.6s cubic-bezier(0.2, 0.8, 0.25, 1), background 0.3s ease;
}
.hist-race-col.podium .hist-race-col-bar { background: linear-gradient(180deg, #fff0a3, var(--gold)); }
.hist-race-col.p1 .hist-race-col-bar { background: linear-gradient(180deg, #fff3b0, #f5c451); box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.18), 0 0 14px rgba(245, 196, 81, 0.45); }
.hist-race-col.p2 .hist-race-col-bar { background: linear-gradient(180deg, #f1f5f9, #b8c2cc); }
.hist-race-col.p3 .hist-race-col-bar { background: linear-gradient(180deg, #f0c08a, #cd7f32); }
.hist-race-col.me .hist-race-col-bar { background: linear-gradient(180deg, #8be9fd, var(--blue)); }
.hist-race-col-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}
.hist-race-col-avatar { width: 26px; height: 26px; flex: 0 0 auto; }
.hist-race-col-rank { font-weight: 800; font-size: 0.74rem; color: var(--muted); line-height: 1; }
.hist-race-col.me .hist-race-col-rank { color: var(--blue); }
.hist-race-col-name {
  max-width: 100%;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-race-col-name .you-badge { font-size: 0.56rem; }
.hist-race-col.is-hidden { pointer-events: none; }
.hist-race-note { margin: 12px 0 0; font-size: 0.78rem; color: var(--muted); font-style: italic; }
@media (max-width: 560px) {
  .hist-race-podium { height: 200px; }
  .hist-race-col { padding: 0 2px; gap: 3px; }
  .hist-race-col-name { font-size: 0.58rem; }
  .hist-race-col-avatar { width: 24px; height: 24px; }
  .hist-race-col-bar-wrap { max-width: 40px; }
  .hist-race-col-pts b { font-size: 0.72rem; }
  /* Keep the play/slider/frame row from crushing the slider on small screens. */
  .hist-race-controls { gap: 8px; }
  .hist-race-frame { min-width: 72px; }
  .hist-race-frame strong { font-size: 0.78rem; }
  .hist-race-frame span { font-size: 0.66rem; }
}
@media (max-width: 420px) {
  .hist-race-col-name { font-size: 0.6rem; }
  .hist-race-col-bar-wrap { max-width: 46px; }
  .hist-race-frame { min-width: 64px; }
}

/* Member drawer: commissioner controls + individual movement line. */
.member-admin { margin-top: 16px; padding: 14px; border: 1px solid rgba(255, 209, 102, 0.28); border-radius: 14px; background: rgba(255, 209, 102, 0.05); }
.member-admin-head { font-weight: 800; font-size: 0.86rem; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.member-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.member-status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  min-width: 0;
}
.member-status-chip .mstat-ico { font-size: 16px; line-height: 1; flex: 0 0 auto; }
.member-status-chip .mstat-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.member-status-chip .mstat-copy b { font-size: 11px; font-weight: 800; letter-spacing: 0.02em; color: var(--soft); text-transform: uppercase; }
.member-status-chip .mstat-copy em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-status-chip.ok { border-color: rgba(122, 222, 173, 0.42); background: rgba(80, 200, 140, 0.1); }
.member-status-chip.ok .mstat-copy em { color: #9af0c4; }
.member-status-chip.warn { border-color: rgba(255, 209, 102, 0.4); background: rgba(255, 209, 102, 0.08); }
.member-status-chip.warn .mstat-copy em { color: #ffd166; }
.member-status-chip.off { border-color: rgba(255, 255, 255, 0.12); }
.member-status-chip.off .mstat-copy em { color: var(--soft); }
@media (max-width: 480px) {
  .member-status-grid { grid-template-columns: 1fr; }
}
.member-admin-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.member-admin-fields .admin-inline-field { flex: 1 1 150px; }
.member-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.member-admin-actions .mini { flex: 0 0 auto; }
.member-admin .status { margin: 8px 0 0; }
.member-movement { margin-top: 16px; }
.member-movement-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.member-movement-head h4 { margin: 0; font-size: 0.92rem; display: flex; align-items: center; gap: 6px; }
.member-movement-run { font-size: 0.82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.member-movement-host { margin-top: 4px; }

/* Shared interactive movement chart (bracket page + member drawer): Rank/Points switcher,
   hover crosshair, and a tooltip carrying both metrics + the game-to-game swing. */
.mv-chart { --mv-accent: var(--gold); --mv-accent-soft: rgba(245, 196, 81, 0.18); }
.mv-chart[data-mode="points"] { --mv-accent: var(--blue); --mv-accent-soft: rgba(76, 201, 240, 0.18); }
.mv-switch {
  display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
}
.mv-tab {
  appearance: none; border: 0; cursor: pointer; padding: 5px 14px; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.02em; transition: background 0.15s ease, color 0.15s ease;
}
.mv-tab:hover { color: var(--soft); }
.mv-tab.active { background: var(--mv-accent); color: #14110a; }
.mv-grid-wrap {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: minmax(158px, 1fr) 18px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px 4px; box-sizing: border-box;
}
.mv-yaxis { grid-row: 1; grid-column: 1; position: relative; }
.mv-ytick {
  position: absolute; right: 6px; transform: translateY(-50%); white-space: nowrap;
  font-size: 0.66rem; font-weight: 700; color: var(--muted);
}
.mv-plot { grid-row: 1; grid-column: 2; position: relative; min-height: 158px; touch-action: pan-y; }
.mv-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mv-grid-line { stroke: rgba(255, 255, 255, 0.09); stroke-width: 1; }
.mv-line {
  fill: none; stroke: var(--mv-accent); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 4px var(--mv-accent-soft));
}
.mv-area { fill: var(--mv-accent-soft); opacity: 0.5; stroke: none; }
.mv-dots { position: absolute; inset: 0; pointer-events: none; }
.mv-dot {
  position: absolute; width: 9px; height: 9px; transform: translate(-50%, -50%); border-radius: 999px;
  background: var(--mv-accent); border: 2px solid #0b1020; box-shadow: 0 0 0 1px var(--mv-accent-soft);
  transition: width 0.12s ease, height 0.12s ease;
}
.mv-dot.active { width: 15px; height: 15px; box-shadow: 0 0 0 4px var(--mv-accent-soft); }
.mv-cursor {
  position: absolute; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--mv-accent), transparent); pointer-events: none;
}
.mv-tip {
  position: absolute; top: 4px; z-index: 5; min-width: 116px; pointer-events: none;
  display: grid; gap: 3px; padding: 7px 9px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(8, 12, 18, 0.94); backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.mv-tip strong { font-size: 0.74rem; color: var(--text); }
.mv-tip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.72rem; color: var(--soft); font-weight: 700; }
.mv-tip-row b { color: var(--muted); font-weight: 700; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; }
.mv-tip em { font-style: normal; font-weight: 800; }
.mv-tip em.up { color: var(--green); }
.mv-tip em.down { color: var(--red, #ef476f); }
.mv-corner { grid-row: 2; grid-column: 1; }
.mv-xaxis { grid-row: 2; grid-column: 2; position: relative; }
.mv-xtick {
  position: absolute; top: 3px; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.62rem; font-weight: 700; color: var(--muted);
}

/* Per-game progress block on the bracket page */
.personal-progress { margin: 14px 0 4px; min-width: 0; max-width: 100%; }
.personal-progress-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.personal-progress-head h5 { margin: 0; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.personal-progress-run { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pp-chart-host { margin: 0; min-width: 0; max-width: 100%; overflow: hidden; }
.personal-progress-steps {
  display: flex; flex-wrap: nowrap; gap: 7px; margin-top: 10px;
  min-width: 0; max-width: 100%;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(255, 209, 102, 0.4) transparent;
}
.personal-progress-steps:focus-visible { outline: 2px solid rgba(255, 209, 102, 0.5); outline-offset: 3px; border-radius: 10px; }
.personal-progress-steps::-webkit-scrollbar { height: 6px; }
.personal-progress-steps::-webkit-scrollbar-thumb { background: rgba(255, 209, 102, 0.35); border-radius: 999px; }
.pp-count { font-size: 0.62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.pp-step {
  display: flex; flex-direction: column; gap: 3px;
  flex: 0 0 auto; scroll-snap-align: start;
  padding: 6px 9px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.pp-step.up { border-color: rgba(34, 197, 94, 0.4); }
.pp-step.down { border-color: rgba(239, 71, 111, 0.4); }
.pp-step-label { font-size: 0.66rem; color: var(--muted); font-weight: 700; }
.pp-step-meta { display: inline-flex; align-items: center; gap: 6px; }
.pp-step-rank { font-weight: 800; font-size: 0.84rem; color: var(--text); }
.pp-step-pts { font-size: 0.74rem; color: var(--soft); font-weight: 700; }
.pp-step-pts small { font-weight: 600; font-size: 0.6rem; color: var(--muted); margin-left: 1px; }
.pp-step-pts em { font-style: normal; color: var(--green); font-weight: 800; }
@media (max-width: 560px) {
  .mv-grid-wrap { grid-template-rows: minmax(138px, 1fr) 18px; }
  .mv-plot { min-height: 138px; }
  .mv-tip { min-width: 104px; }
}

.hist-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; font-size: 0.78rem; color: var(--muted); }
.hist-legend-me { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.hist-legend-me::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--gold); }
.hist-legend-faint { display: inline-flex; align-items: center; gap: 6px; }
.hist-legend-faint::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.hist-legend-note { font-style: italic; }

.hist-delta { font-weight: 700; font-size: 0.82rem; }
.hist-delta.up { color: #4ade80; }
.hist-delta.down { color: #f87171; }
.hist-delta.flat { color: var(--muted); }

.standings-history-movers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.hist-mover-col h4 { margin: 0 0 8px; font-size: 0.92rem; display: flex; align-items: center; gap: 6px; }
.hist-mover {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: var(--text); cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hist-mover:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.hist-mover-avatar { width: 32px; height: 32px; flex: 0 0 auto; }
.hist-mover-who { display: grid; gap: 1px; flex: 1; min-width: 0; }
.hist-mover-who strong { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-mover-who span { color: var(--muted); font-size: 0.78rem; }
.hist-mover-empty { color: var(--muted); font-size: 0.84rem; margin: 0; }

@media (max-width: 640px) {
  .standings-history-movers { grid-template-columns: 1fr; }
  .standings-history-meta { justify-items: start; text-align: left; }
}

.standings-board-list { display: grid; gap: 8px; }
.standings-row {
  display: grid;
  grid-template-columns: 34px 40px minmax(0, 1.2fr) minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(13, 25, 22, 0.7);
  animation: kk-slide-in 0.34s ease both;
  animation-delay: var(--row-delay, 0ms);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.standings-row:hover { transform: translateX(3px); border-color: rgba(255, 209, 102, 0.4); }
.standings-row.me { border-color: rgba(255, 209, 102, 0.65); background: linear-gradient(120deg, rgba(255, 209, 102, 0.1), rgba(13, 25, 22, 0.7)); }
.standings-row.empty { grid-template-columns: 1fr; color: var(--muted); }
.standings-rank {
  font-size: 1.05rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}
.standings-rank.leader { color: var(--gold); }
.standings-rank.tied { color: var(--soft); }
.standings-rank .tie-mark {
  display: block;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
  opacity: 0.85;
  line-height: 1;
}
.tie-chip {
  font-style: normal;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--soft);
  white-space: nowrap;
}
.pool-member-tie {
  font-weight: 700;
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--soft);
  white-space: nowrap;
}
.hist-race-col.tied .hist-race-col-rank { color: var(--soft); }
.standings-avatar { width: 38px; height: 38px; }
.standings-who { display: grid; gap: 2px; min-width: 0; }
.standings-who strong { display: flex; align-items: center; gap: 8px; min-width: 0; }
.standings-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings-who strong > :not(.standings-name) { flex: 0 0 auto; }
.standings-who span { color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standings-who .standings-realname { color: var(--soft); font-size: 0.72rem; opacity: 0.72; font-weight: 600; }
.you-chip {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: #071009;
  border-radius: 999px;
  padding: 2px 8px;
}
.commish-badge {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
  color: #07120c;
  background: linear-gradient(135deg, #ffe39a, #f3b53f);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 7px;
  vertical-align: middle;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(243, 181, 63, 0.35);
}
.admin-row small .commish-badge,
.admin-person span .commish-badge { margin-left: 6px; }

.rank-badge {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 7px;
  vertical-align: middle;
  white-space: nowrap;
  color: #1a1205;
}
.rank-badge.rank-gold { background: linear-gradient(135deg, #ffe7a0, #f5c43c); box-shadow: 0 1px 7px rgba(245, 196, 60, 0.45); }
.rank-badge.rank-silver { background: linear-gradient(135deg, #eef2f6, #c2cad4); box-shadow: 0 1px 7px rgba(194, 202, 212, 0.4); color: #20262e; }
.rank-badge.rank-bronze { background: linear-gradient(135deg, #f0c08a, #c8823f); box-shadow: 0 1px 7px rgba(200, 130, 63, 0.4); color: #2a1606; }
.admin-row small .rank-badge,
.admin-person span .rank-badge { margin-left: 6px; }

.participant-row .admin-person { display: flex; align-items: center; gap: 9px; }

.kk-toast-host {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 440px);
}
.kk-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(20, 34, 30, 0.98), rgba(6, 20, 16, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.kk-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.kk-toast-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  color: #07120c;
  background: var(--soft);
}
.kk-toast.ok { border-color: rgba(34, 197, 94, 0.5); }
.kk-toast.ok .kk-toast-icon { background: var(--green); }
.kk-toast.error { border-color: rgba(248, 113, 113, 0.55); }
.kk-toast.error .kk-toast-icon { background: #f87171; color: #2a0808; }
.kk-toast-msg { flex: 1 1 auto; line-height: 1.35; }
.standings-track { display: grid; gap: 5px; }
.standings-track span { color: var(--muted); font-size: 0.76rem; }
.standings-points { text-align: right; font-size: 1.05rem; }
.standings-points.up { color: var(--green); }
.standings-points.down { color: var(--red); }

.standings-you { display: grid; gap: 12px; }
.you-rank {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  background: linear-gradient(120deg, rgba(255, 209, 102, 0.14), transparent);
}
.you-rank strong { font-size: 1.7rem; color: var(--gold); }
.you-rank span { color: var(--muted); font-size: 0.84rem; }
.standings-you-empty { display: grid; gap: 6px; color: var(--muted); font-size: 0.88rem; }
.standings-you-empty strong { color: var(--text); }

.standings-distribution { display: grid; gap: 9px; }
.distribution-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(60px, 1fr) 28px;
  gap: 10px;
  align-items: center;
  animation: kk-slide-in 0.34s ease both;
  animation-delay: var(--row-delay, 0ms);
}
.distribution-team { font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.distribution-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(227, 235, 227, 0.12);
  overflow: hidden;
}
.distribution-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #f4a261);
  animation: kk-grow 0.9s ease both;
}
.distribution-row strong { text-align: right; }

.chat-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
}

/* Clubhouse pulse strip */
.chat-pulse {
  margin: 0 0 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.07), rgba(1, 9, 7, 0.4));
  display: grid;
  gap: 11px;
}
.pulse-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pulse-presence, .pulse-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pulse-chip, .pulse-stat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 800;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(1, 9, 7, 0.5); border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.pulse-chip .presence-dot { position: static; animation: none; box-shadow: none; width: 9px; height: 9px; border-width: 0; }
.pulse-stat span[aria-hidden] { font-size: 0.95em; }
.pulse-chart {
  display: grid; gap: 6px;
  padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pulse-chart-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.66rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(210, 236, 221, 0.62); margin-bottom: 2px;
}
.pulse-bar-row { display: grid; grid-template-columns: minmax(64px, 30%) 1fr auto; align-items: center; gap: 9px; }
.pulse-bar-name { font-size: 0.78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.pulse-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #fff0a3); transition: width 0.4s ease; }
.pulse-bar-count { font-size: 0.74rem; font-weight: 900; color: var(--gold); min-width: 16px; text-align: right; }
@media (max-width: 560px) {
  .pulse-top { gap: 8px; }
  .pulse-chip, .pulse-stat { font-size: 0.68rem; padding: 3px 9px; }
}
.chat-feed {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: min(58vh, 640px);
  min-height: 280px;
  overflow-y: auto;
  padding: 6px 4px;
  scroll-behavior: smooth;
}
.chat-empty { color: var(--muted); padding: 22px 8px; text-align: center; }
.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  animation: kk-slide-in 0.28s ease both;
}
.chat-message.mine { flex-direction: row-reverse; }
.chat-avatar { width: 34px; height: 34px; flex: 0 0 auto; }
.chat-bubble {
  max-width: min(560px, 82%);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  background: rgba(13, 25, 22, 0.85);
  padding: 8px 12px;
}
.chat-message.mine .chat-bubble {
  border-radius: 12px 12px 4px 12px;
  border-color: rgba(255, 209, 102, 0.4);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(13, 25, 22, 0.85));
}
.chat-bubble header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.chat-bubble header strong { font-size: 0.8rem; color: var(--gold); }
.chat-message.mine .chat-bubble header strong { color: var(--soft); }
.chat-bubble header time { color: var(--muted); font-size: 0.7rem; }
.chat-bubble p { margin: 0; font-size: 0.94rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-delete {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 2px;
  opacity: 0;
  transition: opacity 0.18s ease, color 0.18s ease;
}
.chat-message:hover .chat-delete { opacity: 1; }
.chat-delete:hover { color: var(--red); }
.chat-composer { display: flex; gap: 10px; }
.chat-composer input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 19, 15, 0.85);
  color: var(--text);
  padding: 11px 14px;
}
.chat-composer input:focus { outline: none; border-color: rgba(255, 209, 102, 0.6); }

.chat-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chat-tool {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(5, 19, 15, 0.85);
  color: var(--text);
  min-width: 40px;
  height: 40px;
  padding: 0 9px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.chat-tool:hover {
  border-color: rgba(255, 209, 102, 0.6);
  transform: translateY(-1px);
}

.chat-popover {
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 14px;
  background: rgba(3, 14, 11, 0.97);
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 10px;
  animation: kk-pop-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.chat-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-popover-head strong {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.chat-popover-close {
  border: none;
  background: none;
  color: var(--soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Clubhouse mode switch: Pool chat vs Direct messages */
.chat-modes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: rgba(1, 9, 7, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-mode {
  position: relative;
  border: none;
  background: none;
  color: var(--soft);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.chat-mode.active { background: linear-gradient(135deg, var(--gold), #fff0a3); color: #1a1205; }
.chat-mode-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; margin-left: 6px; padding: 0 4px;
  border-radius: 999px; background: #ef476f; color: #fff;
  font-size: 0.62rem; font-weight: 900;
}

/* Direct messages */
.dm-shell { display: grid; gap: 12px; }
.dm-threads-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dm-threads-head strong { font-size: 0.95rem; }
.dm-threads { display: grid; gap: 6px; max-height: min(58vh, 640px); min-height: 200px; overflow-y: auto; padding: 2px; }
.dm-thread-row {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(1, 9, 7, 0.4);
  color: var(--text); cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.dm-thread-row:hover { background: rgba(255, 209, 102, 0.08); border-color: rgba(255, 209, 102, 0.24); }
.dm-thread-row.has-unread { border-color: rgba(47, 226, 138, 0.4); }
.dm-thread-avatar { position: relative; width: 40px; height: 40px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: visible; background: rgba(255, 255, 255, 0.06); font-weight: 800; }
.dm-thread-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dm-thread-meta { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.dm-thread-row-name { font-weight: 800; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-thread-row-sub { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-thread-row.has-unread .dm-thread-row-sub { color: var(--text); font-weight: 700; }
.dm-thread-time { font-size: 0.7rem; color: var(--muted); flex: 0 0 auto; }
.dm-thread-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #2fe28a; color: #07140d; font-size: 0.66rem; font-weight: 900; flex: 0 0 auto; }
.dm-thread-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.dm-back { border: none; background: rgba(255, 255, 255, 0.06); color: var(--text); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.dm-back:hover { background: rgba(255, 209, 102, 0.16); }
.dm-thread-who { display: grid; gap: 1px; min-width: 0; }
.dm-thread-who #dm-thread-name { font-weight: 800; font-size: 0.95rem; }
.dm-thread-presence { font-size: 0.72rem; color: var(--muted); }
.dm-feed { min-height: 240px; }
.dm-picker { left: 12px; right: 12px; }
.dm-picker-list { display: grid; gap: 4px; max-height: 240px; overflow-y: auto; margin-top: 8px; }
.dm-picker-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: none; border-radius: 10px; background: none; color: var(--text); cursor: pointer; }
.dm-picker-row:hover { background: rgba(255, 209, 102, 0.12); }
.dm-picker-avatar { width: 30px; height: 30px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, 0.07); font-size: 0.78rem; font-weight: 800; }
.dm-picker-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-picker-name { font-weight: 700; font-size: 0.88rem; flex: 1 1 auto; min-width: 0; }
.member-dm-btn { white-space: nowrap; }

/* Group chat */
.dm-thread-avatar.group-avatar { background: rgba(255, 209, 102, 0.14); font-size: 1.05rem; }
.group-count { font-size: 0.68rem; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 1px 6px; vertical-align: middle; }
.group-leave { margin-left: auto; flex: 0 0 auto; border: 1px solid rgba(255, 154, 166, 0.4); background: rgba(255, 154, 166, 0.08); color: #ffb8c1; font-size: 0.74rem; font-weight: 800; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.group-leave:hover { background: rgba(255, 154, 166, 0.16); }
.group-pick-row.is-selected { background: rgba(47, 226, 138, 0.12); }
.group-pick-check { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-weight: 900; font-size: 0.8rem; }
.group-pick-row.is-selected .group-pick-check { background: #2fe28a; color: #07140d; }
#group-create { display: flex; flex-direction: column; gap: 8px; }
#group-name-input, #group-member-search { width: 100%; }

.chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.chat-emoji-grid button {
  border: none;
  background: none;
  font-size: 22px;
  padding: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.chat-emoji-grid button:hover {
  background: rgba(255, 209, 102, 0.16);
  transform: scale(1.18);
}

#chat-gif-search {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(5, 19, 15, 0.85);
  color: var(--text);
  padding: 10px 12px;
}

#chat-gif-search:focus { outline: none; border-color: rgba(255, 209, 102, 0.6); }

.chat-gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.chat-gif-grid button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(5, 19, 15, 0.6);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.chat-gif-grid button:hover {
  border-color: rgba(255, 209, 102, 0.65);
  transform: translateY(-2px);
}

.chat-gif-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-mention-list {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.chat-mention-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chat-mention-list button:hover,
.chat-mention-list button:focus-visible {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.4);
}

.chat-mention-list strong { font-size: 14px; }
.chat-mention-list span {
  color: var(--soft);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-mention {
  color: var(--gold);
  font-weight: 800;
  background: rgba(255, 209, 102, 0.14);
  border-radius: 6px;
  padding: 1px 4px;
}

.chat-mention.me {
  background: rgba(76, 201, 240, 0.2);
  color: #aee6ff;
}

.chat-message.mentions-me .chat-bubble {
  border-color: rgba(76, 201, 240, 0.55);
  box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.25), 0 8px 26px rgba(0, 0, 0, 0.35);
}

.chat-bubble .chat-media {
  display: block;
  max-width: min(320px, 100%);
  max-height: 280px;
  width: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin: 4px 0 2px;
  cursor: zoom-in;
  object-fit: cover;
  animation: kk-fade-up 0.3s ease both;
}

.chat-bubble .chat-media.expanded {
  max-width: 100%;
  max-height: none;
  cursor: zoom-out;
  object-fit: contain;
}

@media (max-width: 680px) {
  .chat-composer { flex-wrap: wrap; }
  .chat-tools { order: 2; }
  .chat-composer input#chat-input { order: 1; flex: 1 1 100%; }
  .chat-composer #chat-send { order: 3; flex: 1; }
  .chat-bubble .chat-media { max-width: 100%; max-height: 240px; }

  /* Clubhouse: shrink the header chrome so the message feed is the focus. */
  #chat .section-head { gap: 4px; margin-bottom: 10px; }
  #chat .section-head .eyebrow { font-size: 10px; }
  #chat .section-head h2 { font-size: 21px; margin-top: 2px; line-height: 1.1; }
  #chat .section-head > p:last-child { font-size: 12px; line-height: 1.4; }
  .chat-pulse { margin-bottom: 8px; padding: 9px 11px; gap: 8px; }
  .chat-modes { margin-bottom: 8px; padding: 3px; }
  .chat-mode { padding: 6px 12px; font-size: 0.76rem; }
  .chat-mode-badge { min-width: 15px; height: 15px; font-size: 0.58rem; }
  /* Reclaim the freed space for the conversation itself. */
  .chat-feed { max-height: min(66vh, 680px); min-height: 320px; gap: 8px; }
  .chat-bubble { max-width: min(560px, 86%); }
  .dm-threads, .dm-thread-view .chat-feed { max-height: min(60vh, 640px); }
}

.detail-flagwall {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.detail-flagwall img,
.detail-flagwall span {
  position: absolute;
  top: 0;
  height: 100%;
  width: 52%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(1.05);
}

.detail-flagwall span {
  display: grid;
  place-items: center;
  font-size: clamp(6rem, 14vw, 11rem);
  opacity: 0.14;
}

.detail-flagwall .home {
  left: 0;
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.95) 0 42%, transparent 88%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.95) 0 42%, transparent 88%);
}

.detail-flagwall .away {
  right: 0;
  -webkit-mask-image: linear-gradient(-100deg, rgba(0, 0, 0, 0.95) 0 42%, transparent 88%);
  mask-image: linear-gradient(-100deg, rgba(0, 0, 0, 0.95) 0 42%, transparent 88%);
}

.detail-flagwall > i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 12, 9, 0.32) 0%, rgba(2, 12, 9, 0.72) 78%, rgba(2, 12, 9, 0.85) 100%);
}

.team-badge img.flag-img {
  width: 46px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.38);
}

.team-badge.large img.flag-img {
  width: 74px;
  height: 50px;
  border-radius: 9px;
}
.detail-hero > *:not(.detail-flagwall) { position: relative; z-index: 1; }

.detail-prob { display: grid; gap: 6px; align-self: center; }
.detail-prob-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.82rem;
}
.detail-prob-labels em { color: var(--muted); font-style: normal; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-prob-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(76, 201, 240, 0.35), rgba(76, 201, 240, 0.55));
  overflow: hidden;
}
.detail-prob-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f4a261);
  border-radius: 999px 0 0 999px;
  animation: kk-grow 0.9s ease both;
  transition: width 0.5s ease;
}

@media (max-width: 920px) {
  .standings-grid { grid-template-columns: 1fr; }
  .standings-row { grid-template-columns: 26px 36px minmax(0, 1fr) 56px; }
  .standings-track { display: none; }
  .detail-flagwall { font-size: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tab-panel.active,
  .modal-panel,
  .standings-row,
  .distribution-row,
  .chat-message,
  .standings-banner { animation: none; }
  .tiny-meter i,
  .distribution-bar i,
  .detail-prob-bar i { animation: none; }
  .game-card { transition: none; }
}

/* ===== v59: commissioner tab mobile optimization — compact cards, max 2 columns ===== */
@media (min-width: 681px) and (max-width: 1120px) {
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-summary div { padding: 10px 12px; }
  .admin-summary span { font-size: 10px; letter-spacing: 0.06em; }
  .admin-summary strong { font-size: 19px; margin-top: 4px; }

  .admin-health { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-health article { padding: 12px; gap: 8px; }
  .admin-health h3 { font-size: 16px; margin: 2px 0 4px; }
  .admin-health span { font-size: 11.5px; line-height: 1.35; }

  .admin-command-grid { gap: 8px; }
  .admin-command-card { padding: 12px; }
  .admin-ops-hero { padding: 14px; overflow: hidden; }
  .admin-ops-hero strong { font-size: 18px; }
  .admin-ops-sync { display: flex; flex-wrap: wrap; max-width: 100%; box-sizing: border-box; white-space: normal; padding: 5px 10px; }
  .admin-ops-sync strong { font-size: 12px; word-break: break-word; }
  .admin-ops-actions { gap: 6px; width: 100%; }
  .admin-ops-actions .mini { flex: 1 1 calc(50% - 6px); min-width: 0; max-width: 100%; padding: 0 8px; font-size: 11.5px; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-ops-actions .mini[href] { box-sizing: border-box; }

  .admin-panel { padding: 14px; gap: 10px; }
  .admin-grid { gap: 10px; }

  .admin-table { overflow-x: hidden; }
  .admin-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    padding: 12px;
    gap: 8px 10px;
  }
  .admin-row > :first-child { grid-column: 1 / -1; }
  .participant-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-person { grid-column: 1 / -1; }
  .admin-row-actions { grid-column: 1 / -1; gap: 7px; }
  .admin-row-actions .mini { flex: 1 1 calc(50% - 7px); text-align: center; }
  .participants-grid { grid-template-columns: 1fr; }
  .participant-fields { grid-template-columns: 1fr 1fr; }
  .participant-card .admin-row-actions .mini { flex: 1 1 calc(50% - 7px); text-align: center; }
}

/* v66 — sportsbook implied prob, form strips, key players, portal deep dive */
.sportsbook-note { margin: 10px 2px 0; font-size: 0.74rem; color: var(--muted); opacity: 0.8; }
.market-implied strong { color: var(--gold); }

.prematch-form { margin-top: 12px; display: grid; gap: 8px; }
.prematch-form-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.form-strip { display: grid; gap: 8px; }
.form-row { display: flex; align-items: center; gap: 10px; }
.form-team { min-width: 48px; font-weight: 700; font-size: 0.82rem; color: var(--text, #eef5ef); }
.form-dots { display: flex; gap: 6px; }
.form-dot {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800; font-style: normal;
  color: #06120c; background: rgba(200, 211, 201, 0.25);
}
.form-dot.win { background: #2fbf71; color: #04130b; }
.form-dot.loss { background: #e5484d; color: #fff; }
.form-dot.draw { background: #ffd166; color: #2a1d00; }
.form-dot.neutral { background: rgba(200, 211, 201, 0.22); color: var(--muted); }

.prematch-deep .deep-block { margin-top: 16px; }
.prematch-deep .deep-block h4 {
  margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.keyplayers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.keyplayer-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: rgba(8, 22, 17, 0.5); }
.keyplayer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.keyplayer-head img { width: 26px; height: 26px; object-fit: contain; }
.keyplayer-head strong { font-size: 0.92rem; }
.keyplayer-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keyplayer-card li { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.keyplayer-card li img, .keyplayer-dot { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
.keyplayer-dot { display: grid; place-items: center; background: var(--gold); color: #06120c; font-weight: 800; }
.keyplayer-name { font-size: 0.84rem; font-weight: 600; }
.keyplayer-card li em { grid-column: 2; font-style: normal; font-size: 0.74rem; color: var(--muted); }

.standings-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.standings-mini article { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(8, 22, 17, 0.5); }
.standings-mini article > span { display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 8px; }
.standings-mini table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.standings-mini td { padding: 4px 2px; border-bottom: 1px solid rgba(210, 236, 221, 0.08); }
.standings-mini td.rank { color: var(--muted); width: 18px; }
.standings-mini td.team { font-weight: 600; }
.standings-mini td.pts { text-align: right; font-weight: 800; color: var(--gold); }

@media (max-width: 640px) {
  .keyplayers-grid, .standings-mini { grid-template-columns: 1fr; }
  .form-team { min-width: 40px; }
}

/* v87 — pool directory, member drawer, side bets */
.pool-toolbar { display: flex; gap: 8px; margin: 0 0 14px; }
.pool-toolbar button { flex: 0 0 auto; min-width: 110px; }
.pool-toolbar button.active { color: #071009; background: linear-gradient(135deg, var(--gold), #fff0a3); border-color: transparent; }
.pool-empty { padding: 22px 6px; text-align: center; color: var(--muted); font-size: 0.86rem; }
.pool-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.pool-panel-head h3 { margin: 0; }

.pool-controls { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; flex-wrap: wrap; }
.pool-search { position: relative; flex: 1 1 220px; display: flex; align-items: center; }
.pool-search-icon { position: absolute; left: 12px; font-size: 0.85rem; opacity: 0.6; pointer-events: none; }
.pool-search input {
  width: 100%; padding: 10px 12px 10px 34px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(8, 22, 17, 0.5); color: var(--text);
  font-size: 0.9rem;
}
.pool-search input:focus { outline: none; border-color: var(--gold); }
.pool-sort { display: flex; gap: 6px; flex: 0 0 auto; }
.pool-sort button { min-width: 64px; }
.pool-sort button.active { color: #071009; background: linear-gradient(135deg, var(--gold), #fff0a3); border-color: transparent; }
.pool-directory { display: grid; gap: 10px; }
.pool-member-row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: rgba(8, 22, 17, 0.5); cursor: pointer; text-align: left; width: 100%;
  color: inherit; font: inherit; transition: border-color 0.15s, transform 0.1s;
}
.pool-member-row:hover { border-color: var(--gold); transform: translateY(-1px); }
.pool-member-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--gold); color: #06120c; font-weight: 800; font-size: 0.92rem; overflow: hidden; }
.pool-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pool-member-avatar-wrap { position: relative; width: 40px; height: 40px; }
.standings-avatar-wrap { position: relative; display: inline-grid; place-items: center; }

/* Online presence indicators */
.presence-dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #2fe28a; border: 2px solid #0b1a14;
  box-shadow: 0 0 0 0 rgba(47, 226, 138, 0.55);
  animation: kk-presence-pulse 2.2s ease-out infinite;
}
.standings-avatar-wrap .presence-dot { right: 0; bottom: 0; }
/* Tiered presence: online pulses green, recent is steady gold, away is dim grey. */
.presence-dot.presence-recent { background: #ffd166; box-shadow: none; animation: none; }
.presence-dot.presence-away { background: #8a9b93; box-shadow: none; animation: none; }
@keyframes kk-presence-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 226, 138, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(47, 226, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 226, 138, 0); }
}
/* Small text presence labels in member lists */
.presence-tag {
  display: inline-flex; align-items: center;
  font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 7px; border-radius: 999px; margin-left: 2px; line-height: 1.4;
}
.presence-tag.presence-online { color: #2fe28a; background: rgba(47, 226, 138, 0.14); }
.presence-tag.presence-recent { color: #ffd166; background: rgba(255, 209, 102, 0.14); }
.presence-tag.presence-away { color: #9bb1a8; background: rgba(155, 177, 168, 0.14); }
/* Standings rank-movement arrows */
.rank-move { display: block; font-size: 0.58rem; font-weight: 800; line-height: 1.1; margin-top: 1px; }
.rank-move.up { color: #2fe28a; }
.rank-move.down { color: #ef476f; }
.rank-move.flat { color: rgba(210, 236, 221, 0.32); }
.presence-count {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.76rem; font-weight: 700; color: #2fe28a;
  background: rgba(47, 226, 138, 0.1); border: 1px solid rgba(47, 226, 138, 0.3);
  border-radius: 999px; padding: 4px 11px; margin-left: auto; flex: 0 0 auto;
}
.presence-count .presence-dot { position: static; animation: none; box-shadow: none; width: 8px; height: 8px; border-width: 0; }
@media (prefers-reduced-motion: reduce) { .presence-dot { animation: none; } }
.pool-member-meta { min-width: 0; }
.pool-member-name { font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pool-member-name .you-badge { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #06120c; background: var(--gold); border-radius: 999px; padding: 1px 7px; font-weight: 800; }
.pool-member-sub { font-size: 0.74rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-member-score { text-align: right; }
.pool-member-score strong { display: block; font-size: 1.02rem; font-weight: 800; color: var(--gold); }
.pool-member-score span { font-size: 0.68rem; color: var(--muted); }
.pool-member-rank { font-size: 0.72rem; color: var(--muted); }

.member-drawer { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; padding: 18px; }
.member-drawer[hidden] { display: none; }
.member-drawer-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 6, 0.72); backdrop-filter: blur(3px); }
.member-drawer-card { position: relative; z-index: 1; width: min(720px, 100%); min-width: 0; max-width: 100%; max-height: min(88vh, 88dvh); overflow-y: auto; overflow-x: hidden; padding: 26px 26px 22px; -webkit-overflow-scrolling: touch; }
.member-drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; min-height: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted);
  font-size: 1.25rem; line-height: 1; font-weight: 400;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.member-drawer-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); border-color: rgba(210, 236, 221, 0.32); }
.member-drawer-body { display: grid; gap: 16px; min-width: 0; }
.member-drawer-body > * { min-width: 0; }
.member-head { display: flex; align-items: center; gap: 14px; padding: 0 38px 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.member-head > div { min-width: 0; }
.member-head h3 { word-break: break-word; }
.member-head .pool-member-avatar { width: 54px; height: 54px; font-size: 1.2rem; }
.member-head h3 { margin: 0; font-size: 1.16rem; }
.member-head .member-realname { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.member-hero-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; min-width: 0; }
.member-hero-row .member-stat-grid { flex: 1 1 240px; min-width: 0; }
.member-hero-row .member-bet-cta { flex: 1 1 100%; align-self: center; }
.member-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.member-stat { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; background: rgba(8, 22, 17, 0.5); }
.member-stat strong { display: block; font-size: 1.1rem; color: var(--gold); }
.member-stat span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.member-block h4 { margin: 0 0 8px; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.member-picks { display: grid; gap: 6px; }
.member-pick-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; padding: 5px 0; border-bottom: 1px solid rgba(210, 236, 221, 0.08); }
.member-pick-row .label { color: var(--muted); min-width: 92px; }
.member-pick-row .value { font-weight: 600; }
.member-locked { font-size: 0.8rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.member-bet-cta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.member-bet-cta > button { flex: 1 1 140px; min-height: 44px; height: auto; }

/* ---- Member point provenance ---- */
.member-breakdown .breakdown-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; font-size: 0.82rem; color: var(--muted); }
.member-breakdown .breakdown-summary strong { color: var(--gold); font-size: 1rem; }
.member-breakdown-note { margin: 0 0 12px; font-size: 0.74rem; color: var(--muted); line-height: 1.4; }
.breakdown-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.breakdown-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(8, 22, 17, 0.5); display: grid; gap: 6px; }
.breakdown-card.partial { border-style: dashed; }
.breakdown-card.clickable { cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.breakdown-card.clickable:hover, .breakdown-card.clickable:focus-visible { border-color: rgba(255, 209, 102, 0.55); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28); outline: none; }
.breakdown-card-cue { margin-top: 4px; font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; opacity: 0.75; }
.breakdown-card.clickable:hover .breakdown-card-cue, .breakdown-card.clickable:focus-visible .breakdown-card-cue { color: var(--gold); opacity: 1; }
.breakdown-card-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin-bottom: 2px; }
.breakdown-card-head h5 { margin: 0; font-size: 0.86rem; }
.breakdown-status { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 999px; }
.breakdown-status.done { background: rgba(82, 196, 134, 0.16); color: #7ddaa3; }
.breakdown-status.live { background: rgba(255, 209, 102, 0.16); color: var(--gold); }
.breakdown-card-pts { font-size: 1rem; font-weight: 700; color: var(--gold); }
.breakdown-card-pts small { font-size: 0.66rem; color: var(--muted); font-weight: 500; }
.breakdown-tally { margin: 0 0 10px; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.breakdown-summary span:last-child strong { color: #9db8ff; }
.breakdown-meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 1px 0 4px; }
.breakdown-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #52c486, #7ddaa3); }
.breakdown-card.partial .breakdown-meter i { background: linear-gradient(90deg, #f0c040, #ffd166); }
.breakdown-foot { margin-top: 4px; font-size: 0.7rem; font-weight: 600; color: var(--gold); }
.breakdown-foot.done { color: #7ddaa3; }
.breakdown-row { display: grid; grid-template-columns: 18px 1fr auto; grid-template-areas: "mark team actual" "mark pred pts"; column-gap: 8px; align-items: center; font-size: 0.8rem; padding: 4px 0; border-top: 1px solid rgba(210, 236, 221, 0.07); }
.breakdown-row .breakdown-mark { grid-area: mark; font-weight: 700; }
.breakdown-row.hit .breakdown-mark { color: #7ddaa3; }
.breakdown-row.miss .breakdown-mark { color: #e07b7b; }
.breakdown-row .breakdown-team { grid-area: team; font-weight: 600; }
.breakdown-row .breakdown-actual { grid-area: actual; color: var(--muted); font-size: 0.72rem; text-align: right; }
.breakdown-row .breakdown-pred { grid-area: pred; color: var(--muted); font-size: 0.72rem; }
.breakdown-row .breakdown-pts { grid-area: pts; font-weight: 700; text-align: right; }
.breakdown-row.hit .breakdown-pts { color: #7ddaa3; }
.breakdown-row.miss .breakdown-pts { color: var(--muted); }
.standings-row.clickable { cursor: pointer; }
.standings-row.clickable:focus-visible { outline: 2px solid rgba(255, 209, 102, 0.6); outline-offset: 2px; }

/* ---- Outcome Lab (interactive what-if) ---- */
.whatif-lab {
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 139, 250, 0.16), transparent 16rem),
    linear-gradient(160deg, rgba(76, 201, 240, 0.06), rgba(8, 22, 17, 0.6));
}
.whatif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.whatif-head h4 { margin: 0; font-size: 0.9rem; }
.whatif-reset { width: auto; min-height: 30px; padding: 0 12px; font-size: 0.74rem; }
.whatif-intro { margin: 6px 0 0; font-size: 0.76rem; line-height: 1.5; color: var(--muted); }
.whatif-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 12px 0; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(2, 10, 8, 0.5);
  font-size: 0.82rem; color: var(--soft);
}
.whatif-summary .whatif-total { color: var(--gold); font-size: 1.05rem; font-weight: 800; }
.whatif-delta { padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 0.74rem; white-space: nowrap; }
.whatif-delta.up { color: #7ddaa3; background: rgba(82, 196, 134, 0.16); }
.whatif-delta.down { color: #e8a06a; background: rgba(232, 160, 106, 0.16); }
.whatif-delta.flat { color: var(--muted); background: rgba(210, 236, 221, 0.08); }
.whatif-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.whatif-group { border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: rgba(8, 22, 17, 0.55); }
.whatif-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.whatif-group-head h5 { margin: 0; font-size: 0.82rem; }
.whatif-gpts { font-size: 0.86rem; font-weight: 700; color: var(--gold); }
.whatif-gpts small { color: var(--muted); font-weight: 500; font-size: 0.66rem; }
.whatif-rows { display: grid; gap: 5px; }
.whatif-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  grid-template-areas: "pos team move" "pos meta move";
  align-items: center; column-gap: 8px; row-gap: 1px;
  padding: 6px 7px; border-radius: 8px;
  border: 1px solid transparent; background: rgba(1, 9, 7, 0.4);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.whatif-row.hit { border-color: rgba(82, 196, 134, 0.4); background: rgba(82, 196, 134, 0.1); }
.whatif-pos { grid-area: pos; font-size: 0.7rem; font-weight: 800; color: var(--gold); text-align: center; }
.whatif-team { grid-area: team; font-size: 0.82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whatif-pred { grid-area: meta; font-size: 0.66rem; color: var(--muted); }
.whatif-pred.none { opacity: 0.7; font-style: italic; }
.whatif-prob { grid-area: meta; justify-self: end; align-self: center; font-size: 0.66rem; font-weight: 700; color: #9db8ff; }
.whatif-hit {
  grid-area: meta; justify-self: end; align-self: center;
  display: none; font-size: 0.72rem; font-weight: 800; color: #7ddaa3;
}
.whatif-row.hit .whatif-hit { display: inline; }
.whatif-row.hit .whatif-prob { display: none; }
.whatif-move { grid-area: move; display: inline-flex; flex-direction: column; gap: 2px; }
.whatif-move button {
  width: 26px; height: 18px; min-height: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 5px;
  background: rgba(255, 255, 255, 0.05); color: var(--soft);
  font-size: 0.6rem; line-height: 1; cursor: pointer;
}
.whatif-move button:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 209, 102, 0.1); }

/* ---- Contender Radar (KO / champion pick insights) ---- */
.contender-radar {
  border: 1px solid rgba(125, 168, 255, 0.28); border-radius: 14px;
  padding: 14px 15px; margin-top: 14px;
  background: linear-gradient(160deg, rgba(31, 46, 84, 0.4), rgba(8, 22, 17, 0.55));
}
.radar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.radar-head h4 { margin: 0; font-size: 0.92rem; }
.radar-sub { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9db8ff; font-weight: 700; }
.radar-intro { margin: 6px 0 12px; font-size: 0.74rem; line-height: 1.5; color: var(--muted); }
.radar-rows { display: grid; gap: 6px; }
.radar-row {
  display: grid; grid-template-columns: 24px 1fr 90px auto; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 10px; border: 1px solid transparent; background: rgba(1, 9, 7, 0.4);
}
.radar-row.is-champ { border-color: rgba(255, 209, 102, 0.45); background: rgba(255, 209, 102, 0.08); }
.radar-rank { font-size: 0.78rem; font-weight: 800; color: #9db8ff; text-align: center; }
.radar-row.is-champ .radar-rank { color: var(--gold); }
.radar-team { font-size: 0.82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-team small { display: block; font-size: 0.62rem; font-weight: 500; color: var(--muted); }
.radar-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.radar-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6f8cff, #9db8ff); }
.radar-row.is-champ .radar-bar i { background: linear-gradient(90deg, #f0c040, #ffd166); }
.radar-meta { text-align: right; }
.radar-meta b { display: block; font-size: 0.9rem; font-weight: 800; color: var(--soft); }
.radar-meta small { font-size: 0.6rem; color: var(--muted); }
.radar-note {
  margin: 12px 0 0; font-size: 0.76rem; line-height: 1.55; color: var(--soft);
  padding: 10px 12px; border-radius: 10px; background: rgba(8, 22, 17, 0.5); border: 1px solid var(--line);
}
.radar-note strong { color: var(--gold); }

/* ---- Collapsible member panels (Outcome Lab / Contender Radar) ---- */
.member-collapse { padding: 0; margin-top: 16px; overflow: hidden; }
.member-collapse > .member-collapse-summary { list-style: none; cursor: pointer; }
.member-collapse > .member-collapse-summary::-webkit-details-marker { display: none; }
.member-collapse-summary {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px;
  user-select: none;
}
.member-collapse-summary:focus-visible { outline: 2px solid rgba(255, 209, 102, 0.55); outline-offset: -2px; border-radius: 14px; }
.mc-emoji { font-size: 1.2rem; line-height: 1; flex: 0 0 auto; }
.mc-summary-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.mc-summary-text strong { font-size: 0.92rem; line-height: 1.2; }
.mc-summary-text small { font-size: 0.7rem; color: var(--muted); line-height: 1.3; }
.mc-chevron { flex: 0 0 auto; color: var(--gold); font-size: 0.95rem; transition: transform 0.18s ease; }
.member-collapse[open] > .member-collapse-summary .mc-chevron { transform: rotate(180deg); }
.member-collapse-body { padding: 0 15px 15px; }

/* ---- Personalized bracket standings ---- */
.submitted-personal-stats { margin: 0 0 16px; min-width: 0; max-width: 100%; }
.personal-stats-loading { font-size: 0.82rem; color: var(--muted); padding: 10px 2px; }
.personal-stats-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(8, 22, 17, 0.45); min-width: 0; max-width: 100%; }
.personal-stats-card.pending p { margin: 6px 0 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.personal-stats-card.error { color: #e07b7b; font-size: 0.82rem; }
.personal-stats-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.personal-stats-head h4 { margin: 0; font-size: 0.92rem; }
.personal-stats-tag { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; }
.personal-stats-tag.live { background: rgba(255, 209, 102, 0.16); color: var(--gold); }
.personal-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 10px; margin-bottom: 14px; min-width: 0; max-width: 100%; }
.personal-stat { border: 1px solid var(--line); border-radius: 11px; padding: 11px 8px; text-align: center; background: rgba(8, 22, 17, 0.5); }
.personal-stat.rank strong { color: #fff0a3; }
.personal-stat strong { display: block; font-size: 1.18rem; color: var(--gold); }
.personal-stat span { font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stage-banner { border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin: 12px 0 14px; background: rgba(8, 22, 17, 0.45); }
.stage-banner.ko { border-color: rgba(255, 209, 102, 0.3); background: rgba(255, 209, 102, 0.06); }
.stage-banner-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stage-banner-head strong { font-size: 0.82rem; color: var(--soft); }
.stage-banner-head span { font-size: 0.72rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.stage-banner-meter { height: 6px; border-radius: 999px; background: rgba(210, 236, 221, 0.1); overflow: hidden; margin: 8px 0 7px; }
.stage-banner-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #7ddaa3); }
.stage-banner-note { margin: 0; font-size: 0.72rem; color: var(--muted); line-height: 1.45; }
.stage-banner-note strong { color: var(--soft); font-weight: 700; }
.personal-forecast { border: 1px solid rgba(255, 209, 102, 0.28); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: rgba(255, 209, 102, 0.06); }
.personal-forecast-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.personal-forecast-head h5 { margin: 0; font-size: 0.82rem; }
.personal-forecast-proj { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.personal-forecast-proj small { font-size: 0.62rem; font-weight: 600; color: var(--muted); }
.personal-forecast-meter { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; font-size: 0.72rem; font-weight: 700; color: var(--soft); }
.personal-forecast-meter > span { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 22, 17, 0.5); white-space: nowrap; }
.forecast-delta { padding: 3px 9px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.forecast-delta.up { color: #7ddaa3; background: rgba(82, 196, 134, 0.16); }
.forecast-delta.down { color: #e8a06a; background: rgba(232, 160, 106, 0.16); }
.forecast-delta.flat { color: var(--muted); background: rgba(210, 236, 221, 0.08); }
.personal-forecast-odds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 4px; }
.pf-odd { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 22, 17, 0.5); }
.pf-odd strong { font-size: 0.92rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.pf-odd span { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); text-transform: uppercase; }
@media (max-width: 420px) { .personal-forecast-odds { grid-template-columns: repeat(2, 1fr); } }
.personal-forecast-note { margin: 4px 0 8px; font-size: 0.74rem; color: var(--muted); line-height: 1.4; }
.personal-forecast-drivers { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.personal-forecast-drivers li { font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.personal-forecast-drivers li span { color: var(--muted); font-weight: 500; font-size: 0.72rem; margin-left: auto; }
.personal-stats-card .member-breakdown { margin-top: 4px; }

/* ---- Stats tab: full-width grid + clickable cards + modal ---- */
.stats-panel-wide .stats-bracket-board { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stats-panel-wide .stats-odds-board { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* ---- Stats > Brackets: rich depth cards ---- */
.bracket-stat-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(8, 22, 17, 0.55); display: grid; gap: 12px; align-content: start; }
.bracket-stat-card.leader { border-color: rgba(255, 209, 102, 0.4); background: linear-gradient(150deg, rgba(255, 209, 102, 0.09), rgba(8, 22, 17, 0.55)); }
.bracket-stat-card.me { border-color: rgba(76, 201, 240, 0.5); }
.bracket-stat-card.clickable { cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.bracket-stat-card.clickable:hover { transform: translateY(-1px); border-color: var(--gold); }
.bracket-stat-card.clickable:focus-visible { outline: 2px solid rgba(255, 209, 102, 0.6); outline-offset: 2px; }
.bsc-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bsc-rank { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; font-size: 13px; font-weight: 900; color: var(--muted); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.bsc-rank.lead { color: #07120c; background: var(--gold); border-color: transparent; }
.bsc-avatar { width: 34px; height: 34px; font-size: 12px; border: 1px solid rgba(124, 218, 163, 0.5); background: linear-gradient(135deg, #103127, #0a2019); color: #9ff0c4; }
.bsc-avatar img { color: transparent; }
.bsc-id { min-width: 0; display: grid; gap: 2px; }
.bsc-id strong { display: flex; align-items: center; gap: 6px; font-size: 0.92rem; min-width: 0; }
.bsc-id strong .bsc-name { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsc-id strong .you-chip, .bsc-id strong .commish-badge { flex: 0 0 auto; white-space: nowrap; }
.bsc-id span { color: var(--muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsc-total { font-size: 1.35rem; font-weight: 900; color: var(--gold); line-height: 1; white-space: nowrap; }
.bsc-total small { font-size: 0.62rem; color: var(--muted); font-weight: 700; }
.bsc-meters { display: grid; gap: 9px; }
.bsc-meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.bsc-meter-top b { color: var(--text); font-size: 0.78rem; font-weight: 700; }
.bsc-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bsc-bar i { display: block; height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.bsc-bar i.grp { background: linear-gradient(90deg, #52c486, #7ddaa3); }
.bsc-bar i.ko { background: linear-gradient(90deg, var(--gold), #ffe2a0); }
.bsc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bsc-tag { font-size: 0.68rem; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.bsc-tag i { color: #7ddaa3; font-style: normal; font-weight: 800; }
.bsc-tag.muted i { color: var(--muted); }

/* ---- Stats > Markets: probability + lines cards ---- */
.market-stat-card { border: 1px solid rgba(255, 209, 102, 0.18); border-radius: 14px; padding: 14px; background: linear-gradient(150deg, rgba(255, 209, 102, 0.06), rgba(76, 201, 240, 0.04)), rgba(8, 22, 17, 0.6); display: grid; gap: 10px; align-content: start; }
.market-stat-card.msc-live { border-color: rgba(34, 197, 94, 0.45); }
.market-stat-card.clickable { cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.market-stat-card.clickable:hover { transform: translateY(-1px); border-color: var(--gold); }
.market-stat-card.clickable:focus-visible { outline: 2px solid rgba(255, 209, 102, 0.6); outline-offset: 2px; }
.msc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msc-provider { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.msc-state { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.msc-state.live { background: rgba(34, 197, 94, 0.18); color: var(--green); }
.msc-state.final { background: rgba(210, 236, 221, 0.12); color: var(--muted); }
.msc-match { font-size: 0.96rem; }
.msc-prob { display: grid; gap: 6px; }
.msc-prob-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.msc-prob-bar i { display: flex; align-items: center; min-width: 0; height: 100%; transition: width 0.5s ease; }
.msc-prob-bar i.home { background: linear-gradient(90deg, #2f9e6e, #52c486); justify-content: flex-start; padding-left: 8px; }
.msc-prob-bar i.away { background: linear-gradient(90deg, #c99a30, var(--gold)); justify-content: flex-end; padding-right: 8px; }
.msc-prob-bar i b { font-size: 0.66rem; font-weight: 900; color: #07120c; }
.msc-prob-legend { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.72rem; color: var(--muted); }
.msc-prob-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; vertical-align: middle; margin: 0 5px; }
.msc-prob-legend .dot.home { background: #52c486; }
.msc-prob-legend .dot.away { background: var(--gold); }
.msc-noprob { margin: 0; font-size: 0.74rem; color: var(--muted); }
.msc-lines { display: grid; gap: 5px; }
.msc-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 0.74rem; }
.msc-line span { color: var(--muted); }
.msc-line b { color: var(--text); font-weight: 700; text-align: right; }
.msc-kick { font-size: 0.7rem; color: var(--muted); font-style: normal; }
.stats-bracket-card { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.stats-bracket-avatar { width: 34px; height: 34px; border-radius: 999px; font-size: 12px; }
.stats-bracket-main { min-width: 0; }
.stats-bracket-main strong { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stats-bracket-main em { display: block; color: var(--muted); font-size: 11px; font-style: normal; margin-top: 2px; }
.stats-bracket-total { color: var(--gold); font-size: 20px; font-weight: 900; }
.stats-bracket-total.up { color: #7ddaa3; }
.stats-bracket-total.down { color: #e07b7b; }
.stats-bracket-card.me { border-color: rgba(76, 201, 240, 0.4); }
.stats-bracket-card.clickable, .stats-market-card.clickable, .forecast-group.clickable, .forecast-player.clickable { cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.stats-bracket-card.clickable:hover, .stats-market-card.clickable:hover, .forecast-group.clickable:hover, .forecast-player.clickable:hover { border-color: var(--gold); transform: translateY(-1px); }
.stats-bracket-card.clickable:focus-visible, .stats-market-card.clickable:focus-visible, .forecast-group.clickable:focus-visible, .forecast-player.clickable:focus-visible { outline: 2px solid rgba(255, 209, 102, 0.6); outline-offset: 2px; }

.stats-modal-head { margin-bottom: 14px; }
.stats-modal-head .eyebrow { margin: 0; }
.stats-modal-head h2 { margin: 2px 0 4px; }
.stats-modal-head span { color: var(--muted); font-size: 0.82rem; }
.stats-modal-tablewrap { overflow-x: auto; }
.forecast-modal-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.forecast-modal-table th { text-align: right; padding: 8px 6px; color: var(--muted); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); }
.forecast-modal-table th:first-child { text-align: left; }
.forecast-modal-table td { text-align: right; padding: 9px 6px; border-bottom: 1px solid rgba(210, 236, 221, 0.07); }
.forecast-modal-table td:first-child { text-align: left; }
.forecast-modal-table td.fg-team { text-align: left; font-weight: 600; }
.forecast-modal-table td.fg-adv strong { color: var(--gold); }
.stats-modal-note { margin: 12px 0 0; font-size: 0.74rem; color: var(--muted); line-height: 1.5; }

/* ---- Group forecast modal: matchday progress + Monte Carlo distribution ---- */
.fg-progress { margin: 4px 0 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 22, 17, 0.45); }
.fg-md { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fg-md-label { font-size: 0.78rem; font-weight: 700; color: var(--soft); }
.fg-md-pips { display: inline-flex; gap: 5px; }
.fg-md-pip { width: 26px; height: 6px; border-radius: 999px; background: rgba(210, 236, 221, 0.14); }
.fg-md-pip.done { background: linear-gradient(90deg, var(--gold), #7ddaa3); }
.fg-md-count { font-size: 0.72rem; font-weight: 700; color: var(--gold); margin-left: auto; }
.fg-fixtures { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.fg-fixtures.done { margin: 9px 0 0; font-size: 0.74rem; color: var(--muted); }
.fg-fixtures-label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; margin-right: 2px; }
.fg-fixture { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 22, 17, 0.5); white-space: nowrap; }
.fg-fixture i { font-style: normal; color: var(--muted); font-size: 0.64rem; }
.fg-dist-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 0.7rem; color: var(--muted); }
.fg-dist-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fg-dist-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.fg-dist-legend-note { font-style: italic; }
.fg-dist-legend i.p1, .fg-dist-seg.p1 { background: #ffd166; }
.fg-dist-legend i.p2, .fg-dist-seg.p2 { background: #52c486; }
.fg-dist-legend i.p3, .fg-dist-seg.p3 { background: #5b8def; }
.fg-dist-legend i.p4, .fg-dist-seg.p4 { background: rgba(210, 236, 221, 0.22); }
.fg-team-cards { display: grid; gap: 10px; margin-bottom: 16px; }
.fg-team-card { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: rgba(8, 22, 17, 0.4); }
.fg-team-card.lead { border-color: rgba(255, 209, 102, 0.4); background: rgba(255, 209, 102, 0.05); }
.fg-team-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fg-team-id { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.fg-place { font-size: 0.62rem; font-weight: 800; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.fg-team-adv { font-size: 1.02rem; font-weight: 800; display: inline-flex; align-items: baseline; gap: 4px; }
.fg-team-adv small { font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.fg-team-adv.strong { color: #7ddaa3; }
.fg-team-adv.even { color: var(--gold); }
.fg-team-adv.long { color: var(--muted); }
.fg-team-rec { margin: 5px 0 8px; font-size: 0.74rem; color: var(--soft); font-weight: 600; }
.fg-dist { display: flex; height: 22px; border-radius: 7px; overflow: hidden; background: rgba(0, 0, 0, 0.2); }
.fg-dist-seg { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: 0.62rem; font-weight: 800; color: #07140f; overflow: hidden; transition: width 0.4s ease; }
.fg-dist-seg.p4 { color: var(--soft); }

#stats-modal .modal-panel:has(.scoring-modal) { width: min(820px, calc(100vw - 36px)); }
.scoring-modal { max-width: 760px; margin: 0 auto; }
.scoring-modal h3 { margin: 0 0 4px; font-size: 1.15rem; }
.scoring-modal-sub { margin: 0 0 14px; color: var(--muted); font-size: 0.85rem; }
.scoring-splitbar { display: flex; gap: 4px; margin: 0 0 18px; height: 38px; border-radius: 10px; overflow: hidden; }
.scoring-splitbar-seg { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.74rem; font-weight: 800; color: #07120c; white-space: nowrap; overflow: hidden; }
.scoring-splitbar-seg i { font-style: normal; font-size: 0.95rem; }
.scoring-splitbar-seg.group { background: linear-gradient(135deg, var(--gold), #fff0a3); }
.scoring-splitbar-seg.ko { background: linear-gradient(135deg, #6db6ff, #a9d4ff); }
.scoring-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.scoring-stage { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(8, 22, 17, 0.45); display: grid; gap: 8px; align-content: start; }
.scoring-modal h4 { margin: 0; font-size: 0.84rem; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.scoring-modal h4 small { color: var(--gold); font-weight: 700; font-size: 0.72rem; white-space: nowrap; }
.scoring-table { font-size: 0.84rem; }
.scoring-table td:last-child { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.scoring-table th:not(:first-child), .scoring-table td:not(:first-child) { width: 1%; white-space: nowrap; }
.scoring-modal-note { margin: 2px 0 0; font-size: 0.74rem; color: var(--muted); line-height: 1.5; }
.scoring-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 16px; border: 1px solid rgba(255, 209, 102, 0.32); border-radius: 12px; background: linear-gradient(120deg, rgba(255, 209, 102, 0.1), rgba(8, 22, 17, 0.4)); }
.scoring-total span { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.scoring-total b { color: var(--gold); font-size: 1.5rem; font-weight: 900; }
@media (max-width: 640px) { .scoring-grid { grid-template-columns: 1fr; } }

/* ---- Bracket-page stages + scoring guide ---- */
.bracket-stages-guide { margin-bottom: 4px; }
.stages-guide-details { border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 22, 17, 0.4); overflow: hidden; }
.stages-guide-summary { display: flex; align-items: center; gap: 11px; padding: 11px 14px; cursor: pointer; list-style: none; user-select: none; transition: background 0.15s ease; }
.stages-guide-summary::-webkit-details-marker { display: none; }
.stages-guide-summary:hover { background: rgba(255, 209, 102, 0.06); }
.sg-emoji { font-size: 1.15rem; line-height: 1; flex: 0 0 auto; }
.sg-summary-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.sg-summary-text strong { font-size: 0.92rem; }
.sg-summary-text small { font-size: 0.72rem; color: var(--muted); }
.sg-pills { display: inline-flex; gap: 5px; flex: 0 0 auto; }
.sg-chevron { flex: 0 0 auto; color: var(--gold); font-size: 0.9rem; transition: transform 0.18s ease; }
.stages-guide-details[open] .sg-chevron { transform: rotate(180deg); }
.stages-guide-body { display: grid; gap: 14px; padding: 4px 14px 16px; }
@media (max-width: 560px) { .sg-pills { display: none; } }
.stages-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stages-guide-head h3 { margin: 2px 0 0; font-size: 1.05rem; }
.stages-guide-more { border: 1px solid var(--line); background: rgba(255, 209, 102, 0.08); color: var(--gold); border-radius: 999px; padding: 7px 14px; font-size: 0.76rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color 0.15s ease, background 0.15s ease; }
.stages-guide-more:hover { border-color: var(--gold); background: rgba(255, 209, 102, 0.16); }
.stages-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stage-guide-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(13, 25, 22, 0.6); display: grid; gap: 10px; align-content: start; }
.stage-guide-card header { display: flex; align-items: center; gap: 10px; }
.stage-num { width: 26px; height: 26px; border-radius: 999px; background: var(--gold); color: #07120c; font-weight: 800; display: grid; place-items: center; font-size: 0.82rem; flex: 0 0 auto; }
.stage-guide-card header > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.stage-guide-card header strong { font-size: 0.96rem; }
.stage-pill { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.stage-pill.live { background: rgba(34, 197, 94, 0.18); color: var(--green); }
.stage-pill.upcoming { background: rgba(255, 209, 102, 0.16); color: var(--gold); }
.stage-pill.locked { background: rgba(210, 236, 221, 0.12); color: var(--muted); }
.stage-todo { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.stage-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stage-points li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8rem; padding: 4px 0; border-bottom: 1px solid rgba(210, 236, 221, 0.07); }
.stage-points li:last-child { border-bottom: none; }
.stage-points li span { color: var(--muted); }
.stage-points li b { color: var(--text); font-weight: 700; }
.stage-max { margin: 2px 0 0; font-size: 0.76rem; color: var(--muted); }
.stage-max b { color: var(--gold); }
.stages-guide-foot { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.stages-guide-foot b { color: var(--text); }
@media (max-width: 640px) {
  .stages-guide-grid { grid-template-columns: 1fr; }
  .stages-guide-more { padding: 6px 12px; }
}

/* ---- Standings scoring info cards ---- */
.standings-info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.standings-info-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(13, 25, 22, 0.6); display: grid; gap: 3px; align-content: start; text-align: left; }
button.standings-info-card { cursor: pointer; color: inherit; font: inherit; transition: border-color 0.15s ease, background 0.15s ease; }
button.standings-info-card:hover { border-color: var(--gold); background: rgba(255, 209, 102, 0.08); }
.standings-info-card strong { font-size: 1rem; }
.standings-info-more strong { color: var(--gold); }
.standings-info-tag { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.standings-info-sub { font-size: 0.72rem; color: var(--muted); }
@media (max-width: 560px) {
  .standings-info-cards { grid-template-columns: repeat(2, 1fr); }
}
.standings-viewas { font-size: 0.74rem; color: var(--gold); background: rgba(255, 209, 102, 0.1); border: 1px solid rgba(255, 209, 102, 0.28); border-radius: 10px; padding: 8px 11px; line-height: 1.4; }
.standings-viewas strong { color: var(--text); }

/* ---- Operator (admin) bracket viewer ---- */
.operator-console { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(8, 22, 17, 0.45); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; max-width: 100%; }
.operator-console-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.operator-console-head h3 { margin: 2px 0 6px; font-size: 1.12rem; }
.operator-console-note { margin: 0; font-size: 0.82rem; color: var(--muted); max-width: 460px; }
.operator-member-picker { display: grid; gap: 6px; min-width: 220px; }
.operator-member-picker span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.operator-member-picker select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(8, 22, 17, 0.7); color: inherit; font-size: 0.9rem; }
.operator-bracket-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; max-width: 100%; }
.operator-bracket-head { display: flex; align-items: center; gap: 12px; }
.operator-bracket-head h4 { margin: 0; font-size: 1.05rem; }
.operator-bracket-head .member-realname { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.operator-bracket-status { font-size: 0.72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; }
.operator-block h4 { margin: 0 0 10px; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.operator-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.operator-group-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(8, 22, 17, 0.55); display: grid; gap: 4px; min-width: 0; }
.operator-group-card.partial { border-color: rgba(255, 209, 102, 0.32); }
.operator-group-card.pending { border-style: dashed; }
.operator-group-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 8px; margin-bottom: 4px; }
.operator-group-head h5 { margin: 0; font-size: 0.82rem; color: var(--gold); }
.operator-group-status { grid-row: 2; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 999px; justify-self: start; }
.operator-group-status.done { background: rgba(82, 196, 134, 0.16); color: #7ddaa3; }
.operator-group-status.live { background: rgba(255, 209, 102, 0.16); color: var(--gold); }
.operator-group-status.pending { background: rgba(157, 184, 255, 0.14); color: #9db8ff; }
.operator-group-pts { grid-row: 1 / span 2; align-self: center; font-size: 0.94rem; font-weight: 700; color: var(--gold); text-align: right; }
.operator-group-pts small { font-size: 0.6rem; color: var(--muted); font-weight: 500; }
.operator-group-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; padding: 4px 0; border-bottom: 1px solid rgba(210, 236, 221, 0.08); }
.operator-group-row:last-child { border-bottom: none; }
.operator-group-place { min-width: 30px; color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.operator-group-team { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operator-group-mark { font-weight: 800; font-size: 0.8rem; }
.operator-group-row.hit .operator-group-mark { color: #7ddaa3; }
.operator-group-row.hit .operator-group-team { color: #cfeedd; }
.operator-group-row.miss .operator-group-mark { color: var(--muted); }
.operator-thirds { display: flex; flex-wrap: wrap; gap: 8px; }
.operator-third { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 0.8rem; font-weight: 600; background: rgba(8, 22, 17, 0.6); }

/* ---- Side bets tab ---- */
.pool-views .pool-panel { padding: 20px 20px 22px; }
.pool-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.pool-panel-head h3 { margin: 0; font-size: 1.05rem; }
.pool-panel-head .primary { min-height: 38px; padding: 0 16px; flex: 0 0 auto; }
.pool-views .panel-hint { margin: 6px 0 18px; }
.pool-bets-list { display: grid; gap: 14px; margin-top: 4px; }
.pool-bets-list .pool-empty {
  border: 1px dashed var(--line); border-radius: 14px; padding: 30px 18px;
  background: rgba(8, 22, 17, 0.4);
}
.bet-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 16px; background: rgba(8, 22, 17, 0.55);
  display: grid; gap: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.bet-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bet-matchup { font-weight: 800; font-size: 0.98rem; letter-spacing: 0.01em; }
.bet-status-badge { font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; border-radius: 999px; padding: 4px 11px; font-weight: 800; white-space: nowrap; }
.bet-status-proposed { background: rgba(255, 209, 102, 0.18); color: #ffd166; }
.bet-status-active { background: rgba(47, 191, 113, 0.18); color: #2fbf71; }
.bet-status-settle_pending { background: rgba(120, 170, 255, 0.18); color: #93b4ff; }
.bet-status-settled { background: rgba(255, 209, 102, 0.22); color: var(--gold); }
.bet-status-declined, .bet-status-cancelled, .bet-status-void { background: rgba(229, 72, 77, 0.16); color: #ff8b8e; }
.bet-terms {
  font-size: 0.9rem; line-height: 1.5; color: var(--soft);
  background: rgba(2, 10, 8, 0.45); border-left: 3px solid rgba(255, 209, 102, 0.5);
  border-radius: 0 8px 8px 0; padding: 11px 14px;
}
.bet-meta { font-size: 0.76rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.bet-meta .bet-stake {
  color: var(--gold); font-weight: 800;
  background: rgba(255, 209, 102, 0.12); border-radius: 999px; padding: 3px 10px;
}
.bet-actions {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding-top: 14px; margin-top: 2px; border-top: 1px solid var(--line);
}
.bet-actions button { min-height: 34px; padding: 0 14px; font-size: 0.78rem; }
.bet-winner-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 0.78rem; }

/* ---- New side bet modal ---- */
.bet-modal-card { width: min(540px, 100%); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bet-modal-card .member-drawer-close { top: 16px; right: 16px; z-index: 2; }
.bet-modal-body { display: grid; gap: 16px; padding: 26px 26px 8px; overflow-y: auto; flex: 1 1 auto; min-height: 0; align-content: start; }
.bet-modal-head { display: grid; gap: 8px; padding: 0 40px 16px 0; border-bottom: 1px solid var(--line); }
.bet-modal-badge {
  justify-self: start; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(255, 209, 102, 0.14); border-radius: 999px; padding: 4px 11px;
}
.bet-modal-head h3 { margin: 0; font-size: 1.25rem; }
.bet-modal-sub { margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.bet-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-help { margin: 0; font-size: 0.74rem; color: var(--muted); }
.bet-modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 26px 22px; border-top: 1px solid var(--line); background: rgba(2, 10, 8, 0.35);
}
.bet-modal-foot .status { margin: 0; flex: 1 1 140px; min-width: 0; }
.bet-modal-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.bet-modal-actions button { min-height: 42px; padding: 0 20px; }

@media (max-width: 640px) {
  .member-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .operator-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .member-stat strong { font-size: 0.96rem; }
  .pool-member-row { grid-template-columns: 36px 1fr auto; }
  .member-drawer { padding: 12px; }
  .member-drawer-card { padding: 22px 18px 18px; }
  .pool-views .pool-panel { padding: 16px 16px 18px; }
  .bet-form-grid { grid-template-columns: 1fr; }
  .bet-modal-body { padding: 22px 18px 6px; }
  .bet-modal-head { padding-right: 36px; }
  .bet-modal-foot { padding: 14px 18px 18px; }
  .bet-modal-actions { flex: 1 1 100%; }
  .bet-modal-actions button { flex: 1 1 auto; }
}

@media (max-width: 430px) {
  .operator-group-grid { grid-template-columns: 1fr; }
}

/* v123 — desktop player/bet modal width. Defined AFTER the base rules above so
   equal-specificity source order wins (the earlier @media block was being
   overridden by the base .member-drawer-card / .bet-modal-card declarations). */
@media (min-width: 1024px) {
  .member-drawer { padding: 30px; }
  .member-drawer-card { width: min(1080px, 100%); max-height: 90vh; padding: 32px 36px 30px; }
  .member-drawer-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 20px;
    align-items: start;
  }
  /* Hero (avatar, the 2x2 points grid + bet button) and the result blocks all span the
     full modal width so cards breathe instead of cramming into a half column. */
  .member-drawer-body > .member-head,
  .member-drawer-body > .member-hero-row,
  .member-drawer-body > .member-breakdown,
  .member-drawer-body > .member-block { grid-column: 1 / -1; }
  /* Movement spans the full modal by default; only when the commissioner controls
     card is present does it pair into the right column beside it (so non-commissioner
     viewers don't get a half-width chart with dead space next to it). */
  .member-drawer-body > .member-movement { grid-column: 1 / -1; }
  .member-drawer-body:has(> .member-admin) > .member-admin { grid-column: 1; }
  .member-drawer-body:has(> .member-admin) > .member-movement { grid-column: 2; }
  .member-hero-row { flex-wrap: nowrap; align-items: stretch; gap: 18px; }
  .member-hero-row .member-stat-grid {
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .member-hero-row .member-bet-cta { flex: 0 0 auto; flex-direction: column; align-items: stretch; align-self: center; min-width: 180px; max-width: 220px; }
  .member-hero-row .member-bet-cta > button { width: 100%; flex: 0 0 auto; height: auto; min-height: 42px; }
  .operator-group-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .breakdown-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }

  .bet-modal-card { width: min(660px, 100%); }
  .bet-modal-body { padding: 32px 34px 10px; gap: 18px; }
}

@media (min-width: 1440px) {
  .member-drawer-card { width: min(1240px, 100%); }
}

/* Commissioner-only KO wizard sandbox */
.ko-demo-panel { gap: 16px; }
.ko-demo-source {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--soft);
  background: rgba(76, 201, 240, 0.1);
  border: 1px solid rgba(76, 201, 240, 0.32);
  border-radius: 12px;
  padding: 10px 13px;
}
.ko-demo-loading { color: var(--muted); padding: 18px 4px; }
.ko-demo-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 999px;
  padding: 3px 9px;
  vertical-align: middle;
  margin-left: 8px;
}
.ko-demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.ko-demo-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ko-demo-stat span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ko-demo-stat strong { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; }
.ko-demo-stat strong .flag { font-size: 1.1rem; }
.ko-demo-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ko-demo-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.ko-demo-final { max-width: 220px; }
@media (max-width: 680px) {
  .ko-demo-actions { margin-left: 0; width: 100%; }
  .ko-demo-actions button { flex: 1 1 auto; }
  .ko-demo-final { max-width: none; width: 100%; }
}
.ko-demo-review { display: flex; flex-direction: column; gap: 16px; }
.ko-demo-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ko-demo-review-eyebrow { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ko-demo-review-note { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); }
.ko-demo-review-banner { margin-bottom: 0; }
.ko-demo-review-bracket {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ko-demo-review-bracket .submitted-ko {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
  margin: 0;
}
.ko-demo-review-bracket .submitted-bracket-controls { justify-content: center; }
.ko-demo-review-submit {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ko-demo-review-tiebreaker label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--soft);
}
.ko-demo-review-submit .submit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ko-demo-review-submit .submit-actions button { flex: 1 1 auto; }
.operator-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text, #e9eef5);
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.1);
  margin-bottom: 16px;
}
.operator-preview-icon { font-size: 1.15rem; line-height: 1.3; flex: 0 0 auto; }
.operator-preview strong { color: #fff; }
.tiebreaker-field { gap: 8px; }
.tiebreaker-hint { font-size: 0.82rem; color: var(--muted); margin: 0 0 4px; line-height: 1.45; }
.tiebreaker-pending,
.tiebreaker-board {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.tiebreaker-pending { font-size: 0.85rem; color: var(--muted); }
.tiebreaker-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tiebreaker-side { display: flex; flex-direction: column; gap: 8px; align-items: center; flex: 1 1 0; min-width: 0; }
.tiebreaker-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.2;
}
.tiebreaker-team b { font-weight: 700; }
.tiebreaker-team em { font-style: normal; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.tiebreaker-stepper { display: flex; align-items: center; gap: 6px; }
.tiebreaker-step {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #e9eef5);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.tiebreaker-step:hover { background: rgba(255, 255, 255, 0.08); }
.tiebreaker-step:active { transform: scale(0.94); }
.tiebreaker-goals {
  width: 46px;
  height: 44px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text, #fff);
}
.tiebreaker-dash { font-size: 1.4rem; color: var(--muted); flex: 0 0 auto; padding: 0 2px; }
@media (max-width: 480px) {
  .tiebreaker-step { width: 30px; height: 30px; }
  .tiebreaker-goals { width: 40px; height: 40px; font-size: 1.2rem; }
  .tiebreaker-team { font-size: 0.82rem; }
}
.operator-viewing-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(124, 196, 255, 0.34);
  background: linear-gradient(120deg, rgba(124, 196, 255, 0.12), rgba(167, 139, 250, 0.1));
}
.operator-viewing-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.operator-viewing-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.operator-viewing-copy strong { font-size: 1.02rem; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.operator-viewing-real { font-size: 0.8rem; color: var(--muted); }
.operator-viewing-note { margin-left: auto; font-size: 0.78rem; color: var(--muted); text-align: right; }
@media (max-width: 560px) {
  .operator-viewing-note { margin-left: 0; width: 100%; text-align: left; }
}
