/* Soccolo website — green/lime system from the app (soccolo_palette.dart). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #0a0f0d;
  --surface: #131b17;
  --surface-2: #1d2a24;
  --line: #26332c;
  --line-strong: #5b6b61;
  --text: #f2f5f0;
  --muted: #9aa79f;
  --lime: #d4ff3f;
  --on-lime: #0a0f0d;
  --green: #14663a;
  --green-deep: #0f2d1f;
  --mint: #57e9ad;
  --warn: #fbbf24;
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --text-2: #c9d2cb;          /* secondary body text */
  --accent: var(--lime);      /* accent TEXT colour (lime on dark, green on light) */
  --header-bg: rgba(10, 15, 13, .72);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 9vw, 7.2rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h3 { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.lime { color: var(--accent); }
.eyebrow { font: 800 .8rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Buttons */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--on-lime); border-color: var(--accent); box-shadow: 0 10px 40px -12px rgba(212, 255, 63, .55); }
.btn-lime:hover { border-color: var(--accent); box-shadow: 0 14px 48px -10px rgba(212, 255, 63, .7); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .5; cursor: default; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: var(--header-bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
@media (max-width: 860px) { .nav { display: none; } .site-header .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(50% 45% at 72% 35%, rgba(20, 102, 58, .55), transparent 70%), radial-gradient(30% 30% at 20% 10%, rgba(212, 255, 63, .07), transparent 70%); z-index: -2; }
.hero-pitch { position: absolute; inset: 0; z-index: -1; opacity: .16; color: var(--accent); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.hero-pitch svg { width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 .lime { display: inline-block; }
.hero .lede { margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 255, 63, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(212, 255, 63, 0); } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: 2; } }

.phone { position: relative; width: min(330px, 78vw); margin-inline: auto; aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #2a3a31, #0d1411 60%); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px #2c3b33 inset, 0 0 120px -40px rgba(212, 255, 63, .35); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; background: var(--bg); }

.hero-visual { position: relative; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(19, 27, 23, .86); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); font-weight: 700; font-size: .9rem; animation: bob 6s ease-in-out infinite; text-decoration: none; }
.float-card small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }
.float-card .glyph { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--accent); padding: 4px; }
.float-a { left: -6%; top: 22%; }
.float-b { right: -4%; top: 52%; animation-delay: -2s; }
.float-c { left: 2%; bottom: 8%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .float-a { left: -2%; } .float-b { right: -2%; } }

/* Stats strip */
.strip { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(20, 102, 58, .16), transparent 60%); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 800 clamp(1.9rem, 4vw, 2.8rem)/1 var(--display); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .strip .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat { border-top: 1px solid var(--line); } .stat:nth-child(-n+2) { border-top: 0; } }

/* Sections */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { max-width: 46ch; color: var(--text-2); }
.section-head .eyebrow { margin-bottom: 14px; }

/* Kick-off board */
.board { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .board { grid-template-columns: 1fr; } }
.pitch { position: relative; aspect-ratio: 68 / 100; border-radius: 28px; background: repeating-linear-gradient(180deg, #14211b 0 10%, #111c17 10% 20%); border: 1px solid var(--line); overflow: hidden; box-shadow: inset 0 0 80px rgba(0, 0, 0, .5); }
@media (max-width: 860px) { .pitch { aspect-ratio: 68 / 72; } }
.pitch svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(212, 255, 63, .28); }
.zone-chip { position: absolute; left: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(10, 15, 13, .82); border: 1.5px solid var(--line-strong); font-weight: 750; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zone-chip:hover { border-color: var(--accent); transform: scale(1.04); }
.zone-chip .n { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-2); font-size: .85rem; }
.zone-chip[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); border-color: var(--accent); box-shadow: 0 0 40px -6px rgba(212, 255, 63, .6); }
.zone-chip[aria-pressed="true"] .n { background: rgba(10, 15, 13, .16); }
.zone-chip.all { left: auto; right: 14px; bottom: 14px; translate: none; }
.board-panel { min-height: 100%; }
.board-panel h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.board-panel .zone-blurb { color: var(--muted); margin-bottom: 20px; }

.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.drill-card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; cursor: pointer; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.drill-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.drill-card .art { position: relative; height: 104px; display: grid; place-items: center; background: radial-gradient(70% 90% at 50% 60%, #1c2a23, #141d18); color: var(--accent); }
.drill-card .art svg { width: 64px; height: 64px; }
.drill-card .code { position: absolute; left: 14px; top: 12px; font-weight: 800; font-size: .78rem; color: var(--accent); letter-spacing: .04em; }
.drill-card .body { padding: 14px 16px 16px; }
.drill-card .t { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.drill-card .m { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.drill-card .go { display: inline-flex; margin-top: 12px; font-weight: 800; font-size: .88rem; color: var(--accent); gap: 6px; align-items: center; }

.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="false"] { opacity: .55; }

.speed { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.speed button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; cursor: pointer; }
.speed button[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }

/* Album + week card */
.album-wrap { display: grid; grid-template-columns: 360px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .album-wrap { grid-template-columns: 1fr; } }
.player-card { position: relative; padding: 24px; border-radius: 28px; background: linear-gradient(170deg, #17241d, #101814); border: 1px solid var(--line); overflow: hidden; }
.player-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--lime), var(--mint), var(--lime)); }
.player-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(212, 255, 63, .2); }
.pc-head { display: flex; align-items: center; gap: 14px; }
.crest { width: 52px; height: 58px; display: grid; place-items: center; background: var(--green); clip-path: polygon(50% 0, 100% 14%, 100% 60%, 50% 100%, 0 60%, 0 14%); color: var(--accent); font: 800 1.3rem var(--display); }
.pc-head b { font: 800 1.35rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.pc-head span { display: block; color: var(--muted); font-weight: 800; letter-spacing: .1em; font-size: .78rem; }
.week-dots { display: flex; gap: 7px; margin: 18px 0; }
.week-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.week-dots i.on { background: var(--lime); box-shadow: 0 0 10px rgba(212, 255, 63, .6); }
.week-dots i.today { outline: 2px solid var(--line-strong); outline-offset: 2px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-stats div { padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .3); }
.pc-stats b { display: block; font: 800 1.7rem/1 var(--display); font-variant-numeric: tabular-nums; }
.pc-stats span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.pc-note { margin-top: 14px; font-size: .8rem; color: var(--muted); }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.sticker { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; text-align: center; text-decoration: none; border: 1.5px dashed var(--line-strong); background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, .025) 8px 16px); color: var(--muted); transition: transform .2s; }
.sticker:hover { transform: translateY(-3px) rotate(-1.5deg); }
.sticker svg { width: 46px; height: 46px; opacity: .35; }
.sticker b { font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.sticker span { font-size: .78rem; line-height: 1.15; font-weight: 650; }
.sticker.on { border: 0; background: linear-gradient(155deg, #d4ff3f, #8be0a4 55%, #b5f0c9); color: var(--on-lime); box-shadow: 0 14px 30px -14px rgba(212, 255, 63, .55); transform: rotate(-1.5deg); }
.sticker.on:nth-child(2n) { transform: rotate(1.5deg); }
.sticker.on svg { opacity: 1; }
.album-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-weight: 700; }
.meter { flex: 1; height: 8px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.meter b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--mint)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }

/* Feature rows */
.features { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.feature:nth-child(even) .feature-media { order: -1; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-media { order: 0; } }
.feature h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.03em; line-height: 1.04; margin: 12px 0 16px; }
.feature p { color: var(--text-2); max-width: 44ch; }
.feature ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); }
.feature li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); translate: 0 -2px; }
.feature-media { position: relative; display: grid; place-items: center; padding: 30px 0; }
.feature-media::before { content: ""; position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 102, 58, .55), transparent); filter: blur(20px); }
.feature-media .phone { width: min(300px, 72vw); }

/* Estimate calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 30px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-in { padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; align-content: start; }
.calc-out { padding: clamp(24px, 4vw, 44px); background: linear-gradient(160deg, #17301f, #0f2016); display: grid; align-content: center; gap: 10px; }
.calc label { display: block; font-weight: 750; margin-bottom: 8px; }
.calc select, .calc input[type="range"] { width: 100%; }
.calc select { appearance: none; -webkit-appearance: none; padding: 14px 44px 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d4ff3f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--text); font: 600 1rem var(--body); }
input[type="range"] { accent-color: var(--accent); height: 28px; }
.calc-out .big { font: 800 clamp(4rem, 10vw, 6.4rem)/.9 var(--display); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-out .formula { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; color: var(--text-2); padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); }

/* Parent tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tile .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(212, 255, 63, .1); color: var(--accent); margin-bottom: 18px; }
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .98rem; }

/* Get the app */
.get { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(36px, 7vw, 88px); background: radial-gradient(70% 120% at 100% 0%, #1f6a3f, transparent 60%), linear-gradient(160deg, #142219, #0c130f); border: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .get { grid-template-columns: 1fr; } }
.get h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.get p { color: var(--text-2); margin-top: 18px; max-width: 44ch; }
.get .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.get-mark { color: var(--accent); opacity: .9; }
.get-mark svg { width: 100%; max-width: 300px; margin-inline: auto; animation: spin 40s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 750; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font: 800 1.5rem/1 var(--display); color: var(--accent); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 22px 22px; color: var(--text-2); }
.faq details > div p + p { margin-top: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--text); margin: 0 0 12px; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand img { height: 24px; margin-bottom: 14px; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .85rem; }

/* Drill pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); padding-top: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.drill-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: 32px 0 56px; }
@media (max-width: 860px) { .drill-hero { grid-template-columns: 1fr; } }
.drill-hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); margin: 12px 0 18px; }
.drill-art { aspect-ratio: 1; border-radius: 36px; background: radial-gradient(70% 70% at 50% 55%, #1f3127, #111a15); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); position: relative; overflow: hidden; }
.drill-art svg { width: 56%; height: 56%; filter: drop-shadow(0 0 30px rgba(212, 255, 63, .3)); }
.drill-art .code { position: absolute; left: 24px; top: 20px; font: 800 1.1rem var(--display); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 30px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.facts dt { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 750; line-height: 1.3; }
.drill-body { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 5vw, 64px); padding-bottom: 40px; }
@media (max-width: 860px) { .drill-body { grid-template-columns: 1fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 70px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); font-weight: 800; }
.cue { margin-top: 28px; padding: 24px; border-radius: 22px; background: linear-gradient(150deg, rgba(212, 255, 63, .14), rgba(212, 255, 63, .03)); border: 1px solid rgba(212, 255, 63, .3); }
.cue b { display: block; font: 800 clamp(1.5rem, 3vw, 2rem)/1.15 var(--display); margin-top: 6px; }
.aside-card { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.aside-card + .aside-card { margin-top: 14px; }
.aside-card h2 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 10px; }
.aside-card p, .aside-card li { color: var(--text-2); font-size: .97rem; }
.aside-card ul { padding-left: 18px; margin: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 0 80px; }
.pager a { padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.pager a:hover { border-color: var(--line-strong); }
.pager small { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.pager b { font-size: 1.05rem; }
.pager .next { text-align: right; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; font-weight: 750; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); border-color: var(--accent); }
.prose { max-width: 720px; padding: 40px 0 100px; }
.prose h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 10px 0 24px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose code { background: var(--surface); padding: 2px 6px; border-radius: 6px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 140%; z-index: 300; padding: 12px 20px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-weight: 800; transition: translate .35s cubic-bezier(.2, 1.4, .4, 1); }
.toast.show { translate: -50% 0; }

.drill-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.drill-list .drill-card { height: 100%; }
@media (max-width: 860px) { .drill-art { aspect-ratio: 16 / 9; border-radius: 28px; } .drill-art svg { width: 38%; height: 70%; } }

/* Soccolo Arcade */
.arcade { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #05080a; outline: none; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 120px -60px rgba(212, 255, 63, .35); }
.arcade:focus-visible { box-shadow: 0 0 0 3px var(--lime); }
.game-stage { position: relative; aspect-ratio: 16 / 9.5; }
@media (max-width: 640px) { .game-stage { aspect-ratio: 4 / 5; } }
.game-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; -webkit-user-select: none; user-select: none; }
.g-top { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px; pointer-events: none; z-index: 2; }
.g-top > * { pointer-events: auto; }
.g-score { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(5, 8, 10, .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 800; font-size: .82rem; letter-spacing: .04em; }
.g-score[hidden], .g-hint[hidden] { display: none; }
.g-score .g-num { font: 800 1.15rem/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.g-dots { display: flex; gap: 4px; }
.g-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.g-dots i.y { background: var(--lime); box-shadow: 0 0 8px rgba(212, 255, 63, .6); }
.g-dots i.n { background: #ff5d6c; }
@media (max-width: 520px) { .g-score { gap: 6px; padding: 7px 10px; font-size: .72rem; } .g-dots i { width: 7px; height: 7px; } .g-dots { gap: 3px; } }
.g-turn { margin-top: 6px; padding-left: 14px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 6px #000; }
.g-btns { display: flex; gap: 8px; }
.g-btns .icon-btn { width: 40px; height: 40px; background: rgba(5, 8, 10, .74); }
.g-msg { position: absolute; left: 50%; top: 30%; translate: -50% -50%; z-index: 4; text-align: center; pointer-events: none; font: 800 clamp(1.9rem, 6.5vw, 4.4rem)/1 var(--display); letter-spacing: -.03em; white-space: nowrap; color: var(--text); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .4s cubic-bezier(.2, 1.6, .4, 1); text-shadow: 0 6px 30px rgba(0, 0, 0, .7); }
.g-msg.show { opacity: 1; transform: scale(1); }
.g-msg.good { color: var(--accent); }
.g-msg.bad { color: #ff7a8a; }
.g-msg small { display: block; margin-top: 10px; font: 800 .95rem var(--body); letter-spacing: .04em; color: var(--text); }
.g-hint { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; z-index: 2; max-width: calc(100% - 90px); padding: 7px 14px; border-radius: 999px; background: rgba(5, 8, 10, .74); font-size: .78rem; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.g-panel { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; text-align: center; background: radial-gradient(70% 70% at 50% 40%, rgba(10, 15, 13, .5), rgba(5, 8, 10, .9)); overflow-y: auto; }
.g-panel[hidden] { display: none; }
.g-card { max-width: 600px; }
.g-card h3 { font-size: clamp(2rem, 5.6vw, 3.8rem); letter-spacing: -.04em; margin: 8px 0 20px; }
.g-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .g-modes { grid-template-columns: 1fr; } .g-card h3 { margin-bottom: 14px; } }
.g-mode { padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--line-strong); background: rgba(19, 27, 23, .88); text-align: left; cursor: pointer; font-weight: 800; font-size: 1.08rem; line-height: 1.2; transition: border-color .2s, transform .15s; }
.g-mode:hover { border-color: var(--accent); transform: translateY(-2px); }
.g-mode small { display: block; margin-top: 6px; color: var(--muted); font-weight: 600; font-size: .84rem; line-height: 1.35; }
.g-mode.primary { background: var(--lime); color: var(--on-lime); border-color: var(--accent); }
.g-mode.primary small { color: rgba(10, 15, 13, .72); }
.g-level { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.g-keys { margin-top: 14px; font-size: .82rem; color: var(--muted); line-height: 1.9; }
kbd { font: 700 .76rem ui-monospace, SFMono-Regular, Consolas, monospace; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: var(--text); }
.g-rows { display: grid; gap: 6px; margin: 4px 0 16px; font-size: 1.5rem; letter-spacing: .12em; }
.g-rows span { margin-right: 10px; font: 800 .78rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.g-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.g-paused { cursor: pointer; }
.g-touch { display: flex; gap: 8px; padding: 10px; background: #0b110e; border-top: 1px solid var(--line); }
.g-touch[data-show="0"] > * { visibility: hidden; }
.g-shoot { flex: 1; position: relative; overflow: hidden; min-height: 54px; border: 0; border-radius: 16px; background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.g-shoot i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(10, 15, 13, .22); }
.g-shoot span { position: relative; }
.g-bend { width: 64px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: transparent; font-size: 1.3rem; font-weight: 800; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; }
.g-bend[hidden] { display: none; }
.g-bend[aria-pressed="true"] { background: rgba(212, 255, 63, .16); border-color: var(--accent); }
.arcade:fullscreen { display: flex; flex-direction: column; border-radius: 0; border: 0; }
.arcade:fullscreen .game-stage { flex: 1; aspect-ratio: auto; }
.arcade-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.arcade-foot a { color: var(--accent); font-weight: 700; }
.g-score .g-num, .g-score b { white-space: nowrap; }
.g-keys .k-touch { display: none; }
@media (pointer: coarse) { .g-keys .k-desk { display: none; } .g-keys .k-touch { display: inline; } }
@media (max-width: 640px) { .game-stage { aspect-ratio: 3 / 4; } }
@media (max-width: 520px) {
  .g-btns [data-g="full"] { display: none; }
  .g-btns .icon-btn { width: 36px; height: 36px; }
  .g-panel { padding: 14px; }
  .g-card h3 { font-size: 2rem; margin: 4px 0 12px; }
  .g-mode { padding: 12px 14px; font-size: 1rem; }
  .g-mode small { font-size: .78rem; margin-top: 4px; }
  .g-level { margin-top: 12px; font-size: .82rem; }
  .g-keys { margin-top: 10px; font-size: .76rem; line-height: 1.6; }
  .g-rows { font-size: 1.2rem; }
}

/* Library */
.lib-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .lib-cards { grid-template-columns: 1fr; } }
.lib-card { display: block; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: linear-gradient(160deg, #17241d, #0f1713); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, border-color .2s; }
.lib-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.lib-card h2, .lib-card h3 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; margin: 12px 0 12px; }
.lib-card p:not(.eyebrow) { color: var(--text-2); }
.lib-card .go { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 800; }
.lib-note { margin-top: 18px; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: .9rem; }
.lib-banner { margin-top: 24px; padding: 18px 20px; border-radius: 18px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .45); color: #f3e6c4; }
.lib-banner b { color: #fde68a; }
.lib-banner a { color: var(--accent); }
.lib-h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 56px 0 20px; }
.path-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.path-card { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.path-card h3 { margin: 8px 0 6px; }
.stages { list-style: none; counter-reset: st; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.stages li { counter-increment: st; display: flex; gap: 10px; align-items: center; font-weight: 700; }
.stages li::before { content: counter(st); width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(212, 255, 63, .14); color: var(--accent); font-size: .82rem; }
.path-list { font-size: .92rem; color: var(--text-2); }
.path-list a { color: var(--accent); }
.lib-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lib-item { padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; display: flex; flex-direction: column; gap: 10px; }
.lib-item:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 255, 63, .2); }
.lib-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lib-head h3 { font-size: 1.2rem; }
.lib-dose { flex: none; font-weight: 800; font-size: .82rem; color: var(--accent); text-align: right; }
.lib-item p { color: var(--text-2); }
.lib-item .btn { align-self: flex-start; margin-top: auto; font-variant-numeric: tabular-nums; }
.lib-item .btn.running { background: var(--lime); color: var(--on-lime); border-color: var(--accent); }
.lib-head { flex-direction: column; align-items: flex-start; gap: 4px; }
.lib-dose { text-align: left; }

/* Learning games */
.learn-grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .learn-grid { grid-template-columns: 1fr; } .learn-frame { display: none; } }
.learn-frame { position: sticky; top: 90px; margin-top: 30px; border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #2a3a31, #0d1411 60%); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px #2c3b33 inset, 0 0 120px -40px rgba(212, 255, 63, .35); }
.learn-frame iframe { display: block; width: 100%; height: min(820px, calc(100vh - 140px)); border: 0; border-radius: 31px; background: var(--bg); }
.learn-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.learn-list li { padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.learn-list b { display: block; font: 800 1.1rem/1.2 var(--display); }
.learn-list span { color: var(--text-2); font-size: .95rem; }
.learn-teaser { margin-top: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: linear-gradient(160deg, #14663a, #0f2d1f 70%); border: 1px solid #1e7a48; }
@media (max-width: 760px) { .learn-teaser { grid-template-columns: 1fr; } }
.learn-teaser h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 10px 0 12px; }
.learn-teaser p { color: #d7e8dd; }
.learn-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.learn-chips li { padding: 10px 16px; border-radius: 999px; background: rgba(10, 15, 13, .45); border: 1px solid rgba(212, 255, 63, .3); font-weight: 800; }

/* Library steps */
.lib-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.lib-steps li::marker { color: var(--accent); font-weight: 800; }

/* Legal + support */
.legal h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.legal ul { color: var(--text-2); padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--accent); }
.draft-banner { margin-bottom: 24px; padding: 14px 18px; border-radius: 14px; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .5); color: #fde68a; }
.legal-summary { margin: 24px 0 8px; padding: 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.legal-summary h2 { margin-top: 0; }
.support-card { margin: 24px 0 8px; padding: 26px; border-radius: 24px; background: linear-gradient(160deg, #17301f, #0f2016); border: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.support-card .btn { margin-top: 8px; }
.prose .faq { max-width: none; }
.legal a.btn-lime, .prose a.btn-lime { color: var(--on-lime); text-decoration: none; }

/* Security page */
.sec-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 10px; }
@media (max-width: 640px) { .sec-pillars { grid-template-columns: 1fr; } }
.sec-pillars div { padding: 20px 22px; border-radius: 20px; background: linear-gradient(160deg, #17301f, #0f2016); border: 1px solid var(--line); }
.sec-pillars b { display: block; font: 800 1.25rem/1.2 var(--display); color: var(--accent); margin-bottom: 6px; }
.sec-pillars span { color: var(--text-2); }
.sec-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px !important; }
.sec-list li { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sec-list b { display: block; color: var(--text); margin-bottom: 4px; }
.tile p a { color: var(--accent); }

/* Touch analyser visual */
.tv { margin-bottom: 56px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #070b09; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 120px -60px rgba(87, 233, 173, .35); }
.tv-stage { position: relative; aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .tv-stage { aspect-ratio: 4 / 5; } }
.tv-stage canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; cursor: col-resize; touch-action: pan-y; }
.tv-stage canvas:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.tv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: #0b110e; }
.tv-bar .btn svg { width: 14px; height: 14px; }
.tv-bar .btn[aria-pressed="true"][data-tv="slow"] { background: var(--lime); color: var(--on-lime); border-color: var(--accent); }
.tv-count { margin-left: auto; color: var(--muted); font-weight: 700; font-size: .9rem; }
.tv-count b { color: var(--accent); font: 800 1.3rem var(--display); margin-left: 6px; font-variant-numeric: tabular-nums; }
.tv-note { padding: 0 16px 16px; background: #0b110e; color: var(--muted); font-size: .86rem; }
.calc-h { font-size: 1.3rem; margin: 0 0 16px; color: var(--text-2); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 12px; border-radius: 14px; background: #000; border: 1px solid #3a3f3c; color: #fff; text-decoration: none; transition: transform .15s, border-color .2s; }
.store-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: .7rem; color: var(--text-2); font-weight: 600; line-height: 1.1; }
.store-btn b { display: block; font-size: 1.08rem; line-height: 1.15; }
.store-btn.soon small { color: var(--accent); }
.hero-stores { margin-top: 18px; }
.foot-stores { margin-top: 16px; }
.foot-stores .store-btn { min-height: 46px; }

/* "Get the app" prompt */
.promo { position: fixed; right: 20px; bottom: 20px; z-index: 260; width: min(380px, calc(100vw - 24px)); padding: 22px 22px 16px; border-radius: 24px; background: linear-gradient(160deg, #17301f, #0d1a13 70%); border: 1px solid #2c4a37; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85), 0 0 80px -30px rgba(212, 255, 63, .35); transform: translateY(24px); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.2, .3, 1), opacity .3s; }
.promo.in { transform: none; opacity: 1; }
.promo[hidden] { display: none; }
.promo h3 { font-size: 1.5rem; margin: 8px 30px 8px 0; }
.promo-text { color: var(--text-2); font-size: .95rem; margin-bottom: 14px; }
.promo-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.promo-later { margin-top: 10px; background: none; border: 0; color: var(--muted); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 0; }
@media (max-width: 560px) { .promo { right: 12px; left: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .promo { transition: none; } }
.g-app { margin-top: 14px; font-weight: 800; }
.g-app a { color: var(--accent); text-decoration: none; }
.promo .eyebrow { padding-right: 40px; }

/* Free vs Pro */
.plans { border-radius: 30px; border: 1px solid var(--line); background: var(--surface); padding: clamp(18px, 3vw, 34px); }
.pl-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.pl-head b { font: 800 clamp(1.3rem, 2.6vw, 1.8rem) var(--display); padding: 14px 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.pl-head b.pl-pro { background: linear-gradient(150deg, #14663a, #0f2d1f 75%); border-color: #1e7a48; color: var(--accent); }
.pl-table { width: 100%; border-collapse: collapse; }
.pl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-table tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; border-bottom: 1px solid var(--line); }
.pl-table th, .pl-table td { padding: 14px 16px; text-align: left; align-self: center; }
.pl-table th { font-weight: 750; }
.pl-table td { color: var(--text-2); }
.pl-table td.pl-pro { color: var(--text); font-weight: 700; }
.pl-yes { width: 22px; height: 22px; color: var(--accent); }
.pl-free { margin-top: 18px; color: var(--text-2); font-size: .95rem; }
.pl-free a { color: var(--accent); }
.pl-notes { margin: 14px 0 22px; padding-left: 20px; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
@media (max-width: 640px) {
  .pl-head, .pl-table tr { grid-template-columns: 1fr 1fr; }
  .pl-head span { display: none; }
  .pl-table th { grid-column: 1 / -1; padding: 14px 4px 0; color: var(--text); }
  .pl-table td { padding: 6px 4px 14px; }
}

.pl-limited { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: .85rem; font-weight: 750; }

/* ================= Light theme (dark is the default; the toggle sets html[data-theme="light"]) ================= */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7f2;
  --surface: #ffffff;
  --surface-2: #e8efe4;
  --line: #dce5d9;
  --line-strong: #9eaea3;
  --text: #0a0f0d;
  --text-2: #33433a;
  --muted: #55655b;
  --accent: #14663a;
  --header-bg: rgba(244, 247, 242, .86);
}
/* Only the game (a night-stadium scene) and the store badges stay dark in both themes. */
.arcade, .store-btn {
  --bg: #0a0f0d; --surface: #131b17; --surface-2: #1d2a24; --line: #26332c; --line-strong: #5b6b61;
  --text: #f2f5f0; --text-2: #c9d2cb; --muted: #9aa79f; --accent: #d4ff3f;
  color: var(--text);
}
html[data-theme="light"] .arcade { box-shadow: 0 30px 70px -40px rgba(10, 40, 20, .55); }
html[data-theme="light"] :focus-visible { outline-color: var(--green); }
html[data-theme="light"] .hero::before { background: radial-gradient(50% 45% at 72% 35%, rgba(20, 102, 58, .14), transparent 70%), radial-gradient(30% 30% at 20% 10%, rgba(212, 255, 63, .28), transparent 70%); }
html[data-theme="light"] .hero-pitch { color: var(--green); opacity: .1; }
html[data-theme="light"] .hero-note .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(20, 102, 58, .16); }
html[data-theme="light"] .strip { background: linear-gradient(90deg, rgba(20, 102, 58, .08), transparent 60%); }
html[data-theme="light"] #how { background: linear-gradient(180deg, transparent, #e9f1e5 20%, #e9f1e5 80%, transparent) !important; }
html[data-theme="light"] .drill-card .art { background: radial-gradient(70% 90% at 50% 60%, #e6f1df, #f6faf3); }
html[data-theme="light"] .drill-art { background: radial-gradient(70% 70% at 50% 55%, #e2efda, #f6faf3); }
html[data-theme="light"] .drill-art svg { filter: none; }
html[data-theme="light"] .sticker { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(10, 15, 13, .035) 8px 16px); }
html[data-theme="light"] .tile .ico { background: rgba(20, 102, 58, .1); }
html[data-theme="light"] .stages li::before { background: rgba(20, 102, 58, .12); }
html[data-theme="light"] .speed { background: rgba(10, 15, 13, .06); }
html[data-theme="light"] .cue { background: linear-gradient(150deg, rgba(212, 255, 63, .45), rgba(212, 255, 63, .12)); border-color: rgba(20, 102, 58, .25); }
html[data-theme="light"] .lib-banner { background: #fff6e0; border-color: #f0c86a; color: #5c4210; }
html[data-theme="light"] .lib-banner b { color: #3d2b06; }
html[data-theme="light"] .draft-banner { background: #fff6e0; border-color: #f0c86a; color: #5c4210; }
html[data-theme="light"] .feature-media::before { background: radial-gradient(closest-side, rgba(20, 102, 58, .22), transparent); }
html[data-theme="light"] .btn-lime { box-shadow: 0 10px 30px -14px rgba(20, 102, 58, .55); }
html[data-theme="light"] .site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(10, 40, 20, .5); }

/* Logos */
.logo-light { display: none; }
html[data-theme="light"] .logo-dark { display: none; }
html[data-theme="light"] .logo-light { display: block; }

/* Theme toggle */
.theme-toggle { margin-left: 8px; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, transform .2s; }
.theme-toggle:hover { border-color: var(--text); transform: rotate(-12deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (max-width: 860px) { .theme-toggle { margin-left: auto; } .site-header .btn { margin-left: 0; } }

/* Example player card (app preview) */
.example-tag { position: absolute; top: 16px; right: 16px; z-index: 1; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pc-stores { margin-top: 18px; }

/* ---------- Light versions of cards and panels ---------- */
.crest { color: #d4ff3f; }
.shot-light { display: none; }
html[data-theme="light"] .shot-dark { display: none; }
html[data-theme="light"] .shot-light { display: block; }
html[data-theme="light"] .phone, html[data-theme="light"] .learn-frame { background: linear-gradient(160deg, #fbfcfa, #cdd6cf 62%); box-shadow: 0 40px 80px -36px rgba(10, 40, 20, .45), 0 0 0 1px #c2ccc4 inset, 0 0 100px -40px rgba(20, 102, 58, .25); }
html[data-theme="light"] .float-card { background: rgba(255, 255, 255, .94); box-shadow: 0 20px 40px -22px rgba(10, 40, 20, .45); }
html[data-theme="light"] .lib-card { background: linear-gradient(160deg, #ffffff, #eef5ea); }
html[data-theme="light"] .lib-card:hover { border-color: #b8d8bc; }
html[data-theme="light"] .player-card { background: linear-gradient(170deg, #ffffff, #eef5ea); box-shadow: 0 30px 70px -45px rgba(10, 40, 20, .5); }
html[data-theme="light"] .player-card::after { border-color: rgba(20, 102, 58, .18); }
html[data-theme="light"] .pc-stats div, html[data-theme="light"] .calc-out .formula { background: rgba(10, 15, 13, .05); }
html[data-theme="light"] .calc-out, html[data-theme="light"] .support-card, html[data-theme="light"] .sec-pillars > div { background: linear-gradient(160deg, #e3f1dc, #f6faf3); }
html[data-theme="light"] .get { background: radial-gradient(70% 120% at 100% 0%, rgba(20, 102, 58, .18), transparent 60%), linear-gradient(160deg, #eaf4e5, #fbfcfa); box-shadow: 0 30px 70px -50px rgba(10, 40, 20, .5); }
html[data-theme="light"] .get-mark { color: var(--green); opacity: .85; }
html[data-theme="light"] .learn-teaser { background: linear-gradient(160deg, #d9eed1, #f3f9f0 75%); border-color: #b8d8bc; }
html[data-theme="light"] .learn-teaser p { color: var(--text-2); }
html[data-theme="light"] .learn-chips li { background: #ffffff; border-color: rgba(20, 102, 58, .3); }
html[data-theme="light"] .promo { background: linear-gradient(160deg, #ffffff, #eaf4e5 75%); border-color: var(--line); box-shadow: 0 30px 80px -30px rgba(10, 40, 20, .45); }
html[data-theme="light"] .pl-head b.pl-pro { background: var(--green); border-color: var(--green); color: #ffffff; }
html[data-theme="light"] .pitch { background: repeating-linear-gradient(180deg, #3f9d60 0 10%, #389458 10% 20%); border-color: #2f7d4b; box-shadow: inset 0 0 60px rgba(0, 0, 0, .14); }
html[data-theme="light"] .pitch svg.lines { color: rgba(255, 255, 255, .72); }
html[data-theme="light"] .zone-chip { background: rgba(255, 255, 255, .95); border-color: #ffffff; color: var(--text); }
html[data-theme="light"] .zone-chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
html[data-theme="light"] .tv { background: #f4f8f2; box-shadow: 0 30px 70px -45px rgba(10, 40, 20, .5); }
html[data-theme="light"] .tv-bar, html[data-theme="light"] .tv-note { background: var(--surface); }
html[data-theme="light"] .arcade-foot a { color: var(--accent); }

/* Album in light mode: empty slots are plain white cards, collected stickers keep their lime colour (same as dark) */
html[data-theme="light"] .sticker { background: #ffffff; border-color: #c9d6cc; }
html[data-theme="light"] .sticker.on { background: linear-gradient(155deg, #d4ff3f, #8be0a4 55%, #b5f0c9); border: 0; color: var(--on-lime); box-shadow: 0 14px 30px -16px rgba(20, 102, 58, .45); }
html[data-theme="light"] .sticker:not(.on) svg { opacity: .3; }
html[data-theme="light"] .feature li::before { background: var(--green); }

/* Camera practice screen (live illustration of the app's recording screen) */
.rec-wrap { padding: 10px; }
.rec-phone { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #3f7f3a; container-type: inline-size; color: #0a0f0d; }
.rec-phone canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; }
.rec-phone > :not(canvas):not(video) { z-index: 2; }
.rec-edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rec-edge path { stroke-linecap: round; }
.rec-edge-track { stroke: rgba(255, 255, 255, .28); stroke-width: 5; }
.rec-edge-prog { stroke: #d4ff3f; stroke-width: 6; filter: drop-shadow(0 0 6px rgba(212, 255, 63, .6)); transition: stroke .3s; }
.rec-edge.rest .rec-edge-prog { stroke: #57e9ad; }
.rec-top { position: absolute; top: 5.5%; left: 7%; right: 7%; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rec-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(10, 15, 13, .62); color: #fff; font: 800 9px/1 var(--body); letter-spacing: .06em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rec-pill i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 3px rgba(255, 77, 94, .25); animation: recblink 1.2s infinite; }
.rec-pill b { font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-pill.off i { background: #9aa79f; box-shadow: none; animation: none; }
@keyframes recblink { 50% { opacity: .35; } }
.rec-drill { padding: 4px 9px; border-radius: 999px; background: rgba(10, 15, 13, .62); color: #fff; font: 700 9px/1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rec-cue { position: absolute; left: 50%; bottom: 25.5%; translate: -50% 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 16px; background: #d4ff3f; color: #0a0f0d; font: 800 clamp(13px, 7cqw, 21px)/1 var(--display); letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.rec-cue svg { width: 1em; height: 1em; flex: none; }
.rec-cue.pop { animation: cuepop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cuepop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rec-dock { position: absolute; left: 3.5%; right: 3.5%; bottom: 2.6%; padding: 9px 10px 8px; border-radius: 20px; background: rgba(19, 27, 23, .88); color: #f2f5f0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-theme="light"] .rec-dock { background: rgba(242, 245, 240, .94); color: #0a0f0d; }
.rec-row { display: flex; align-items: center; gap: 8px; }
.rec-ring { position: relative; width: 25%; aspect-ratio: 1; flex: none; display: grid; place-content: center; text-align: center; }
.rec-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rec-ring circle { fill: none; stroke-width: 3.2; }
.rec-ring-track { stroke: rgba(255, 255, 255, .15); }
html[data-theme="light"] .rec-ring-track { stroke: rgba(10, 15, 13, .1); }
.rec-ring-prog { stroke: #d4ff3f; stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linecap: round; }
html[data-theme="light"] .rec-ring-prog { stroke: #14663a; }
.rec-num { position: relative; font: 800 clamp(16px, 8.5cqw, 26px)/1 var(--display); font-variant-numeric: tabular-nums; }
.rec-ring small { position: relative; font: 800 clamp(5px, 2.2cqw, 7px)/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.rec-info { flex: 1; min-width: 0; display: grid; }
.rec-title { font: 800 clamp(10px, 4.4cqw, 14px)/1.2 var(--display); }
.rec-sub { font-size: clamp(8px, 3.2cqw, 11px); opacity: .7; }
.rec-btn { display: grid; justify-items: center; gap: 3px; font: 800 clamp(7px, 3cqw, 10px)/1 var(--body); }
.rec-btn i { width: clamp(22px, 11cqw, 32px); aspect-ratio: 1; border-radius: 9px; display: block; position: relative; }
.rec-btn.pause i { background: rgba(255, 255, 255, .16); }
html[data-theme="light"] .rec-btn.pause i { background: rgba(20, 102, 58, .12); }
.rec-btn.pause i::before, .rec-btn.pause i::after { content: ""; position: absolute; top: 30%; bottom: 30%; width: 12%; background: currentColor; border-radius: 2px; }
.rec-btn.pause i::before { left: 34%; } .rec-btn.pause i::after { right: 34%; }
.rec-btn.stop i { background: #7a3a3f; }
.rec-btn.stop i::before { content: ""; position: absolute; inset: 33%; border-radius: 2px; background: #fff; }
.rec-bar { position: relative; display: grid; grid-template-columns: 1fr 1fr 14px; gap: 6px; align-items: center; margin-top: 8px; padding-right: 2px; }
.rec-bar i { --p: 0%; height: 6px; border-radius: 9px; background: linear-gradient(90deg, #d4ff3f var(--p), rgba(255, 255, 255, .14) var(--p)); }
html[data-theme="light"] .rec-bar i { background: linear-gradient(90deg, #14663a var(--p), rgba(10, 15, 13, .1) var(--p)); }
.rec-bar-dot { position: absolute; top: 50%; translate: -2px -50%; width: 14px; height: 14px; border-radius: 50%; background: #d4ff3f; border: 3px solid #1d2a24; transition: left .2s linear; }
html[data-theme="light"] .rec-bar-dot { background: #14663a; border-color: #ffffff; }
.rec-done { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 8px; opacity: .45; }
.rec-done.on { opacity: 1; background: #d4ff3f; border-color: #d4ff3f; color: #0a0f0d; }
.rec-caption { position: relative; margin-top: 14px; text-align: center; font-size: .8rem; color: var(--muted); }
.rec-src { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.rec-play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--lime); color: var(--on-lime); white-space: nowrap; }
.rec-play[hidden] { display: none; }
