:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-hover: #1d1d1d;
    --text: #f4f4f1;
    --muted: #9d9d98;
    --line: rgba(255, 255, 255, 0.14);
    --page-pad: clamp(22px, 5vw, 80px);
    --header-height: 96px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--page-pad);
    background: linear-gradient(to bottom, rgba(10, 10, 10, .98), rgba(10, 10, 10, .72), transparent);
}

.logo-container {
    display: inline-flex;
    align-items: center;
    width: min(520px, 72vw);
}

.logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    object-position: left center;
    filter: invert(1)
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
        drop-shadow(0 0 24px rgba(255, 255, 255, 0.55));
}

.menu-toggle {
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(10, 10, 10, .7);
    cursor: pointer;
    display: grid;
    place-content: center;
    gap: 7px;
    transition: background .25s ease, transform .25s ease;
}

.menu-toggle:hover {
    background: var(--surface-hover);
    transform: scale(1.04);
}

.menu-toggle span {
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform .25s ease;
}

.menu-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.sidebar {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    background: rgba(10, 10, 10, .97);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.menu-open .sidebar {
    visibility: visible;
    opacity: 1;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sidebar a {
    font-size: clamp(34px, 7vw, 82px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1;
    transition: opacity .2s ease;
}

.sidebar a:hover {
    opacity: .5;
}

.content-container {
    padding: 0 var(--page-pad);
}

.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: calc(var(--header-height) + 40px) 0 80px;
}

.eyebrow,
.game-type,
.footer-kicker {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 1050px;
    margin-bottom: 30px;
    font-size: clamp(58px, 11vw, 155px);
    font-weight: 700;
    line-height: .88;
    letter-spacing: -.075em;
}

.hero-copy {
    max-width: 620px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 24px);
}

.text-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    font-weight: 700;
}

.games-section,
.about-section {
    padding: clamp(90px, 12vw, 180px) 0;
    border-top: 1px solid var(--line);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 54px;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(48px, 8vw, 110px);
    line-height: .92;
    letter-spacing: -.065em;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.game-card {
    min-width: 0;
    background: var(--surface);
    transition: background .25s ease, transform .25s ease, opacity .2s ease;
}

.game-card:hover {
    background: var(--surface-hover);
    transform: translateY(-4px);
}

.game-card-link {
    display: block;
    height: 100%;
    padding: 18px 18px 28px;
}

.game-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 26px;
    background: #ecece6;
}

.game-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.game-card:hover .game-image {
    transform: scale(1.02);
}

.game-placeholder {
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(135deg, #deded7 0 12px, #ecece6 12px 24px);
    color: #0a0a0a;
}

.game-placeholder span {
    font-size: clamp(60px, 12vw, 140px);
    font-weight: 700;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.game-type {
    margin-bottom: 7px;
}

.game-card h3 {
    margin-bottom: 14px;
    font-size: clamp(30px, 4vw, 55px);
    line-height: 1;
    letter-spacing: -.05em;
}

.game-card p:last-child {
    max-width: 470px;
    margin-bottom: 0;
    color: var(--muted);
}

.arrow {
    font-size: 28px;
    line-height: 1;
}

.coming-soon {
    opacity: .58;
}

.coming-soon:hover {
    transform: none;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 7vw, 120px);
    max-width: 1100px;
    margin-top: 55px;
}

.about-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 24px);
}

.site-footer {
    padding: clamp(90px, 12vw, 170px) var(--page-pad) 30px;
    background: var(--text);
    color: var(--bg);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: end;
}

.footer-kicker {
    color: #666662;
}

.site-footer h2 {
    font-size: clamp(54px, 9vw, 130px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links a {
    border-bottom: 1px solid currentColor;
    font-weight: 700;
}

.copyright {
    margin: 100px 0 0;
    color: #666662;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.mobile-bottom-fade {
    display: none;
}

@media (max-width: 760px) {
    :root {
        --header-height: 82px;
    }

    .logo-container {
        width: min(360px, 72vw);
    }

    .logo {
        max-height: 76px;
    }

    .menu-toggle {
        width: 48px;
        height: 48px;
    }

    .section-head,
    .footer-inner {
        display: block;
    }

    .game-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .game-card-link {
        padding: 12px 12px 24px;
    }

    .footer-links {
        margin-top: 50px;
    }

    .copyright {
        margin-top: 70px;
    }

    .mobile-bottom-fade {
        position: fixed;
        inset: auto 0 0;
        z-index: 10;
        display: block;
        height: 28px;
        pointer-events: none;
        background: linear-gradient(to top, rgba(10, 10, 10, .8), transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
