/* GoatKarts — the public page.
 *
 * One file, no framework, nothing fetched from anywhere else. The art is this game's own (the menu
 * backdrops, the circuit tiles, the item icons), so the page looks like the thing it is describing
 * without anything being invented for it.
 *
 * The palette is the race UI's: the deep wash, the cyan, the mint, the gold and the coral. The type
 * is the system stack in heavy weights rather than a webfont, because a page whose whole job is to
 * say "the server is up right now" should not wait for a font to download to say it.
 */

:root {
    --wash: #070b10;
    --wash-2: #0b1219;
    --panel: #101a22;
    --line: #22333f;
    --ink: #e9f2f7;
    --ink-dim: #93a8b4;
    --ink-faint: #5f7280;
    --cyan: #4fd1e0;
    --mint: #58d193;
    --gold: #edc063;
    --coral: #f2705f;
    --radius: 14px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--wash);
    color: var(--ink);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    color: var(--ink-faint);
    margin: 0;
}

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

h2 {
    font-size: clamp(24px, 3.4vw, 36px);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h3 { font-size: 18px; }

.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-dim); max-width: 62ch; }
.dim { color: var(--ink-dim); }
.small { font-size: 13.5px; }

section { padding: 62px 0; border-top: 1px solid #131f28; }

/* ---------------------------------------------------------------- the top bar */

.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(7, 11, 16, 0.86);
    border-bottom: 1px solid #131f28;
    backdrop-filter: blur(8px);
}

.top-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 10px 22px;
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: 0.04em; }

.mark {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(150deg, var(--cyan), #2a8ba1);
    color: #04121a;
    font-size: 15px;
}

.brand small {
    display: block;
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.top nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

.top nav a {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink-dim);
}

.top nav a:hover { background: var(--panel); color: var(--ink); text-decoration: none; }

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    border-top: 0;
    padding: 0;
    background: #05090d;
}

.hero-art {
    position: relative;
    min-height: min(88vh, 780px);
    display: grid;
    align-items: end;
    background: url("art/hero.jpg") center 22% / cover no-repeat;
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 11, 16, 0.55) 0%, rgba(7, 11, 16, 0.15) 35%,
            rgba(7, 11, 16, 0.86) 78%, var(--wash) 100%);
}

.hero-copy { position: relative; z-index: 1; padding-bottom: 54px; }

.hero-copy .eyebrow { color: var(--cyan); margin-bottom: 14px; }

.hero-title {
    font-size: clamp(46px, 10vw, 118px);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 0.92;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}

.hero-title em { font-style: normal; color: var(--gold); }

.hero-copy .lede { margin: 18px 0 26px; color: #cfe0e8; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.button {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
}

.button:hover { border-color: #35505f; text-decoration: none; }
.button.primary { background: var(--cyan); border-color: var(--cyan); color: #04121a; }
.button.ghost { background: transparent; }

/* ---------------------------------------------------------------- live pill */

.live {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 12px;
    border-radius: 999px;
    background: rgba(9, 14, 20, 0.78);
    border: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-dim);
}

.live b { color: var(--ink); }

.dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--ink-faint);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.live[data-up="1"] .dot { background: var(--mint); }
.live[data-up="0"] .dot { background: var(--coral); }

/* ---------------------------------------------------------------- cards and grids */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.card {
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-dim); font-size: 15px; }

.mode-list { display: grid; gap: 14px; margin-top: 28px; }

.mode {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mode img { width: 46px; height: 46px; flex: 0 0 auto; }
.mode strong { display: block; font-size: 15px; letter-spacing: 0.06em; }
.mode span { color: var(--ink-dim); font-size: 14px; }

/* ---------------------------------------------------------------- galleries */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.tile {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #060b10;
    aspect-ratio: 16 / 10;
}

.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover img { transform: scale(1.05); }

.tile span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 12px 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(5, 9, 13, 0) 0%, rgba(5, 9, 13, 0.92) 62%);
}

.items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.item {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
}

.item img { width: 46px; height: 46px; }
.item span { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-dim); }

/* ---------------------------------------------------------------- online */

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
    margin-top: 28px;
}

.split img { border-radius: var(--radius); border: 1px solid var(--line); }

.steps { display: grid; gap: 16px; counter-reset: step; margin: 0; padding: 0; list-style: none; }

.steps li {
    position: relative;
    padding-left: 46px;
    color: var(--ink-dim);
}

.steps li strong { display: block; color: var(--ink); font-size: 16px; }

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0; top: 2px;
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #0d1720;
    border: 1px solid var(--line);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
}

.note {
    padding: 16px 18px;
    border-left: 3px solid var(--gold);
    background: var(--panel);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink-dim);
    font-size: 15px;
}

.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 26px; }

.next div { padding: 18px; border: 1px dashed #2a3d49; border-radius: var(--radius); }
.next strong { display: block; margin-bottom: 6px; }
.next p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }

/* ---------------------------------------------------------------- footer */

footer.site {
    padding: 40px 0 56px;
    border-top: 1px solid #131f28;
    color: var(--ink-faint);
    font-size: 13.5px;
}

.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.footer-inner a { color: var(--ink-dim); }
.spacer { flex: 1 1 20px; }

@media (max-width: 720px) {
    section { padding: 44px 0; }
    .split { grid-template-columns: 1fr; }
    .hero-art { min-height: 72vh; }
}
