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

:root {
    --page: #080a0d;
    --page-soft: #0d1117;
    --panel: #121821;
    --panel-strong: #171f2a;
    --panel-soft: #1d2531;
    --text: #f6f8fb;
    --muted: #aeb8c5;
    --quiet: #7e8996;
    --line: #293544;
    --line-strong: #3a4858;
    --accent: #ff5b45;
    --accent-2: #ffb14a;
    --link: #79bbff;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    background:
        linear-gradient(180deg, #080a0d 0%, #0b0f15 44%, #080a0d 100%);
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(255, 91, 69, 0.42);
    outline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 30;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text);
    background: var(--accent);
    font-weight: 900;
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 10, 13, 0.88);
    backdrop-filter: blur(14px);
}

.site-nav {
    display: flex;
    width: min(1120px, calc(100% - 48px));
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 900;
}

.nav-links,
.hero-actions,
.store-links,
.platform-list,
.policy-toc {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links {
    justify-content: flex-end;
    gap: 8px;
}

.nav-links a,
.policy-toc a {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
}

.nav-links a:hover,
.policy-toc a:hover {
    color: var(--text);
    background: var(--panel-soft);
}

.hero-section {
    display: grid;
    width: min(1120px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 44px;
    margin: 0 auto;
    padding: 96px 0 74px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-copy h1,
.policy-title h1,
.not-found-title {
    margin: 0;
    color: var(--text);
    font-weight: 900;
    line-height: 1.04;
}

.hero-copy h1 {
    font-size: 5rem;
}

.hero-description {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.18rem;
}

.hero-actions {
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 900;
}

.button-primary {
    border-color: transparent;
    color: #140b08;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.button-secondary {
    color: var(--text);
    background: var(--panel);
}

.button:hover,
.featured-game:hover,
.game-card:hover,
.store-links a:hover {
    transform: translateY(-2px);
}

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

.featured-game {
    display: flex;
    min-height: 294px;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 91, 69, 0.08), rgba(255, 255, 255, 0.02)),
        var(--panel);
    box-shadow: var(--shadow);
}

.featured-game:nth-child(2) {
    margin-top: 34px;
    background:
        linear-gradient(180deg, rgba(255, 177, 74, 0.08), rgba(255, 255, 255, 0.02)),
        var(--panel);
}

.featured-game img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
}

.featured-game span {
    color: var(--text);
    font-weight: 900;
    line-height: 1.25;
}

.section {
    padding: 58px 0 84px;
}

.games-section {
    border-top: 1px solid var(--line);
    background: var(--page-soft);
}

.section-heading,
.game-grid,
.info-grid {
    width: min(1120px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

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

.section-heading h2,
.info-panel h2 {
    max-width: 700px;
    margin: 0;
    color: var(--text);
    font-size: 2rem;
    line-height: 1.2;
}

.section-note {
    margin: 0;
    color: var(--quiet);
    font-weight: 800;
}

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

.game-card {
    display: grid;
    min-height: 338px;
    grid-template-columns: 118px 1fr;
    align-items: start;
    gap: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 91, 69, 0.08), transparent 42%),
        var(--panel);
    box-shadow: var(--shadow);
}

.game-card:nth-child(2) {
    background:
        linear-gradient(145deg, rgba(255, 177, 74, 0.08), transparent 42%),
        var(--panel);
}

.game-icon {
    width: 118px;
    height: 118px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    object-fit: cover;
    background: var(--panel-soft);
}

.game-kicker {
    margin: 0 0 8px;
    color: var(--accent-2);
    font-size: 0.9rem;
    font-weight: 900;
}

.game-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.72rem;
    line-height: 1.2;
}

.game-description {
    margin: 12px 0 0;
    color: var(--muted);
}

.platform-list {
    gap: 8px;
    margin-top: 16px;
}

.platform-list span {
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    font-weight: 900;
}

.store-links {
    grid-column: 1 / -1;
    align-self: end;
    gap: 12px;
}

.store-links a {
    display: inline-flex;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #07090c;
}

.store-links a:hover {
    border-color: var(--line-strong);
}

.store-links img {
    width: 158px;
    height: auto;
}

.info-section {
    background: var(--page);
}

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

.info-panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.info-panel p,
.info-panel li {
    color: var(--muted);
}

.info-panel ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding-left: 22px;
}

.text-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--link);
    font-weight: 900;
}

.site-footer {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #07090c;
    text-align: center;
}

.site-footer a:hover,
.policy-content a:hover,
.text-link:hover {
    color: var(--accent-2);
}

.policy-title {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 24px;
}

.policy-title h1,
.not-found-title {
    font-size: 3.7rem;
}

.policy-toc {
    gap: 8px;
    margin-top: 26px;
}

.policy-toc a {
    border: 1px solid var(--line);
    background: var(--panel);
}

.policy-content {
    width: min(900px, calc(100% - 48px));
    margin: 0 auto 78px;
    padding: 6px 0 0;
}

.policy-section {
    scroll-margin-top: 94px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.policy-section:first-child {
    border-top: 0;
}

.policy-section h2,
.policy-section h3 {
    color: var(--text);
    line-height: 1.25;
}

.policy-section h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.policy-section h3 {
    margin: 26px 0 10px;
    color: var(--accent-2);
    font-size: 1.12rem;
}

.policy-section p {
    margin: 0 0 14px;
    color: var(--muted);
}

.policy-section ul {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--muted);
}

.policy-section strong {
    color: var(--text);
}

.policy-section a {
    color: var(--link);
    font-weight: 800;
}

.not-found-main {
    display: grid;
    width: min(760px, calc(100% - 48px));
    min-height: calc(100svh - 169px);
    place-items: center;
    margin: 0 auto;
    padding: 64px 0;
    text-align: center;
}

.not-found-main p {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--muted);
}

@media (max-width: 880px) {
    .site-nav,
    .hero-section,
    .section-heading,
    .game-grid,
    .info-grid,
    .policy-title,
    .policy-content,
    .not-found-main {
        width: calc(100% - 40px);
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 68px 0 54px;
    }

    .hero-showcase {
        max-width: 520px;
    }

    .section-heading {
        display: block;
    }

    .section-note {
        margin-top: 10px;
    }

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

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .site-nav,
    .hero-section,
    .section-heading,
    .game-grid,
    .info-grid,
    .policy-title,
    .policy-content,
    .not-found-main {
        width: calc(100% - 32px);
    }

    .site-nav {
        min-height: 88px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .nav-links a,
    .policy-toc a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 0.95rem;
    }

    .hero-copy h1,
    .policy-title h1,
    .not-found-title {
        font-size: 2.7rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-showcase {
        grid-template-columns: 1fr;
    }

    .featured-game,
    .featured-game:nth-child(2) {
        min-height: 0;
        margin-top: 0;
    }

    .featured-game img {
        width: 132px;
    }

    .section {
        padding: 46px 0 62px;
    }

    .section-heading h2,
    .info-panel h2 {
        font-size: 1.7rem;
    }

    .game-card {
        min-height: 0;
        grid-template-columns: 88px 1fr;
        gap: 16px;
        padding: 18px;
    }

    .game-icon {
        width: 88px;
        height: 88px;
    }

    .game-card h3 {
        font-size: 1.35rem;
    }

    .store-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-links a {
        height: 48px;
    }

    .store-links img {
        width: 144px;
    }
}
