:root {
    color-scheme: dark;
    --bg: #070d18;
    --surface: #0d1728;
    --raised: #121f34;
    --ink: #eef6ff;
    --muted: #8fa6bd;
    --line: #263a53;
    --green: #65ff9a;
    --cyan: #5ceaff;
    --violet: #ab84ff;
    --shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #edf3f8;
    --surface: #fbfdff;
    --raised: #e7eff7;
    --ink: #102033;
    --muted: #5c7187;
    --line: #b8c9da;
    --green: #00a94f;
    --cyan: #008ca5;
    --violet: #6e45cf;
    --shadow: 0 28px 80px rgba(30, 59, 89, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--green) 10%, transparent), transparent 29rem),
        radial-gradient(circle at 90% 38%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 34rem),
        var(--bg);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    transition: color 180ms ease, background 180ms ease;
}

a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.site-shell { width: min(100% - 36px, 1060px); margin: 0 auto; padding: 26px 0 34px; }
.site-header, .brand, footer, .hero-status, .play-link { display: flex; align-items: center; }
.site-header { justify-content: space-between; }
.brand { gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--green); border-radius: 11px; color: var(--green); font-weight: 900; box-shadow: inset 0 0 20px color-mix(in srgb, var(--green) 14%, transparent); }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .06em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .62rem; letter-spacing: .14em; }
.theme-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); font: inherit; cursor: pointer; }

.hero { position: relative; padding: clamp(72px, 11vw, 126px) 0 clamp(58px, 8vw, 92px); }
.eyebrow { margin: 0 0 18px; color: var(--green); font-size: .7rem; font-weight: 900; letter-spacing: .24em; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2.5rem, 8.2vw, 6.4rem); line-height: .98; letter-spacing: -.075em; }
h1 span { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 65%, transparent); }
.intro { max-width: 590px; margin: 28px 0 0; color: var(--muted); font-family: system-ui, sans-serif; font-size: clamp(.98rem, 2vw, 1.1rem); line-height: 1.75; }
.hero-status { gap: 9px; margin-top: 28px; color: var(--muted); font-size: .67rem; letter-spacing: .14em; }
.hero-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow); }
.card-screen { aspect-ratio: 1672 / 941; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--raised); }
.card-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 28px; }
.card-number { margin: 0 0 10px; color: var(--muted); font-size: .64rem; letter-spacing: .14em; }
.game-card h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.25rem); letter-spacing: -.045em; }
.game-card .card-body > p:not(.card-number) { min-height: 3.4em; margin: 14px 0 18px; color: var(--muted); font-family: system-ui, sans-serif; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .62rem; }
.play-link { justify-content: space-between; margin-top: 25px; padding: 13px 15px; border: 1px solid currentColor; border-radius: 10px; color: var(--green); text-decoration: none; font-size: .78rem; font-weight: 900; }
.breakout-card .play-link { color: var(--cyan); }
.assault-card .play-link { color: var(--violet); }
.flappy-card .play-link { color: var(--green); }
.play-link span { font-size: 1.25rem; transition: transform 130ms ease; }
footer { justify-content: space-between; gap: 16px; padding: 28px 4px 0; color: var(--muted); font-size: .63rem; letter-spacing: .08em; }
footer a { color: var(--cyan); text-decoration: none; }

@media (hover: hover) {
    .theme-button:hover { border-color: var(--cyan); }
    .play-link:hover span { transform: translateX(4px); }
    .game-card { transition: transform 160ms ease, border-color 160ms ease; }
    .game-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, currentColor 55%, var(--line)); }
}

@media (max-width: 900px) {
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .game-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 64px; }
}

@media (max-width: 430px) {
    .site-shell { width: min(100% - 20px, 1060px); padding-top: 15px; }
    .brand small, footer span { display: none; }
    .hero { padding: 54px 4px 48px; }
    .card-body { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
