/* ==========================================================================
   LetsPlayDarts — design system
   One stylesheet for every page. Tokens first, then base, layout,
   components, page sections, responsive.
   ========================================================================== */

:root {
    --bg: #06080d;
    --bg-2: #0a0e16;
    --surface: #0f141e;
    --surface-2: #151b28;
    --surface-3: #1c2434;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);

    --text: #f2f4f8;
    --muted: #98a2b6;
    --dim: #6b7589;

    --red: #e8394a;
    --red-600: #cf2c3d;
    --red-glow: rgba(232, 57, 74, 0.28);
    --green: #1fbf75;
    --green-glow: rgba(31, 191, 117, 0.22);
    --gold: #f5b942;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    --maxw: 1180px;
    --header-h: 68px;

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.container { width: min(var(--maxw), calc(100% - 2.5rem)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The skip link must appear when it receives keyboard focus. */
a.sr-only:focus, a.sr-only:focus-visible {
    position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; overflow: visible; clip: auto;
    padding: .7rem 1.1rem; border-radius: 10px; background: var(--surface, #101116); color: var(--text, #fff);
    border: 2px solid var(--red, #e8394a); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); text-decoration: none; font-weight: 600;
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { color: var(--muted); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--red);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.35rem; min-height: 46px;
    border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 0.95rem; line-height: 1;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--red-600); box-shadow: 0 12px 30px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-secondary, .btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover, .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.btn-full { width: 100%; }
.btn-lg { min-height: 52px; padding-inline: 1.7rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(6, 8, 13, 0.72);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-links a:not(.btn) {
    padding: 0.5rem 0.85rem; border-radius: 999px;
    font-size: 0.93rem; font-weight: 500; color: var(--muted);
    transition: color .15s, background .15s;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.5rem; }
.nav-actions .btn { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.lang-switcher-wrap { position: relative; }
.lang-button {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.75rem; min-height: 40px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.lang-button:hover { color: var(--text); border-color: rgba(255,255,255,.28); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px;
    background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
    box-shadow: var(--shadow); display: none;
}
.lang-menu.active { display: block; }
.lang-option { display: flex; gap: 0.6rem; width: 100%; padding: 0.55rem 0.7rem; background: none; border: 0; border-radius: 8px; text-align: left; font-size: 0.9rem; color: var(--text); }
.lang-option:hover { background: rgba(255,255,255,.07); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-strong); border-radius: 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Only hide reveal content when scripting is available to bring it back. */
@media (scripting: enabled) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(closest-side, var(--red-glow), transparent 70%); opacity: .55; pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; inset: auto auto -30% -15%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
    background: radial-gradient(closest-side, var(--green-glow), transparent 70%); opacity: .45; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.9rem 0.35rem 0.4rem;
    background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem;
}
.hero-pill b { background: var(--green); color: #04130c; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ff6b78, var(--red) 55%, #ff9a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.hero h1 span, .hero h1 em { display: block; }
.hero .lead { margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points .icon { color: var(--green); width: 1.1em; height: 1.1em; }

.hero-visual { position: relative; }
.board-card {
    position: relative; padding: clamp(0.8rem, 2vw, 1.4rem);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.board-card-top { display: flex; align-items: center; justify-content: space-between; padding: 0.2rem 0.4rem 0.9rem; font-size: 0.82rem; color: var(--muted); }
.live-dot { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--text); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green-glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-dartboard-host { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.hero-dartboard-host .rtc-dartboard-container, .hero-dartboard-host svg { width: 100%; height: auto; max-width: 480px; }
.hero-shot-status { margin-top: 0.6rem; padding: 0.8rem 1rem; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-shot-title { font-size: 0.7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.hero-shot-text { margin-top: 0.15rem; font-family: var(--mono); font-size: 0.88rem; color: var(--text); min-height: 1.4em; }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-card { padding: 2.2rem 1.5rem; text-align: center; border-left: 1px solid var(--line); }
.stat-card:first-child { border-left: 0; }
.stat-number { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 0.2rem; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Bento features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.feature-card {
    grid-column: span 2; position: relative; overflow: hidden; padding: 1.7rem;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feature-card.wide { grid-column: span 3; }
.feature-icon {
    width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1.2rem;
    border-radius: 12px; background: rgba(232,57,74,.12); border: 1px solid rgba(232,57,74,.25); color: #ff7a87;
}
.feature-card:nth-child(3n+2) .feature-icon { background: rgba(31,191,117,.1); border-color: rgba(31,191,117,.25); color: #4fe0a0; }
.feature-icon .icon { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.97rem; }

/* ---------- Match mock (scoreboard) ---------- */
.showcase { background: var(--bg-2); border-block: 1px solid var(--line); }
.showcase-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.check-list { margin-top: 1.6rem; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.75rem; color: var(--muted); }
.check-list .icon { color: var(--green); margin-top: 0.2em; }
.check-list b { color: var(--text); font-weight: 600; }

.match { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.match-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); background: rgba(255,255,255,.02); }
.match-bar b { color: var(--text); }
.match-players { display: grid; grid-template-columns: 1fr 1fr; }
.match-player { padding: 1.5rem 1.4rem 1.2rem; position: relative; }
.match-player + .match-player { border-left: 1px solid var(--line); }
.match-player.active { background: linear-gradient(180deg, rgba(232,57,74,.1), transparent 70%); }
.match-player.active::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--red); }
.match-name { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; background: var(--surface-3); border: 1px solid var(--line-strong); }
.match-legs { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.match-score { margin: 0.8rem 0 0.6rem; font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.match-player.active .match-score { color: #fff; }
.match-player:not(.active) .match-score { color: #b4bccd; }
.match-meta { display: flex; gap: 1.2rem; font-size: 0.8rem; color: var(--dim); }
.match-meta b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.match-throw { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
.match-throw-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-right: auto; }
.dart-chip { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.7rem; background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: 8px; }
.dart-chip.hit { background: rgba(232,57,74,.14); border-color: rgba(232,57,74,.4); color: #ff8e99; }
.match-checkout { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.4rem; border-top: 1px solid var(--line); background: rgba(31,191,117,.07); font-size: 0.86rem; }
.match-checkout b { color: #4fe0a0; font-family: var(--mono); }

/* ---------- Game modes ---------- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.game-card {
    display: flex; flex-direction: column; padding: 1.6rem; min-height: 250px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .2s, border-color .2s, background .2s;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(232,57,74,.45); background: var(--surface-2); }
.game-tag { align-self: flex-start; font-family: var(--mono); font-size: 0.74rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); margin-bottom: 1.2rem; }
.game-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.game-card p { font-size: 0.95rem; flex: 1; }
.game-link { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.game-link .icon { transition: transform .2s; width: 1.1em; }
.game-card:hover .game-link .icon { transform: translateX(4px); color: var(--red); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.step { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), transparent); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-family: var(--mono); font-size: 0.9rem; color: var(--red); margin-bottom: 1.6rem; }
.step h3 { margin-bottom: 0.5rem; }

/* ---------- CTA ---------- */
.cta { padding-bottom: clamp(4rem, 8vw, 7rem); }
.cta-box {
    position: relative; overflow: hidden; text-align: center; padding: clamp(2.5rem, 6vw, 5rem) 1.5rem;
    background: radial-gradient(120% 140% at 50% 0%, rgba(232,57,74,.28), transparent 60%), var(--surface);
    border: 1px solid var(--line-strong); border-radius: 28px;
}
.cta-box p { max-width: 34rem; margin: 1rem auto 0; font-size: 1.1rem; }
.signup-form { display: flex; gap: 0.5rem; width: min(100%, 460px); margin: 2rem auto 0; padding: 6px; background: rgba(0,0,0,.4); border: 1px solid var(--line-strong); border-radius: 999px; }
.signup-form input { flex: 1; min-width: 0; padding: 0 1rem; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 0.97rem; }
.signup-form input:focus { outline: none; }
.signup-form:focus-within { border-color: var(--red); }
.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--dim); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 4rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer-section h4 { font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; font-weight: 600; }
.footer-section li + li { margin-top: 0.55rem; }
.footer-section a { color: var(--muted); font-size: 0.93rem; transition: color .15s; }
.footer-section a:hover { color: var(--text); }
.footer-section p { font-size: 0.93rem; margin-top: 1rem; max-width: 20rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: inherit; }

/* ---------- Inner page header ---------- */
.page-header { position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-header::before { content: ""; position: absolute; inset: -60% -10% auto auto; width: 700px; height: 700px; background: radial-gradient(closest-side, var(--red-glow), transparent 70%); opacity: .5; pointer-events: none; }
.page-header .container { position: relative; }
.page-header h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-header p { margin-top: 1rem; max-width: 40rem; font-size: 1.12rem; }

/* ---------- Platform page ---------- */
.platform-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.platform-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 4vw, 3.5rem) 0; }
.platform-feature + .platform-feature { border-top: 1px solid var(--line); }
.platform-feature.reverse .feature-content { order: 2; }
.platform-feature .feature-content h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); display: flex; align-items: center; gap: 0.8rem; }
.platform-feature .feature-content h2 .feature-icon { margin: 0; flex: none; }
.platform-feature .feature-content > p { margin-top: 1rem; }
.feature-list { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.feature-list li { display: flex; gap: 0.7rem; color: var(--muted); font-size: 0.97rem; }
.feature-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 0.2em; border-radius: 50%; background: rgba(31,191,117,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fbf75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

.panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.78rem; color: var(--dim); }
.panel-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.panel-bar span { margin-left: auto; }
.panel-body { padding: 1.2rem; display: grid; gap: 0.7rem; }
.row { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; font-size: 0.88rem; }
.row .grow { flex: 1; }
.row b { font-variant-numeric: tabular-nums; }
.row .muted { color: var(--dim); }
.row.hi { border-color: rgba(232,57,74,.4); background: rgba(232,57,74,.08); }
.pos { font-family: var(--mono); color: var(--dim); width: 1.4rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 0.4rem 0.2rem 0; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--red), rgba(232,57,74,.25)); }
.bars i:nth-child(even) { background: linear-gradient(180deg, var(--green), rgba(31,191,117,.2)); }
.bracket { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 1rem; align-items: center; }
.bracket-col { display: grid; gap: 0.6rem; }
.bracket .row { padding: 0.5rem 0.7rem; font-size: 0.8rem; }
.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: rgba(31,191,117,.14); color: #4fe0a0; }

/* ---------- Auth ---------- */
.auth-section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.auth-section::before { content: ""; position: absolute; inset: -30% auto auto 50%; width: 800px; height: 800px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--red-glow), transparent 70%); opacity: .4; pointer-events: none; }
.auth-container { position: relative; width: min(100%, 460px); margin-inline: auto; padding: clamp(1.6rem, 4vw, 2.5rem); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-container h1 { font-size: 1.9rem; letter-spacing: -0.03em; }
.auth-subtitle { margin: 0.5rem 0 1.8rem; }
.auth-form { display: grid; gap: 1.1rem; }
.form-group { display: grid; gap: 0.45rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"] {
    width: 100%; min-height: 48px; padding: 0.7rem 0.95rem; background: var(--bg); color: var(--text);
    border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 0.97rem;
    transition: border-color .15s, box-shadow .15s;
}
.form-group input::placeholder { color: var(--dim); }
.form-group input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-glow); }
.form-hint { font-size: 0.78rem; color: var(--dim); }
.checkbox-group { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.checkbox-group label { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; color: var(--muted); }
.checkbox-group input { accent-color: var(--red); width: 17px; height: 17px; margin-top: 0.15rem; }
.link { color: #ff8e99; text-decoration: underline; text-decoration-color: rgba(255,142,153,.35); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.form-footer { text-align: center; font-size: 0.9rem; color: var(--muted); }
.form-footer p { color: inherit; }
.form-message, .message { padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.9rem; }
.message.error, .form-message.error { background: rgba(232,57,74,.12); border: 1px solid rgba(232,57,74,.4); color: #ff9aa5; }
.message.success, .form-message.success { background: rgba(31,191,117,.12); border: 1px solid rgba(31,191,117,.4); color: #5fe3a8; }

/* ---------- Documentation ---------- */
.documentation { padding: clamp(2rem, 4vw, 3.5rem) 0 5rem; }
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.docs-sidebar { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 0.5rem; }
.docs-nav h3 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 1.6rem 0 0.6rem; font-weight: 600; }
.docs-nav h3:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 0.4rem 0.8rem; margin-left: -0.8rem; border-radius: 8px; font-size: 0.92rem; color: var(--muted); }
.docs-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.docs-nav a.active { color: #fff; background: rgba(232,57,74,.14); }
.docs-content { min-width: 0; max-width: 760px; }
.doc-section { padding: 0 0 2.8rem; margin-bottom: 2.8rem; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; }
.doc-section h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.doc-section h3 { margin: 1.8rem 0 0.7rem; }
.doc-section p { margin-bottom: 1rem; }
.doc-section ul, .doc-section ol { margin: 0 0 1rem 1.2rem; color: var(--muted); }
.doc-section ul { list-style: disc; }
.doc-section ol { list-style: decimal; padding: 0; }
.doc-section li { margin: 0.35rem 0; padding-left: 0.3rem; }
.doc-section li::marker { color: var(--red); }
.doc-section strong { color: var(--text); font-weight: 600; }
.doc-section a:not(.btn) { color: #ff8e99; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,142,153,.35); }
.code-block { margin: 1rem 0 1.4rem; padding: 1.1rem 1.3rem; background: #04060a; border: 1px solid var(--line-strong); border-radius: 12px; overflow-x: auto; }
.code-block code { font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; color: #c7d0e2; white-space: pre; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid, .showcase-grid, .platform-feature { grid-template-columns: 1fr; }
    .platform-feature.reverse .feature-content { order: 0; }
    .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card, .feature-card.wide { grid-column: span 3; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; max-height: none; padding: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.25rem;
        padding: 1rem 1.25rem 1.5rem; margin: 0; background: rgba(6,8,13,.97); border-bottom: 1px solid var(--line);
        display: none;
    }
    .site-header.nav-open .nav-links { display: flex; }
    .nav-links a:not(.btn) { padding: 0.8rem 0.9rem; font-size: 1rem; }
    .nav-actions { flex-direction: column; align-items: stretch; margin: 0.75rem 0 0; }
    .nav-actions .btn, .lang-button { width: 100%; justify-content: center; min-height: 48px; }
    .lang-menu { position: static; margin-top: 0.4rem; }
}
@media (max-width: 640px) {
    .feature-card, .feature-card.wide { grid-column: span 6; }
    .games-grid, .steps { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card:nth-child(3) { border-left: 0; }
    .stat-card:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-content { grid-template-columns: 1fr; }
    .match-players { grid-template-columns: 1fr; }
    .match-player + .match-player { border-left: 0; border-top: 1px solid var(--line); }
    .signup-form { flex-direction: column; border-radius: 20px; padding: 10px; }
    .signup-form input { min-height: 46px; }
    .bracket { grid-template-columns: 1fr 1fr; }
    .bracket-col:last-child { display: none; }
}

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cap { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s; }
.cap:hover { border-color: var(--line-strong); }
.cap-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.cap-top .feature-icon { margin: 0; width: 40px; height: 40px; }
.cap h3 { margin-bottom: 0.4rem; }
.cap p { font-size: 0.94rem; }
.chip { font-size: 0.72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 0.22rem 0.65rem; border-radius: 999px; }
.chip-live { background: rgba(31,191,117,.14); color: #4fe0a0; }
.chip-soon { background: rgba(245,185,66,.12); color: var(--gold); }
@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }

/* Hero dartboard animation (ported from the previous stylesheet). */
.hero-dart-travel { transform-box: fill-box; transform-origin: center; opacity: 1; }
.hero-dart-flight { stroke: #ff2d2d; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 45, 45, .95)); }
.hero-dart-hit { animation: heroHitPulse 420ms ease-out; }
.hero-dart-mark { fill: rgba(255, 45, 45, .34); stroke: #ff2d2d; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(255, 45, 45, .95)); }
.rtc-current-segment { filter: drop-shadow(0 0 8px rgba(0, 206, 209, .95)); }
.rtc-current-number { text-shadow: 0 0 8px rgba(0, 206, 209, .95); }
@keyframes heroHitPulse { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .hero-dart-hit { animation: none; } }
