/* One stylesheet for the hub and every product page under it.
 *
 * Dark, because these are games: a games label's own page should not look like
 * a brochure for accounting software, and the wordmark has a white variant
 * made for exactly this ground.
 */
:root {
    --ink: #f4f6fa;
    --ink-soft: #97a0b3;
    --bg: #07080c;
    --bg-2: #0d0f16;
    --card: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .1);
    --accent: #22c55e;
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* The canvas sits behind everything and never eats a click. */
.balls {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow {
    position: fixed;
    inset: -20% -20% auto -20%;
    height: 70vh;
    background: radial-gradient(60% 60% at 50% 0, rgba(34, 197, 94, .16), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* A scrim down the reading column, painted over the canvas and under the text.
 *
 * The balls are already behind the words — the trouble is contrast, not order:
 * a bright ball drifting under a white glyph swallows it. Rather than dim the
 * animation everywhere, this dims it only where something has to be read, so
 * the colour stays vivid out in the margins where it is decoration and goes
 * quiet down the middle where it would be noise. */
.scrim {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(52% 70% at 50% 40%, rgba(7, 8, 12, .88) 0%, rgba(7, 8, 12, .8) 45%, transparent 100%);
}

header { padding: 108px 0 8px; }
header img.logo { width: min(380px, 78vw); height: auto; display: block; }
header p.tagline {
    margin: 30px 0 0;
    font-size: clamp(22px, 3.4vw, 32px);
    line-height: 1.28;
    letter-spacing: -0.015em;
    max-width: 17em;
    font-weight: 750;
}
header p.sub { margin: 14px 0 0; color: var(--ink-soft); max-width: 34em; font-size: 17px; }

h2 {
    margin: 84px 0 20px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 800;
}

.apps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .apps { grid-template-columns: 1fr 1fr; } }

.app {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(14px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.app:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .075);
}
.app img { width: 66px; height: 66px; border-radius: 16px; flex: none; }
.app .name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.app .what { color: var(--ink-soft); font-size: 14.5px; margin-top: 4px; }
.app .state {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--ink-soft);
}
.app .state.live { background: rgba(34, 197, 94, .17); color: #7ee2a3; }

.prose { max-width: 34em; }
.prose p { margin: 0 0 18px; font-size: 17px; }
.prose ul { margin: 0 0 20px; padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 9px; }

.cta {
    display: inline-block;
    margin: 10px 0 0;
    padding: 15px 26px;
    background: linear-gradient(135deg, #22c55e, #14b8a6);
    color: #04140a;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.01em;
}
.cta.disabled {
    background: rgba(255, 255, 255, .07);
    color: var(--ink-soft);
    pointer-events: none;
}

/* Product page hero: the game playing itself, beside the pitch. */
.hero { display: grid; gap: 34px; align-items: center; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.05fr .95fr; } }
.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}
.hero .sub { color: var(--ink-soft); margin-top: 16px; font-size: 19px; max-width: 22em; }
.hero .icon { width: 74px; height: 74px; border-radius: 18px; margin-bottom: 22px; }

.stage {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #241653, #150d33 70%);
    overflow: hidden;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 12px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}

footer {
    margin: 110px 0 64px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 14px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
footer a { color: var(--ink-soft); }
footer img { width: 104px; height: auto; opacity: .55; }
