:root {
    --bg-primary: #07111f;
    --bg-secondary: #0d1728;
    --bg-tertiary: #132139;
    --surface-1: rgba(12, 21, 37, 0.88);
    --surface-2: rgba(21, 34, 58, 0.94);
    --surface-3: rgba(34, 54, 86, 0.96);
    --surface-4: rgba(59, 130, 246, 0.12);

    --text-primary: #f7fbff;
    --text-secondary: #d3deef;
    --text-muted: #8ea1bf;

    --line-soft: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(96, 165, 250, 0.34);

    --accent-blue: #4ea1ff;
    --accent-cyan: #38bdf8;
    --accent-green: #22c55e;
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;

    --gradient-brand: linear-gradient(135deg, #4ea1ff 0%, #22d3ee 52%, #34d399 100%);
    --gradient-panel: linear-gradient(180deg, rgba(78, 161, 255, 0.11) 0%, rgba(7, 17, 31, 0) 100%);
    --gradient-signal: linear-gradient(145deg, rgba(78, 161, 255, 0.16), rgba(6, 182, 212, 0.06));

    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 5rem;

    --radius-sm: 0.625rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-pill: 999px;

    --shadow-soft: 0 16px 36px rgba(2, 10, 22, 0.35);
    --shadow-strong: 0 28px 70px rgba(2, 10, 22, 0.5);

    --transition-fast: 160ms ease;
    --transition-base: 260ms ease;
    --transition-slow: 420ms ease;

    --nav-height: 82px;
    --meta-theme-color: #0b1220;
}

body[data-theme="aurora"] {
    --meta-theme-color: #0b1220;
}

body[data-theme="sunset"] {
    --bg-primary: #190d14;
    --bg-secondary: #26131f;
    --bg-tertiary: #3b1c2b;
    --surface-1: rgba(37, 20, 31, 0.88);
    --surface-2: rgba(60, 28, 44, 0.94);
    --surface-3: rgba(93, 37, 59, 0.96);
    --surface-4: rgba(251, 146, 60, 0.12);
    --text-primary: #fff6f8;
    --text-secondary: #f7d9df;
    --text-muted: #d9a1af;
    --line-soft: rgba(251, 191, 36, 0.14);
    --line-strong: rgba(251, 146, 60, 0.34);
    --accent-blue: #fb7185;
    --accent-cyan: #f97316;
    --accent-green: #f59e0b;
    --accent-gold: #fbbf24;
    --gradient-brand: linear-gradient(135deg, #fb7185 0%, #f97316 52%, #fbbf24 100%);
    --gradient-panel: linear-gradient(180deg, rgba(251, 146, 60, 0.11) 0%, rgba(25, 13, 20, 0) 100%);
    --gradient-signal: linear-gradient(145deg, rgba(251, 146, 60, 0.18), rgba(244, 63, 94, 0.06));
    --meta-theme-color: #26131f;
}

body[data-theme="arcade"] {
    --bg-primary: #071014;
    --bg-secondary: #0b171c;
    --bg-tertiary: #10262e;
    --surface-1: rgba(9, 22, 27, 0.88);
    --surface-2: rgba(16, 38, 46, 0.94);
    --surface-3: rgba(21, 58, 70, 0.96);
    --surface-4: rgba(45, 212, 191, 0.12);
    --text-primary: #effffd;
    --text-secondary: #d4f5f0;
    --text-muted: #8ecbc1;
    --line-soft: rgba(45, 212, 191, 0.14);
    --line-strong: rgba(34, 211, 238, 0.34);
    --accent-blue: #2dd4bf;
    --accent-cyan: #22d3ee;
    --accent-green: #34d399;
    --accent-gold: #facc15;
    --gradient-brand: linear-gradient(135deg, #2dd4bf 0%, #22d3ee 52%, #a3e635 100%);
    --gradient-panel: linear-gradient(180deg, rgba(45, 212, 191, 0.11) 0%, rgba(7, 16, 20, 0) 100%);
    --gradient-signal: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(16, 185, 129, 0.08));
    --meta-theme-color: #0b171c;
}

body[data-theme="forest"] {
    --bg-primary: #0a1410;
    --bg-secondary: #112019;
    --bg-tertiary: #183127;
    --surface-1: rgba(13, 25, 19, 0.88);
    --surface-2: rgba(22, 40, 31, 0.94);
    --surface-3: rgba(30, 61, 45, 0.96);
    --surface-4: rgba(250, 204, 21, 0.12);
    --text-primary: #f5fff7;
    --text-secondary: #d4ead7;
    --text-muted: #98baa0;
    --line-soft: rgba(163, 230, 53, 0.12);
    --line-strong: rgba(250, 204, 21, 0.3);
    --accent-blue: #84cc16;
    --accent-cyan: #4ade80;
    --accent-green: #22c55e;
    --accent-gold: #facc15;
    --gradient-brand: linear-gradient(135deg, #4ade80 0%, #84cc16 48%, #facc15 100%);
    --gradient-panel: linear-gradient(180deg, rgba(74, 222, 128, 0.11) 0%, rgba(10, 20, 16, 0) 100%);
    --gradient-signal: linear-gradient(145deg, rgba(74, 222, 128, 0.16), rgba(250, 204, 21, 0.08));
    --meta-theme-color: #112019;
}

body[data-theme="midnight"] {
    --bg-primary: #050816;
    --bg-secondary: #0a1021;
    --bg-tertiary: #121936;
    --surface-1: rgba(10, 16, 33, 0.9);
    --surface-2: rgba(18, 25, 54, 0.94);
    --surface-3: rgba(28, 36, 78, 0.96);
    --surface-4: rgba(129, 140, 248, 0.14);
    --text-primary: #f8faff;
    --text-secondary: #d8def7;
    --text-muted: #94a3c8;
    --line-soft: rgba(129, 140, 248, 0.15);
    --line-strong: rgba(96, 165, 250, 0.34);
    --accent-blue: #60a5fa;
    --accent-cyan: #22d3ee;
    --accent-green: #818cf8;
    --accent-gold: #f59e0b;
    --gradient-brand: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #22d3ee 100%);
    --gradient-panel: linear-gradient(180deg, rgba(96, 165, 250, 0.11) 0%, rgba(5, 8, 22, 0) 100%);
    --gradient-signal: linear-gradient(145deg, rgba(96, 165, 250, 0.18), rgba(129, 140, 248, 0.08));
    --meta-theme-color: #0a1021;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 26rem),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.06), transparent 24rem),
        var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-slow), color var(--transition-base);
}

body.nav-open,
body.player-overlay-open {
    overflow: hidden;
}

body.reduce-animations *,
body.reduce-animations *::before,
body.reduce-animations *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
}

main {
    display: block;
}

.navbar + main {
    margin-top: -1px;
}

.signal-section,
.games-section,
.community-section,
.about-section,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 720px;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

[hidden] {
    display: none !important;
}

button {
    border: none;
    background: none;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
}

h2 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
    color: var(--text-secondary);
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-title {
    margin-top: var(--space-2);
}

.section-description {
    max-width: 32rem;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

.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;
}

:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

::selection {
    background: rgba(78, 161, 255, 0.32);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-thumb {
    background: rgba(78, 161, 255, 0.22);
    border-radius: var(--radius-pill);
    border: 3px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-track {
    background: rgba(7, 17, 31, 0.44);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
