:root {
    color-scheme: dark;
    --bg: #090b10;
    --panel: #121620;
    --panel-hover: #171d29;
    --text: #f7f8fb;
    --muted: #a7afbf;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #8ca8ff;
    --radius: 20px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% -10%, rgba(75, 108, 255, 0.2), transparent 32rem),
        radial-gradient(circle at 95% 10%, rgba(171, 78, 255, 0.12), transparent 30rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 11, 16, 0.76);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-mark {
    color: var(--accent);
    font-size: 0.9rem;
}

.game-count {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero {
    padding: clamp(72px, 10vw, 128px) 0 48px;
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.intro {
    margin: 28px 0 0;
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 22px;
    padding-bottom: 90px;
}

.game-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(140, 168, 255, 0.5);
    background: var(--panel-hover);
}

.card-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.cover-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f1320;
}

.cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.game-card:hover .cover {
    transform: scale(1.025);
}

.placeholder {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(140, 168, 255, 0.24), rgba(177, 99, 255, 0.17)),
        #111827;
    color: rgba(255, 255, 255, 0.88);
    font-size: 4rem;
    font-weight: 900;
}

.card-body {
    padding: 22px;
}

.category {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-body h2 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.card-body p {
    margin: 12px 0 22px;
    color: var(--muted);
}

.play-label {
    font-size: 0.92rem;
    font-weight: 750;
}

.empty-state {
    margin-bottom: 90px;
    padding: 34px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
}

.empty-state h2 {
    margin-top: 0;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

code {
    color: #d5ddff;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

.site-footer .shell {
    padding-block: 26px;
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        padding-top: 58px;
    }

    .game-grid {
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
