/* GC Ultra Pickle.
   System fonts only, no external host: a render-blocking font CDN is fatal inside the Idavoll
   sandbox, and this game is going there.

   *** COLOUR IS OURS, STRUCTURE IS THE GYM CLASS APP'S. *** Max, Aug 13: "dont take the color
   scheme, i liked the original one. but keep the rest of the style design language." So the
   original deep blue-teal ground and green accent stay, and what carries over from the app is
   everything that is NOT colour:
     - flat cards, hairline borders, no gradient wash, no drop shadow
     - ALL CAPS tight section headers
     - the active state INVERTS to white-on-dark, and nothing else does
     - a row is: small icon tile, bold label, accent chevron on the right
     - ONE accent, used for progress, chevrons, links and primary buttons
   That split is deliberate. The layout grammar is what made the app feel like a product; the
   palette is what makes this game look like itself. */

:root {
  --bg: #0b1622;
  --bg-wash: #16304a;
  --panel: #12212f;
  --panel2: #17293a;
  --line: rgba(140,180,205,0.16);
  --line-strong: rgba(150,205,235,0.34);
  --ink: #e8f2f8;
  --dim: #8fa8bd;
  --accent: #4fd48a;
  --accent-dim: #2f8f5e;
  --good: #4fd48a;
  --bad: #ff7a70;
  --radius: 12px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-wash) 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#app { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
#app[hidden], #stage[hidden] { display: none; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; }

.screen { max-width: 1080px; margin: 0 auto; padding: clamp(16px, 3vw, 34px) clamp(14px, 3vw, 28px) 60px; }

/* ---------------------------------------------------------------- title */

.hero { text-align: center; padding: clamp(18px, 5vw, 46px) 0 clamp(14px, 3vw, 26px); }
.hero h1 { font-size: clamp(30px, 7vw, 56px); margin: 0 0 10px; letter-spacing: -0.02em; font-weight: 800; }
.hero h1 em { font-style: normal; color: #7fe0b0; }
.tag { max-width: 56ch; margin: 0 auto 8px; color: var(--dim); line-height: 1.5; }
.sub { color: var(--dim); margin: 0 0 6px; }
.foot { text-align: center; color: var(--dim); font-size: 13px; margin-top: 26px; }

.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.teamcard {
  display: grid; gap: 3px; justify-items: center; text-align: center;
  padding: 16px 10px; border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(160deg, color-mix(in srgb, var(--body) 26%, var(--panel)), var(--panel));
  border: 1px solid color-mix(in srgb, var(--body) 40%, var(--line));
  color: var(--ink); font: inherit; transition: transform .12s ease, border-color .12s ease;
}
.teamcard:hover { transform: translateY(-3px); border-color: var(--accent); }
.tname { font-weight: 700; font-size: 17px; }
.tcity { color: var(--dim); font-size: 12px; }
.trate { color: var(--accent); font-size: 12px; margin-top: 4px; }
.crest { line-height: 0; }

/* ---------------------------------------------------------------- hub */

.hubtop {
  background: linear-gradient(140deg, color-mix(in srgb, var(--body) 30%, var(--panel)), var(--panel));
  border: 1px solid color-mix(in srgb, var(--body) 34%, var(--line));
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px;
}
.clubline { display: flex; align-items: center; gap: 12px; }
.clubline h2 { margin: 0; font-size: clamp(20px, 4vw, 28px); }
.record { margin: 3px 0 0; color: var(--dim); font-size: 14px; }
.danger { color: var(--bad); }

.strip { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 14px 0 0; }
.strip li {
  display: grid; place-items: center; gap: 2px; min-width: 42px; padding: 5px 4px;
  border-radius: 8px; background: #0e1c29; border: 1px solid var(--line); font-size: 11px; color: var(--dim);
}
.strip li.w { border-color: var(--good); color: var(--good); }
.strip li.l { border-color: #52303a; color: var(--bad); }
.strip li.next { border-color: var(--ink); color: var(--ink); }
.strip .dot { width: 9px; height: 9px; border-radius: 50%; display: block; }

.nextcard {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--opp, var(--line));
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px;
}
.nextrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.nextcard h3 { margin: 2px 0 4px; font-size: 21px; display: flex; align-items: center; gap: 8px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.meta { margin: 0; color: var(--dim); font-size: 13px; }
.nextactions { display: flex; gap: 8px; flex-wrap: wrap; }
.nextcard.done { text-align: center; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.panel h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.panel.log ul { list-style: none; padding: 0; margin: 0; color: var(--dim); font-size: 13px; line-height: 1.7; }
.log { margin-top: 12px; }

.hint { color: var(--dim); font-size: 12px; line-height: 1.5; margin: 8px 0 10px; }
.hint.got, .got { color: var(--good); }

button {
  font: inherit; font-weight: 600; color: var(--ink); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
button:hover:not(:disabled) { background: #1e3549; border-color: #386287; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.big { background: #2a7f5e; border-color: #39a87c; padding: 11px 20px; }
button.big:hover:not(:disabled) { background: #329a71; }
.back { margin-bottom: 12px; }
.pip { font-style: normal; background: var(--good); color: #06231a; border-radius: 999px; padding: 1px 7px; font-size: 12px; margin-left: 4px; }

/* bars + rating rows */
.bar { display: inline-block; flex: 1; height: 7px; border-radius: 999px; background: #0d1c2a; overflow: hidden; min-width: 40px; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.ratings { list-style: none; padding: 0; margin: 0 0 4px; }
.ratings li { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 13px; }
.ratings li > span:first-child { width: 84px; color: var(--dim); flex: none; }
.ratings li b { width: 58px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.ratings.big li { font-size: 14px; padding: 6px 0; }
.ratings b.up { color: var(--good); }
.ratings b.down { color: var(--bad); }
.ratings b i { font-style: normal; font-size: 11px; opacity: .85; }

.lvl { display: flex; align-items: center; gap: 9px; font-size: 13px; margin: 0 0 10px; }
.lvl span { color: var(--dim); font-size: 12px; white-space: nowrap; }

.squad { list-style: none; padding: 0; margin: 0; }
.squad li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.tag { color: var(--dim); font-size: 11px; }
.lv { color: var(--dim); font-size: 11px; margin-left: auto; white-space: nowrap; }

.rewards { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.rewards li { padding: 4px 0; color: var(--dim); }
.rewards li b { display: inline-block; width: 34px; color: #64809a; }
.rewards li.got { color: var(--good); }
.rewards li.got b { color: var(--good); }

/* card + squad sheets */
.attrs { list-style: none; padding: 0; margin: 0; }
.attrs li { padding: 8px 0; border-bottom: 1px solid #16283a; }
.attrs li:last-child { border-bottom: 0; }
.attrrow { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.attrrow .num { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 44px; text-align: right; }
.attrrow .num i { font-style: normal; color: var(--dim); }
.attrrow button { padding: 4px 12px; }

.mate { padding: 10px 0; border-bottom: 1px solid #16283a; }
.mate:last-child { border-bottom: 0; }
.matehead { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.tourgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tour.cleared { opacity: .6; }
.tour h4 { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 17px; color: var(--ink); }
.stages { list-style: none; padding: 0; margin: 8px 0; font-size: 13px; }
.stages li { padding: 3px 0 3px 18px; position: relative; color: var(--dim); }
.stages li::before { content: "○"; position: absolute; left: 0; }
.stages li.done { color: var(--good); }
.stages li.done::before { content: "●"; }
.stages li.now { color: var(--ink); }
.stages li.now::before { content: "▸"; }
.preview { background: #0e1c29; border-radius: 10px; padding: 9px 11px; margin: 8px 0; }
.preview b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.tour button { margin-right: 6px; margin-top: 4px; }

.statgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.statgrid li { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; border-bottom: 1px solid #16283a; }
.statgrid span { color: var(--dim); }

.result h2 { font-size: clamp(26px, 6vw, 40px); margin: 6px 0; }
.result.won h2 { color: var(--good); }
.result.lost h2 { color: var(--bad); }
.result > button.big { margin-top: 16px; }

/* ---------------------------------------------------------------- match HUD */

.hud { position: absolute; inset: 0; pointer-events: none; padding: 14px; display: grid; align-content: start; justify-items: center; gap: 4px; }
.hudscore { display: flex; align-items: center; gap: 14px; background: rgba(8,18,28,.62); padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(6px); }
.hudscore b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.side { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #cfe2ee; }
.side i { width: 11px; height: 11px; border-radius: 3px; display: block; }
.hudmeta { font-size: 12px; color: #9db6c9; background: rgba(8,18,28,.5); padding: 3px 12px; border-radius: 999px; }
.hudmsg { margin-top: 8vh; font-size: clamp(18px, 4vw, 30px); font-weight: 700; text-shadow: 0 3px 14px rgba(0,0,0,.6); }
.hudhelp { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 12px; color: #86a0b4; }

@media (max-width: 620px) {
  .ratings li > span:first-child { width: 70px; font-size: 12px; }
  .nextactions { width: 100%; }
  .nextactions button { flex: 1; }
}

/* ---------------------------------------------------------------- match HUD v2
   A scoreboard rather than a line of text: club chips in team colour, big tabular score,
   a meta strip, and a point callout that flashes in the winning side's colour. */

.scoreboard {
  display: flex; align-items: center; gap: 14px;
  background: rgba(6,16,24,.66); backdrop-filter: blur(8px);
  padding: 8px 10px 8px 10px; border-radius: 14px;
  border: 1px solid rgba(140,180,205,.16);
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
.scoreboard .team { display: flex; align-items: center; gap: 8px; min-width: 118px; }
.scoreboard .team.away { justify-content: flex-end; }
.scoreboard .chip { width: 16px; height: 16px; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 2px var(--a); flex: none; }
.scoreboard .tn { font-size: 13px; font-weight: 700; letter-spacing: .01em; color: #dcecf6; white-space: nowrap; }
.pips { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.pips b { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.pips i { font-style: normal; opacity: .4; font-size: 18px; }

.hudmeta { display: flex; align-items: center; gap: 9px; margin-top: 7px; font-size: 12px; color: #a3bccd;
  background: rgba(6,16,24,.5); padding: 4px 13px; border-radius: 999px; }
.hudmeta .sep { width: 3px; height: 3px; border-radius: 50%; background: #52708a; display: inline-block; }

.banner {
  margin-top: 62vh; font-size: clamp(18px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em;
  opacity: 0; transform: scale(.86) translateY(6px); transition: opacity .16s ease, transform .16s ease;
  text-shadow: 0 4px 22px rgba(0,0,0,.65);
}
.banner.show { opacity: 1; transform: scale(1) translateY(0); }
.banner.us { color: #66e6a4; }
.banner.them { color: #ff8f84; }

.hudmsg { margin-top: 2vh; font-size: clamp(15px, 2.6vw, 24px); font-weight: 700; color: #e8f4fb;
  text-shadow: 0 3px 14px rgba(0,0,0,.6); }
.hudhelp b { color: #cfe4f2; }

@media (max-width: 620px) {
  .scoreboard { gap: 8px; padding: 6px 8px; }
  .scoreboard .team { min-width: 0; }
  .scoreboard .tn { font-size: 11px; }
  .pips b { font-size: 24px; }
  .hudmeta { font-size: 11px; gap: 6px; padding: 3px 10px; }
}


/* ---------------------------------------------------------------- UI pass
   The season screens should feel like a sports game rather than a settings panel:
   club colour carried through, a crest watermark behind the header, result pills you can
   read at a glance, and panels that sit on a surface instead of floating. */

.hero h1 .mark {
  display: inline-block; background: #7fe0b0; color: #062b1d;
  padding: 0 12px; border-radius: 10px; transform: rotate(-2deg);
}
.hero h1 em { color: #7fe0b0; }

.teamcard {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, color-mix(in srgb, var(--body) 55%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--body) 22%, var(--panel)), var(--panel));
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.teamcard::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--accent); opacity: .85;
}
.teamcard:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 28px rgba(0,0,0,.4); }

.hubtop { position: relative; overflow: hidden; }
.hubtop .watermark {
  position: absolute; right: -34px; top: -52px; opacity: .10; pointer-events: none;
  transform: rotate(-12deg); line-height: 0;
}
.hubtop .clubline { position: relative; z-index: 1; }
.bigcrest { line-height: 0; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.clubline h2 { letter-spacing: -.02em; text-shadow: 0 2px 10px rgba(0,0,0,.35); }

.strip li { min-width: 54px; font-weight: 700; letter-spacing: .01em; transition: transform .12s ease; }
.strip li:hover { transform: translateY(-2px); }
.strip li.w { background: linear-gradient(180deg, rgba(79,212,138,.16), transparent); }
.strip li.l { background: linear-gradient(180deg, rgba(255,122,112,.14), transparent); }
.strip li.next { background: linear-gradient(180deg, rgba(232,242,248,.14), transparent); box-shadow: 0 0 0 1px rgba(232,242,248,.25); }

.panel {
  background: linear-gradient(170deg, var(--panel2), var(--panel));
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.nextcard {
  background: linear-gradient(120deg, color-mix(in srgb, var(--opp, #29465e) 18%, var(--panel2)), var(--panel));
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
}
button.big {
  background: linear-gradient(180deg, #35a077, #24785a); border-color: #45c393;
  box-shadow: 0 4px 12px rgba(23,120,86,.4);
}
button.big:hover:not(:disabled) { background: linear-gradient(180deg, #3cb587, #2a8a67); transform: translateY(-1px); }

.bar i { box-shadow: 0 0 8px currentColor; }
.result h2 { text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.result.won h2::before { content: "▲ "; opacity: .6; }
.result.lost h2::before { content: "▼ "; opacity: .6; }

/* ---------------------------------------------------------------- main menu
   The background is a live AI-vs-AI match on an orbiting camera. Everything here sits on a
   scrim over it, so the type stays readable whatever colours the two clubs happen to be. */

#attract {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0;
}
#attract[hidden] { display: none; }
#app { position: relative; z-index: 1; }

.screen.menu {
  min-height: 100%; display: grid; place-items: center;
  padding: clamp(18px, 4vh, 48px) clamp(14px, 3vw, 28px);
}
.screen.menu::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* Light enough that the match behind it still reads - it is the point of the screen. The
     first pass was so dark the attract mode may as well have been a still. */
  background:
    radial-gradient(75% 55% at 50% 45%, rgba(6,18,28,.05), rgba(5,14,22,.52) 75%),
    linear-gradient(180deg, rgba(5,14,22,.46), rgba(5,14,22,.10) 40%, rgba(5,14,22,.62));
}
.menuwrap { width: min(560px, 100%); display: grid; gap: 16px; }

.logo { text-align: center; }
.logo h1 {
  margin: 0; font-size: clamp(38px, 9vw, 74px); font-weight: 900; letter-spacing: -.035em;
  line-height: .95; display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; text-shadow: 0 6px 34px rgba(0,0,0,.6);
}
.logo h1 .mark {
  background: linear-gradient(160deg, #8df0bd, #34b985); color: #04241a;
  padding: 2px 14px; border-radius: 12px; transform: rotate(-3deg);
  box-shadow: 0 6px 20px rgba(52,185,133,.4);
}
.logo h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #ffffff, #a8d8ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { margin: 10px 0 0; color: #9fbdd0; font-size: 14px; }

.rankcard {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--tier) 16%, rgba(10,24,34,.86)), rgba(10,22,32,.86));
  border: 1px solid color-mix(in srgb, var(--tier) 34%, transparent);
  border-radius: 14px; padding: 12px 16px; backdrop-filter: blur(14px);
}
.rankleft { display: grid; gap: 3px; justify-items: center; min-width: 92px; }
.tierbadge {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tier);
}
.elo { font-size: 27px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.rankright { flex: 1; display: grid; gap: 5px; }
.rankmeta { font-size: 11.5px; color: var(--dim); }
.streak { margin-left: 6px; font-weight: 700; }
.streak.hot { color: #ffcf6b; }
.streak.cold { color: var(--bad); }

.menubtns { display: grid; gap: 9px; }
.menubtn {
  display: grid; gap: 3px; text-align: left; padding: 14px 17px; border-radius: 13px;
  background: rgba(11,24,35,.90); border: 1px solid rgba(120,165,195,.20);
  backdrop-filter: blur(10px); cursor: pointer; color: var(--ink);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.menubtn:hover { transform: translateX(3px); background: rgba(21,44,61,.9); border-color: rgba(150,205,235,.42); }
.menubtn.primary {
  background: linear-gradient(120deg, rgba(42,140,102,.92), rgba(22,86,68,.92));
  border-color: rgba(90,220,166,.5);
}
.menubtn.primary:hover { background: linear-gradient(120deg, rgba(52,163,120,.95), rgba(28,104,82,.95)); }
.mb-t { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.mb-s { font-size: 12px; color: #9dbacd; line-height: 1.4; }
.menubtn.primary .mb-s { color: #cdf0df; }
.elopill {
  font-style: normal; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.14);
  padding: 2px 8px; border-radius: 999px; letter-spacing: .02em;
}

.sizerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.sizerow .hint { margin: 0 4px 0 0; }
.sizebtn { padding: 7px 15px; border-radius: 999px; font-weight: 700; }
.sizebtn.on { background: #2a7f5e; border-color: #45c393; }

.elopanel { border-color: color-mix(in srgb, var(--tier) 40%, var(--line)); }
.eloline { display: flex; align-items: center; gap: 12px; }
.elodelta { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.elodelta.up { color: var(--good); }
.elodelta.down { color: var(--bad); }

@media (max-width: 620px) {
  .logo h1 { font-size: clamp(32px, 12vw, 52px); }
  .rankcard { flex-wrap: wrap; }
}


/* ---------------------------------------------------------------- the endgame
   Match point and the win-by-two grind should be impossible to miss: a chip under the score,
   the scoreboard itself changing colour, and (in the 3D) a glowing band around the court. */

.tension {
  margin-top: 8px; font-size: clamp(13px, 2vw, 17px); font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px;
  opacity: 0; transform: translateY(-6px) scale(.92);
  transition: opacity .18s ease, transform .18s ease;
  background: rgba(6,16,24,.72); backdrop-filter: blur(8px);
}
.tension.show { opacity: 1; transform: none; animation: tensePulse 1.15s ease-in-out infinite; }
.tension.matchPointUs   { color: #6cf0aa; box-shadow: 0 0 0 1px rgba(108,240,170,.5), 0 0 26px rgba(108,240,170,.35); }
.tension.matchPointThem { color: #ff8f84; box-shadow: 0 0 0 1px rgba(255,143,132,.5), 0 0 26px rgba(255,143,132,.35); }
.tension.deuce          { color: #ffd166; box-shadow: 0 0 0 1px rgba(255,209,102,.5), 0 0 26px rgba(255,209,102,.32); }

@keyframes tensePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.scoreboard { transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.scoreboard.tense { transform: scale(calc(1 + var(--pulse, 0) * 0.06)); }
.scoreboard.tense .pips b { text-shadow: 0 0 18px currentColor; }
.scoreboard.matchPointUs   { border-color: rgba(108,240,170,.6); box-shadow: 0 0 34px rgba(108,240,170,.28), 0 8px 26px rgba(0,0,0,.35); }
.scoreboard.matchPointUs   #scA { color: #6cf0aa; }
.scoreboard.matchPointThem { border-color: rgba(255,143,132,.6); box-shadow: 0 0 34px rgba(255,143,132,.28), 0 8px 26px rgba(0,0,0,.35); }
.scoreboard.matchPointThem #scB { color: #ff8f84; }
.scoreboard.deuce          { border-color: rgba(255,209,102,.6); box-shadow: 0 0 34px rgba(255,209,102,.26), 0 8px 26px rgba(0,0,0,.35); }
.scoreboard.deuce .pips b  { color: #ffd166; }

.banner.show { animation: bannerPop .28s cubic-bezier(.2,1.5,.4,1); }
@keyframes bannerPop {
  0% { opacity: 0; transform: scale(.7) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------------------------------------------------------------- venues + shot naming */

.venuerow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; margin: 0 0 16px; }
.venuecard {
  display: grid; gap: 3px; text-align: left; padding: 11px 13px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(150deg, color-mix(in srgb, var(--near) 40%, var(--panel)), var(--apron));
  border: 1px solid rgba(140,180,205,.20); color: var(--ink);
  transition: transform .12s ease, border-color .12s ease;
}
.venuecard:hover { transform: translateY(-2px); }
.venuecard.on { border-color: #45c393; box-shadow: 0 0 0 1px #45c393, 0 6px 18px rgba(0,0,0,.34); }
.vname { font-weight: 700; font-size: 14px; }
.vmeta { font-size: 11.5px; color: rgba(232,242,248,.72); line-height: 1.35; }
.vtags { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(232,242,248,.5); }

.venueTag { color: #9fc4d8; }

/* The shot you just played, named. Learning the vocabulary by seeing it. */
.shottag {
  margin-top: 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #cfe4f2; opacity: 0; transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.shottag.show { opacity: .95; transform: none; }
.shottag.clean { color: #7cf0b4; }
.shottag.scrappy { color: #ffc98a; }


/* ============================================================================
   GC DESIGN LANGUAGE - STRUCTURE ONLY
   The app's layout grammar carried through the game's screens: flat hairline cards,
   all-caps headers, the white-on-dark active inversion, and icon-tile rows with an
   accent chevron. The COLOURS are ours - see the note at the top of this file.
   Kept as one block at the end so the styling has an obvious, reversible source.
   ============================================================================ */

/* Headers: all caps, bold, tight - the app never uses letter-spaced small caps. */
.panel h4, .hero h1, .clubline h2, .sheet h2, .screen.menu .logo h1 {
  letter-spacing: -0.01em;
}
.panel h4 {
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--dim);
}
.sheet h2, .hub h2 { text-transform: uppercase; font-weight: 800; }

/* Cards: flat, hairline, no gradient wash. */
.panel, .nextcard, .hubtop, .menubtn, .rankcard, .teamcard, .venuecard {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
}
.panel:hover, .venuecard:hover, .teamcard:hover { border-color: var(--line-strong); }

/* THE ACTIVE-STATE INVERSION. The one white-on-dark moment in the whole interface, and the
   app's strongest signature. It is a PATTERN rather than a colour, so it survives the palette. */
.sizebtn.on, .venuecard.on {
  background: #ffffff; color: #08131c; border-color: #ffffff;
}
.sizebtn.on { font-weight: 800; }
.venuecard.on .vmeta, .venuecard.on .vtags { color: rgba(8,19,28,.66); }

/* Amber is the only accent. */
button.big {
  background: var(--accent); border-color: var(--accent); color: #052616; font-weight: 800;
  box-shadow: none;
}
button.big:hover:not(:disabled) { background: #6ee5a3; border-color: #6ee5a3; transform: none; }
button { background: var(--panel2); border-color: var(--line); border-radius: 10px; }
button:hover:not(:disabled) { background: #24282d; border-color: var(--line-strong); }
.pip { background: var(--accent); color: #052616; font-weight: 800; }
.bar i { box-shadow: none; }
.lvl .bar i, .rankright .bar i { background: var(--accent) !important; }
.hint.got, .got, .rewards li.got, .rewards li.got b { color: var(--accent); }
.strip li.w { border-color: var(--accent-dim); color: var(--accent); background: none; }
.strip li.l { border-color: #4a3330; color: var(--bad); background: none; }
.strip li.next { border-color: #ffffff; color: #ffffff; background: none; box-shadow: none; }

/* A row is an icon tile, a bold label, and an amber chevron. */
.menubtn {
  grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px;
  grid-template-areas: "icon title chev" "icon sub chev";
  border-radius: var(--radius);
}
.menubtn::before {
  content: ""; grid-area: icon; width: 38px; height: 38px; border-radius: 9px;
  background: var(--panel2); border: 1px solid var(--line);
}
.menubtn::after {
  content: "›"; grid-area: chev; color: var(--accent); font-size: 22px; font-weight: 700;
  line-height: 1; padding-left: 6px;
}
.menubtn .mb-t { grid-area: title; }
.menubtn .mb-s { grid-area: sub; }
.menubtn:hover { transform: none; background: var(--panel2); border-color: var(--line-strong); }
.menubtn.primary { background: var(--panel); border-color: var(--accent-dim); }
.menubtn.primary::before { background: var(--accent); border-color: var(--accent); }
.menubtn.primary .mb-s { color: var(--dim); }
.elopill { background: var(--panel2); color: var(--accent); border: 1px solid var(--line); }

/* The rank card takes the app's hero-panel treatment: a hairline amber top edge. */
.rankcard { position: relative; overflow: hidden; }
.rankcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tier), transparent); opacity: .8;
}

/* Title lockup: the app's white block, not a green one. */
.logo h1 .mark, .hero h1 .mark {
  background: var(--accent); color: #052616; box-shadow: none; transform: rotate(-2deg);
}
.logo h1 em, .hero h1 em { background: none; -webkit-text-fill-color: var(--ink); color: var(--ink); }
.tagline, .tag, .sub { color: var(--dim); }

/* Club cards keep their own colour, but as a bottom rule rather than a wash. */
.teamcard { background: var(--panel); }
.teamcard::after { height: 2px; opacity: 1; }
.trate { color: var(--dim); }

/* In-match: the scoreboard picks up the same flat treatment. */
.scoreboard { background: rgba(6,16,24,.76); border-color: var(--line); }
.hudmeta { background: rgba(6,16,24,.60); color: var(--dim); }
.shottag.clean { color: var(--accent); }
.tension.matchPointUs { color: #6cf0aa; box-shadow: 0 0 0 1px rgba(108,240,170,.5), 0 0 26px rgba(108,240,170,.35); }
.scoreboard.matchPointUs { border-color: rgba(108,240,170,.6); box-shadow: 0 0 34px rgba(108,240,170,.28); }
.scoreboard.matchPointUs #scA { color: var(--accent); }
.banner.us { color: var(--accent); }
.result.won h2 { color: var(--accent); }

/* Menu scrim, back to the game's own blue. Light enough that the attract match still reads. */
.screen.menu::before {
  background:
    radial-gradient(75% 55% at 50% 45%, rgba(6,18,28,.05), rgba(5,14,22,.52) 75%),
    linear-gradient(180deg, rgba(5,14,22,.46), rgba(5,14,22,.10) 40%, rgba(5,14,22,.62));
}
