/* VAR From Over - polished app UI */
:root {
  --bg: #080a0d;
  --bg-soft: #0b0f14;
  --surface: #10161d;
  --surface-2: #141c25;
  --surface-3: #192431;
  --panel: rgba(16, 22, 29, .82);
  --panel-strong: rgba(19, 27, 36, .94);
  --line: rgba(226, 234, 242, .11);
  --line-strong: rgba(226, 234, 242, .20);
  --text: #f4f7f9;
  --muted: #93a1ad;
  --muted-2: #667481;
  --accent: #f5b84b;
  --accent-2: #ffcf6d;
  --green: #3bd38f;
  --green-soft: #133524;
  --blue: #65b7d7;
  --red: #ef6b61;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
  --shadow-soft: 0 1px 0 rgba(255,255,255,.045) inset, 0 18px 46px rgba(0,0,0,.20);
  --font: "Inter", "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 10% -8%, rgba(59, 211, 143, .10), transparent 62%),
    radial-gradient(780px 500px at 92% -6%, rgba(101, 183, 215, .09), transparent 58%),
    linear-gradient(180deg, #080a0d 0%, #0a0f14 44%, #07090c 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.42), transparent 70%);
}

button, input, textarea, select { font: inherit; }
a { color: var(--accent-2); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: 0; }
.hidden { display: none !important; }
.shell { width: min(1200px, calc(100vw - 32px)); margin: 0 auto; }

/* ---------- Gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(140deg, rgba(13, 17, 23, .88), rgba(9, 11, 15, .96)),
    radial-gradient(640px 420px at 50% 10%, rgba(245, 184, 75, .16), transparent 64%);
}

.gate-card {
  width: min(410px, 100%);
  padding: 28px;
  background: rgba(17, 24, 32, .96);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-card .ball-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: url("/assets/trionda-official.webp") center / 135% no-repeat, #f8fafc;
  color: transparent;
  box-shadow: 0 10px 28px rgba(0,0,0,.34);
}

.gate-card h1 { font-size: 1.55rem; font-weight: 800; }
.gate-card .tag { margin: 8px 0 22px; color: var(--muted); }
.gate-err { min-height: 20px; margin: 8px 0; color: var(--red); font-size: .9rem; }

.pin-input {
  width: 100%;
  margin-bottom: 8px;
  padding: 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0c1117;
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: 8px;
  text-align: center;
}

.identity-select {
  width: 100%;
  margin: 8px 0 10px;
  padding: 13px 12px;
  background: #0c1117;
  font-weight: 800;
}

input, textarea, select {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c1117;
  color: var(--text);
}

textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: 2px solid rgba(245, 184, 75, .55);
  outline-offset: 2px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Controls ---------- */
.btn {
  cursor: pointer;
  border: 1px solid rgba(245, 184, 75, .58);
  border-radius: var(--radius);
  padding: 10px 15px;
  background: linear-gradient(180deg, #ffd77e, #f1ad38);
  color: #191307;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(245, 184, 75, .18);
  transition: transform .08s ease, border-color .16s ease, background .16s ease;
}

.btn:hover { border-color: rgba(255, 207, 109, .88); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.ghost {
  background: rgba(255,255,255,.035);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.25); }
.btn.danger { background: var(--red); border-color: rgba(239, 107, 97, .8); color: #210807; box-shadow: none; }
.btn.sm { padding: 7px 11px; font-size: .82rem; }

/* ---------- App shell ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 11px 18px;
  background: rgba(8, 10, 13, .78);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.025), 0 16px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(1.2);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: url("/assets/revellio-logo-orange.png") center / contain no-repeat;
  color: transparent;
  filter: drop-shadow(0 10px 20px rgba(217, 121, 55, .18));
}

.brand b { display: block; font-size: .98rem; }
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.brand .r { color: var(--accent); }
.appbar .spacer { flex: 1; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(226,234,242,.12);
  border-radius: 12px;
  background: rgba(14, 19, 26, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.055); }
.tab.active {
  color: #0c1117;
  background: linear-gradient(180deg, #fff, #edf2f7);
  box-shadow: 0 7px 18px rgba(0,0,0,.20);
}

main {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 30px 0 76px;
}

.view { animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -.025em;
}
.section-head .sub { max-width: 620px; color: var(--muted); line-height: 1.5; text-align: right; }

.card {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.grid { display: grid; gap: 12px; }
.muted { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.pill.amber { color: #ffd98b; border-color: rgba(245,184,75,.34); background: rgba(245,184,75,.10); }
.pill.green { color: #7be5b3; border-color: rgba(59,211,143,.28); background: rgba(59,211,143,.10); }
.pill.red { color: #ffa29b; border-color: rgba(239,107,97,.34); background: rgba(239,107,97,.11); }
.pill.cyan { color: #98daf1; border-color: rgba(101,183,215,.34); background: rgba(101,183,215,.10); }
.pill.prize { color: #ffdc8a; border-color: rgba(255,199,76,.46); background: rgba(255,199,76,.14); box-shadow: 0 0 18px rgba(255,199,76,.08); }

.flag-img {
  width: auto;
  border-radius: 3px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.crest { object-fit: contain; vertical-align: middle; }
.flag-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: .7em;
  font-weight: 800;
}

.initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: 7px;
  background: rgba(244,247,249,.95);
  color: #10151b;
  font-size: .66rem;
  font-weight: 900;
}
.owner-tag {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding: 2px 7px 2px 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  vertical-align: middle;
}
.owner-tag .initials { min-width: 22px; height: 22px; padding: 0 6px; font-size: .58rem; }
.owner-tag .owner-name {
  min-width: 0;
  max-width: 110px;
  overflow: hidden;
  color: #dce4ea;
  font-size: .7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owner-tag.compact { padding-right: 2px; }
.owner-tag.compact .owner-name { display: none; }

/* legacy hero removed from app shell */
.hero { display: none; }

/* ---------- Home ---------- */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
  align-items: start;
}
.home-main { display: grid; gap: 16px; }
.home-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 30px;
  border-color: rgba(226,234,242,.14);
  background:
    linear-gradient(135deg, rgba(18, 27, 36, .98), rgba(8, 12, 17, .98)),
    radial-gradient(560px 300px at 78% 12%, rgba(59,211,143,.18), transparent 64%),
    radial-gradient(420px 260px at 12% 100%, rgba(245,184,75,.13), transparent 62%);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.08) 50%, transparent 50.2%),
    radial-gradient(circle at 50% 50%, transparent 0 72px, rgba(255,255,255,.07) 73px 74px, transparent 75px);
  pointer-events: none;
}
.home-hero > div:first-child { position: relative; z-index: 1; max-width: 630px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.home-hero h3 { font-size: clamp(2rem, 4.4vw, 3.35rem); line-height: .98; letter-spacing: -.045em; }
.home-hero p { max-width: 560px; margin-top: 12px; color: #d9e1e8; line-height: 1.55; }
.home-hero-ball {
  position: relative;
  z-index: 1;
  flex: 0 0 clamp(130px, 17vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, rgba(255,255,255,.22), transparent 25%), rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 26px 44px rgba(0,0,0,.32);
}
.home-hero-ball video {
  position: absolute;
  inset: 9%;
  z-index: 2;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset -18px -20px 28px rgba(0,0,0,.25), inset 10px 8px 18px rgba(255,255,255,.18);
}
.home-hero-ball span {
  position: absolute;
  inset: 9%;
  z-index: 1;
  border-radius: 50%;
  background: url("/assets/trionda-official.webp") center / 122% no-repeat;
  box-shadow: inset -18px -20px 28px rgba(0,0,0,.25), inset 10px 8px 18px rgba(255,255,255,.18);
  animation: heroBallDrift 7s linear infinite;
}
@keyframes heroBallDrift { to { transform: rotate(-360deg); } }
.home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
}
.home-stat {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent),
    rgba(17, 24, 32, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.home-stat span { display: block; color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.home-stat b {
  display: block;
  min-width: 0;
  margin-top: 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.panel-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.panel-title h3 { font-size: 1rem; }
.panel-title span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-member {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  background: rgba(255,255,255,.032);
}
.home-member-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.home-member-head b { display: block; font-weight: 850; }
.home-member-head div span { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.home-team-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.home-team-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: #e8eef3;
  font-size: .74rem;
  font-weight: 800;
}
.home-team-chip span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-fixtures { display: grid; gap: 10px; }
.home-fixture {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  background: rgba(255,255,255,.032);
}
.home-fixture.rivalry { border-color: rgba(245,184,75,.30); background: rgba(245,184,75,.075); }
.home-fixture.prize-game { border-color: rgba(255,199,76,.34); }
.home-fixture-kicker { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.home-fixture-kicker > span:last-child { color: var(--muted); font-size: .72rem; font-weight: 800; text-align: right; }
.home-fixture-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}
.home-fixture-teams > div { display: flex; align-items: center; min-width: 0; gap: 8px; }
.home-fixture-teams b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-fixture-teams > span { color: var(--muted); font-size: .68rem; font-weight: 900; text-transform: uppercase; }

/* ---------- Draw ---------- */
.draw-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
}

.pitch {
  position: relative;
  min-height: 470px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(230, 242, 235, .20);
  border-radius: 14px;
  background:
    radial-gradient(650px 320px at 50% 45%, rgba(48, 146, 88, .20), transparent 64%),
    linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(90deg, #11623c 0 76px, #0d5535 76px 152px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 22px 60px rgba(255,255,255,.035),
    inset 0 -38px 70px rgba(0,0,0,.18),
    0 18px 40px rgba(0,0,0,.22);
}
.draw-arena {
  background:
    radial-gradient(circle at 50% 42%, rgba(245,184,75,.20), transparent 12%),
    radial-gradient(720px 360px at 50% 32%, rgba(84, 213, 255, .12), transparent 62%),
    radial-gradient(760px 420px at 50% 92%, rgba(31, 180, 106, .24), transparent 70%),
    linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(90deg, #11623c 0 76px, #0d5535 76px 152px);
}
.stadium-glow {
  position: absolute;
  inset: -18%;
  z-index: 1;
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.20), transparent 9%),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.16), transparent 9%),
    conic-gradient(from 215deg at 50% 12%, transparent 0 20deg, rgba(255,255,255,.16) 24deg 32deg, transparent 38deg 96deg, rgba(255,255,255,.13) 102deg 110deg, transparent 116deg);
  filter: blur(.2px);
  opacity: .74;
  mix-blend-mode: screen;
  pointer-events: none;
}
.draw-tunnel {
  position: absolute;
  top: 15%;
  bottom: 15%;
  z-index: 1;
  width: 18%;
  opacity: .58;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 2px, transparent 2px 16px),
    linear-gradient(90deg, rgba(6,9,13,.72), rgba(245,184,75,.10), transparent);
  clip-path: polygon(0 0, 100% 18%, 100% 82%, 0 100%);
}
.draw-tunnel.left { left: 0; }
.draw-tunnel.right {
  right: 0;
  transform: scaleX(-1);
}
.draw-scoreboard {
  position: absolute;
  left: 50%;
  top: 18px;
  z-index: 4;
  min-width: 190px;
  padding: 8px 14px;
  border: 1px solid rgba(245,184,75,.24);
  border-radius: 999px;
  background: rgba(6, 10, 15, .68);
  box-shadow: 0 0 28px rgba(245,184,75,.10);
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}
.draw-scoreboard span {
  display: block;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.draw-scoreboard b {
  display: block;
  margin-top: 1px;
  color: var(--accent);
  font-size: .9rem;
  text-transform: uppercase;
}
.draw-orbit {
  position: absolute;
  z-index: 2;
  width: clamp(220px, 34vw, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(245,184,75,.30);
  box-shadow: 0 0 34px rgba(245,184,75,.16), inset 0 0 34px rgba(84,213,255,.08);
  opacity: .72;
  animation: orbitPulse 3.8s ease-in-out infinite;
  pointer-events: none;
}
.draw-orbit::before,
.draw-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(235, 246, 255, .26);
}
.draw-orbit::after {
  inset: -9%;
  border-style: solid;
  border-color: rgba(59,211,143,.22);
  clip-path: polygon(0 0, 100% 0, 100% 36%, 0 62%);
  animation: orbitSpin 6s linear infinite;
}
.draw-trails {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.draw-trails i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), rgba(245,184,75,.86), transparent);
  opacity: 0;
  transform-origin: left center;
  filter: blur(.2px);
}
.draw-trails i:nth-child(1) { --r: -17deg; transform: rotate(var(--r)) translateX(-16%); }
.draw-trails i:nth-child(2) { --r: 8deg; transform: rotate(var(--r)) translateX(-18%); }
.draw-trails i:nth-child(3) { --r: 24deg; transform: rotate(var(--r)) translateX(-14%); }
.impact-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 90px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(245,184,75,.72);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
  pointer-events: none;
}
.draw-sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.draw-sparks i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(245,184,75,.65);
  opacity: .0;
}
.draw-sparks i:nth-child(1) { --x: -230px; --y: -155px; }
.draw-sparks i:nth-child(2) { --x: 260px; --y: -118px; }
.draw-sparks i:nth-child(3) { --x: -290px; --y: 86px; }
.draw-sparks i:nth-child(4) { --x: 220px; --y: 152px; }
.draw-sparks i:nth-child(5) { --x: -68px; --y: -222px; }
.draw-sparks i:nth-child(6) { --x: 94px; --y: 220px; }
.draw-instruction {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(6, 11, 15, .58);
  backdrop-filter: blur(10px);
}
.draw-instruction span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.draw-instruction b { font-size: .95rem; }
.pitch.charging .draw-orbit { animation: orbitSpin .7s linear infinite, orbitCharge 1.1s ease-in-out infinite; }
.pitch.charging .draw-sparks i,
.draw-sparks.reveal i {
  animation: sparkFlight 1.05s ease-out infinite;
  animation-delay: calc(var(--d, 0) * .09s);
}
.draw-sparks i:nth-child(2) { --d: 1; }
.draw-sparks i:nth-child(3) { --d: 2; }
.draw-sparks i:nth-child(4) { --d: 3; }
.draw-sparks i:nth-child(5) { --d: 4; }
.draw-sparks i:nth-child(6) { --d: 5; }
.pitch.charging .stadium-glow { opacity: 1; animation: floodlightSweep .9s ease-in-out infinite alternate; }
.pitch.charging .draw-scoreboard,
.pitch.launching .draw-scoreboard {
  border-color: rgba(245,184,75,.54);
  box-shadow: 0 0 36px rgba(245,184,75,.24);
}
.pitch.charging .draw-trails i {
  animation: trailCharge .82s ease-in-out infinite;
}
.pitch.charging .draw-trails i:nth-child(2) { animation-delay: .13s; }
.pitch.charging .draw-trails i:nth-child(3) { animation-delay: .26s; }
.pitch.launching .draw-trails i {
  animation: trailLaunch .52s ease-out infinite;
}
.pitch.launching .draw-tunnel {
  opacity: .86;
  animation: tunnelPulse .38s ease-in-out infinite alternate;
}
.pitch.impact .impact-ring {
  animation: impactBoom .52s cubic-bezier(.15,.85,.2,1) forwards;
}
.pitch.impact {
  animation: arenaHit .42s cubic-bezier(.16,.84,.44,1);
}
.pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(0deg, rgba(255,255,255,.035), transparent 28%, transparent 72%, rgba(255,255,255,.03)),
    radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,.16) 100%);
  pointer-events: none;
}
.pitch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.pitch-lines {
  position: absolute;
  inset: 24px;
  z-index: 1;
  border: 2px solid rgba(239, 249, 244, .56);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 0 18px rgba(255,255,255,.035);
  pointer-events: none;
}
.pitch-lines::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(239, 249, 244, .48);
  transform: translateX(-50%);
}
.pitch-centre {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(116px, 18vw, 192px);
  aspect-ratio: 1;
  border: 2px solid rgba(239, 249, 244, .50);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pitch-centre::after,
.pitch-spot::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(239, 249, 244, .70);
  box-shadow: 0 0 8px rgba(255,255,255,.22);
}
.pitch-centre::after { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.pitch-box,
.pitch-six,
.pitch-arc,
.pitch-spot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.pitch-box {
  width: 18%;
  height: 54%;
  border: 2px solid rgba(239, 249, 244, .50);
}
.pitch-box.left { left: -2px; border-left: 0; }
.pitch-box.right { right: -2px; border-right: 0; }
.pitch-six {
  width: 7.4%;
  height: 30%;
  border: 2px solid rgba(239, 249, 244, .48);
}
.pitch-six.left { left: -2px; border-left: 0; }
.pitch-six.right { right: -2px; border-right: 0; }
.pitch-spot.left { left: 12%; }
.pitch-spot.right { right: 12%; }
.pitch-spot::after { transform: translate(-50%, -50%); }
.pitch-arc {
  width: 92px;
  height: 132px;
  overflow: hidden;
}
.pitch-arc.left { left: 14.8%; }
.pitch-arc.right { right: 14.8%; }
.pitch-arc::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 132px;
  height: 132px;
  border: 2px solid rgba(239, 249, 244, .42);
  border-radius: 50%;
  transform: translateY(-50%);
}
.pitch-arc.left::before { right: 0; }
.pitch-arc.right::before { left: 0; }

.ball {
  position: relative;
  z-index: 3;
  width: clamp(112px, 14vw, 142px);
  height: clamp(112px, 14vw, 142px);
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  line-height: 0;
  isolation: isolate;
}
.ball::selection { background: transparent; }
.ball::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  background: url("/assets/trionda-official.webp") center / 122% no-repeat;
  box-shadow:
    0 18px 34px rgba(0,0,0,.34),
    inset -16px -18px 28px rgba(0,0,0,.24),
    inset 8px 7px 18px rgba(255,255,255,.20);
}
.ball.video-ball {
  isolation: auto;
}
.ball.video-ball::before { display: none; }
.ball video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: circle(45% at 50% 50%);
  object-fit: cover;
  transform: scale(1.18);
  mix-blend-mode: screen;
  filter: saturate(1.12) contrast(1.06);
}
.ball.spin {
  animation: ballKick 1.18s cubic-bezier(.34,.02,.2,1) infinite, ballSwerve 2.36s ease-in-out infinite;
}
.pitch.launching .ball.spin {
  animation: ballLaunch .95s cubic-bezier(.13,.86,.22,1) infinite, ballSwerve .95s ease-in-out infinite;
}
.ball.spin::before {
  animation: ballTextureSpin .22s linear infinite;
  filter: saturate(1.22) contrast(1.08);
}
.pitch.launching .ball.spin::before { animation-duration: .13s; }
.pitch.launching .ball.spin video { filter: saturate(1.24) contrast(1.1); }
.ball.spin::after { animation: ballShadowKick 1.18s cubic-bezier(.34,.02,.2,1) infinite; }
.ball.spin + * { pointer-events: none; }
.ball::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 122%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.42), rgba(0,0,0,0) 72%);
  filter: blur(5px);
  transform: translate(-50%, 78%) scaleX(.82);
}
@keyframes ballspin { to { transform: rotate(360deg); } }
@keyframes ballKick {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  18% { transform: translate3d(48px, -54px, 0) scale(.96); }
  42% { transform: translate3d(-36px, -18px, 0) scale(1.04); }
  68% { transform: translate3d(34px, -74px, 0) scale(.92); }
  84% { transform: translate3d(-10px, -22px, 0) scale(1.02); }
}
@keyframes ballTextureSpin {
  from { transform: rotate(0deg) scale(1.03); background-position: 52% 48%; }
  35% { background-position: 28% 56%; }
  70% { background-position: 74% 42%; }
  to { transform: rotate(-360deg) scale(1.03); background-position: 52% 48%; }
}
@keyframes ballShadowKick {
  0%, 100% { opacity: .72; transform: translate(-50%, 78%) scaleX(.82); }
  18% { opacity: .32; transform: translate(-72%, 132%) scaleX(.52); }
  42% { opacity: .62; transform: translate(-36%, 92%) scaleX(.9); }
  68% { opacity: .22; transform: translate(-66%, 154%) scaleX(.42); }
  84% { opacity: .48; transform: translate(-44%, 112%) scaleX(.68); }
}
@keyframes ballLaunch {
  0% { transform: translate3d(-210px, 118px, 0) scale(.82) rotate(0deg); }
  24% { transform: translate3d(-72px, -78px, 0) scale(1.05) rotate(230deg); }
  52% { transform: translate3d(182px, -118px, 0) scale(.74) rotate(560deg); }
  76% { transform: translate3d(42px, 68px, 0) scale(1.12) rotate(820deg); }
  100% { transform: translate3d(-210px, 118px, 0) scale(.82) rotate(1080deg); }
}
@keyframes ballSwerve {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(245,184,75,0)); }
  50% { filter: drop-shadow(0 0 24px rgba(245,184,75,.38)); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-ball video,
  .ball video { display: none; }
  .ball.video-ball::before { display: block; }
}
@keyframes orbitPulse {
  0%, 100% { transform: scale(.94); opacity: .52; }
  50% { transform: scale(1.03); opacity: .82; }
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitCharge {
  0%, 100% { box-shadow: 0 0 34px rgba(245,184,75,.18), inset 0 0 34px rgba(84,213,255,.08); }
  50% { box-shadow: 0 0 68px rgba(245,184,75,.45), inset 0 0 48px rgba(84,213,255,.22); }
}
@keyframes sparkFlight {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.1); }
}
@keyframes floodlightSweep {
  from { transform: translateX(-1.5%) rotate(-1deg); }
  to { transform: translateX(1.5%) rotate(1deg); }
}
@keyframes trailCharge {
  0% { opacity: 0; transform: rotate(var(--r, 0deg)) translateX(-46%) scaleX(.18); }
  45% { opacity: .78; }
  100% { opacity: 0; transform: rotate(var(--r, 0deg)) translateX(28%) scaleX(1); }
}
@keyframes trailLaunch {
  0% { opacity: 0; transform: translateX(-62%) scaleX(.16); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: translateX(42%) scaleX(1.2); }
}
@keyframes tunnelPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.6); }
}
@keyframes impactBoom {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(8.8); }
}
@keyframes arenaHit {
  0%, 100% { transform: translate3d(0, 0, 0); }
  22% { transform: translate3d(-5px, 2px, 0); }
  48% { transform: translate3d(5px, -2px, 0); }
  72% { transform: translate3d(-2px, 1px, 0); }
}

.draw-reveal {
  position: relative;
  z-index: 3;
  width: min(430px, 88%);
  padding: 30px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 36%),
    rgba(9, 14, 20, .90);
  border: 1px solid rgba(245,184,75,.44);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0,0,0,.38), 0 0 60px rgba(245,184,75,.16);
  animation: revealPop .48s cubic-bezier(.2,1.2,.5,1);
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.reveal-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.draw-reveal .rflag { line-height: 1; }
.draw-reveal .rteam { margin-top: 10px; font-size: 1.8rem; font-weight: 900; }
.draw-reveal .rfor { margin-top: 6px; color: var(--accent-2); font-weight: 800; }
.reveal-glow { opacity: 1; }
.reveal-shards {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.reveal-shards i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(245,184,75,.75));
  box-shadow: 0 0 16px rgba(245,184,75,.42);
  opacity: 0;
  animation: shardBurst 1.4s cubic-bezier(.16,.84,.32,1) forwards;
}
.reveal-shards i:nth-child(1) { --x: -310px; --y: -165px; --rot: -36deg; }
.reveal-shards i:nth-child(2) { --x: -180px; --y: -225px; --rot: 18deg; animation-delay: .04s; }
.reveal-shards i:nth-child(3) { --x: 28px; --y: -250px; --rot: -6deg; animation-delay: .08s; }
.reveal-shards i:nth-child(4) { --x: 260px; --y: -182px; --rot: 32deg; animation-delay: .12s; }
.reveal-shards i:nth-child(5) { --x: 310px; --y: 95px; --rot: -22deg; animation-delay: .16s; }
.reveal-shards i:nth-child(6) { --x: 110px; --y: 228px; --rot: 38deg; animation-delay: .20s; }
.reveal-shards i:nth-child(7) { --x: -112px; --y: 236px; --rot: -18deg; animation-delay: .24s; }
.reveal-shards i:nth-child(8) { --x: -280px; --y: 106px; --rot: 24deg; animation-delay: .28s; }
@keyframes revealPop {
  0% { transform: scale(.72) translateY(18px); opacity: 0; filter: blur(8px); }
  70% { transform: scale(1.04) translateY(0); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes shardBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--rot)); }
}

.draw-side { display: flex; flex-direction: column; gap: 10px; }
.member-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.member-pick:hover { border-color: rgba(245,184,75,.36); transform: translateY(-1px); }
.member-pick.active { border-color: rgba(245,184,75,.75); background: rgba(245,184,75,.10); }
.member-pick.done { opacity: .64; }
.member-pick.locked { cursor: not-allowed; opacity: .52; }
.member-pick.locked:hover { transform: none; border-color: var(--line); }
.member-pick .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; }
.member-pick .prog { color: var(--muted); font-size: .75rem; font-weight: 800; }
.member-pick .teams { display: flex; gap: 4px; min-width: 0; }
.draw-button {
  min-height: 46px;
  box-shadow: 0 13px 34px rgba(245,184,75,.22);
}
.draw-button:disabled {
  opacity: .58;
  box-shadow: none;
  cursor: not-allowed;
}
.draw-note { font-size: .78rem; text-align: center; }

/* ---------- Standings ---------- */
.standings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.standings-table { padding: 0; overflow: hidden; }
.standing-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 84px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  transition: background .14s ease;
}
.standing-row:hover { background: rgba(255,255,255,.025); }
.standing-row:last-child { border-bottom: 0; }
.rank { color: var(--muted-2); font-size: 1rem; font-weight: 900; text-align: center; }
.rank.r1 { color: var(--accent-2); }
.rank.r2 { color: #d7dde3; }
.rank.r3 { color: #d8a56f; }
.standing-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 850; }
.progress { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--accent)); }
.team-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #d9e1e7;
  font-size: .78rem;
}
.team-chip.out { opacity: .42; text-decoration: line-through; }
.team-chip.champ { border-color: rgba(245,184,75,.7); box-shadow: 0 0 0 1px rgba(245,184,75,.16) inset; }
.pts { text-align: right; }
.pts b { display: block; color: var(--accent-2); font-size: 1.45rem; font-weight: 900; }
.pts span { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.prediction-standings { display: grid; gap: 10px; }
.prediction-standing-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.028);
}
.prediction-standing-row b {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: .86rem;
}
.prediction-standing-row b + span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

/* ---------- Road ---------- */
.ladder-v { display: grid; gap: 10px; }
.tier {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.tier.empty { opacity: .55; }
.tier.champion { border-color: rgba(245,184,75,.5); background: rgba(44,34,16,.62); }
.tier-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.tier-h h4 { color: var(--blue); font-size: .74rem; font-weight: 850; text-transform: uppercase; }
.tier.champion .tier-h h4 { color: var(--accent-2); }
.tier-h .cnt { color: var(--muted); font-size: .72rem; font-weight: 800; }
.tier .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.bt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  font-size: .8rem;
}
.bt.mine { border-color: rgba(245,184,75,.58); background: rgba(245,184,75,.10); font-weight: 750; }
.bt.out { opacity: .42; }
.bt .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.road-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.road-route {
  position: relative;
  display: grid;
  gap: 14px;
}
.road-route::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--green), var(--accent), var(--blue));
  opacity: .58;
}
.road-stop {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
}
.road-marker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 16px;
}
.road-marker span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245,184,75,.48);
  border-radius: 50%;
  background: #121a22;
  color: var(--accent-2);
  font-weight: 950;
  box-shadow: 0 0 0 6px rgba(8,10,13,.92), 0 0 24px rgba(245,184,75,.14);
}
.road-stop-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent),
    var(--panel);
  box-shadow: var(--shadow-soft);
}
.road-stop.champion .road-stop-card {
  border-color: rgba(245,184,75,.42);
  background: linear-gradient(135deg, rgba(245,184,75,.12), rgba(59,211,143,.04)), var(--panel);
}
.stadium-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(101,183,215,.24);
  border-radius: 8px;
  background: rgba(101,183,215,.08);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.stadium-chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stadium-chip span { color: var(--muted); font-size: .72rem; font-weight: 800; }
.road-stadium-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}
.stadium-mini { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.stadium-mini button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #d9e1e7;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.stadium-mini button:hover {
  border-color: rgba(101,183,215,.40);
  background: rgba(101,183,215,.09);
}
.stadium-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
}
.stadium-card-hero {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: -16px -16px 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, transparent, rgba(8,10,13,.92)),
    radial-gradient(500px 180px at 70% 0%, rgba(245,184,75,.20), transparent 62%),
    linear-gradient(135deg, rgba(28,42,54,.96), rgba(9,13,18,.96));
}
.stadium-card-hero h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.stadium-card-hero p { margin: 6px 0 0; color: var(--muted); font-weight: 800; }
.stadium-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stadium-facts div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.stadium-facts span {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}
.stadium-facts b { display: block; margin-top: 5px; font-size: .9rem; }
.stadium-note { margin: 12px 0 0; color: #dce4ea; line-height: 1.55; }

/* ---------- Dugout ---------- */
.dugout-shell { display: grid; gap: 16px; }
.dugout-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}
.dugout-toolbar input { width: 100%; }
.dugout-locks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.dugout-lock {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.dugout-lock.locked { border-color: rgba(59,211,143,.26); background: rgba(59,211,143,.07); }
.dugout-lock span { display: block; color: var(--muted); font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.dugout-lock b { display: block; min-width: 0; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dugout-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.team-directory {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 4px;
}
.team-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.team-card:hover, .team-card.active { border-color: rgba(245,184,75,.48); background: rgba(245,184,75,.08); }
.team-card-main { min-width: 0; }
.team-card-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card-main em { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; font-style: normal; font-weight: 800; }
.team-card-owner { display: flex; align-items: center; }
.dugout-detail { min-height: 520px; }
.dugout-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dugout-crest {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}
.dugout-hero h3 { font-size: 2rem; letter-spacing: -.03em; }
.dugout-hero p { margin: 7px 0 0; color: var(--muted); font-weight: 800; }
.dugout-team-vote { display: grid; gap: 7px; justify-items: end; }
.dugout-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.dugout-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.dugout-fixture,
.dugout-summary-row {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dugout-fixture:last-child,
.dugout-summary-row:last-child { border-bottom: 0; }
.dugout-fixture span,
.dugout-fixture em,
.dugout-summary-row span { color: var(--muted); font-size: .74rem; font-style: normal; font-weight: 800; }
.dugout-summary-row em {
  color: #c6d0d8;
  font-size: .72rem;
  font-style: normal;
  line-height: 1.35;
}
.dugout-squad-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.manual-player-vote {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(101,183,215,.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(101,183,215,.08), rgba(245,184,75,.05));
}
.manual-player-vote label { color: var(--muted); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.manual-player-vote input,
.manual-player-vote select { width: 100%; margin-top: 5px; }
.manual-player-vote.locked {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.manual-player-vote.locked b { color: var(--accent-2); }
.player-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.player-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}
.player-table th,
.player-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: left;
}
.player-table th {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255,255,255,.035);
}
.player-table td { color: #dfe7ee; font-size: .84rem; font-weight: 800; }
.player-table tbody tr:hover { background: rgba(245,184,75,.055); }
.player-table tbody tr:last-child td { border-bottom: 0; }
.player-table-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.player-table-name b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-cell { color: var(--accent-2); font-weight: 950; }
.pick-cell { width: 74px; }
.pick-cell .btn { min-width: 58px; }
.player-photo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-block;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255,255,255,.05);
}
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-photo span { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(101,183,215,.18), rgba(245,184,75,.12)); }
.player-table-empty {
  display: grid;
  gap: 5px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
.player-table-empty b { color: var(--text); font-size: 1rem; }

/* ---------- Fixtures / Results ---------- */
.fixture-card { padding: 0; overflow: hidden; }
.match-shell { border-bottom: 1px solid var(--line); }
.match-shell:last-child { border-bottom: 0; }
.match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 16px 18px;
  border-bottom: 0;
  transition: background .14s ease, box-shadow .14s ease;
}
.match[role="button"] { cursor: pointer; }
.match[role="button"]:hover {
  background: rgba(255,255,255,.033);
  box-shadow: inset 3px 0 0 rgba(245,184,75,.58);
}
.match .side { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.match .side > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .side.away { justify-content: flex-end; text-align: right; }
.match .mid { text-align: center; }
.match .score { font-size: 1.25rem; font-weight: 900; }
.match .ko { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.match-venue { margin-top: 3px; color: #c9d3dc; font-size: .7rem; font-weight: 800; }
.match.rivalry { background: linear-gradient(90deg, rgba(245,184,75,.08), transparent 50%, rgba(245,184,75,.08)); }
.match.prize-game { box-shadow: inset 3px 0 0 rgba(255,199,76,.62); }
.match-expand-label {
  width: fit-content;
  margin: 6px auto 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245,184,75,.10);
  color: var(--accent-2);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.match-prediction {
  display: none;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.055);
  background:
    linear-gradient(180deg, rgba(245,184,75,.035), transparent 28%),
    rgba(5,8,12,.24);
}
.match-shell.open .match-prediction { display: grid; gap: 12px; }
.match-prediction p { margin: 0; color: #dce4ea; line-height: 1.5; }
.fixture-detail-slot { margin-top: 2px; }
.fixture-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fixture-detail-table {
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.fixture-detail-table h4 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}
.fixture-detail-table table { width: 100%; min-width: 320px; border-collapse: collapse; }
.fixture-detail-table th,
.fixture-detail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  font-size: .76rem;
}
.fixture-detail-table th { color: var(--muted); text-transform: uppercase; font-size: .62rem; }
.fixture-detail-table td { color: #dfe7ee; font-weight: 800; }
.fixture-detail-table tbody tr:last-child td { border-bottom: 0; }
.cdown { color: var(--accent-2); font-variant-numeric: tabular-nums; font-weight: 900; }

/* ---------- Predictions ---------- */
.prediction-vote-layout { display: grid; gap: 14px; }
.prediction-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(226,234,242,.14);
}
.prediction-toolbar b { display: block; font-size: 1rem; }
.prediction-toolbar span { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.prediction-toolbar label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.prediction-toolbar select {
  min-width: 180px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d131a;
  color: var(--text);
  font-weight: 800;
}
.current-member-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.028);
}
.current-member-pill span {
  margin: 0 0 0 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.current-member-pill b { font-size: .88rem; }
.prediction-vote-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prediction-vote-card {
  display: grid;
  gap: 13px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 38%),
    var(--panel);
}
.prediction-vote-card p { margin: 0; color: #dce4ea; line-height: 1.5; }
.vote-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.028);
}
.vote-form label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: .7rem; font-weight: 850; }
.vote-form input {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f15;
  color: var(--text);
  font-weight: 900;
}
.vote-form > span { color: var(--muted); font-weight: 900; }
.vote-status { min-width: 62px; color: var(--accent-2); font-size: .72rem; font-weight: 850; }
.member-votes { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 2px; }
.member-vote-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}
.member-vote-chip .initials { min-width: 22px; height: 22px; font-size: .58rem; }
.member-vote-chip b { color: var(--accent-2); font-size: .78rem; }
.member-vote-chip em { color: var(--muted); font-size: .72rem; font-style: normal; font-weight: 800; }
.predict-grid {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}
.predict-list { display: grid; gap: 12px; }
.predict-hero {
  position: sticky;
  top: 92px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(21,31,41,.96), rgba(11,15,20,.96)),
    radial-gradient(520px 260px at 50% 0%, rgba(245,184,75,.16), transparent 60%);
}
.predict-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}
.predict-kicker {
  position: relative;
  z-index: 1;
  color: var(--accent-2);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.predict-scoreline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 24px 0 8px;
}
.predict-scoreline > span { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 850; }
.predict-scoreline > span:last-child { justify-content: flex-end; text-align: right; }
.predict-scoreline b {
  padding: 8px 12px;
  border: 1px solid rgba(245,184,75,.44);
  border-radius: 10px;
  background: rgba(245,184,75,.10);
  color: var(--accent-2);
  font-size: 1.45rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.predict-meta { position: relative; z-index: 1; margin-bottom: 18px; color: var(--muted); }
.predict-hero p { position: relative; z-index: 1; margin: 16px 0 0; color: #dce4ea; line-height: 1.55; }

.prob-bars { position: relative; z-index: 1; display: grid; gap: 8px; }
.prob-bars > div {
  position: relative;
  min-height: 31px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.prob-bars span, .prob-bars b { position: relative; z-index: 1; font-size: .76rem; font-weight: 850; }
.prob-bars i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(59,211,143,.36), rgba(245,184,75,.20)); }

.prediction-card { display: grid; gap: 12px; }
.prediction-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prediction-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.predict-team { min-width: 0; display: grid; gap: 7px; }
.predict-team-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 850; }
.predict-team-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.predict-stats { display: flex; flex-wrap: wrap; gap: 5px; }
.predict-stats span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  font-size: .68rem;
  font-weight: 800;
}
.prediction-mid { text-align: center; }
.prediction-mid b { display: block; color: var(--accent-2); font-size: 1.25rem; font-weight: 900; }
.prediction-mid span { color: var(--muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.form-dots { display: flex; gap: 4px; }
.form-dots i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: .6rem;
  font-style: normal;
  font-weight: 900;
}
.form-dots .W { color: #07110c; background: var(--green); border-color: transparent; }
.form-dots .D { color: #191307; background: var(--accent-2); border-color: transparent; }
.form-dots .L { color: #210807; background: var(--red); border-color: transparent; }
.signal-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.signal-list.compact { margin-top: 0; }
.signal-list span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: #dce4ea;
  font-size: .75rem;
  line-height: 1.35;
}

/* ---------- Results Flow ---------- */
.results-flow { display: grid; gap: 18px; }
.result-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 24, 32, .78);
  overflow: hidden;
}
.result-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 12px;
}
.result-group,
.result-stage {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.result-stage-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.result-stage-title h3 { font-size: .88rem; }
.result-stage-title span { color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.knockout-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
  overflow: visible;
  padding-bottom: 0;
}
.result-stage.final { border-color: rgba(245,184,75,.35); background: rgba(245,184,75,.055); }
.result-stage-list { display: grid; gap: 8px; }
.final-bar {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(245,184,75,.35);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(245,184,75,.10), rgba(59,211,143,.05)),
    rgba(255,255,255,.028);
}
.final-bar-match .result-card {
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.final-bar-match .result-meta { margin: 0; }
.result-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9,13,18,.72);
}
.result-card.scheduled { opacity: .74; }
.result-card.muted-only { color: var(--muted); font-size: .78rem; font-weight: 800; }
.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 850;
  text-transform: uppercase;
}
.result-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.result-team > span { display: flex; align-items: center; min-width: 0; gap: 6px; }
.result-team b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.result-team strong { color: var(--text); font-variant-numeric: tabular-nums; }
.result-team.winner b,
.result-team.winner strong { color: var(--accent-2); }
.result-team.placeholder { color: var(--muted); }

/* ---------- News / Prizes / Referee ---------- */
.news-item { padding: 16px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.news-item .meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: .75rem; }
.news-item p { margin: 0; color: #dce4ea; line-height: 1.58; white-space: pre-wrap; }
.news-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.news-links > b {
  color: var(--accent-2);
  font-size: .76rem;
  text-transform: uppercase;
}
.news-links a {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(101,183,215,.18);
  border-radius: 8px;
  background: rgba(101,183,215,.045);
  color: var(--text);
  text-decoration: none;
}
.news-links a:hover { border-color: rgba(245,184,75,.44); background: rgba(245,184,75,.07); }
.news-links span { font-weight: 850; }
.news-links em { color: var(--muted); font-size: .72rem; font-style: normal; font-weight: 800; }

.prize { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prize:last-child { border-bottom: 0; }
.prize .medal { width: 38px; text-align: center; font-size: 1.75rem; }
.prize .pt b { font-size: 1rem; }
.prize .pt span { color: var(--muted); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.ref-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.ref-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}
.ref-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,.045);
}
.ref-tab.active {
  color: #071016;
  border-color: rgba(255,255,255,.62);
  background: linear-gradient(180deg, #fff7df, #f5b84b);
  box-shadow: 0 10px 22px rgba(245,184,75,.18);
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.help-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.help-grid h4 { margin: 0 0 8px; }
.help-grid p { margin: 0 0 9px; color: #c9d3dc; line-height: 1.55; }
.help-grid p:last-child { margin-bottom: 0; }
.stat { text-align: left; }
.stat b { display: block; color: var(--accent-2); font-size: 1.55rem; }
.stat span { color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.list-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.mini-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.mini-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-list a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--accent-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 200;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid rgba(245,184,75,.5);
  border-radius: 10px;
  background: #111820;
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}
.empty { padding: 32px; color: var(--muted); text-align: center; }
.spinner {
  width: 28px;
  height: 28px;
  margin: 40px auto;
  border: 3px solid rgba(255,255,255,.10);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ballspin .7s linear infinite;
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto auto; }
  .tabs { grid-column: 1 / -1; justify-content: flex-start; order: 3; }
  .home-layout, .draw-wrap, .predict-grid, .standings-layout, .road-layout, .dugout-layout, .dugout-toolbar, .manual-player-vote, .fixture-details { grid-template-columns: 1fr; }
  .prediction-vote-list { grid-template-columns: 1fr; }
  .result-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dugout-locks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-directory { max-height: none; }
  .stadium-panel { position: relative; top: auto; }
  .predict-hero { position: relative; top: auto; min-height: 0; }
}

@media (max-width: 680px) {
  body { font-size: 13px; }
  .shell, main { width: min(100vw - 20px, 1200px); }
  .appbar { padding: 9px 10px; }
  .topbar { gap: 10px; }
  .brand small { white-space: normal; }
  .brand-mark { width: 36px; height: 36px; }
  .tabs { padding: 2px; }
  .tab { padding: 8px 10px; }
  main { padding-top: 20px; }
  .section-head { display: block; }
  .section-head h2 { font-size: 1.45rem; }
  .section-head .sub { margin-top: 6px; text-align: left; }
  .home-hero { display: block; min-height: 0; padding: 20px; }
  .home-hero-ball { width: 120px; margin: 18px auto 0; }
  .home-stats, .member-grid { grid-template-columns: 1fr 1fr; }
  .home-stat b { font-size: 1.18rem; }
  .pitch { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .pitch-lines { inset: 16px; }
  .pitch-box { width: 22%; height: 56%; }
  .pitch-six { width: 10%; height: 32%; }
  .pitch-arc { display: none; }
  .standing-row { grid-template-columns: 34px minmax(0, 1fr); }
  .standing-row .pts { grid-column: 2; text-align: left; }
  .match { grid-template-columns: 1fr; text-align: left; }
  .match .side.away { justify-content: flex-start; text-align: left; }
  .match .mid { text-align: left; }
  .prediction-toolbar { display: grid; }
  .current-member-pill { display: grid; }
  .prediction-toolbar label { display: grid; }
  .prediction-toolbar select { min-width: 0; width: 100%; }
  .vote-form { grid-template-columns: 1fr auto 1fr; }
  .vote-form .btn, .vote-status { grid-column: 1 / -1; }
  .result-groups { grid-template-columns: 1fr; }
  .final-bar-match .result-card { grid-template-columns: 1fr; }
  .road-stop { grid-template-columns: 42px minmax(0, 1fr); }
  .road-route::before { left: 20px; }
  .road-marker span { width: 30px; height: 30px; }
  .stadium-facts, .dugout-locks, .dugout-columns { grid-template-columns: 1fr; }
  .dugout-hero, .dugout-squad-head { display: grid; }
  .dugout-team-vote { justify-items: start; }
  .prediction-matchup, .predict-scoreline { grid-template-columns: 1fr; text-align: left; }
  .predict-scoreline > span:last-child { justify-content: flex-start; text-align: left; }
  .prediction-mid { text-align: left; }
}

@media (max-width: 460px) {
  .home-stats, .member-grid { grid-template-columns: 1fr; }
}
