@font-face {
    font-family: "Play";
    src: url("fonts/play_regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Play";
    src: url("fonts/play_bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: #060a1c;
    --bg-2: #0b1230;
    --surface: rgba(18, 28, 66, .55);
    --line: rgba(140, 235, 255, .16);
    --text: #e8eeff;
    --muted: #9aa6c8;
    --cyan: #8cebff;
    --gold-1: #fff5c7;
    --gold-2: #ff9929;
    --gold: linear-gradient(180deg, var(--gold-1) 0%, #ffd27a 45%, var(--gold-2) 100%);
    --radius: 14px;
    --wrap: 1120px;
    color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
        radial-gradient(1px 1px at 72% 34%, #fff6 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 38% 72%, #fff7 50%, transparent 51%),
        radial-gradient(1px 1px at 88% 82%, #fff5 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 8%, #fff6 50%, transparent 51%),
        radial-gradient(ellipse at 50% -10%, #12204d 0%, transparent 60%);
    background-size: 420px 420px, 380px 380px, 460px 460px, 520px 520px, 300px 300px, 100% 100%;
    background-attachment: fixed;
    color: var(--text);
    font-family: "Play", "Segoe UI", system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cyan); }
a:hover { color: #fff; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.section { padding: 72px 0; }
@media (min-width: 720px) { .section { padding: 96px 32px; } }

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.2rem; color: #c9d3f0; max-width: 40em; }

.eyebrow {
    color: var(--cyan);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    margin-bottom: .8em;
}

.tagline { color: var(--cyan); letter-spacing: .04em; font-size: 1.1rem; }

.gold-title {
    font-size: clamp(3.4rem, 11vw, 7rem);
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 153, 41, .35));
    margin: 0 0 .15em;
}
.gold-title.small-title { font-size: clamp(2.2rem, 6vw, 3.6rem); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-2); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.actions.center { justify-content: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .03em;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #3a1c00; box-shadow: 0 6px 24px rgba(255, 153, 41, .3); }
.btn-gold:hover { color: #3a1c00; box-shadow: 0 8px 32px rgba(255, 153, 41, .5); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(140, 235, 255, .06); }
.btn-ghost:hover { border-color: var(--cyan); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 10, 28, .78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { width: 128px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .95rem;
}
.site-header nav a:hover, .site-header nav a.active { color: #fff; }
.site-header nav a.active { box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
@media (max-width: 560px) {
    .brand img { width: 104px; }
    .site-header nav a { padding: 6px 6px; font-size: .85rem; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; background: rgba(6, 10, 28, .6); }
.footer-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-row { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }
.footer-row img { margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }

/* Home */
.home-hero { position: relative; overflow: hidden; }
.home-hero-art {
    width: 100%;
    height: clamp(300px, 75vh, 820px);
    object-fit: cover;
    /* Keep the logo baked into the top of the picture in view on wide screens. */
    object-position: 50% 22%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.home-hero-copy { position: relative; margin-top: -90px; padding-bottom: 24px; }

.feature-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    margin-top: 24px;
    transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover { border-color: rgba(140, 235, 255, .5); color: var(--text); transform: translateY(-2px); }
.feature-card img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.feature-card-body { padding: 24px; }
.feature-card-body p { color: #c9d3f0; }
.text-link { color: var(--cyan); font-weight: 700; }
@media (min-width: 900px) {
    .feature-card { grid-template-columns: 1.5fr 1fr; align-items: center; }
    .feature-card-body { padding: 32px; }
}

/* Game page */
.game-page {
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 153, 41, .14), transparent 70%),
        radial-gradient(ellipse 50% 30% at 85% 30%, rgba(140, 235, 255, .08), transparent 70%);
}

.game-hero { text-align: center; padding-top: 32px; }
.game-hero-inner { display: flex; flex-direction: column; align-items: center; }
.game-hero .actions { justify-content: center; margin-top: 8px; }
.game-hero .pitch { margin: 28px auto 0; max-width: 36em; }
.btn img { width: 28px; height: 28px; border-radius: 7px; margin: 0 10px 0 -12px; }
.game-hero-banner {
    width: min(1024px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 153, 41, .12);
}
@media (max-width: 719px) { .game-hero { padding-top: 0; } .game-hero-banner { width: 100%; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.story { text-align: center; }
.crawl {
    position: relative;
    height: 26rem;
    overflow: hidden;
    max-width: 40rem;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}
.crawl-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #dfe7ff;
    animation: crawl 48s linear -9s infinite;
}
.crawl:hover .crawl-text, .crawl:focus .crawl-text { animation-play-state: paused; }
.crawl-text p { margin: 0 0 1.4em; }
.crawl-end { color: var(--cyan); font-weight: 700; font-size: 1.4rem; }
@keyframes crawl {
    from { transform: translateY(26rem); }
    to { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .crawl { height: auto; -webkit-mask-image: none; mask-image: none; }
    .crawl-text { animation: none; }
    html { scroll-behavior: auto; }
}

.shots {
    list-style: none;
    padding: 4px 0 20px;
    margin: 24px 0 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 240px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--line) transparent;
}
.shots li { scroll-snap-align: start; }
.shots img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg-2);
}

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.features article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.features h3 { color: var(--cyan); }
.features p { color: #c9d3f0; margin: 0; }

.cta { text-align: center; }
.cta .btn { margin: 12px 0 20px; }

/* Legal */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }
.legal h2 { font-size: 1.2rem; color: var(--cyan); margin-top: 2em; }
.legal p { color: #d3dbf3; }
