:root {
  color-scheme: light;
  --ink: #4a3b57;
  --muted: #a897b3;
  --soft: #fff0f8;
  --surface: #ffffff;
  --surface-2: #fdf5fb;
  --surface-3: #f6eeff;
  --card: #ffffff;           /* card face — themes override this */
  --line: #ffd9ee;
  --line-strong: #f3c8e2;
  --pink-soft: rgba(255,143,192,.16);
  --btn-shadow: rgba(229,111,166,.14);
  --green-ring: rgba(63,196,168,.25);
  --pink-ring: rgba(255,143,192,.25);
  --status-confirmed: #cdeee5;
  --status-pending: #f3e2ad;
  --status-locked: #f8cfe2;
  /* Kawaii pastel accents kept under legacy token names so the whole app recolors */
  --green: #3fc4a8;          /* mint (primary action) */
  --green-2: #6fe0c8;
  --green-deep: #2ba98f;     /* mint extrude shadow */
  --green-soft: #dff6f0;
  --red: #e56fa6;            /* pink */
  --pink: #ff8fc0;
  --pink-deep: #d15f96;
  --blue: #7cc4ff;           /* sky */
  --blue-deep: #3a90dd;
  --grape: #b79bff;
  --gold: #f0b93f;           /* lemon */
  --lemon: #ffd76b;
  --lemon-deep: #d19f2f;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow: 0 14px 30px rgba(229, 111, 166, 0.16);
  --shadow-strong: 0 26px 60px rgba(229, 111, 166, 0.26);
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  font-family: var(--body);
}

h1, h2, h3,
.eyebrow, .brand,
.primary-button, .secondary-button,
.stake, .pool-badge, .score-core strong {
  font-family: var(--display);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(900px 500px at 90% -5%, #ffe3f3, transparent 60%),
    radial-gradient(700px 500px at -5% 105%, #dff8f1, transparent 60%),
    #fff4fb;
  background-attachment: fixed;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 143, 192, 0.13) 8px, transparent 9px),
    radial-gradient(circle, rgba(124, 196, 255, 0.13) 6px, transparent 7px);
  background-size: 120px 120px, 90px 90px;
  background-position: 0 0, 40px 60px;
  animation: bubbleFloat 20s linear infinite;
}

@keyframes bubbleFloat {
  to { background-position: 0 -240px, 40px -180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 143, 192, 0.45);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 2px solid var(--line);
  background: rgba(255, 250, 253, 0.85);
  backdrop-filter: blur(22px) saturate(150%);
}

.brand,
.topnav button,
.profile-chip,
.primary-button,
.secondary-button,
.icon-button {
  border-radius: var(--radius);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--pink-deep);
  font-weight: 800;
  font-size: 22px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--pink);
  border: 0;
  border-radius: 15px;
  background: linear-gradient(160deg, #ffffff, #ffe3f3);
  box-shadow: 0 7px 0 var(--line), var(--shadow);
  transform: rotate(-5deg);
}

.brand-mark svg,
.button-icon svg,
.icon-button svg,
.room-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark svg {
  fill: currentColor;
  stroke: none;
}

.topnav {
  display: inline-grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr));
  gap: 4px;
  padding: 5px;
  border: 0;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 6px 0 var(--line), var(--shadow);
}

.topnav button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  transition: background .16s, color .16s;
}

.topnav button:hover {
  color: var(--ink);
  background: var(--surface-3);
}

.topnav button.is-active {
  background: linear-gradient(160deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 5px 0 var(--pink-deep);
}

.profile-chip {
  justify-self: end;
  min-width: 180px;
  max-width: 260px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 6px 14px 6px 6px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.profile-chip .avatar-art {
  width: 50px;
  height: 50px;
  display: block;
  align-self: center;
  justify-self: center;
  overflow: hidden;
  border-radius: 16px;
}

.profile-chip > div {
  min-width: 0;
}

.chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 760;
}

.chip-team {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.screens {
  min-width: 0;
  overflow-x: clip;
}

.screen {
  display: none;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 30px 24px 40px;
}

.screen.is-active {
  display: block;
}

.section-heading {
  margin-bottom: 22px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.team-picker,
.avatar-preview,
.activity-rail,
.watch-side,
.watch-room {
  border: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.team-picker {
  padding: 24px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.username-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 20px;
}

input {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  padding: 0 15px;
  transition: border-color .16s;
}

input::placeholder { color: var(--muted); }
input:focus { border-color: var(--pink); }

.primary-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 0 20px;
  font-weight: 800;
  font-size: 15px;
  transition: transform .12s var(--bounce), box-shadow .12s;
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(6px) scale(.99);
}

.compact-action {
  min-height: 40px;
  padding-inline: 12px;
}

.inline-action {
  margin-top: 14px;
}

.primary-button {
  background: linear-gradient(160deg, var(--green-2), var(--green));
  color: #fff;
  box-shadow: 0 7px 0 var(--green-deep), 0 12px 22px rgba(63, 196, 168, 0.32);
}

.primary-button:active {
  box-shadow: 0 1px 0 var(--green-deep), 0 5px 12px rgba(63, 196, 168, 0.3);
}

.secondary-button {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--line), 0 10px 20px rgba(229, 111, 166, 0.12);
}

.secondary-button:active {
  box-shadow: 0 1px 0 var(--line);
}

.button-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(174px, 1fr));
  gap: 10px;
}

.team-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--surface-2));
  color: var(--ink);
  padding: 9px;
  text-align: left;
  box-shadow: 0 6px 0 var(--surface-3);
  transition: transform .14s var(--bounce), box-shadow .14s, border-color .14s;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--pink);
  opacity: 0;
}

.team-card:hover,
.team-card.is-selected {
  border-color: var(--pink);
  background: var(--card);
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--line), var(--shadow);
}

.team-card.is-selected::before {
  opacity: 1;
}

.flag-tile {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--surface-3);
  font-size: 25px;
  box-shadow: inset 0 0 0 2px #fff;
}

.team-name {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 780;
}

.team-colors {
  display: flex;
  gap: 4px;
  margin-top: 7px;
}

.team-colors i {
  width: 18px;
  height: 5px;
  border-radius: 3px;
  display: block;
}

.check-dot {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
}

.team-card.is-selected .check-dot {
  border: 6px solid var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 143, 192, 0.2);
}

.avatar-preview {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: var(--surface);
}

.avatar-stage {
  min-height: clamp(300px, 34vw, 448px);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 3px dashed #ffd3e8;
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 10%, #ffffff, #ffeef7 70%);
}

/* soft glow puff behind character */
.avatar-stage::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 107, 0.35), transparent 65%);
  animation: kawaiiPuff 4s ease-in-out infinite;
}

@keyframes kawaiiPuff {
  50% { transform: translateX(-50%) scale(1.12); }
}

.avatar-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 46%;
  height: 16px;
  background: rgba(229, 111, 166, 0.22);
  border-radius: 999px;
  transform: translateX(-50%);
  filter: blur(7px);
}

.avatar-stage .avatar-art {
  position: relative;
  z-index: 1;
  width: min(320px, 88%);
  min-width: 180px;
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 16px 16px rgba(229, 111, 166, 0.28));
  animation: kawaiiHop 2.8s ease-in-out infinite;
}

@keyframes kawaiiHop {
  0%, 100% { transform: translateY(0); }
  30%, 45% { transform: translateY(-14px); }
}

.compact-avatar {
  animation: none;
}

.avatar-art {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 auto;
  aspect-ratio: 1;
  border: 4px solid #fff;
  border-radius: 28%;
  background: linear-gradient(145deg, var(--avatar-soft, var(--surface-3)), var(--avatar-secondary, var(--green-soft)));
  box-shadow: 0 0 0 3px var(--avatar-primary, var(--green)), 0 12px 24px rgba(58, 16, 48, .15);
}

.avatar-art::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 22%;
  background: linear-gradient(90deg, var(--avatar-primary, var(--green)) 0 46%, var(--avatar-secondary, var(--gold)) 46% 74%, rgba(255, 255, 255, .92) 74%);
  opacity: .94;
  pointer-events: none;
}

.avatar-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.avatar-fallback-initials {
  color: var(--avatar-primary, var(--green-deep));
  font-family: var(--display);
  font-size: clamp(24px, 8vw, 64px);
  font-weight: 900;
  letter-spacing: -.04em;
}

.avatar-team-mark {
  position: absolute;
  right: 6%;
  bottom: 5%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22%;
  min-width: 20px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .94);
  border-radius: 35%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 12px rgba(34, 21, 44, .24);
  font-size: clamp(12px, 2.2vw, 24px);
  line-height: 1;
}

.compact-avatar .avatar-team-mark {
  width: 20px;
  min-width: 20px;
  font-size: 12px;
}

.kit-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(3, 24px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 6px 0 var(--surface-3);
}

.kit-swatch {
  width: 24px;
  height: 42px;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(229, 111, 166, 0.15);
}

.kit-country {
  margin: 0;
  font-weight: 790;
}

.kit-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.home-main {
  min-width: 0;
}

.home-titlebar,
.pool-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pool-heading {
  margin-top: 22px;
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 820;
}

.live-command {
  margin-top: 22px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.live-scoreline {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 143, 192, 0.28), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(124, 196, 255, 0.28), transparent 55%),
    linear-gradient(135deg, var(--card), var(--surface-2));
  color: var(--ink);
}

.live-team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.live-team.is-away {
  justify-content: end;
  text-align: right;
}

.score-flag {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--line);
  font-size: 30px;
}

.live-team strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.live-team span:not(.score-flag) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.score-core {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.score-core span,
.score-core em {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 143, 192, 0.22);
  color: var(--pink-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.score-core strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  color: var(--pink-deep);
}

.score-core em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(63, 196, 168, 0.2);
  color: var(--green-deep);
}

.live-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border-bottom: 2px solid var(--line);
  background: var(--surface-2);
}

.live-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  transition: background .14s, color .14s;
}

.live-menu button.is-active {
  background: linear-gradient(160deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 4px 0 var(--pink-deep);
}

.live-detail {
  padding: 14px;
}

.overview-dashboard,
.room-dashboard,
.qvac-dashboard,
.game-live-preview {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 12px;
}

.room-dashboard,
.qvac-dashboard,
.game-live-preview {
  grid-template-columns: 1.25fr 0.75fr;
}

.live-card,
.live-stat-card,
.leader-panel {
  border: 1px solid rgba(185, 197, 192, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, var(--surface-2));
  box-shadow: 0 8px 18px rgba(20, 23, 27, 0.055);
}

.live-card {
  min-width: 0;
  min-height: 154px;
  padding: 13px;
}

.momentum-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
}

.momentum-chart {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 18 / 7;
  overflow: hidden;
  border: 1px solid rgba(63, 196, 168, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(111, 224, 200, 0.24), transparent 55%),
    linear-gradient(90deg, rgba(255, 143, 192, 0.12), rgba(255, 255, 255, 0.78) 44%, rgba(63, 196, 168, 0.18)),
    #f7fffc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.momentum-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.momentum-empty {
  min-height: 124px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px dashed rgba(63, 196, 168, .42);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(223, 246, 240, .72), rgba(255,255,255,.9));
  text-align: center;
}
.momentum-empty > span { color: var(--green); font-size: 26px; }
.momentum-empty strong { color: var(--green-deep); font-family: var(--display); font-size: 13px; }
.momentum-empty p { max-width: 34ch; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

.momentum-grid line {
  stroke: rgba(74, 59, 87, 0.1);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.momentum-band {
  fill: rgba(63, 196, 168, 0.18);
}

.momentum-area {
  fill: rgba(63, 196, 168, 0.2);
}

.momentum-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 5px rgba(43, 169, 143, 0.28));
  vector-effect: non-scaling-stroke;
}

.momentum-points circle {
  fill: var(--card);
  stroke: var(--green);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.momentum-axis {
  fill: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.momentum-axis.is-right {
  text-anchor: end;
  fill: var(--green-deep);
}

.momentum-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.momentum-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.momentum-meta span:last-child {
  text-align: right;
}

.momentum-meta strong {
  min-width: 46px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(63, 196, 168, 0.16);
  color: var(--green-deep);
  text-align: center;
  line-height: 1.2;
}

.timeline-list,
.metric-list {
  display: grid;
  gap: 8px;
}

.timeline-list div,
.metric-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 32px;
  padding-top: 8px;
  border-top: 1px solid rgba(185, 197, 192, 0.58);
}

.timeline-list div:first-child,
.metric-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-list time,
.metric-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.timeline-list span,
.metric-list strong {
  overflow-wrap: anywhere;
  font-weight: 780;
}

.live-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 650;
}

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

.live-stat-card {
  min-height: 106px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.live-stat-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.live-stat-card.is-metadata {
  min-height: 94px;
  align-content: space-between;
}
.live-stat-card.is-metadata > strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(14px, 2.2vw, 19px);
  line-height: 1.15;
}
.data-availability-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.split-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.split-stat strong,
.split-stat em {
  font-size: 24px;
  line-height: 1;
  font-style: normal;
  font-weight: 880;
}

.split-stat em {
  color: var(--muted);
}

.room-preview-avatars {
  display: flex;
  align-items: end;
  margin: 8px 0 12px;
}

.room-preview-avatars .avatar-art {
  width: 58px;
  height: 76px;
  margin-left: -12px;
  filter: drop-shadow(0 10px 14px rgba(20, 23, 27, 0.16));
}

.room-preview-avatars .avatar-art:first-child {
  margin-left: 0;
}

.language-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.language-pills span {
  padding: 7px 10px;
  border: 1px solid rgba(8, 125, 92, 0.14);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
}

.leader-panel {
  margin: 12px 0;
  padding: 12px;
}

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

.leader-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(185, 197, 192, 0.58);
}

.leader-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.leader-rank {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  align-self: center;
  line-height: 1;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.leader-row svg {
  width: 44px;
  height: 54px;
}

.leader-row strong,
.leader-row div > span {
  display: block;
}

.leader-row div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.leader-row em {
  color: var(--green);
  font-style: normal;
  font-weight: 820;
}

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

.pool-card {
  min-height: 210px;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: stretch;
  gap: 18px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  padding: 20px 18px 18px;
  box-shadow: 0 8px 0 var(--surface-3), var(--shadow);
  transition: transform .16s var(--bounce), box-shadow .16s;
}

.pool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--pink), var(--grape), var(--blue));
}

.pool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 0 var(--surface-3), var(--shadow-strong);
}

.pool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stake {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 850;
}

.stake span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.rail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 10px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
}

.rail-chip.is-locked {
  background: #ffe4f0;
  color: var(--pink-deep);
}

.rail-chip.is-live {
  background: var(--green-soft);
  color: var(--green-deep);
}

.pool-badge {
  min-width: 70px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(160deg, var(--lemon), var(--lemon-deep));
  color: #6b5320;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--lemon-deep);
}

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

.pool-meta div {
  min-height: 58px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(185, 197, 192, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.pool-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pool-meta strong {
  overflow-wrap: anywhere;
}

.pool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pool-footer .primary-button {
  min-width: 112px;
}

.avatar-stack {
  display: flex;
  align-items: center;
  min-width: 112px;
}

.avatar-stack .avatar-art,
.mini-avatar {
  width: 48px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 14px;
  background: var(--card);
  margin-left: -12px;
  box-shadow: 0 10px 18px rgba(20, 23, 27, 0.14);
}

.avatar-stack .avatar-art:first-child,
.mini-avatar:first-child {
  margin-left: 0;
}

.activity-rail {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 244, 0.92)),
    var(--surface);
}

.rail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rail-header .eyebrow {
  margin: 0;
}

.mini-fixture {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(185, 197, 192, 0.74);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, var(--surface-2));
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(20, 23, 27, 0.055);
}

.mini-fixture.is-current {
  border-color: rgba(8, 125, 92, 0.32);
  box-shadow: 0 12px 26px rgba(8, 125, 92, 0.11);
}

.fixture-time {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.mini-fixture small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--pink-deep);
  box-shadow: 0 5px 0 var(--line), 0 8px 16px rgba(229, 111, 166, 0.14);
  transition: transform .12s var(--bounce), box-shadow .12s;
}

.icon-button:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--line);
}

.icon-button.is-live {
  background: linear-gradient(160deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 5px 0 var(--pink-deep);
}

.signal-panel {
  padding: 12px;
  border: 1px solid rgba(185, 197, 192, 0.76);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #f4f8f6);
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.signal-row:first-of-type {
  border-top: 0;
}

.signal-row strong {
  color: var(--ink);
}

.bracket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bracket-settlement-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.settlement-rail-card {
  min-width: 0;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 0 var(--surface-3), var(--shadow);
}

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

.settlement-kpis div {
  min-width: 0;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
}

.settlement-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.settlement-kpis strong {
  overflow-wrap: anywhere;
}

.entry-ledger-card {
  grid-column: 1 / -1;
}

.payout-recipient-card {
  grid-column: 1 / -1;
}

.entry-ledger {
  display: grid;
  gap: 8px;
}

.entry-ledger-row {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 4px 0 var(--surface-3);
}

.entry-ledger-row.is-confirmed {
  background: linear-gradient(160deg, var(--green-soft), var(--card));
  box-shadow: 0 4px 0 var(--status-confirmed);
}

.entry-ledger-row.is-pending {
  background: linear-gradient(160deg, #fff1cf, #ffffff);
  box-shadow: 0 4px 0 var(--status-pending);
}

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

.payout-recipient-row {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(220px, 0.8fr) minmax(150px, 210px) 42px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 4px 0 var(--surface-3);
}

.payout-recipient-row.is-confirmed {
  background: linear-gradient(160deg, var(--green-soft), var(--card));
  box-shadow: 0 4px 0 var(--status-confirmed);
}

.payout-recipient-row.is-pending {
  background: linear-gradient(160deg, #fff1cf, #ffffff);
  box-shadow: 0 4px 0 var(--status-pending);
}

.payout-address-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.payout-address-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.payout-address-field input {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: 700 12px/1 var(--body);
  outline: none;
}

.payout-address-field input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 143, 192, 0.2);
}

.payout-demo-button {
  width: 38px;
  height: 38px;
  align-self: center;
}

.payout-demo-button svg {
  width: 18px;
  height: 18px;
}

.entry-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.entry-person svg {
  width: 48px;
  height: 56px;
}

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

.entry-person strong {
  font-size: 14px;
}

.entry-person span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.entry-status-stack {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.entry-status {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.entry-status.is-confirmed {
  background: var(--green-soft);
  color: var(--green-deep);
}

.entry-status.is-pending {
  background: #fff1cf;
  color: var(--lemon-deep);
}

.entry-status.is-intent {
  background: var(--surface-3);
  color: var(--grape);
}

.entry-status-stack code {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

.runtime-missing-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.runtime-missing-list li {
  padding: 8px 9px;
  border: 1px solid rgba(217, 169, 40, 0.24);
  border-radius: 6px;
  background: rgba(255, 247, 222, 0.74);
  color: var(--ink);
  font-size: 12px;
  font-weight: 740;
}

.bracket-actions,
.room-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bracket-board {
  min-height: 1900px;
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  display: grid;
  grid-template-columns: repeat(5, minmax(218px, 1fr));
  grid-template-rows: 28px repeat(16, 106px);
  align-items: center;
  column-gap: 24px;
  row-gap: 8px;
  padding: 22px 12px 32px;
  border: 1px solid rgba(185, 197, 192, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(8, 125, 92, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(37, 95, 186, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.58);
  background-size: 62px 62px;
  box-shadow: var(--shadow);
}

.bracket-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.bracket-lines path {
  fill: none;
  stroke: rgba(86, 100, 94, 0.44);
  stroke-width: 1.25;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.round-title {
  position: relative;
  z-index: 2;
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.match-card {
  position: relative;
  z-index: 2;
  min-height: 98px;
  align-self: center;
  border: 1px solid rgba(185, 197, 192, 0.92);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, #ffffff, #f4f8f6),
    #f8f9f9;
  padding: 11px;
  box-shadow: 0 12px 24px rgba(20, 23, 27, 0.08);
}

.bracket-match::after {
  display: none;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.match-status {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(20, 23, 27, 0.06);
  background: #e8ecef;
  color: var(--ink);
  font-size: 10px;
  font-weight: 820;
}

.team-row {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 4px;
  text-align: left;
}

.team-row:not(:disabled):hover,
.team-row.is-picked {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px var(--green), 0 6px 14px rgba(8, 125, 92, 0.1);
}

.team-row:disabled {
  cursor: not-allowed;
  color: var(--muted);
}

.team-row .team-flag {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
  font-size: 16px;
}

.team-row .team-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 760;
}

.pick-side {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 4px;
}

.score {
  min-width: 14px;
  text-align: right;
  font-weight: 820;
}

.pick-chip {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(37, 95, 186, 0.12);
  background: #eaf0ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 820;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.watch-room {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 244, 0.94)),
    var(--surface);
}

.room-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.watch-pick-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.watch-pick-card {
  min-height: 106px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(185, 197, 192, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 244, 0.92)),
    var(--surface);
  box-shadow: 0 8px 18px rgba(20, 23, 27, 0.06);
}

.watch-pick-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.watch-pick-team .score-flag {
  width: 46px;
  height: 46px;
  border-color: rgba(20, 23, 27, 0.08);
  background: var(--card);
  color: var(--ink);
  font-size: 26px;
}

.watch-pick-team strong,
.watch-pick-team span {
  display: block;
}

.watch-pick-team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.watch-pick-team span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.pick-avatars {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  min-width: 118px;
}

.pick-avatars span {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-left: -10px;
}

.pick-avatars span:first-child {
  margin-left: 0;
}

.pick-avatars .avatar-art {
  width: 42px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 16px rgba(20, 23, 27, 0.12);
}

.pick-avatars em {
  max-width: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.stadium {
  min-height: clamp(360px, 48vw, 470px);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.6vw, 24px);
  border: 1px solid #182026;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 74px),
    #202830;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-strong);
}

.stadium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 126px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent),
    repeating-linear-gradient(90deg, rgba(217, 169, 40, 0.3) 0 10px, transparent 10px 32px);
  opacity: 0.38;
}

.stadium::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 132px;
  background:
    linear-gradient(180deg, transparent, rgba(10, 14, 18, 0.78)),
    linear-gradient(90deg, rgba(8, 125, 92, 0.18), transparent 44%, rgba(37, 95, 186, 0.18));
  pointer-events: none;
}

.stadium-tv {
  width: min(860px, 100%);
  position: relative;
  z-index: 1;
  border: clamp(6px, 1vw, 10px) solid #10161b;
  border-radius: var(--radius);
  background: #09140e;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stat-meter {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(185, 197, 192, 0.74);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, var(--surface-2));
  box-shadow: 0 8px 18px rgba(20, 23, 27, 0.06);
}

.stat-meter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 730;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e6e8;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #20a779);
}

.watch-side {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 244, 0.9)),
    var(--surface);
}

.commentary-panel,
.chat-panel {
  min-width: 0;
}

.language-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(185, 197, 192, 0.78);
  border-radius: var(--radius);
  background: rgba(232, 241, 238, 0.74);
  margin-bottom: 12px;
}

.language-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 790;
}

.language-tabs button.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(185, 197, 192, 0.76), 0 6px 12px rgba(20, 23, 27, 0.06);
}

.commentary-feed,
.chat-feed {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 3px;
}

.commentary-line,
.chat-message {
  border: 1px solid rgba(185, 197, 192, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, var(--surface-2));
  padding: 10px;
  box-shadow: 0 6px 14px rgba(20, 23, 27, 0.045);
}

.commentary-line time,
.chat-message time {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.commentary-line p,
.chat-message p {
  margin: 0;
  line-height: 1.35;
}

.chat-message strong {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 12px;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  margin-top: 10px;
}

.games-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.game-arena,
.game-side,
.integration-panel,
.game-card {
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-arena {
  padding: 18px;
  background: var(--surface);
}

.game-header,
.game-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-actions {
  justify-content: end;
}

.game-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 18px 0 12px;
}

.game-player-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 6px 0 var(--surface-3);
}

.game-player-card.is-away {
  direction: rtl;
  text-align: right;
}

.game-player-card svg {
  width: 58px;
  height: 70px;
}

.game-player-card span,
.game-player-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 730;
}

.game-player-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.game-score-core {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.game-score-core span,
.game-score-core em {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.game-score-core strong {
  font-size: 22px;
  line-height: 1.05;
  color: var(--pink-deep);
}

.penalty-stage {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(12, 18, 30, 0.5), rgba(12, 18, 30, 0.12) 26%, transparent 46%),
    url('assets/stadium-bg.png') center 38% / cover no-repeat,
    linear-gradient(180deg, #1d2a33 0 42%, #177447 42% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-strong);
}

.goal-frame {
  position: absolute;
  left: 50%;
  top: 42px;
  width: min(540px, 78%);
  height: 214px;
  transform: translateX(-50%);
  border: 8px solid rgba(255, 255, 255, 0.9);
  border-bottom-width: 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    rgba(255, 255, 255, 0.05);
  background-size: 44px 100%, 100% 36px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.goal-frame span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.goal-frame span:nth-child(1) { left: 33.33%; }
.goal-frame span:nth-child(2) { left: 66.66%; }
.goal-frame span:nth-child(3) { display: none; }

.penalty-line {
  position: absolute;
  left: 50%;
  bottom: 112px;
  width: 240px;
  height: 92px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-bottom: 0;
  border-radius: 140px 140px 0 0;
}

.penalty-avatar {
  position: absolute;
  z-index: 2;
  transform: translateX(-50%);
}

.penalty-avatar .avatar-art {
  width: 130px;
  height: 154px;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.28));
}

.penalty-keeper {
  top: 150px;
}

.penalty-shooter {
  left: 50%;
  bottom: 18px;
}

.penalty-ball {
  position: absolute;
  z-index: 3;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(20, 23, 27, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 32%, transparent 33%),
    radial-gradient(circle at 65% 70%, #111820 0 18%, transparent 19%),
    #f7faf8;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22), 0 18px 30px rgba(0, 0, 0, 0.28);
}

.game-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.game-card,
.integration-panel {
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 0 var(--surface-3), var(--shadow);
}

.game-side {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
}

.hash-list,
.status-list {
  display: grid;
  gap: 8px;
}

.compact-hash {
  gap: 6px;
}

.hash-list div,
.status-list div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 2px solid var(--line);
}

.hash-list div:first-child,
.status-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.hash-list span,
.status-list span,
.settlement-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.hash-list code,
.status-list code,
.referee-verdict code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--grape);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 12px;
}

.status-list div {
  position: relative;
  padding-left: 18px;
}

.status-list div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.status-list div.is-complete::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(63, 196, 168, 0.18);
}

.status-list div.is-warn::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 185, 63, 0.2);
}

.compact-status {
  margin-top: 10px;
}

.runtime-pill {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.runtime-pill.is-ready {
  background: var(--green-soft);
  color: var(--green);
}

.runtime-pill.is-warn {
  background: #fff1cf;
  color: var(--lemon-deep);
}

.runtime-pill.is-locked {
  background: #ffe4f0;
  color: var(--pink-deep);
}

.runtime-summary {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 5px 0 var(--surface-3);
}

.runtime-summary.is-ready {
  background: linear-gradient(160deg, var(--green-soft), var(--card));
  box-shadow: 0 5px 0 var(--status-confirmed);
}

.runtime-summary.is-warn {
  background: linear-gradient(160deg, #fff1cf, #ffffff);
  box-shadow: 0 5px 0 var(--status-pending);
}

.runtime-summary.is-locked {
  background: linear-gradient(160deg, #ffe4f0, #ffffff);
  box-shadow: 0 5px 0 var(--status-locked);
}

.runtime-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.runtime-summary strong {
  font-size: 20px;
  line-height: 1.1;
}

.runtime-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.settlement-card {
  display: grid;
  gap: 4px;
  min-height: 96px;
  margin-bottom: 12px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--green-soft), var(--card));
  box-shadow: 0 5px 0 var(--status-confirmed);
}

.settlement-card strong {
  font-size: 26px;
  color: var(--green-deep);
}

.settlement-card em {
  color: var(--green-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.referee-verdict {
  display: grid;
  gap: 10px;
}

.referee-verdict span {
  font-size: 20px;
  font-weight: 800;
  color: var(--pink-deep);
}

.referee-verdict p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 650;
}

.game-steps {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}

.game-leader-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--line);
}

.game-leader-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.game-leader-row svg {
  width: 44px;
  height: 54px;
}

.game-leader-row div > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.game-leader-row em {
  color: var(--green);
  font-style: normal;
  font-weight: 820;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  max-width: min(460px, calc(100% - 32px));
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border: 1px solid rgba(25, 27, 31, 0.16);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 720;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%);
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .brand,
  .profile-chip {
    justify-self: start;
  }

  .topbar-right {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-end;
  }

  .profile-chip {
    max-width: 220px;
  }

  .topnav {
    width: 100%;
  }

  .onboarding-layout,
  .home-layout,
  .watch-layout,
  .games-layout {
    grid-template-columns: 1fr;
  }

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

  .avatar-preview {
    position: static;
  }

  .avatar-stage {
    min-height: 300px;
  }

  .activity-rail,
  .watch-side,
  .game-side {
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .bracket-board {
    min-height: 1900px;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    grid-template-rows: 28px repeat(16, 106px);
    column-gap: 12px;
    row-gap: 9px;
    padding: 18px 8px 26px;
  }

  .bracket-match::after {
    right: -13px;
    width: 12px;
  }

  .match-card {
    min-height: 92px;
    padding: 8px;
  }

  .match-meta {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .match-status {
    padding: 2px 6px;
    font-size: 9px;
  }

  .team-row {
    min-height: 30px;
    grid-template-columns: 23px minmax(0, 1fr) auto;
    gap: 5px;
    padding: 3px;
  }

  .team-row .team-flag {
    width: 23px;
    height: 23px;
    font-size: 14px;
  }

  .team-row .team-title {
    font-size: 13px;
  }

  .pick-side {
    gap: 2px;
  }

  .pick-chip {
    max-width: 34px;
    padding: 2px 4px;
    font-size: 9px;
  }

  .pick-chip + .pick-chip {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px;
    gap: 12px;
  }

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

  .topbar-right {
    gap: 8px;
  }

  .profile-chip {
    min-width: 0;
    width: min(216px, calc(100% - 56px));
    max-width: min(216px, calc(100% - 56px));
    flex: 0 1 auto;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    padding: 5px 12px 5px 5px;
  }

  .profile-chip .avatar-art {
    width: 44px;
    height: 44px;
  }

  .wallet-chip {
    min-width: 46px;
    min-height: 42px;
    justify-content: center;
    padding: 0 12px;
  }

  .screen {
    padding: 18px 12px 28px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .team-picker,
  .avatar-preview,
  .watch-room,
  .game-arena,
  .activity-rail,
  .watch-side,
  .game-side {
    padding: 14px;
  }

  .username-row,
  .pool-grid,
  .bracket-settlement-panel,
  .stats-strip,
  .watch-pick-board,
  .game-scoreboard,
  .game-detail-grid,
  .live-scoreline,
  .overview-dashboard,
  .room-dashboard,
  .qvac-dashboard,
  .game-live-preview {
    grid-template-columns: 1fr;
  }

  .home-titlebar,
  .pool-heading,
  .game-header,
  .game-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .live-team,
  .live-team.is-away {
    width: min(260px, 100%);
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    justify-content: center;
    justify-items: start;
    margin-inline: auto;
    text-align: left;
  }

  .score-core {
    justify-items: center;
    padding-left: 0;
  }

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

  .settlement-kpis {
    grid-template-columns: 1fr;
  }

  .entry-ledger-row {
    grid-template-columns: 1fr;
  }

  .payout-recipient-row {
    grid-template-columns: 1fr;
  }

  .entry-status-stack {
    justify-items: start;
  }

  .pool-footer,
  .bracket-header,
  .room-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .bracket-actions {
    width: 100%;
  }

  .bracket-actions .primary-button,
  .bracket-actions .secondary-button {
    flex: 1;
  }

  .penalty-stage {
    min-height: 420px;
  }

  .goal-frame {
    width: 86%;
    height: 176px;
  }

  .penalty-avatar .avatar-art {
    width: 108px;
    height: 132px;
  }

  .penalty-keeper {
    top: 132px;
  }

  .bracket-board {
    min-height: 0;
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    column-gap: 0;
    row-gap: 9px;
    padding: 14px;
  }

  .bracket-lines {
    display: none;
  }

  .round-title {
    grid-column: 1 !important;
    grid-row: auto !important;
    margin-top: 12px;
  }

  .round-title:first-child {
    margin-top: 0;
  }

  .bracket-match {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .bracket-match::after {
    display: none;
  }

  .pick-chip {
    max-width: 64px;
  }

  .pick-chip + .pick-chip {
    display: inline-flex;
  }

  .watch-pick-card {
    grid-template-columns: 1fr;
  }

  .pick-avatars {
    justify-content: flex-start;
  }

  .stadium {
    min-height: 430px;
  }

}

/* ============ Interactive Penalty Shootout ============ */
.shootout-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 6px 0 var(--surface-3), var(--shadow);
}
.shootout-hud .hud-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.shootout-hud .hud-side-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--green-deep);
}
.shootout-hud .hud-side.is-away .hud-side-name { color: var(--pink-deep); }
.shootout-hud .hud-core {
  display: flex; align-items: center; gap: 12px;
  padding: 0 4px;
}
.shootout-hud .hud-score-num {
  font-family: var(--display);
  font-size: 30px; line-height: 1;
  color: var(--green-deep);
  min-width: 26px; text-align: center;
}
.shootout-hud .hud-score-num.is-opp { color: var(--pink-deep); }
.shootout-hud .hud-round {
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; text-align: center;
}
.hud-dots { display: flex; gap: 8px; justify-content: center; }
.hud-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 2px #fff;
  transition: transform .2s var(--bounce), background .2s;
}
.hud-dot.is-goal { background: var(--green); box-shadow: 0 0 0 3px var(--green-ring); }
.hud-dot.is-miss { background: var(--pink); box-shadow: 0 0 0 3px var(--pink-ring); }
.hud-dot.is-next { background: var(--lemon); transform: scale(1.15); animation: dotPulse 1s ease-in-out infinite; }
@keyframes dotPulse { 50% { transform: scale(1.32); } }

/* aim grid overlaid on the goal */
.aim-grid {
  position: absolute;
  left: 50%;
  top: 42px;
  width: min(540px, 78%);
  height: 214px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.aim-grid.is-live { opacity: 1; pointer-events: auto; }
.aim-zone {
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .14s, transform .12s var(--bounce);
}
.aim-zone span {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.7);
  transition: transform .14s, background .14s, border-color .14s;
}
.aim-zone:hover { background: rgba(255, 143, 192, 0.28); transform: scale(1.02); }
.aim-zone:hover span { background: var(--pink); border-color: #fff; transform: scale(1.25); box-shadow: 0 0 16px rgba(255,143,192,.8); }

/* power / timing meter */
.power-dock {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: min(440px, 74%);
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
}
.power-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.power-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
  overflow: hidden;
}
.power-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0.5);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--lemon) 70%, var(--pink));
}
.power-fill.is-live { animation: powerOsc 1.05s ease-in-out infinite alternate; }
@keyframes powerOsc { from { transform: scaleX(0.08); } to { transform: scaleX(1); } }
.power-sweet {
  position: absolute;
  top: 0; bottom: 0;
  left: 66%; width: 20%;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px);
  pointer-events: none;
}

/* ball flight + keeper dive */
.penalty-ball { transition: left .68s ease-out, top .68s cubic-bezier(.3,-0.2,.5,1); }
.penalty-ball.is-kicking { animation: ballFlight .7s ease-out; }
@keyframes ballFlight {
  0% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -52px; }
  100% { translate: 0 0; rotate: 700deg; }
}
.penalty-keeper { transition: left .5s cubic-bezier(.34,1.35,.6,1), rotate .34s ease; }
.penalty-keeper.dive-left { rotate: -24deg; }
.penalty-keeper.dive-right { rotate: 24deg; }
.penalty-keeper.dive-mid { translate: 0 -8px; }

/* outcome banner */
.shoot-banner {
  position: absolute;
  left: 50%; top: 44%;
  transform: translate(-50%, -50%) scale(0.4);
  z-index: 6;
  font-family: var(--display);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.shoot-banner.is-show { animation: bannerPop .5s var(--bounce) forwards; }
.shoot-banner.is-goal { color: #fff; -webkit-text-stroke: 3px var(--pink-deep); }
.shoot-banner.is-stop { color: #fff; -webkit-text-stroke: 3px var(--blue-deep); }
@keyframes bannerPop {
  0% { transform: translate(-50%,-50%) scale(0.3) rotate(-8deg); opacity: 0; }
  60% { transform: translate(-50%,-50%) scale(1.15) rotate(3deg); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1) rotate(0); opacity: 1; }
}

/* win / lose overlay */
.shootout-over {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  background: rgba(74, 59, 87, 0.4);
  backdrop-filter: blur(4px);
}
.shootout-over[hidden] { display: none; }
.shootout-over-card {
  text-align: center;
  padding: 28px 34px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 10px 0 var(--line), var(--shadow-strong);
  animation: bannerPop .5s var(--bounce);
}
.over-title { margin: 0; font-family: var(--display); font-size: 34px; }
.over-title.is-win { color: var(--pink-deep); }
.over-title.is-lose { color: var(--muted); }
.over-score { margin: 6px 0 18px; font-weight: 800; color: var(--ink); }

/* ---- Game lower row: shot resolver + leaderboard (game-relevant, stays visible) ---- */
.game-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 720px) { .game-lower { grid-template-columns: 1fr; } }

/* ---- Audit & payments accordion (dropdowns at the bottom) ---- */
.audit-accordion { margin-top: 20px; display: grid; gap: 12px; }
.audit-heading {
  margin: 4px 2px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.audit-drop {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 0 var(--surface-3), var(--shadow);
  overflow: hidden;
}
.audit-drop > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  user-select: none;
  transition: background .14s;
}
.audit-drop > summary::-webkit-details-marker { display: none; }
.audit-drop > summary:hover { background: var(--surface-2); }
.audit-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface-3);
  font-size: 17px;
}
.audit-chevron {
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
  color: var(--pink-deep);
  transition: transform .22s var(--bounce);
}
.audit-drop[open] > summary .audit-chevron { transform: rotate(180deg); }
.audit-drop[open] > summary { border-bottom: 2px solid var(--line); }
.audit-body { padding: 16px 18px; }
.audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 720px) { .audit-grid { grid-template-columns: 1fr; } }
/* panels inside the accordion sit flat (the details card provides the frame) */
.audit-body .integration-panel,
.audit-body .game-card,
.audit-body .settlement-rail-card {
  box-shadow: none;
  background: transparent;
  padding: 0;
}
.audit-body .settlement-rail-card + .settlement-rail-card { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--line); }
.audit-drop[open] > summary .audit-ico { background: #ffe4f0; }

/* ============ Live Watch Party ============ */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 143, 192, 0.2);
  color: var(--pink-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  vertical-align: middle;
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: pulseDot 1.1s infinite; }
@keyframes pulseDot { 50% { opacity: .3; transform: scale(1.5); } }

.stadium-tv { position: relative; }
.share-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #0a1420;
}
#tvLiveBoard { transition: opacity .3s; }
.share-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 12, 24, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.share-badge i { width: 9px; height: 9px; border-radius: 50%; background: #ff5a76; box-shadow: 0 0 8px #ff5a76; animation: pulseDot 1.1s infinite; }
.icon-button.is-live { background: linear-gradient(160deg, var(--pink), var(--pink-deep)); color: #fff; box-shadow: 0 5px 0 var(--pink-deep); }

/* goal flash on the TV */
.tv-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,143,192,.5) 60%, transparent 75%);
  opacity: 0;
  pointer-events: none;
}
.tv-flash.is-on { animation: tvFlash .9s ease-out; }
@keyframes tvFlash { 0% { opacity: .95; } 100% { opacity: 0; } }

/* goal commentary line pops */
.commentary-line.is-goal {
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,143,192,.16), transparent);
  animation: goalLine .5s var(--bounce);
  padding-left: 8px;
}
.commentary-line.is-goal p { font-weight: 800; color: var(--pink-deep); }
@keyframes goalLine { 0% { transform: translateX(-14px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }

/* invite / share-room bar */
.room-share-bar {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 6px 0 var(--surface-3);
}
.room-share-bar[hidden] { display: none; }
.share-room-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.share-room-head strong { font-family: var(--display); font-size: 16px; }
.share-room-head span { font-size: 12px; font-weight: 800; color: var(--green-deep); }
.share-room-link { display: flex; gap: 10px; align-items: center; margin: 10px 0 8px; }
.share-room-link code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--grape);
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 700;
  font-size: 12px;
}
.share-room-note { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.4; }

/* ============ Wallet ============ */
.topbar-right { justify-self: end; display: flex; align-items: center; gap: 10px; min-width: 0; }
.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(160deg, var(--lemon), var(--lemon-deep));
  color: #6b5320;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--lemon-deep);
  transition: transform .12s var(--bounce), box-shadow .12s;
}
.wallet-chip:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lemon-deep); }
.wallet-ico { font-size: 15px; }

.wallet-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 8px 0 var(--surface-3), var(--shadow);
}
.wallet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wallet-balance { margin: 2px 0 0; font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--green-deep); }
.wallet-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.wallet-badge.is-live { background: rgba(63,196,168,.2); color: var(--green-deep); }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.wallet-actions .primary-button, .wallet-actions .secondary-button { min-height: 40px; padding: 0 14px; font-size: 14px; }
.wallet-actions .wallet-collect:disabled { opacity: .5; cursor: not-allowed; box-shadow: 0 5px 0 var(--green-deep); }
.wallet-rail-status { display: grid; gap: 7px; margin-top: 14px; padding: 11px 12px; border: 1px dashed rgba(58, 16, 48, .2); border-radius: 12px; background: rgba(255, 246, 225, .62); }
.wallet-rail-status p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.45; }
.wallet-rail-status strong { color: var(--ink); }
.wallet-ledger { margin-top: 12px; display: grid; gap: 2px; }
.wallet-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 2px solid var(--line); font-size: 13px; }
.wallet-row:first-child { border-top: 0; }
.wallet-row span { color: var(--muted); font-weight: 700; }
.wallet-row strong.credit { color: var(--green-deep); }
.wallet-row strong.debit { color: var(--pink-deep); }
.wallet-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.identity-card { border: 1px solid rgba(111, 224, 200, .48); }
.identity-status { margin: 2px 0 0; color: var(--muted); font: 800 15px var(--display); }
.identity-status.is-linked { color: var(--green-deep); }
.identity-pair-link { display: inline-flex; align-items: center; text-decoration: none; }
.identity-pair-code { margin: 12px 0 0; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.5; }
.identity-pair-code strong { font-family: var(--mono); letter-spacing: .08em; color: var(--pink-deep); }

@media (max-width: 640px) { .wallet-chip .wallet-amt { display: none; } }

/* ============ Bracket flow (select → entered → picks → audit) ============ */
.bracket-title { margin-bottom: 16px; }
.bracket-step {
  margin: 22px 2px 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.bracket-step .step-sub { color: var(--muted); font-weight: 700; font-size: 13px; margin-left: 4px; }

.pool-select {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.pool-pick {
  position: relative;
  text-align: left;
  border: 3px solid transparent;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 6px 0 var(--surface-3);
  padding: 16px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: transform .14s var(--bounce), box-shadow .14s, border-color .14s;
}
.pool-pick:hover { transform: translateY(-4px); }
.pool-pick.is-selected { border-color: var(--pink); box-shadow: 0 8px 0 var(--line), var(--shadow); }
.pool-pick.is-entered { border-color: var(--green); }
.pool-pick-heat {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--grape);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pool-pick-fee { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--pink-deep); line-height: 1.1; }
.pool-pick-meta { color: var(--muted); font-size: 12px; font-weight: 700; }
.pool-pick-cta {
  margin-top: 8px;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
}
.pool-pick.is-selected .pool-pick-cta { background: linear-gradient(160deg, var(--green-2), var(--green)); color: #fff; box-shadow: 0 4px 0 var(--green-deep); }
.pool-pick-cta.is-entered { background: var(--green-soft); color: var(--green-deep); box-shadow: none; }
.pool-pick-cta.is-locked { background: #ffe4f0; color: var(--pink-deep); box-shadow: none; }

.entered-avatars { display: flex; flex-wrap: wrap; gap: 10px; }
.entered-chip {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 62px;
  padding: 8px 4px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--surface-3);
}
.entered-chip svg { width: 44px; height: 52px; }
.entered-chip em { font-size: 11px; font-weight: 700; color: var(--muted); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 56px; }
.entered-chip.is-you { background: linear-gradient(160deg, var(--card), #ffe9f4); box-shadow: 0 4px 0 var(--line); }
.entered-chip.is-you em { color: var(--pink-deep); font-weight: 800; }
.entered-empty-state { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.entered-empty-state .avatar-art { width: 44px; height: 52px; flex: 0 0 auto; }
.entered-empty-state p { margin: 0; max-width: 310px; }
.entered-empty-state strong { color: var(--ink); }

.picks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.picks-head .bracket-step { margin: 22px 2px 12px; }

/* ============ Penalty lobby (matchmaking) ============ */
.game-arena:not(.is-lobby) > #gameLobby { display: none; }
.game-arena.is-lobby > #gameScoreboard,
.game-arena.is-lobby > #penaltyStage,
.game-arena.is-lobby > #shootoutHud,
.game-arena.is-lobby > .game-lower,
.game-arena.is-lobby > .audit-accordion,
.game-arena.is-lobby .game-actions { display: none; }

.game-lobby { display: grid; gap: 16px; }
.lobby-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,143,192,.22), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(124,196,255,.22), transparent 55%),
    linear-gradient(135deg, var(--card), var(--surface-2));
  box-shadow: 0 8px 0 var(--surface-3), var(--shadow);
}
.lobby-title { margin: 2px 0 4px; font-family: var(--display); font-size: 28px; }
.lobby-sub { margin: 0; color: var(--muted); font-weight: 600; max-width: 44ch; }
.lobby-quick {
  border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff;
  padding: 16px 26px; border-radius: 18px;
  background: linear-gradient(160deg, var(--pink), var(--pink-deep));
  box-shadow: 0 8px 0 var(--pink-deep), 0 14px 24px rgba(229,111,166,.35);
  transition: transform .12s var(--bounce), box-shadow .12s;
}
.lobby-quick:active { transform: translateY(7px); box-shadow: 0 1px 0 var(--pink-deep); }
.lobby-label {
  margin: 4px 2px -4px;
  font-family: var(--display); font-weight: 800; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.lobby-list { display: grid; gap: 12px; }
.lobby-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 0 var(--surface-3);
}
.lobby-card svg { width: 46px; height: 54px; }
.lobby-info strong { display: block; font-family: var(--display); font-size: 16px; }
.lobby-info span { color: var(--muted); font-size: 12px; font-weight: 700; }
.lobby-stake {
  font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--green-deep);
  padding: 4px 12px; border-radius: 999px; background: var(--green-soft);
}
.lobby-create {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 6px 0 var(--surface-3);
}
.lobby-create span { color: var(--muted); font-weight: 700; font-size: 13px; }

/* result overlay actions + prize */
.over-prize { margin: -8px 0 14px; font-weight: 800; color: var(--muted); }
.over-prize.is-win { color: var(--green-deep); font-size: 18px; }
.over-actions { display: flex; gap: 10px; justify-content: center; }

/* ============ Live data settings ============ */
.livedata-status { margin: 2px 0 0; font-weight: 800; color: var(--muted); }
.livedata-status.is-on { color: var(--green-deep); }
.livedata-switch { position: relative; width: 52px; height: 30px; flex: 0 0 auto; }
.livedata-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.livedata-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background .2s; pointer-events: none; }
.livedata-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .2s var(--bounce); }
.livedata-switch input:checked + span { background: linear-gradient(160deg, var(--green-2), var(--green)); }
.livedata-switch input:checked + span::after { transform: translateX(22px); }
.livedata-fields { display: grid; gap: 12px; margin: 16px 0; }
.livedata-fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 800; color: var(--ink); }
.livedata-fields label em { font-weight: 600; color: var(--muted); font-style: normal; }
.livedata-fields input, .livedata-fields select {
  min-height: 44px; width: 100%;
  border: 2px solid var(--line); border-radius: 12px; background: var(--surface-2);
  padding: 0 13px; font: 700 14px var(--body); color: var(--ink);
}
.livedata-fields input:focus, .livedata-fields select:focus { border-color: var(--pink); outline: none; }
.livedata-result { margin: 10px 0 0; font-size: 13px; font-weight: 700; min-height: 18px; }
.livedata-result.is-ok { color: var(--green-deep); }
.livedata-result.is-err { color: var(--pink-deep); }

/* ============ Responsive match centre (provider data only) ============ */
.tv-liveboard {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(330px, 43vw, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 20px);
  padding: clamp(16px, 4vw, 28px);
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.16), transparent 34%),
    radial-gradient(circle at 8% 85%, rgba(63,196,168,.26), transparent 31%),
    radial-gradient(circle at 92% 82%, rgba(124,196,255,.24), transparent 31%),
    linear-gradient(145deg, #17232b 0%, #0d171d 58%, #101a20 100%);
}
.tv-liveboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.08) 50%, transparent 50.2%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 34px);
  pointer-events: none;
}
.tv-liveboard.is-now { background-color: #0c2019; }
.tv-liveboard[hidden] { display: none; }
.match-stage-shell {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.6vw, 22px);
}
.match-stage-loading { display: grid; grid-template-columns: repeat(3, 10px); gap: 7px; place-items: center; color: rgba(255,255,255,.78); }
.match-stage-loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); animation: dotPulse 1.2s ease-in-out infinite; }
.match-stage-loading span:nth-child(2) { animation-delay: .16s; }
.match-stage-loading span:nth-child(3) { animation-delay: .32s; }
.match-stage-loading strong { grid-column: 1 / -1; margin-top: 8px; font-family: var(--display); }
.lb-comp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.lb-comp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-emblem { width: 20px; height: 20px; object-fit: contain; }
.lb-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: clamp(10px, 3vw, 22px);
  width: 100%; max-width: 620px;
}
.lb-team { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; }
.lb-crest { width: clamp(58px, 10vw, 78px); height: clamp(58px, 10vw, 78px); object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
.lb-crest-blank { display: grid; place-items: center; font-size: clamp(28px, 6vw, 38px); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; }
.lb-team strong { max-width: 100%; overflow: hidden; font-family: var(--display); font-size: clamp(15px, 3.5vw, 21px); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.lb-team small { color: rgba(255,255,255,.56); font-size: 10px; font-weight: 850; letter-spacing: 1.3px; text-transform: uppercase; }
.lb-score { display: grid; justify-items: center; gap: 10px; min-width: clamp(88px, 16vw, 150px); font-family: var(--display); white-space: nowrap; }
.lb-score > strong { font-size: clamp(34px, 7vw, 54px); font-weight: 900; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.lb-score > strong span { opacity: .55; margin: 0 3px; }
.lb-vs { font-size: clamp(18px, 5vw, 26px); opacity: .7; }
.lb-state {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: min(180px, 26vw);
  overflow: hidden;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-state.is-live { background: linear-gradient(160deg, #ff5a76, #e02e52); box-shadow: 0 6px 18px rgba(224,46,82,.4); }
.lb-state.is-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--card); animation: pulseDot 1.1s infinite; }
.lb-state.is-soon { background: rgba(124, 196, 255, 0.3); }
.lb-state.is-ft { background: rgba(255, 255, 255, 0.2); }
.lb-data-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.lb-data-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.lb-data-grid span { color: rgba(255,255,255,.56); font-size: 9px; font-weight: 850; letter-spacing: 1.1px; text-transform: uppercase; }
.lb-data-grid strong { overflow: hidden; font-size: clamp(11px, 2vw, 13px); text-overflow: ellipsis; white-space: nowrap; }
.lb-event {
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(8, 12, 16, .42);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.live-source {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 5px 0 var(--surface-3);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.live-source[hidden] { display: none; }
.ls-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #ffe4ea; color: #e02e52; font-weight: 800; letter-spacing: 1px; }
.ls-badge i { width: 7px; height: 7px; border-radius: 50%; background: #e02e52; animation: pulseDot 1.1s infinite; }
.ls-badge.is-stale { background: #fff0c7; color: #8b6411; }
.ls-src { color: var(--ink); }
.ls-refresh { margin-left: auto; border: 0; cursor: pointer; background: var(--surface-2); border-radius: 10px; padding: 7px 13px; font-family: var(--display); font-weight: 700; color: var(--pink-deep); }
.ls-refresh:active { transform: translateY(1px); }

.stats-strip.is-live-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.live-meta { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--radius); background: linear-gradient(160deg, var(--card), var(--surface-3)); box-shadow: 0 5px 0 var(--surface-3); }
.live-meta span { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.live-meta strong { font-family: var(--display); font-size: 16px; color: var(--ink); }
@media (max-width: 560px) {
  .stats-strip.is-live-meta { grid-template-columns: 1fr; }
  .stadium { min-height: 0; }
  .tv-liveboard { min-height: 350px; padding: 16px 12px; }
  .lb-teams { gap: 7px; }
  .lb-team strong { max-width: 26vw; }
  .lb-crest { width: 54px; height: 54px; }
  .lb-score { min-width: 78px; }
  .lb-state { max-width: 30vw; padding-inline: 9px; font-size: 10px; }
  .lb-data-grid { grid-template-columns: 1fr 1fr; }
  .lb-data-grid > div:last-child { grid-column: 1 / -1; }
  .lb-event { font-size: 11px; }
}

/* ============ Generated game assets ============ */
/* cute soccer ball sprite */
.penalty-ball { background: url('assets/ball.png') center / cover no-repeat, #fff; border-color: transparent; }

/* confetti burst (art is on black → screen blend drops the black) */
.confetti-burst {
  position: absolute; inset: -12%; z-index: 6;
  background: url('assets/confetti.png') center / cover no-repeat;
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
}
.confetti-burst.is-on { animation: confettiPop 1.15s ease-out; }
@keyframes confettiPop { 0% { opacity: 0; transform: scale(.55); } 12% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }

/* trophy on the win overlay */
.over-trophy { display: block; width: 100px; height: 100px; object-fit: contain; margin: -8px auto 2px; filter: drop-shadow(0 8px 14px rgba(229,111,166,.35)); animation: trophyPop .6s var(--bounce); }
.over-trophy[hidden] { display: none; }
@keyframes trophyPop { 0% { transform: scale(0) rotate(-16deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }

/* lobby mascot */
.lobby-mascot { width: clamp(66px, 14vw, 100px); height: auto; flex: 0 0 auto; align-self: center; filter: drop-shadow(0 8px 12px rgba(229,111,166,.25)); animation: mascotBob 3.6s ease-in-out infinite; }
.lobby-hero-copy { flex: 1 1 220px; min-width: 0; }
.lobby-you-ready { display: inline-flex; align-items: center; gap: 8px; min-width: max-content; padding: 7px 10px 7px 7px; border-radius: 18px; background: var(--surface); box-shadow: 0 4px 0 var(--surface-3); }
.lobby-you-ready .avatar-art { width: 38px; height: 46px; flex: 0 0 auto; }
.lobby-you-ready strong, .lobby-you-ready small { display: block; }
.lobby-you-ready strong { color: var(--ink); font-size: 12px; }
.lobby-you-ready small { color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 2px; }
@keyframes mascotBob { 50% { transform: translateY(-8px); } }

/* pool tier badges */
.pool-pick { padding-right: 66px; }
.pool-pick-badge { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); }
.pool-pick.is-entered .pool-pick-badge { animation: mascotBob 2.4s ease-in-out infinite; }

/* ============ Theme picker + switcher ============ */
.theme-picker {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(74, 59, 87, 0.55); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .28s;
  pointer-events: none;
}
.theme-picker.is-open { opacity: 1; pointer-events: auto; }
.theme-picker-card {
  width: min(560px, 100%); text-align: center;
  padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--card); color: var(--ink);
  box-shadow: 0 12px 0 var(--line), var(--shadow-strong);
  transform: translateY(14px) scale(.96); transition: transform .28s var(--bounce);
}
.theme-picker.is-open .theme-picker-card { transform: none; }
.theme-picker-title { margin: 4px 0 6px; font-family: var(--display); font-size: 30px; }
.theme-picker-sub { margin: 0 0 20px; color: var(--muted); font-weight: 600; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .theme-options { grid-template-columns: 1fr; } }
.theme-opt, .theme-chip {
  display: grid; justify-items: center; gap: 6px;
  padding: 16px 12px; cursor: pointer;
  border: 3px solid transparent; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card), var(--surface-3));
  box-shadow: 0 6px 0 var(--surface-3);
  transition: transform .14s var(--bounce), border-color .14s;
  color: var(--ink); font-family: inherit;
}
.theme-opt:hover, .theme-chip:hover { transform: translateY(-4px); border-color: var(--pink); }
.theme-chip.is-active { border-color: var(--green); }
.theme-opt strong, .theme-chip strong { font-family: var(--display); font-size: 15px; }
.theme-tag { font-size: 11px; font-weight: 700; color: var(--muted); }
.theme-preview { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }
.theme-preview i { width: 14px; height: 14px; border-radius: 5px; }
.theme-preview-kawaii { background: linear-gradient(135deg, #fff6fb, #f2fbf7); }
.theme-preview-shonen { background: #0a0713; }
.theme-preview-neo { background: #04060e; }
.theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
@media (max-width: 520px) { .theme-switch { grid-template-columns: 1fr; } }

/* ============ THEME: Shonen Blitz (bold / dark / electric) ============ */
[data-theme="shonen"] {
  color-scheme: dark;
  --ink: #f4ecff; --muted: #9d8fc4;
  --soft: #1d1436; --surface: #150e24; --surface-2: #1d1436; --surface-3: #241748; --card: #1d1436;
  --line: rgba(138, 92, 255, 0.3); --line-strong: rgba(138, 92, 255, 0.5);
  --green: #12e6d0; --green-2: #5cffe9; --green-deep: #0b9a8c; --green-soft: rgba(18, 230, 208, 0.18);
  --red: #ff2e63; --pink: #ff5a86; --pink-deep: #d81551;
  --pink-soft: rgba(255, 90, 134, 0.2);
  --btn-shadow: rgba(18, 230, 208, 0.1);
  --green-ring: rgba(18, 230, 208, 0.25);
  --pink-ring: rgba(255, 46, 99, 0.25);
  --status-confirmed: #0d7c6b;
  --status-pending: #6b5c1f;
  --status-locked: #7a3d5a;
  --blue: #8a5cff; --blue-deep: #6a3de0; --grape: #b98cff;
  --gold: #ffd23f; --lemon: #ffd23f; --lemon-deep: #c99a10;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", ui-rounded, system-ui, sans-serif;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.5); --shadow-strong: 0 26px 60px rgba(0, 0, 0, 0.65);
  font-family: var(--body);
}
[data-theme="shonen"] body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 46, 99, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(18, 230, 208, 0.16), transparent 60%),
    #0a0713;
}
[data-theme="shonen"] body::before {
  background-image: repeating-linear-gradient(115deg, transparent 0 38px, rgba(255, 255, 255, 0.035) 38px 40px);
  background-size: auto; animation: none; opacity: .6;
}
[data-theme="shonen"] .topbar { background: rgba(21, 14, 36, 0.82); border-bottom-color: var(--line); }
[data-theme="shonen"] .topnav { box-shadow: 0 6px 0 #0d0819, var(--shadow); }

/* ============ THEME: Neo-Tokyo (dark / neon / holographic) ============ */
[data-theme="neo"] {
  color-scheme: dark;
  --ink: #e8f6ff; --muted: #7d93b8;
  --soft: #0d1730; --surface: #0a1226; --surface-2: #0d1730; --surface-3: #12213f; --card: #0d1730;
  --line: rgba(40, 240, 255, 0.28); --line-strong: rgba(40, 240, 255, 0.5);
  --green: #28f0ff; --green-2: #7bf7ff; --green-deep: #12a8c8; --green-soft: rgba(40, 240, 255, 0.14);
  --red: #ff2fb0; --pink: #ff5cc4; --pink-deep: #d1148f;
  --pink-soft: rgba(255, 92, 196, 0.18);
  --btn-shadow: rgba(40, 240, 255, 0.08);
  --green-ring: rgba(40, 240, 255, 0.25);
  --pink-ring: rgba(255, 47, 176, 0.25);
  --status-confirmed: #0e6b60;
  --status-pending: #6b5c1f;
  --status-locked: #6b2f52;
  --blue: #3a6bff; --blue-deep: #2a4fd0; --grape: #b6ff3c;
  --gold: #b6ff3c; --lemon: #b6ff3c; --lemon-deep: #7fbf1c;
  --display: "Arial Black", "Avenir Next Condensed", ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.55); --shadow-strong: 0 26px 60px rgba(0, 0, 0, 0.7);
  font-family: "Avenir Next Condensed", var(--body);
}
[data-theme="neo"] body {
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(255, 47, 176, 0.18), transparent 60%),
    radial-gradient(1000px 600px at 10% 10%, rgba(40, 240, 255, 0.14), transparent 60%),
    #04060e;
}
[data-theme="neo"] body::before {
  background-image: repeating-linear-gradient(90deg, transparent 0 78px, rgba(40, 240, 255, 0.06) 78px 80px);
  background-size: auto; animation: none; opacity: .8;
}
[data-theme="neo"] .topbar { background: rgba(10, 18, 38, 0.82); border-bottom-color: var(--line); }
[data-theme="neo"] .brand, [data-theme="neo"] h1, [data-theme="neo"] h2 { letter-spacing: 1px; }

/* dark-theme shared fixups (light tints → theme surfaces) */
[data-theme="shonen"] .avatar-stage, [data-theme="neo"] .avatar-stage { background: radial-gradient(120% 90% at 50% 10%, var(--surface-3), var(--surface)); border-color: var(--line); }
[data-theme="shonen"] .brand-mark, [data-theme="neo"] .brand-mark { background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); box-shadow: 0 7px 0 rgba(0,0,0,.4), var(--shadow); }
[data-theme="shonen"] .topnav, [data-theme="neo"] .topnav { background: var(--surface-2); }
[data-theme="shonen"] .stadium-tv, [data-theme="neo"] .stadium-tv { color: #fff; }

/* ============ Watch party couches (seated in front of the screen) ============ */
.watch-party { margin-top: 18px; }
.party-label { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--muted); }
.party-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,143,192,.2); }
.couches { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
@media (max-width: 720px) { .couches { grid-template-columns: 1fr; } }
.couch-team { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.couch-team .score-flag { width: 30px; height: 30px; font-size: 18px; box-shadow: none; background: var(--surface-3); }
.couch-team strong { font-family: var(--display); font-size: 15px; }
.couch-team span:last-child { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.couch-scene { position: relative; }
.couch-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(229,111,166,.22)); }
.couch-seated {
  position: absolute; left: 0; right: 0; bottom: 30%; z-index: 2;
  display: flex; justify-content: center; align-items: flex-end;
  padding: 0 9%; pointer-events: none;
}
.seated { display: grid; justify-items: center; margin: 0 -8px; animation: seatBob 3.4s ease-in-out infinite; }
.seated:nth-child(2) { animation-delay: .4s; }
.seated:nth-child(3) { animation-delay: .8s; }
.seated:nth-child(4) { animation-delay: 1.2s; }
@keyframes seatBob { 50% { transform: translateY(-4px); } }
.seated-av { width: clamp(46px, 11vw, 64px); }
.seated-av .avatar-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 5px 6px rgba(0,0,0,.22)); }
.seated em { display: block; margin-top: 2px; font-size: 10px; font-weight: 800; font-style: normal; color: var(--ink); background: var(--card); padding: 1px 7px; border-radius: 99px; box-shadow: 0 2px 5px rgba(0,0,0,.12); }
.couch-scene:empty, .couch-seated:empty { display: none; }
.watch-challenge-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.62);
}
.watch-challenge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.watch-challenge-head .eyebrow { margin: 0; }
.watch-challenge-head strong { font-family: var(--display); font-size: 15px; }
.watch-challenge-list { display: grid; gap: 8px; }
.watch-challenge-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(63,196,168,.28);
  border-radius: 8px;
  background: var(--card);
}
.watch-challenge-card.is-incoming { border-color: rgba(229,111,166,.55); background: linear-gradient(160deg, var(--card), var(--pink-soft)); }
.watch-challenge-card.is-pending { border-color: rgba(63,196,168,.44); background: linear-gradient(160deg, var(--card), var(--green-soft)); }
.watch-challenge-card svg,
.watch-challenge-card .avatar-art { width: 38px; height: 44px; display: block; }
.watch-challenge-card strong,
.watch-challenge-card span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-challenge-card strong { font-family: var(--display); font-size: 14px; }
.watch-challenge-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.watch-challenge-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.watch-peer-waiting:disabled { opacity: .72; cursor: wait; box-shadow: 0 3px 0 var(--line); }
.watch-challenge-empty {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.watch-challenge-empty strong { color: var(--ink); font-family: var(--display); font-size: 14px; }
.watch-challenge-empty .compact-action { justify-self: start; margin-top: 6px; }
@media (max-width: 560px) {
  .watch-challenge-card { grid-template-columns: 40px minmax(0, 1fr); }
  .watch-challenge-card .watch-peer-challenge,
  .watch-challenge-card .watch-peer-waiting,
  .watch-challenge-actions { grid-column: 1 / -1; justify-self: stretch; }
  .watch-challenge-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

/* header theme button + picker close */
.theme-btn {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: inline-grid; place-items: center; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--card); color: var(--pink-deep);
  box-shadow: 0 5px 0 var(--line), 0 8px 16px var(--btn-shadow);
  transition: transform .12s var(--bounce), box-shadow .12s;
}
.theme-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--line); }
.theme-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.theme-close {
  position: absolute; top: 12px; right: 14px; width: 30px; height: 30px;
  border: 0; border-radius: 10px; cursor: pointer; font-weight: 800;
  background: var(--surface-3); color: var(--muted);
}
.theme-picker-card { position: relative; }
@media (max-width: 480px) {
  /* keep theme switching reachable on mobile: float as a FAB */
  .theme-btn { position: fixed; bottom: 18px; right: 18px; z-index: 55; min-width: 46px; min-height: 46px; }
}

/* defending turn: power/timing is irrelevant, so dim the meter */
.power-dock.is-keep .power-track { opacity: .35; filter: grayscale(.6); }
.power-dock.is-keep .power-label { color: var(--pink-deep); }

/* Home stats sub-tab live header */
.live-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.live-stat-head strong { font-family: var(--display); font-size: 16px; color: var(--pink-deep); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); background: var(--surface-3); padding: 4px 10px; border-radius: 999px; }
.live-pill.is-live { color: var(--green-deep); background: rgba(63,196,168,.14); }
.live-pill.is-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-ring); animation: dotPulse 1.4s ease-in-out infinite; }

/* live crest inside the Home hero scoreline */
.score-crest { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; }
.score-core em.is-live { color: var(--green-deep); }

/* ---- Peer match: lobby CTA + invite/join modal ---- */
.lobby-friend {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--pink-soft), var(--green-soft));
  box-shadow: 0 6px 0 var(--surface-3), var(--shadow);
}
.lobby-friend-copy strong { display: block; font-family: var(--display); font-size: 16px; color: var(--pink-deep); }
.lobby-friend-copy span { font-size: 13px; color: var(--muted); }
.lobby-friend-actions { display: flex; gap: 10px; }

.lobby-friend-copy .p2p-backend-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: inset 0 0 0 1px rgba(63, 196, 168, 0.24);
}

.lobby-friend-copy .p2p-backend-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-ring);
}

.lobby-friend-copy .p2p-backend-pill.is-preview {
  color: var(--pink-deep);
  box-shadow: inset 0 0 0 1px rgba(230, 95, 163, 0.22);
}

.lobby-friend-copy .p2p-backend-pill.is-preview::before {
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 143, 192, 0.2);
}

.lobby-friend-copy .p2p-backend-pill.is-offline {
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(74, 60, 90, 0.16);
}

.lobby-friend-copy .p2p-backend-pill.is-offline::before {
  background: var(--muted);
  box-shadow: none;
}

.peer-modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(58,32,52,.42); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.peer-modal.is-open { opacity: 1; }
.peer-modal-card {
  width: min(440px, 92vw); background: var(--card); border-radius: var(--radius-lg, 28px);
  padding: 26px 26px 22px; text-align: center;
  box-shadow: 0 8px 0 var(--surface-3), var(--shadow-strong);
  transform: translateY(14px) scale(.97); transition: transform .25s var(--bounce);
}
.peer-modal.is-open .peer-modal-card { transform: none; }
.peer-title { font-family: var(--display); font-size: 24px; color: var(--ink); margin: 2px 0 6px; }
.peer-sub { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.peer-code {
  font-family: var(--display); font-size: 34px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--pink-deep); background: var(--surface-3); border-radius: 16px; padding: 12px; margin-bottom: 12px;
}
.peer-link { margin-bottom: 16px; }
.peer-link code {
  display: block; font-size: 12px; color: var(--muted); background: var(--surface-3);
  padding: 10px 12px; border-radius: 12px; overflow-wrap: anywhere;
}
.peer-input {
  width: 100%; font-size: 18px; text-align: center; letter-spacing: 3px; text-transform: lowercase;
  padding: 12px; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 16px; background: var(--surface-2, var(--card));
}
.peer-actions { display: flex; gap: 10px; justify-content: center; }
.peer-actions .primary-button, .peer-actions .secondary-button { flex: 1; justify-content: center; }
.peer-wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--green-deep); }
.peer-wait i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: dotPulse 1.2s ease-in-out infinite; }

/* ---- Watch-party reactions + presence ---- */
.watch-reactions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 12px 0 4px; padding: 8px 14px; border-radius: 16px;
  background: var(--card); box-shadow: 0 4px 0 var(--surface-3);
}
.wr-label { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--green-deep); }
.wr-buttons { display: flex; gap: 6px; }
.wr-buttons button {
  width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer; font-size: 20px;
  background: var(--surface-3); box-shadow: 0 5px 0 var(--line);
  transition: transform .1s var(--bounce);
}
.wr-buttons button:hover { transform: translateY(-2px); }
.wr-buttons button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }

/* ---- Watch-room P2P push-to-talk ---- */
.voice-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 13px 14px;
  border: 1px solid rgba(69, 112, 230, .2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(232, 241, 255, .78));
  box-shadow: 0 5px 0 rgba(69, 112, 230, .08);
}
.voice-panel-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.voice-panel-copy .eyebrow { margin: 0 0 2px; color: var(--blue); }
.voice-panel-copy strong { display: block; overflow: hidden; color: var(--ink); font-family: var(--display); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.voice-status-dot {
  width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%;
  background: var(--muted); box-shadow: 0 0 0 4px rgba(69, 112, 230, .08);
}
.voice-panel.is-ready .voice-status-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(69, 112, 230, .15); }
.voice-panel.is-transmitting { border-color: rgba(229, 111, 166, .56); background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 226, 239, .82)); }
.voice-panel.is-transmitting .voice-status-dot { background: var(--pink); box-shadow: 0 0 0 5px rgba(229, 111, 166, .16); animation: pulseDot 1s ease-in-out infinite; }
.voice-ptt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 13px; border: 1px solid rgba(69, 112, 230, .25); border-radius: 13px;
  background: var(--card); color: var(--blue); box-shadow: 0 4px 0 rgba(69, 112, 230, .18);
  cursor: pointer; font-family: var(--display); font-size: 13px; font-weight: 820;
  touch-action: none; transition: transform .11s var(--bounce), box-shadow .11s var(--bounce), background .11s;
}
.voice-ptt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.voice-ptt kbd { padding: 2px 5px; border: 1px solid currentColor; border-radius: 5px; font-family: var(--body); font-size: 9px; font-weight: 850; line-height: 1; opacity: .72; }
.voice-ptt:not(:disabled):hover { transform: translateY(-2px); }
.voice-ptt:not(:disabled):active,
.voice-ptt.is-live { transform: translateY(3px); background: linear-gradient(145deg, var(--pink), var(--pink-deep)); color: #fff; box-shadow: 0 1px 0 var(--pink-deep); }
.voice-ptt:disabled { cursor: not-allowed; opacity: .58; }
.voice-hint { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.38; }
.voice-audio-rack { display: none; }
@media (max-width: 540px) {
  .voice-panel { grid-template-columns: 1fr; }
  .voice-ptt { width: 100%; }
}

.reaction-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.reaction-pop {
  position: absolute; bottom: 8%; font-size: 30px;
  animation: reactionFloat 2.1s ease-out forwards;
  filter: drop-shadow(0 3px 0 var(--line));
}
@keyframes reactionFloat {
  0% { transform: translateY(0) scale(.4); opacity: 0; }
  15% { transform: translateY(-10%) scale(1.1); opacity: 1; }
  100% { transform: translate(var(--drift, 0), -260%) scale(1); opacity: 0; }
}

/* ---- Live matchmaking lobby ---- */
.lobby-label { display: flex; align-items: center; gap: 8px; }
.lobby-label-muted { color: var(--muted); opacity: .8; margin-top: 18px; }
.lobby-live-badge, .lobby-live-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--green-deep);
}
.lobby-live-badge i, .lobby-live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-ring); animation: dotPulse 1.3s ease-in-out infinite; }
.lobby-card.is-live-peer { border: 2px solid rgba(63,196,168,.4); }
.lobby-live-dot { margin-left: auto; margin-right: 6px; }
.lobby-empty { color: var(--muted); font-size: 13px; padding: 10px 4px; }

/* ---- quality pass helpers ---- */
.icon-button { min-width: 44px; min-height: 44px; }
.chat-empty { color: var(--muted); font-size: 13px; padding: 10px 4px; text-align: center; }
.shoot-banner.is-wait { animation: dotPulse 1.2s ease-in-out infinite; }
.bracket-step.step-active { color: var(--pink-deep); border-left: 4px solid var(--pink); padding-left: 10px; }

/* striker telegraph on your keeper turns (margin shift composes with the base translateX) */
.penalty-shooter { transition: margin-left .5s var(--bounce), transform .3s; }
.penalty-shooter.lean-left { margin-left: -16px; transform: translateX(-50%) rotate(-5deg); }
.penalty-shooter.lean-right { margin-left: 16px; transform: translateX(-50%) rotate(5deg); }
.penalty-shooter.lean-center { transform: translateX(-50%) scale(1.04); }

/* ---- Rolling round-by-round bracket pools ---- */
.round-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 16px;
}

.round-pill {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  padding: 8px 14px;
  text-align: left;
  color: var(--ink);
  box-shadow: 0 4px 0 var(--line);
  transition: transform .15s var(--bounce);
}

.round-pill:hover { transform: translateY(-2px); }

.round-pill b {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 820;
}

.round-pill span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.round-pill.is-live {
  border-color: var(--green);
  box-shadow: 0 4px 0 var(--green-soft), 0 10px 22px var(--green-ring);
}

.round-pill.is-live span { color: var(--green-deep); }

.round-pill.is-done { opacity: .8; }

.round-pill.is-locked {
  border-style: dashed;
  background: var(--surface-2);
  opacity: .72;
  box-shadow: none;
}

.match-card.is-open {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-ring), 0 14px 26px rgba(43, 169, 143, 0.14);
}

.match-card.is-open .match-status {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-deep);
}

.match-card.is-decided { opacity: .82; }

.match-card.is-tbd {
  border-style: dashed;
  opacity: .68;
  box-shadow: none;
}

.team-row.is-winner .team-title { font-weight: 860; }

.team-row.is-eliminated .team-title,
.team-row.is-eliminated .score { opacity: .5; }

.team-row.is-tbd .slot-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
}

.pick-verdict {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.pick-verdict.is-hit {
  background: var(--green-soft);
  color: var(--green-deep);
}

.pick-verdict.is-miss {
  background: var(--status-locked);
  color: var(--pink-deep);
}

/* ============ Match pools ============ */
.game-pool-heading {
  margin-top: 28px;
  align-items: end;
}

.game-pool-live-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.game-pool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.game-pool-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--card), var(--surface-3));
  box-shadow: 0 7px 0 var(--surface-3), var(--shadow);
  transition: transform .16s var(--bounce), box-shadow .16s, border-color .16s;
}

.game-pool-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--grape), var(--pink));
}

.game-pool-card:hover,
.game-pool-card.is-selected {
  transform: translateY(-3px);
  border-color: rgba(229, 111, 166, .68);
  box-shadow: 0 10px 0 var(--surface-3), var(--shadow-strong);
}

.game-pool-card.is-live::before {
  background: linear-gradient(90deg, var(--green), var(--green-2), var(--blue));
}

.game-pool-card-head,
.game-pool-meta,
.game-pool-actions,
.trivia-head,
.trivia-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-pool-card-head {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.game-pool-state {
  color: var(--pink-deep);
}

.game-pool-state.is-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-deep);
}

.game-pool-state.is-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-ring);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.game-pool-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  min-height: 47px;
}

.game-pool-teams strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-pool-teams strong:last-child { text-align: right; }
.game-pool-teams > span { color: var(--muted); font-size: 11px; font-weight: 850; }
.game-pool-meta { color: var(--muted); font-size: 12px; font-weight: 740; }
.game-pool-meta strong { color: var(--green-deep); font-family: var(--display); font-size: 15px; }
.game-pool-open { justify-self: start; }

.game-pool-expander {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.game-pool-expander > p,
.game-pool-expander > small { margin: 0; color: var(--muted); font-size: 12px; font-weight: 680; line-height: 1.35; }
.game-pool-expander > small { font-size: 11px; }
.game-pool-picks,
.game-pool-stakes { display: grid; gap: 8px; }
.game-pool-picks { grid-template-columns: 1fr 1fr; }
.game-pool-stakes { grid-template-columns: repeat(3, 1fr); }

.game-pool-team,
.game-pool-stake,
.trivia-option {
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.game-pool-team {
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-pool-stake { padding: 7px 5px; border-radius: 999px; font-size: 12px; }
.game-pool-team.is-picked,
.game-pool-stake.is-picked { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); box-shadow: inset 0 0 0 1px var(--green-ring); }
.game-pool-actions { align-items: stretch; }
.game-pool-actions > button { flex: 1; justify-content: center; }

/* ============ QVAC watch-party trivia ============ */
.trivia-panel {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(183, 155, 255, .55);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(245, 237, 255, .9));
  box-shadow: 0 7px 0 rgba(183, 155, 255, .14);
}

.trivia-head { align-items: flex-start; }
.trivia-head .eyebrow { margin: 0 0 3px; }
.trivia-head strong { font-family: var(--display); font-size: 16px; }
.trivia-score { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--grape); color: #fff; font-size: 11px; font-weight: 850; }
.trivia-wait,
.trivia-question,
.trivia-explanation { margin: 0; line-height: 1.42; }
.trivia-wait { color: var(--muted); font-size: 13px; font-weight: 680; }
.trivia-question { color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 820; }
.trivia-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.trivia-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 49px;
  padding: 8px;
  border-radius: 12px;
  text-align: left;
  transition: transform .13s var(--bounce), border-color .13s, background .13s;
}

.trivia-option:not(:disabled):hover { transform: translateY(-2px); border-color: var(--grape); }
.trivia-option b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--grape); font-size: 11px; }
.trivia-option span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.trivia-option i { color: var(--green-deep); font-style: normal; font-size: 16px; }
.trivia-option.is-answer { border-color: var(--grape); background: rgba(183, 155, 255, .14); }
.trivia-option.is-correct { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); }
.trivia-option.is-wrong { border-color: var(--pink); background: var(--pink-soft); color: var(--pink-deep); }
.trivia-foot { color: var(--muted); font-size: 12px; font-weight: 720; }
.trivia-explanation { padding: 10px 12px; border-radius: 11px; background: var(--green-soft); color: var(--green-deep); font-size: 12px; font-weight: 720; }

/* ============ Public market-implied odds ============ */
.polymarket-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 15px;
  border: 1px solid rgba(69, 112, 230, .25);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(234, 240, 255, .8));
  box-shadow: 0 6px 0 rgba(69, 112, 230, .1);
}

.polymarket-panel .rail-header { margin: 0; }
.polymarket-panel .rail-header strong { display: inline-flex; align-items: center; gap: 7px; }
.watch-polymarket-panel { margin: 0; }
.game-polymarket-panel { margin: 0 0 14px; }
.polymarket-picker { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.polymarket-picker select { width: 100%; min-width: 0; padding: 8px 30px 8px 10px; border: 1px solid rgba(69, 112, 230, .28); border-radius: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font-family: var(--body); font-size: 12px; font-weight: 760; outline: none; }
.polymarket-picker select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(69, 112, 230, .13); }
.polymarket-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-family: var(--body);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.polymarket-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--green-ring); animation: dotPulse 1.4s ease-in-out infinite; }
.polymarket-live.is-stale { background: #fff1cf; color: var(--lemon-deep); }
.polymarket-live.is-stale i { background: var(--lemon-deep); box-shadow: none; animation: none; }
.polymarket-question { margin: 0; color: var(--ink); font-family: var(--display); font-size: 14px; font-weight: 820; line-height: 1.32; }
.polymarket-rows { display: grid; gap: 8px; }
.polymarket-row { display: grid; gap: 5px; }
.polymarket-row > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 760; }
.polymarket-row strong { color: var(--ink); font-family: var(--display); font-size: 14px; }
.polymarket-row > i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(69, 112, 230, .12); }
.polymarket-row > i > b { display: block; height: 100%; min-width: 5px; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--grape)); transition: width .35s ease; }
.polymarket-row.is-leading > i > b { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.polymarket-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.polymarket-foot a { color: var(--blue); font-weight: 850; text-decoration: none; }
.polymarket-foot a:hover { text-decoration: underline; }
.polymarket-note { margin: 0; color: var(--muted); font-size: 12px; font-weight: 680; line-height: 1.42; }
.polymarket-disclaimer { color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.35; }

/* Bracket polish: the grid remains legible as an actual tournament tree when wide. */
.bracket-board {
  scroll-snap-type: x proximity;
  background-color: rgba(255, 255, 255, .7);
}

.round-title {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border-left: 3px solid var(--grape);
  border-radius: 7px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 3px 0 rgba(183, 155, 255, .12);
  color: var(--ink);
  scroll-snap-align: center;
}

.match-card {
  scroll-snap-align: center;
  transition: transform .15s var(--bounce), box-shadow .15s, border-color .15s;
}

.match-card:hover { transform: translateY(-2px); border-color: rgba(183, 155, 255, .7); box-shadow: 0 15px 28px rgba(58, 16, 48, .14); }
.bracket-lines path { stroke: rgba(183, 155, 255, .72); stroke-width: 1.65; filter: drop-shadow(0 2px 1px rgba(58, 16, 48, .08)); }

/* Each Round-of-32 tile previously measured 120px because its padding was outside
   the 106px grid track. Use border-box plus a 128px track so every leaf has a clean
   10px breathing gap and all connector midpoints remain vertically centred. */
@media (min-width: 721px) {
  .bracket-board {
    min-height: 2280px;
    grid-template-rows: 32px repeat(16, 128px);
    row-gap: 10px;
  }

  .match-card {
    box-sizing: border-box;
    min-height: 104px;
  }
}

@media (max-width: 1040px) {
  .game-pool-grid { grid-template-columns: 1fr; }
  .game-pool-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .game-pool-card > .game-pool-expander { grid-column: 1 / -1; }
  .game-pool-card > .game-pool-card-head,
  .game-pool-card > .game-pool-teams,
  .game-pool-card > .game-pool-meta { grid-column: 1; }
  .game-pool-card > .game-pool-open { grid-column: 2; grid-row: 1 / span 3; }
}

@media (max-width: 620px) {
  .game-pool-heading { align-items: start; gap: 8px; }
  .game-pool-card { display: grid; grid-template-columns: 1fr; }
  .game-pool-card > .game-pool-open { grid-column: auto; grid-row: auto; }
  .trivia-options { grid-template-columns: 1fr; }
  .game-pool-actions { display: grid; grid-template-columns: 1fr; }
}
