/* CapSoccer website — design tokens come straight from the game
   (docs/VISUAL_STYLE.md): night-stadium teal, pitch greens, gold, gunmetal. */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #05141a;
  --night-2: #08202a;
  --teal: #0d3a40;
  --pitch-1: #47b22f;
  --pitch-2: #3ca027;
  --pitch-deep: #14421c;
  --cyan: #4fe3ff;
  --gold: #ffc531;
  --gold-deep: #d98f12;
  --ivory: #f4fff0;
  --muted: #9fb7bd;
  --blue: #2f7bff;
  --blue-deep: #123c96;
  --red: #f0413f;
  --red-deep: #8a1519;
  --metal-top: #2a323b;
  --metal-bot: #12171c;
  --line: rgba(244, 255, 240, 0.14);

  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", "Nunito", "Avenir Next", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #2a1a00; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- outlined display text (the game's "OutlinedText") ---------- */
.outlined {
  color: var(--ivory);
  -webkit-text-stroke: 0.14em #06210f;
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0 #06210f, 0 0.1em 0.18em rgba(0, 0, 0, 0.45);
}
.outlined.gold { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--gold); }
.eyebrow.left::after { display: none; }

.h2 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); margin-bottom: .32em; }
.h2 + .lede, h1 + .lede { margin-top: 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #d6e8e0; max-width: 56ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- buttons (the game's chunky GameButton) ---------- */
.btn {
  --face-1: #ffd75e; --face-2: #ffb21f; --edge: #b06a05; --ink: #3a2300;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.03em;
  padding: 0.7em 1.5em 0.72em; border-radius: 16px; border: 0; cursor: pointer;
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  background: linear-gradient(180deg, var(--face-1), var(--face-2));
  box-shadow: 0 6px 0 var(--edge), 0 14px 22px -6px rgba(0, 0, 0, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s;
  position: relative; top: 0;
}
.btn:hover { filter: brightness(1.06); color: var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge), 0 6px 12px -4px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.btn.green { --face-1: #5fdc4a; --face-2: #2fa22a; --edge: #166b1b; --ink: #05260a; }
.btn.dark { --face-1: #3a444f; --face-2: #1d242b; --edge: #0a0e12; --ink: var(--ivory); }
.btn.small { font-size: 1rem; padding: 0.55em 1.1em; border-radius: 13px; box-shadow: 0 4px 0 var(--edge), 0 10px 16px -6px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.5); }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory);
  padding: 10px 20px 10px 16px; border-radius: 16px; min-width: 216px;
  background: linear-gradient(180deg, #1a2229, #0a0f13);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px #56636e inset, 0 6px 0 #05080a, 0 16px 24px -8px rgba(0,0,0,.6);
  position: relative;
  transition: transform .12s ease, box-shadow .12s;
}
.store:hover { color: #fff; transform: translateY(-2px); }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.store strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.32rem; line-height: 1.1; letter-spacing: .02em; }
.store .soon {
  position: absolute; top: -15px; right: 14px; background: var(--gold); color: #3a2300;
  font: 800 0.66rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; box-shadow: 0 2px 0 #b06a05;
}
.store.live .soon { display: none; }

/* ---------- metal plates ---------- */
.plate {
  position: relative; border-radius: var(--radius); padding: clamp(18px, 2.4vw, 30px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 40%) padding-box,
    linear-gradient(180deg, var(--metal-top), var(--metal-bot)) padding-box,
    linear-gradient(180deg, #e9eef2, #5d6b77 45%, #232b32) border-box;
  border: 3px solid transparent;
  box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255,255,255,.18);
}
.plate.gold-edge {
  background:
    linear-gradient(180deg, var(--metal-top), var(--metal-bot)) padding-box,
    linear-gradient(180deg, #ffe9a0, #ffc531 40%, #8a5a06) border-box;
}

/* pitch divider: centre line with the centre circle */
.pitchline { height: 64px; position: relative; opacity: .9; }
.pitchline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: linear-gradient(90deg, transparent, rgba(244,255,240,.55) 12%, rgba(244,255,240,.55) 88%, transparent); transform: translateY(-50%); }
.pitchline::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(244,255,240,.55); background: var(--night); transform: translate(-50%, -50%); }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(35,40,46,.94), rgba(17,20,23,.94));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(79, 227, 255, .55), 0 8px 24px -10px rgba(0,0,0,.7);
}
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); font-family: var(--display); font-size: 1.55rem; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.5); }
.brand span b { color: var(--gold); font-weight: 400; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: #cfe2e5; text-decoration: none; font-weight: 700; font-size: .95rem; padding: 9px 13px; border-radius: 11px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.nav .btn { margin-left: 10px; color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 13px; border: 2px solid #56636e; background: #1b2229; color: var(--ivory); cursor: pointer; }
.menu-toggle svg { margin: auto; width: 22px; height: 22px; }

@media (max-width: 880px) {
  .menu-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px;
    background: #12171c; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(28px, 5vw, 64px) 0 clamp(44px, 6vw, 84px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/stadium.webp") center 22% / cover no-repeat;
  filter: saturate(1.15);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(5,20,26,0) 0%, rgba(5,20,26,.42) 60%, var(--night) 100%),
    linear-gradient(180deg, rgba(5,20,26,.32), rgba(5,20,26,.08) 30%, var(--night) 98%);
}
.hero .grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy .logo { width: min(100%, 470px); margin: 0 0 4px -10px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.55)); }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); margin-bottom: 16px; }
.hero h1 .gold { color: var(--gold); }
.hero .lede { margin-bottom: 26px; }
.hero-notes { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #b9d0d4; font-size: .93rem; font-weight: 700; }
.hero-notes li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.hero-notes { padding: 0; margin-bottom: 0; }
.hero-notes svg { width: 18px; height: 18px; color: var(--pitch-1); }

@media (max-width: 960px) {
  .hero .grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: center; }
  .hero-copy .logo { margin-inline: auto; width: min(82%, 400px); }
  .hero-copy .lede { margin-inline: auto; }
  .hero .stores, .hero-notes { justify-content: center; }
}

/* the live demo */
.demo { padding: 14px 14px 16px; }
.demo-tag { position: absolute; top: -15px; left: 22px; z-index: 2; font: 800 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: #3a2300; background: linear-gradient(180deg, #ffe07a, #ffb21f); padding: 7px 12px 7px 26px; border-radius: 999px; box-shadow: 0 3px 0 #b06a05, 0 8px 16px rgba(0,0,0,.4); }
.demo-tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #1d8f2b; box-shadow: 0 0 0 0 rgba(29,143,43,.6); animation: live 1.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(29,143,43,.7); } 100% { box-shadow: 0 0 0 9px rgba(29,143,43,0); } }
.demo-top {
  flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 6px 12px;
}
.scoreboard { display: flex; align-items: center; gap: 12px; font-family: var(--display); }
.scoreboard .side { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; letter-spacing: .06em; color: #cfe2e5; }
.scoreboard .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0,0,0,.3), 0 0 0 2px rgba(255,255,255,.35); }
.scoreboard .dot.you { background: radial-gradient(circle at 35% 30%, #9cc4ff, #2f7bff 60%, #123c96); }
.scoreboard .dot.bot { background: radial-gradient(circle at 35% 30%, #ffb0a0, #f0413f 60%, #8a1519); }
.scoreboard .score { font-size: 2rem; color: var(--gold); min-width: 3.1ch; text-align: center; text-shadow: 0 3px 0 #5a3900; }
.demo-tools { display: flex; gap: 8px; }
.chip {
  font: 800 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #cfe2e5;
  background: #1b2229; border: 2px solid #46535e; border-radius: 999px; padding: 9px 12px; cursor: pointer;
}
.chip:hover { color: #fff; border-color: #7c8c98; }
.chip[aria-pressed="true"] { background: var(--gold); color: #3a2300; border-color: #ffe9a0; }
.pitch-wrap { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 3px #0c1a14, 0 0 0 5px rgba(79,227,255,.55), 0 0 28px rgba(79,227,255,.25); background: #14421c; }
#pitch { width: 100%; aspect-ratio: 241 / 126; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#pitch.dragging { cursor: grabbing; }
.demo-hint { margin: 12px 4px 0; font-size: .92rem; color: #b9d0d4; display: flex; gap: 8px; align-items: center; min-height: 1.6em; }
.demo-hint b { color: var(--gold); font-weight: 800; }
.goal-flash {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .15s;
  font-family: var(--display); font-size: clamp(2.6rem, 9vw, 5.2rem); letter-spacing: .04em;
}
.goal-flash.show { opacity: 1; animation: pop .8s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { 0% { transform: scale(.4) rotate(-6deg); } 40% { transform: scale(1.12) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- LED board ---------- */
.led {
  position: relative; background: #070d11; overflow: hidden; border-block: 3px solid #0e1a20;
  box-shadow: 0 -1px 0 rgba(79,227,255,.7), 0 1px 0 rgba(79,227,255,.7), 0 0 30px rgba(79,227,255,.18);
}
.led-track { display: flex; width: max-content; animation: led 46s linear infinite; }
.led-track span { font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing: .09em; text-transform: uppercase; color: var(--gold); padding: 14px 0; white-space: nowrap; text-shadow: 0 0 14px rgba(255,197,49,.45); }
.led-track span::after { content: "•"; color: var(--cyan); margin: 0 1.4em; }
@keyframes led { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 6.4vw, 92px) 0; position: relative; }
.section-head { margin-bottom: clamp(30px, 4vw, 52px); max-width: 760px; }
.section-head.center { margin-inline: auto; }
.section-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px clamp(28px, 5vw, 80px); align-items: end; }
.section-head.split .h2 { margin-bottom: 0; }
.section-head.split .lede { margin: 0 0 .35em; }
@media (max-width: 900px) { .section-head.split { grid-template-columns: minmax(0, 1fr); } }

/* how it plays */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px); counter-reset: step; }
.step { position: relative; }
.step .art { border-radius: 18px; overflow: hidden; background: linear-gradient(90deg, #47b22f 0 10%, #3ca027 10% 20%, #47b22f 20% 30%, #3ca027 30% 40%, #47b22f 40% 50%, #3ca027 50% 60%, #47b22f 60% 70%, #3ca027 70% 80%, #47b22f 80% 90%, #3ca027 90% 100%);
  box-shadow: 0 0 0 3px #0c1a14, 0 0 0 5px rgba(255,255,255,.35), 0 22px 34px -16px rgba(0,0,0,.7); aspect-ratio: 8 / 5; }
.step .art svg { width: 100%; height: 100%; }
.step h3 { font-size: 1.7rem; margin: 22px 0 6px; display: flex; align-items: baseline; gap: 12px; }
.step h3 i { font-style: normal; font-size: 1rem; color: #3a2300; background: var(--gold); border-radius: 9px; padding: 3px 9px 4px; box-shadow: 0 3px 0 #b06a05; }
.step p { color: #c4d9d6; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }

/* phone frames */
.shots { position: relative; background: radial-gradient(70% 90% at 50% 50%, rgba(15,74,74,.55), transparent 70%); }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.4vw, 34px); padding: 26px 0 8px; }
.phone {
  margin: 0; flex: 0 1 230px; border-radius: 34px; padding: 8px; position: relative;
  background: linear-gradient(160deg, #c9d2d9, #46525d 40%, #1c242b);
  box-shadow: 0 40px 60px -24px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.4);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.phone:nth-child(2n) { transform: translateY(-26px); }
.phone:nth-child(3) { flex-basis: 262px; transform: translateY(-46px); }
.phone:hover { transform: translateY(-14px) scale(1.03); z-index: 2; }
.phone img { border-radius: 27px; width: 100%; background: #000; aspect-ratio: 1206 / 2622; object-fit: cover; }
.phone figcaption { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap; font: 800 .74rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 28%; height: 17px; border-radius: 99px; background: #000; z-index: 2; }
.shots .tail { height: 40px; }
.phones { position: relative; }
.phones::before { content: ""; position: absolute; left: 50%; top: -20%; width: min(90%, 900px); height: 140%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(79,227,255,.16), rgba(79,227,255,.05) 55%, transparent); }
.phones::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); z-index: -1; }
.shots .wrap { isolation: isolate; }
@media (max-width: 900px) {
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px var(--gutter) 50px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone, .phone:nth-child(3) { flex: 0 0 min(62vw, 250px); scroll-snap-align: center; transform: none; }
  .phone:nth-child(2n) { transform: none; }
}

/* styles list (details/summary accordion, no JS) */
.styles > :first-child { position: sticky; top: 110px; }
.styles { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
.style-list { display: grid; gap: 12px; }
.style-list details { border-radius: 18px; overflow: hidden; background: #0d171d; border: 3px solid #26323b; transition: border-color .2s, box-shadow .2s; }
.style-list details[open] { border-color: var(--gold); box-shadow: 0 0 0 1px #5a3900, 0 0 34px rgba(255,197,49,.22); }
.style-list summary {
  list-style: none; cursor: pointer; min-height: 92px; display: flex; align-items: center; padding: 0 20px 0 clamp(120px, 34%, 190px);
  background-size: auto 100%; background-repeat: no-repeat; background-position: left center; position: relative;
  font-family: var(--display); font-size: 1.5rem; letter-spacing: .03em;
}
.style-list summary::-webkit-details-marker { display: none; }
.style-list summary::after { content: "+"; margin-left: auto; font-size: 1.8rem; color: var(--gold); transition: transform .2s; }
.style-list details[open] summary::after { transform: rotate(45deg); }
.style-list summary::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, transparent 22%, #0d171d 52%); pointer-events: none; }
.style-list summary span { position: relative; z-index: 1; }
.style-list details:not([open]) summary { filter: brightness(.82); }
.style-list .body { padding: 6px 22px 22px; color: #c9ddd9; }
.style-list .body p { margin: 0 0 10px; }
.style-list .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font: 800 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 8px; background: #17222a; color: #bcd5d8; border: 1px solid #2f4049; }
.tag.gold { background: rgba(255,197,49,.14); color: var(--gold); border-color: rgba(255,197,49,.4); }
@media (max-width: 900px) { .styles { grid-template-columns: minmax(0, 1fr); } .styles > :first-child { position: static; } }

/* bots podium */
.podium { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: clamp(8px, 1.6vw, 18px); margin-top: 20px; }
.rung { position: relative; padding: 14px 14px 20px; border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, #243039, #10171c); border: 2px solid #34434d; min-height: var(--h); display: flex; flex-direction: column; justify-content: flex-end; box-shadow: inset 0 3px 0 var(--c); }
.rung h3 { font-size: 1.55rem; color: var(--c); }
.rung { justify-content: flex-start; }
.rung .cone { flex: none; width: 100%; height: auto; aspect-ratio: 224 / 128; border-radius: 12px; margin-bottom: 16px; }
.rung .stars { margin-top: auto; }
.footnote { margin: 18px 0 0; font-size: .85rem; color: #7f9aa1; }
.rung .stars { letter-spacing: .15em; color: var(--c); font-size: .95rem; margin-bottom: 6px; }
.rung p { margin: 6px 0 0; font-size: .92rem; color: #b9d0d4; line-height: 1.45; }
.rung .err { margin-top: 12px; font-size: .78rem; color: #8fa7ad; font-weight: 700; }
.rung .err b { color: #fff; font-size: 1.05rem; font-family: var(--display); font-weight: 400; }
.rung.r1 { --c: #38d66b; --h: 340px; } .rung.r2 { --c: #ffb020; --h: 362px; } .rung.r3 { --c: #ff4d4d; --h: 384px; }
.rung.r4 { --c: var(--gold); --h: 406px; background: linear-gradient(180deg, #3a2c0c, #14100a); border-color: #8a6a1a; box-shadow: inset 0 3px 0 var(--gold), 0 0 40px rgba(255,197,49,.2); }
@media (max-width: 760px) { .podium { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rung { min-height: 0 !important; } }
@media (max-width: 440px) { .podium { grid-template-columns: minmax(0, 1fr); } }

/* online */
.online { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(26px, 5vw, 76px); align-items: center; }
.code-tiles { display: flex; gap: clamp(6px, 1.2vw, 12px); flex-wrap: wrap; margin: 6px 0 22px; }
.code-tiles b {
  width: clamp(44px, 8vw, 70px); height: clamp(58px, 10.5vw, 90px); display: grid; place-items: center; border-radius: 14px;
  font: 400 clamp(1.9rem, 5.6vw, 3.4rem)/1 var(--display); color: var(--gold);
  background: linear-gradient(180deg, #313b45, #11171c); box-shadow: inset 0 0 0 2px #6b7a86, inset 0 2px 0 rgba(255,255,255,.3), 0 7px 0 #05080a, 0 18px 24px -10px rgba(0,0,0,.7);
  text-shadow: 0 3px 0 #5a3900; animation: bob 3.2s ease-in-out infinite;
}
.code-tiles b:nth-child(2) { animation-delay: .15s; } .code-tiles b:nth-child(3) { animation-delay: .3s; }
.code-tiles b:nth-child(4) { animation-delay: .45s; } .code-tiles b:nth-child(5) { animation-delay: .6s; } .code-tiles b:nth-child(6) { animation-delay: .75s; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.facts { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.facts .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(180deg, #2c3640, #12181d); box-shadow: inset 0 0 0 2px #51606b; color: var(--cyan); }
.facts .ico svg { width: 22px; height: 22px; }
.facts h3 { font-size: 1.28rem; margin-bottom: 2px; }
.facts p { margin: 0; color: #b9d0d4; font-size: .98rem; line-height: 1.5; }
.link-vis { margin-top: 12px; }
.link-vis svg { width: 100%; height: auto; }
.ball-run { animation: run 3.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes run { 0% { transform: translateX(0); } 50% { transform: translateX(270px); } 100% { transform: translateX(0); } }
@media (max-width: 900px) { .online { grid-template-columns: minmax(0, 1fr); } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.8vw, 22px); }
.tile { position: relative; border-radius: 24px; padding: clamp(20px, 2.4vw, 32px); overflow: hidden; background: linear-gradient(180deg, #1f2a32, #0e1519); border: 2px solid #2d3b45; box-shadow: 0 24px 40px -24px rgba(0,0,0,.8); }
.tile h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.tile p { color: #bdd3d3; margin: 0 0 14px; max-width: 46ch; }
.tile > img.mode-ico { float: right; width: clamp(88px, 10vw, 128px); margin: -8px -8px 6px 14px; filter: drop-shadow(0 12px 14px rgba(0,0,0,.55)); transform: rotate(8deg); }
.arcade-list, .bracket, .tile .tags { clear: both; }
.t-arcade { grid-column: span 7; background: radial-gradient(90% 120% at 100% 0%, rgba(255,92,92,.22), transparent 60%), linear-gradient(180deg, #232d36, #0e1519); }
.t-cup { grid-column: span 5; background: radial-gradient(90% 90% at 50% 0%, rgba(255,197,49,.2), transparent 65%), linear-gradient(180deg, #232d36, #0e1519); }
.t-maker { grid-column: span 5; }
.t-look { grid-column: span 7; }
.t-custom { grid-column: span 12; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; background: linear-gradient(90deg, #12301b, #0e1519 70%); }
@media (max-width: 900px) { .t-arcade, .t-cup, .t-maker, .t-look { grid-column: span 12; } .t-custom { grid-template-columns: minmax(0, 1fr); } }

.arcade-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.arcade-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.arcade-list b { font-family: var(--display); font-weight: 400; font-size: 1.12rem; color: #fff; }
.arcade-list span { font-size: .8rem; color: #9fb7bd; line-height: 1.3; }
.arcade-list li:first-child { grid-column: span 2; border-color: rgba(255,197,49,.5); background: rgba(255,197,49,.08); }

.bracket { margin-top: 8px; width: 100%; }
.bracket text { font-family: var(--display); fill: #9fb7bd; font-size: 11px; letter-spacing: .1em; }

/* cap lab */
.lab { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 34px); align-items: center; }
.lab-cap { width: clamp(130px, 18vw, 190px); filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.lab-cap.bump { transform: scale(1.1) rotate(-6deg); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 14px; }
.swatch-row legend, .lab label.cap { font: 800 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; padding: 0; display: block; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #0c1216; cursor: pointer; box-shadow: 0 0 0 2px rgba(255,255,255,.3); background: var(--sw); padding: 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(255,197,49,.6); transform: scale(1.1); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) { .lab { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .swatch-row, .pill-row { justify-content: center; } }

/* flags */
.flags { overflow: hidden; padding: 6px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.flag-row { display: flex; gap: 26px; width: max-content; padding: 10px 0; animation: led 70s linear infinite; }
.flag-row.rev { animation-direction: reverse; animation-duration: 90s; }
.flag-row img { width: clamp(64px, 8vw, 92px); height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 4px #c9d3da, 0 0 0 7px #55626c, 0 12px 16px -2px rgba(0,0,0,.55); }
.flags-note { margin-top: 18px; }

/* match facts */
.facts-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 22px; overflow: hidden; background: #0a1217; border: 2px solid #2d3b45; }
.facts-strip > div { padding: clamp(18px, 2.6vw, 34px) clamp(14px, 2vw, 26px); border-right: 1px solid rgba(255,255,255,.08); position: relative; }
.facts-strip > div:last-child { border-right: 0; }
.facts-strip .n { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--gold); line-height: 1; text-shadow: 0 4px 0 #5a3900; }
.facts-strip .n small { font-size: .45em; color: var(--ivory); text-shadow: none; margin-left: 4px; }
.facts-strip h3 { font-size: 1.15rem; margin: 10px 0 4px; }
.facts-strip p { margin: 0; font-size: .92rem; color: #a9c1c4; line-height: 1.45; }
@media (max-width: 900px) { .facts-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .facts-strip > div:nth-child(2) { border-right: 0; } .facts-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); } }

/* faq */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: linear-gradient(180deg, #1c262d, #0f171c); border: 2px solid #2b3943; }
.faq details[open] { border-color: #4a6272; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--display); font-size: 1.25rem; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; width: 12px; height: 12px; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .a { padding: 0 22px 20px; color: #c3d8d6; }
.faq .a p:last-child { margin-bottom: 0; }

/* final cta */
.finale { position: relative; isolation: isolate; text-align: center; padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #47b22f 0 6.25%, #3ca027 6.25% 12.5%, #47b22f 12.5% 18.75%, #3ca027 18.75% 25%, #47b22f 25% 31.25%, #3ca027 31.25% 37.5%, #47b22f 37.5% 43.75%, #3ca027 43.75% 50%, #47b22f 50% 56.25%, #3ca027 56.25% 62.5%, #47b22f 62.5% 68.75%, #3ca027 68.75% 75%, #47b22f 75% 81.25%, #3ca027 81.25% 87.5%, #47b22f 87.5% 93.75%, #3ca027 93.75% 100%); }
.finale::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 45%, rgba(5,20,26,.62), rgba(5,20,26,.9)), linear-gradient(180deg, var(--night) 0%, rgba(5,20,26,0) 24%); }
.finale .centre-ring { position: absolute; left: 50%; top: 50%; width: min(78vw, 520px); aspect-ratio: 1; border: 4px solid rgba(244,255,240,.2); border-radius: 50%; transform: translate(-50%, -50%); z-index: -1; }
.finale .stores { justify-content: center; margin-top: 30px; }
.finale .icon { width: 128px; height: 128px; margin: 0 auto 24px; border-radius: 29px; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 46px rgba(79,227,255,.35), 0 26px 40px -12px rgba(0,0,0,.75); transform: rotate(-4deg); }
.finale .small { margin-top: 26px; color: #b9d0d4; font-size: .95rem; }

/* footer */
.foot { background: #04101a; border-top: 1px solid rgba(79,227,255,.35); padding: 54px 0 34px; font-size: .95rem; color: #9db5ba; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.foot h4 { font-family: var(--body); font-weight: 800; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { color: #cfe2e5; text-decoration: none; }
.foot a:hover { color: var(--gold); text-decoration: underline; }
.foot .brand { margin-bottom: 14px; }
.foot .fine { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > :first-child { grid-column: span 2; } }

/* ---------- document pages (privacy, terms, support…) ---------- */
.doc-hero { position: relative; isolation: isolate; padding: clamp(44px, 7vw, 84px) 0 clamp(26px, 4vw, 46px); overflow: hidden; border-bottom: 1px solid var(--line); }
.doc-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/stadium.webp") center 28% / cover; opacity: .55; }
.doc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,20,26,.55), var(--night)); }
.doc-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 12px; }
.doc-hero .meta { color: #b9d0d4; font-weight: 700; font-size: .95rem; }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: #fff; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(26px, 5vw, 70px); padding: clamp(34px, 5vw, 64px) 0 clamp(60px, 8vw, 110px); align-items: start; }
.toc { position: sticky; top: 92px; font-size: .92rem; padding: 18px 18px 16px; border-radius: 18px; background: linear-gradient(180deg, #1c262d, #0f171c); border: 2px solid #2b3943; }
.toc h2 { font: 800 .72rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 7px 9px; border-radius: 9px; color: #c2d6d8; text-decoration: none; }
.toc a:hover { background: rgba(255,255,255,.07); color: #fff; }
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2.1em 0 .55em; color: #fff; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.28rem; margin: 1.6em 0 .4em; color: var(--gold); }
.prose p, .prose li { color: #cfe0dc; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose strong { color: #fff; }
.callout { margin: 1.4em 0; padding: 18px 20px; border-radius: 16px; background: linear-gradient(180deg, rgba(79,227,255,.1), rgba(79,227,255,.04)); border: 2px solid rgba(79,227,255,.35); color: #dff6fb; }
.callout.gold { background: rgba(255,197,49,.09); border-color: rgba(255,197,49,.45); color: #fff1c9; }
.callout strong { color: #fff; }
.callout p:last-child { margin-bottom: 0; }
.tablewrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: 16px; border: 2px solid #2b3943; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .96rem; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.08); }
th { background: #16212a; color: var(--gold); font: 800 .74rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: #fff; font-weight: 700; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

/* support + press cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 0 40px; }
.card { padding: 22px; border-radius: 20px; background: linear-gradient(180deg, #1f2a32, #0e1519); border: 2px solid #2d3b45; }
.card h3 { font-size: 1.4rem; margin-bottom: 8px; color: #fff; }
.card p { color: #bdd3d3; font-size: .96rem; margin-bottom: 14px; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 18px 0 30px; }
.asset { border-radius: 16px; overflow: hidden; border: 2px solid #2d3b45; background: #0b1318; text-decoration: none; color: var(--ivory); display: block; }
.asset .pic { aspect-ratio: 4/3; display: grid; place-items: center; background: repeating-conic-gradient(#16222a 0% 25%, #101a20 0% 50%) 0 0 / 24px 24px; }
.asset .pic img { max-height: 82%; max-width: 82%; object-fit: contain; }
.asset span { display: block; padding: 10px 14px 12px; font-weight: 800; font-size: .9rem; }
.asset span small { display: block; color: var(--muted); font-weight: 600; }
.asset:hover { border-color: var(--gold); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 30px; }
.swatches div { width: 120px; border-radius: 14px; overflow: hidden; border: 2px solid #2d3b45; font-size: .82rem; }
.swatches i { display: block; height: 56px; }
.swatches span { display: block; padding: 8px 10px; background: #0b1318; color: #cfe2e5; font-weight: 700; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; position: relative; isolation: isolate; }
.lost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/stadium.webp") center / cover; opacity: .35; }
.lost h1 { font-size: clamp(5rem, 22vw, 12rem); line-height: .9; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .static .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .led-track, .flag-row { animation: none; }
}
