.game-page {
    --game-ink: #29251f;
    --game-muted: #62594d;
    --game-paper: #f7f4ec;
    --game-line: #ded5c4;
    --game-dark: #112821;
    --game-glow: #3a6253;
    --game-gold: #f4cf8f;
    --game-accent-ink: #465e4b;
    margin: 0;
    background: var(--game-paper);
    color: var(--game-ink);
    font: 400 1rem/1.65 "Manrope", sans-serif;
}

.game-page[data-game="age-of-dynasties"] {
    --game-dark: #101e19;
    --game-glow: #435a40;
    --game-accent-ink: #794a29;
}

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

.game-page :focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
}

.game-skip {
    position: fixed;
    z-index: 201;
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    transform: translateY(-180%);
    background: var(--game-paper);
    color: var(--game-ink);
}

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

.game-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--game-dark);
    color: #fff7e7;
}

.game-hero-art {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.game-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 15, 17, 0.88), rgba(5, 15, 17, 0.58) 40%, rgba(5, 15, 17, 0.03) 75%);
    content: "";
}

.game-hero-grid {
    display: flex;
    min-height: 680px;
    align-items: center;
    padding-block: clamp(56px, 7vw, 96px);
}

.game-hero-copy {
    width: 54%;
    max-width: 640px;
}

.game-eyebrow {
    margin: 0 0 16px;
    color: var(--game-accent-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.game-hero .game-eyebrow {
    color: var(--game-gold);
}

.game-page h1,
.game-page h2,
.game-page h3 {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
}

.game-page h1 {
    font-size: clamp(3.3rem, 6.7vw, 6.5rem);
}

.game-page h1 span {
    display: block;
    margin-top: 12px;
    color: var(--game-gold);
    font-size: 0.42em;
    font-weight: 400;
}

.game-lead {
    max-width: 37ch;
    margin: 24px 0 30px;
    color: #eee4d3;
    font-size: clamp(1rem, 1.65vw, 1.2rem);
}

.game-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}

.game-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--game-gold);
    color: #302315;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.game-button:hover {
    background: #ffe1aa;
}

.game-button-secondary {
    border: 1px solid rgba(255, 247, 231, 0.6);
    background: rgba(5, 15, 17, 0.45);
    color: #fff7e7;
}

.game-button-secondary:hover {
    background: rgba(5, 15, 17, 0.8);
}

.game-status {
    flex-basis: 100%;
    color: #e5d6bf;
    font-size: 0.79rem;
}

.game-features,
.game-gallery {
    padding-block: clamp(56px, 8vw, 108px);
    scroll-margin-top: 90px;
}

.game-gallery {
    border-bottom: 1px solid var(--game-line);
}

.game-gallery h2 {
    margin-bottom: 16px;
}

.game-gallery-hint {
    margin: 0 0 28px;
    color: var(--game-muted);
}

.game-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
}

.game-shot {
    margin: 0;
    min-width: 0;
}

.game-shot-lead {
    grid-column: 1 / -1;
}

.game-shot a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--game-line);
    border-radius: 16px;
    background: var(--game-dark);
}

.game-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.game-shot figcaption {
    padding-top: 12px;
    font-size: 0.88rem;
    color: var(--game-muted);
}

.game-feature p.game-mode-status {
    display: inline-block;
    margin: 0 0 14px;
    padding: 3px 9px;
    border: 1px solid var(--game-line);
    border-radius: 99px;
    font-size: 0.72rem;
}

.game-page h2 {
    max-width: 22ch;
    margin-bottom: 32px;
    font-size: clamp(2.55rem, 5.4vw, 4.7rem);
}

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

.game-feature-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-feature {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--game-line);
    border-radius: 22px;
    background: #fffdf7;
}

.game-feature-number {
    display: block;
    margin-bottom: 20px;
    color: var(--game-accent-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.game-page h3 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.game-feature p {
    margin: 12px 0 0;
    color: var(--game-muted);
    font-size: 0.94rem;
}

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

.game-footer-row,
.game-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.game-footer-row {
    justify-content: space-between;
    padding-block: 24px;
}

.game-footer a {
    color: var(--game-ink);
    font-weight: 700;
    text-underline-offset: 4px;
}

@media (max-width: 1024px) {
    .game-features,
    .game-gallery {
        scroll-margin-top: 148px;
    }
}

@media (max-width: 700px) {
    .game-feature-grid,
    .game-gallery-grid {
        grid-template-columns: 1fr;
    }

    .game-hero-grid {
        min-height: 740px;
        align-items: end;
        padding-block: 290px 42px;
    }

    .game-hero-art {
        height: 410px;
        object-position: 75% center;
    }

    .game-hero::after {
        background: linear-gradient(0deg, var(--game-dark) 42%, transparent 85%);
    }

    .game-hero-copy {
        width: 100%;
    }

    .game-page h1 {
        font-size: clamp(2.9rem, 12vw, 5rem);
    }

}

/* Each feature is paired with its actual game interface. */
.game-feature-list { display: grid; gap: 64px; scroll-margin-top: 110px; }
.game-feature-list .game-feature { padding: 0; border: 0; border-radius: 0; background: none; }
.game-feature-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: end; margin-bottom: 24px; }
.game-feature-copy .game-feature-number { margin-bottom: 12px; }
.game-feature-copy h3 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.08; }
.game-feature-copy p { margin: 0; font-size: 1rem; }
@media (max-width: 1024px) { .game-feature-list { scroll-margin-top: 148px; } }
@media (max-width: 700px) {
    .game-feature-list { gap: 44px; }
    .game-feature-copy { grid-template-columns: 1fr; gap: 16px; }
}
