/* maestrofc.app — one stylesheet on the app's tokens (packages/ui/src/tokens.ts). Night-match palette, pitch green,
   one gold accent, chalk text; Barlow Condensed for display and numbers, the system font for body. */
:root {
  /* colours (tokens.ts `colors` / `brand`) */
  --bg: #101C18;
  --surface: #182822;
  --surface-raised: #21342C;
  --glass: rgba(20, 34, 29, 0.78);
  --border: #2E4439;
  --border-subtle: rgba(255, 255, 255, 0.10);
  --text: #FFFFFF;
  --text-muted: #A7B8B0;
  --gold: #D4AF37;          /* colors.brand: buttons, links */
  --on-gold: #101C18;
  --pitch: #1F8A4C;
  --pitch-deep: #0E3B22;
  --brand-green: #0F3D2E;   /* the badge */
  --brand-chalk: #F2F4EE;
  --brand-gold: #E2B13C;
  --session: #4FA3E0;       /* the Session of the day box (DailyBox SESSION_COLOR) */
  --danger: #E5484D;
  --success: #30A46C;
  /* tiers (tokens.ts tierAccents, base / sheen) */
  --t-amateur: #A9B1BB; --t-semiPro: #D9A56E; --t-pro: #E1E7EE; --t-international: #F3D77A;
  --t-worldClass: #F5F9FC; --t-legend: #EDB4BE; --t-maestro: #D6C6FF;
  /* spacing, radius, type */
  --xs: 4px; --sm: 8px; --md: 12px; --lg: 16px; --xl: 24px; --xxl: 32px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --wordmark: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max: 1120px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--brand-gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; margin: 0 0 var(--md); }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3, h2.h3 { font-size: 1.5rem; }
p { margin: 0 0 var(--md); }
.muted { color: var(--text-muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--lg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- header ------------------------------------------------------------------------------------------------------ */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--md); padding: var(--md) 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.wordmark { font-family: var(--wordmark); font-weight: 900; letter-spacing: .22em; font-size: 1.05rem; text-transform: uppercase; white-space: nowrap; }
.wordmark b { color: var(--brand-gold); font-weight: 900; }
.top nav { display: flex; gap: var(--lg); }
.top nav a { color: var(--text-muted); text-decoration: none; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.tools { display: flex; gap: var(--sm); align-items: center; }
.icon-btn, .lang-btn { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; padding: 0 var(--md); font: 600 .95rem var(--display); letter-spacing: .06em; }
.icon-btn:hover, .lang-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.icon-btn .on { display: none; }
.icon-btn[aria-pressed="true"] .on { display: block; }
.icon-btn[aria-pressed="true"] .off { display: none; }
@media (max-width: 720px) { .top nav { order: 3; width: 100%; justify-content: space-around; gap: var(--sm); border-top: 1px solid var(--border-subtle); padding-top: var(--sm); } .wordmark { font-size: .9rem; letter-spacing: .16em; } }

/* ---- buttons (the app's primary: gold face; secondary: gold-tinted outline) --------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sm); min-height: 52px; padding: 0 var(--xl); border-radius: var(--r-md); font: 700 1.25rem var(--display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .08s ease, opacity .15s; }
.btn:active { transform: scale(.98); opacity: .85; }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--brand-gold); color: var(--on-gold); }
.btn-secondary { background: rgba(212, 175, 55, 0.14); border-color: var(--gold); color: var(--text); }
.btn-secondary:hover { color: var(--text); background: rgba(212, 175, 55, 0.24); }
.btn svg { width: 22px; height: 22px; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 52px; width: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--md); align-items: center; }

/* ---- hero (a Home stadium photo under a 60–65 % shade, as tokens.photoShade) ---------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 28, 24, .6), rgba(16, 28, 24, .65) 70%, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--xxl); align-items: center; padding-top: var(--xxl); padding-bottom: 56px; }
.hero .badge { width: 88px; height: 88px; margin-bottom: var(--lg); }
.hero .tagline { font: 700 1.35rem var(--display); color: var(--brand-gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sm); }
.hero p.lead { font-size: 1.15rem; color: var(--text); max-width: 34em; }
.hero .phone { max-width: 300px; margin: 0 auto; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; padding-top: var(--lg); } .hero .phone { max-width: 240px; } .hero .badge { width: 64px; height: 64px; } }

/* ---- the CSS phone bezel for 1206 × 2622 screenshots ------------------------------------------------------------------ */
.phone { position: relative; width: 100%; aspect-ratio: 1206 / 2622; border-radius: 14% / 6.5%; padding: 3.2%; background: linear-gradient(145deg, #2b2f2d, #0a0c0b 60%); box-shadow: 0 0 0 1px #3c423f, 0 24px 60px rgba(0, 0, 0, .55); }
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 11.5% / 5.3%; object-fit: cover; background: var(--surface); }
.phone::after { content: ''; position: absolute; top: 2.4%; left: 50%; width: 30%; height: 3.2%; transform: translateX(-50%); border-radius: 999px; background: #050605; }
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); }
.phone-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--md); }

/* ---- the app's boxes: dark green-charcoal card, border, an accent bar on the left or top ------------------------------ */
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--xl); position: relative; overflow: hidden; }
.box.glass { background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.box.accent-left { border-left: 6px solid var(--pitch); }
.box.accent-gold { border-left: 6px solid var(--brand-gold); }
.box.accent-top { border-top: 5px solid var(--session); }
.box.accent-tip { border-top: 5px solid var(--gold); }
.box h3 { margin-bottom: var(--sm); }
.box.accent-top h3 { color: var(--session); }

section { padding: 56px 0; }
section.alt { background: linear-gradient(180deg, var(--bg), var(--pitch-deep) 50%, var(--bg)); }
.kicker { font: 700 1rem var(--display); color: var(--gold); text-transform: uppercase; letter-spacing: .14em; margin-bottom: var(--sm); }
.intro p { font-size: 1.15rem; max-width: 46em; }

.modes { display: grid; gap: var(--xl); }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: var(--xl); align-items: center; }
.mode .shots { max-width: 460px; justify-self: center; width: 100%; }
.mode.text-only { grid-template-columns: 1fr; }
.mode ul { padding-left: 1.2em; margin: 0; color: var(--text-muted); }
.mode li { margin-bottom: var(--xs); }
@media (max-width: 820px) { .mode { grid-template-columns: 1fr; } .mode .shots { max-width: 360px; } }
.mode .phone-trio .phone, .mode .phone-pair .phone { box-shadow: 0 0 0 1px #3c423f, 0 12px 30px rgba(0, 0, 0, .5); }

/* screenshot scroller */
.scroller { display: flex; gap: var(--lg); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--sm) var(--lg) var(--lg); margin: 0 calc(-1 * var(--lg)); scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.scroller figure { flex: 0 0 200px; margin: 0; scroll-snap-align: center; }
.scroller figcaption { text-align: center; color: var(--text-muted); font: 600 1rem var(--display); text-transform: uppercase; letter-spacing: .05em; margin-top: var(--sm); }
@media (min-width: 900px) { .scroller figure { flex-basis: 220px; } }

/* tier ladder */
.ladder { list-style: none; padding: 0; margin: var(--lg) 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sm); }
.ladder li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--md) var(--sm); text-align: center; }
.ladder .tn { display: block; font: 700 1.1rem var(--display); text-transform: uppercase; }
.ladder .tr { display: block; color: var(--text-muted); font: 600 .95rem var(--display); }
@media (max-width: 820px) { .ladder { grid-template-columns: repeat(2, 1fr); } .ladder li:last-child { grid-column: span 2; } }
.tier { font-weight: 700; }
.tier-amateur { color: var(--t-amateur); } .tier-semiPro { color: var(--t-semiPro); } .tier-pro { color: var(--t-pro); }
.tier-international { color: var(--t-international); } .tier-worldClass { color: var(--t-worldClass); }
.tier-legend { color: var(--t-legend); } .tier-maestro { color: var(--t-maestro); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--md) var(--lg); margin-bottom: var(--sm); }
.faq summary { cursor: pointer; font: 700 1.25rem var(--display); text-transform: uppercase; letter-spacing: .02em; list-style: none; display: flex; justify-content: space-between; gap: var(--md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: var(--sm) 0 0; color: var(--text-muted); }

/* waitlist form */
.notify { max-width: 640px; }
.form-row { display: flex; gap: var(--sm); flex-wrap: wrap; margin-top: var(--md); }
.form-row input[type="email"] { flex: 1 1 240px; min-height: 52px; padding: 0 var(--lg); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 1rem var(--body); }
.form-row input[type="email"]:focus { border-color: var(--gold); outline: none; }
.form-msg { min-height: 1.5em; margin-top: var(--sm); font-weight: 600; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: #FF8A8D; }
.fine { font-size: .9rem; color: var(--text-muted); }

/* ---- ranks.html ---------------------------------------------------------------------------------------------------- */
.ranks-grid { display: grid; grid-template-columns: 1fr 280px; gap: var(--xxl); align-items: start; }
@media (max-width: 900px) { .ranks-grid { grid-template-columns: 1fr; } .ranks-aside .phone { max-width: 220px; margin: 0 auto; } }
.picker { display: flex; gap: var(--sm); align-items: center; flex-wrap: wrap; margin-bottom: var(--lg); }
.picker select { min-height: 48px; padding: 0 var(--lg); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 1.15rem var(--display); text-transform: uppercase; letter-spacing: .03em; max-width: 100%; }
.board { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.board th { text-align: left; color: var(--text-muted); font: 600 .9rem var(--display); text-transform: uppercase; letter-spacing: .08em; padding: 0 var(--md); }
.board td { background: var(--surface); padding: var(--md); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.board td:first-child { border-left: 1px solid var(--border); border-radius: var(--r-md) 0 0 var(--r-md); width: 3.2em; font: 700 1.2rem var(--display); color: var(--text-muted); }
.board td:last-child { border-right: 1px solid var(--border); border-radius: 0 var(--r-md) var(--r-md) 0; }
.board td.num { text-align: right; font: 700 1.35rem var(--display); }
.board th.num { text-align: right; }
.board .who { font-weight: 600; overflow-wrap: anywhere; }
.board .flag { margin-right: 6px; }
.board tr.top1 td:first-child { color: var(--brand-gold); }
@media (max-width: 520px) { .board .tier-col { display: none; } .board td { padding: var(--sm) var(--md); } }
.empty { text-align: center; padding: var(--xxl) var(--lg); }
.daily-stats { margin-top: var(--xl); }
.stat-row { display: flex; gap: var(--xl); flex-wrap: wrap; }
.stat { font: 700 2.4rem var(--display); line-height: 1; }
.stat small { display: block; font: 600 .95rem var(--display); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: var(--xs); }

/* ---- guess-who.html -------------------------------------------------------------------------------------------------- */
.riddle { max-width: 720px; margin: 0 auto; text-align: center; }
.riddle .question { font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.45; margin: var(--lg) 0 var(--xl); }
.reveal { width: 100%; min-height: 120px; border-radius: var(--r-xl); border: 2px dashed var(--gold); background: rgba(212, 175, 55, 0.08); color: var(--text); cursor: pointer; font: 700 1.6rem var(--display); text-transform: uppercase; letter-spacing: .05em; }
.reveal:hover { background: rgba(212, 175, 55, 0.16); }
.answer { border: 1px solid var(--gold); border-radius: var(--r-xl); background: var(--surface); padding: var(--xl); }
.answer .name { font: 700 2.4rem var(--display); text-transform: uppercase; margin: 0; }
.answer .era { color: var(--text-muted); font: 600 1.1rem var(--display); text-transform: uppercase; letter-spacing: .06em; }
.answer .fact { margin-top: var(--md); }
.riddle .cta-row { justify-content: center; margin-top: var(--xl); }

/* ---- legal / support / invite / 404 ----------------------------------------------------------------------------------- */
.doc { max-width: 760px; margin: 0 auto; padding: var(--xl) var(--lg) 56px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.doc h2 { font-size: 1.6rem; margin-top: var(--xxl); }
.doc .updated { color: var(--text-muted); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: var(--sm); }
.invite { text-align: center; }
.invite .code { font: 900 clamp(2.2rem, 10vw, 3.2rem) var(--wordmark); letter-spacing: .3em; padding-left: .3em; margin: var(--xl) 0; color: var(--brand-gold); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding-top: var(--lg); padding-bottom: var(--lg); }
.invite .cta-row { justify-content: center; }

/* ---- footer ---------------------------------------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--border); padding: var(--xl) 0 var(--xxl); color: var(--text-muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--md) var(--xl); justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: var(--md); }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }

[hidden] { display: none !important; }
.doc p:empty { display: none; }
#board { min-height: 320px; }
#riddle { min-height: 220px; }
#daily { min-height: 64px; }
.box.accent-top h2 { color: var(--session); margin-bottom: var(--sm); }
