/* =========================================================
   1. RESET & ROOT VARIABLES
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --beige: #eaded2;
    --beige-light: #f5efe6;
    --beige-dark: #ddcdb9;
    --brown: #974b00;
    --brown-dark: #5a2e00;
    --brown-soft: #b8743a;
    --white: #ffffff;
    --ink: #2a1a0a;
    --muted: #7a6a58;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(90, 46, 0, 0.06);
    --shadow-md: 0 8px 28px rgba(90, 46, 0, 0.10);
    --shadow-lg: 0 18px 50px rgba(90, 46, 0, 0.16);

    --container: 1200px;
    --transition: 0.3s ease;

    --font-display: 'Playfair Display', 'Be Vietnam Pro', serif;
    --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--beige-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

section {
    padding: 96px 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brown);
    padding: 6px 16px;
    border: 1px solid var(--brown);
    border-radius: 999px;
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    color: var(--brown-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.02rem;
}

/* =========================================================
   2. HEADER
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease,
                backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
    background: rgba(245, 239, 230, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(151, 75, 0, 0.08);
    box-shadow: 0 2px 18px rgba(90, 46, 0, 0.06);
}

/* Khi header trong suốt (đè lên hero) → tone sáng */
.site-header:not(.is-scrolled) .logo-text strong { color: var(--beige-light); }
.site-header:not(.is-scrolled) .logo-text small { color: rgba(245, 239, 230, 0.75); }
.site-header:not(.is-scrolled) .logo-mark {
    background: rgba(245, 239, 230, 0.15);
    color: var(--beige-light);
    box-shadow: inset 0 0 0 2px rgba(245, 239, 230, 0.85),
                0 0 0 1px rgba(245, 239, 230, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.site-header:not(.is-scrolled) .nav-menu a {
    color: var(--beige-light);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.site-header:not(.is-scrolled) .nav-menu a:hover {
    color: var(--white);
}
.site-header:not(.is-scrolled) .nav-menu a::after {
    background: var(--beige-light);
}
.site-header:not(.is-scrolled) .menu-toggle {
    color: var(--beige-light);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    padding-top: max(11px, env(safe-area-inset-top, 0px));
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brown-dark);
}

.logo-mark {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brown);
    color: var(--beige-light);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    box-shadow: inset 0 0 0 3px var(--beige-light), 0 0 0 1px var(--brown);
}

.logo-text {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    line-height: 1.15;
}
.logo-text strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.06rem;
    color: var(--brown-dark);
    letter-spacing: 0.005em;
}
.logo-text small {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.66rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brown);
    transition: width var(--transition);
}

.nav-menu a:hover {
    color: var(--brown);
}
.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--brown);
    color: var(--white);
    padding: 7px 18px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.86rem;
    transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover {
    background: var(--brown-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--brown-dark);
}
.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* =========================================================
   3. HERO SECTION
   ========================================================= */
.hero {
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: calc(env(safe-area-inset-top, 0px) + 4.5rem);
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    color: var(--white);
    background:
        url('../assets/hero-banner.png') center / cover no-repeat,
        var(--brown-dark);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(
            ellipse at center,
            rgba(42, 26, 10, 0.45) 0%,
            rgba(42, 26, 10, 0.65) 100%
        ),
        linear-gradient(180deg,
            rgba(42, 26, 10, 0.45) 0%,
            rgba(42, 26, 10, 0.30) 50%,
            rgba(42, 26, 10, 0.55) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content .eyebrow {
    margin-bottom: 1.75rem;
    color: var(--beige-light);
    border-color: rgba(245, 239, 230, 0.7);
    background: rgba(42, 26, 10, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1.4;
    letter-spacing: 0.005em;
    color: var(--white);
    margin-bottom: 1.75rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45),
                 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hero-title em {
    font-style: italic;
    color: var(--beige);
    font-weight: 600;
}

.hero-desc {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: rgba(245, 239, 230, 0.95);
    max-width: 620px;
    margin: 0 auto 2.25rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 2.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.98rem;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--brown);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--brown-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 1.5px solid var(--brown);
    color: var(--brown-dark);
    background: transparent;
}
.btn-outline:hover {
    background: var(--brown);
    color: var(--white);
}

.hero .btn-outline {
    border-color: rgba(245, 239, 230, 0.85);
    color: var(--beige-light);
    background: rgba(42, 26, 10, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero .btn-outline:hover {
    background: var(--beige-light);
    color: var(--brown-dark);
    border-color: var(--beige-light);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(245, 239, 230, 0.25);
    max-width: 640px;
    margin: 0 auto;
}
.stat-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--beige-light);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.stat-label {
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(245, 239, 230, 0.78);
    margin-top: 0.5rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: min(140px, 18vh);
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--beige-light) 92%
    );
}

/* =========================================================
   4. GAMES GRID
   ========================================================= */
.games {
    background: var(--beige-light);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
a.game-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.game-card:focus-visible {
    outline: 2px solid var(--brown);
    outline-offset: 3px;
}
.game-card:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: var(--shadow-md);
}

.game-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--brown-dark);
}
.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Thumb infographic: full-bleed trong khung thẻ, không padding viền */
.games .game-card-image img {
    object-fit: cover;
    object-position: center;
    padding: 0;
}
.game-card:hover .game-card-image img {
    transform: none;
}

.game-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(245, 239, 230, 0.95);
    color: var(--brown-dark);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.game-card-body {
    padding: 22px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.32rem;
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.game-card-desc {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

.game-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brown);
    font-weight: 500;
    font-size: 0.92rem;
    align-self: flex-start;
}
.game-card-link::after {
    content: '→';
    transition: transform var(--transition);
}
.game-card-link:hover {
    color: var(--brown-dark);
}
.game-card-link:hover::after {
    transform: translateX(4px);
}
a.game-card:hover .game-card-link {
    color: var(--brown-dark);
}
a.game-card:hover .game-card-link::after {
    transform: translateX(4px);
}

/* =========================================================
   5. REVIEWS SECTION
   ========================================================= */
.reviews {
    background: var(--beige);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.review-card {
    background: var(--beige-light);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid rgba(151, 75, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: var(--brown);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.review-quote {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(151, 75, 0, 0.1);
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brown);
    color: var(--beige-light);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}
.review-name {
    font-weight: 600;
    color: var(--brown-dark);
    font-size: 0.96rem;
}
.review-role {
    font-size: 0.82rem;
    color: var(--muted);
}

/* =========================================================
   6. FOOTER
   ========================================================= */
.site-footer {
    background: var(--brown-dark);
    color: var(--beige);
    padding: 72px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .logo {
    color: var(--beige-light);
    margin-bottom: 18px;
}
.footer-brand .logo-mark {
    background: var(--beige-light);
    color: var(--brown-dark);
    box-shadow: inset 0 0 0 3px var(--brown-dark), 0 0 0 1px var(--beige-light);
}
.footer-brand .logo-text strong {
    color: var(--beige-light);
}
.footer-brand .logo-text small {
    color: rgba(234, 222, 210, 0.6);
}

.footer-brand p {
    color: rgba(234, 222, 210, 0.7);
    font-size: 0.94rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer-col h5 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col a {
    color: rgba(234, 222, 210, 0.75);
    font-size: 0.94rem;
}
.footer-col a:hover {
    color: var(--white);
}

.footer-col .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(234, 222, 210, 0.75);
    font-size: 0.92rem;
    line-height: 1.55;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(234, 222, 210, 0.1);
    display: grid;
    place-items: center;
    transition: background var(--transition), transform var(--transition);
}
.socials a:hover {
    background: var(--beige-light);
    color: var(--brown-dark);
    transform: translateY(-2px);
}
.socials svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(234, 222, 210, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(234, 222, 210, 0.6);
    font-size: 0.86rem;
}
.footer-bottom a:hover {
    color: var(--white);
}

/* =========================================================
   7. RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    section { padding: 72px 0; }

    .hero {
        padding-top: calc(env(safe-area-inset-top, 0px) + 4.35rem);
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    }
    .hero-content { padding: 0 20px; }

    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 720px) {
    section { padding: 56px 0; }
    .container { padding-inline: 20px; }

    .nav > .nav-cta {
        display: none;
    }
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    /* Menu mobile: panel full-width dưới header */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px max(20px, env(safe-area-inset-bottom, 0px));
        margin: 0;
        background: var(--beige-light);
        border-top: 1px solid rgba(151, 75, 0, 0.1);
        box-shadow: 0 16px 32px rgba(90, 46, 0, 0.18);
        z-index: 99;
    }
    .site-header.nav-open .nav-menu {
        display: flex;
    }
    .site-header .nav-menu li + li {
        border-top: 1px solid rgba(151, 75, 0, 0.08);
    }
    .site-header.nav-open .nav-menu a,
    .site-header:not(.is-scrolled) .nav-menu a,
    .site-header.is-scrolled .nav-menu a,
    .site-header .nav-menu a {
        display: block;
        padding: 14px 12px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--brown-dark);
        background: transparent;
        text-shadow: none;
        border-radius: 0;
    }
    .site-header .nav-menu a::after {
        display: none;
    }
    .site-header .nav-menu a:hover,
    .site-header .nav-menu a:focus {
        background: rgba(151, 75, 0, 0.08);
        color: var(--brown);
    }

    .site-header.nav-open {
        background: var(--beige-light);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom-color: rgba(151, 75, 0, 0.1);
        box-shadow: 0 4px 14px rgba(90, 46, 0, 0.08);
    }
    .site-header.nav-open:not(.is-scrolled) .logo-text strong,
    .site-header.nav-open.is-scrolled .logo-text strong {
        color: var(--brown-dark);
    }
    .site-header.nav-open:not(.is-scrolled) .logo-text small,
    .site-header.nav-open.is-scrolled .logo-text small {
        color: var(--muted);
    }
    .site-header.nav-open:not(.is-scrolled) .logo-mark,
    .site-header.nav-open.is-scrolled .logo-mark {
        background: var(--brown);
        color: var(--beige-light);
        box-shadow: inset 0 0 0 3px var(--beige-light), 0 0 0 1px var(--brown);
        backdrop-filter: none;
    }
    .site-header.nav-open .menu-toggle {
        color: var(--brown-dark);
    }

    .hero {
        padding-top: calc(env(safe-area-inset-top, 0px) + 5rem);
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
        align-items: center;
    }
    .logo-text {
        gap: 8px;
    }
    .logo-text strong {
        font-size: 1.1rem;
    }
    .logo-text small {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }
    .logo-mark {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
    .hero-content {
        padding: 0 24px;
        width: 100%;
        max-width: 100%;
    }
    .hero-content .eyebrow {
        margin-bottom: 1.5rem;
        font-size: 0.7rem;
        letter-spacing: 0.16em;
        padding: 7px 14px;
    }
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.95;
        margin-bottom: 1.75rem;
        max-width: 32rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 2rem;
    }
    .hero .btn {
        justify-content: center;
        width: 100%;
        padding: 13px 20px;
        font-size: 1rem;
    }
    .hero::before {
        background:
            linear-gradient(180deg,
                rgba(42, 26, 10, 0.55) 0%,
                rgba(42, 26, 10, 0.45) 50%,
                rgba(42, 26, 10, 0.65) 100%);
    }
    .hero::after {
        height: 56px;
    }
    .hero-stats {
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding-top: 1.5rem;
        margin-top: 0;
        max-width: 100%;
    }
    .hero-stats > div {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    .stat-num {
        font-size: 1.35rem;
        line-height: 1.2;
    }
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.55;
        margin-top: 0.5rem;
        hyphens: auto;
        word-break: break-word;
    }

    .section-head { margin-bottom: 40px; }
    .games-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .reviews-grid { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 40px;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* Subtle reveal animation */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   GAME DETAIL PAGES
   ========================================================= */
.page-game-detail {
    background: var(--beige);
}

/* Đẩy toàn bộ main xuống dưới header cố định — tránh ảnh/mép trên bị che */
main.game-detail {
    padding-top: calc(env(safe-area-inset-top, 0px) + 4.5rem);
    padding-bottom: 3rem;
}

/* Ảnh đầu trang: hiển thị đầy đủ (không crop), cùng khổ với nội dung, bo góc nhẹ */
.game-detail-cover {
    width: 100%;
    max-width: min(52rem, 92vw);
    margin: 0 auto;
    padding: 1.35rem max(1.75rem, env(safe-area-inset-left, 0px)) 1.85rem;
    padding-right: max(1.75rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}
.game-detail-cover img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: center top;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.game-detail-inner {
    max-width: min(52rem, 92vw);
    margin: 0 auto;
    padding: 1.35rem 1.25rem 2.5rem;
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

.game-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 1.25rem;
    transition: color var(--transition);
}
.game-detail-back:hover {
    color: var(--brown-dark);
}

.game-detail-inner h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.game-detail-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(151, 75, 0, 0.12);
}

/* Ghi đè padding global của `section { padding: 96px 0 }` — đó là lý do các mục cách xa nhau */
.game-detail-prose section {
    padding: 0;
    margin-bottom: 1rem;
}
.game-detail-prose section:last-child {
    margin-bottom: 0;
}
.game-detail-prose h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 0.45rem;
    margin-top: 0;
    padding-top: 0;
    line-height: 1.35;
}
.game-detail-prose h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 0.55rem;
    margin-bottom: 0.3rem;
}
.game-detail-prose h3:first-child {
    margin-top: 0;
}
.game-detail-prose ul {
    margin: 0 0 0.5rem;
    padding-left: 1.15rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.62;
}
.game-detail-prose li {
    margin-bottom: 0.2rem;
}
.game-detail-prose li::marker {
    color: var(--brown);
}

/* Quy trình — các bước (timeline dọc, thẻ từng bước) */
.game-detail-process > h2 {
    margin-bottom: 1rem;
}
.game-detail-process {
    counter-reset: gd-step;
}
.game-detail-step {
    counter-increment: gd-step;
    position: relative;
    padding: 1rem 1.15rem 1.05rem 3.45rem;
    margin-bottom: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(151, 75, 0, 0.11);
    box-shadow: 0 3px 16px rgba(90, 46, 0, 0.05);
}
.game-detail-step:last-child {
    margin-bottom: 0;
}
.game-detail-step::before {
    content: counter(gd-step);
    position: absolute;
    left: 0.95rem;
    top: 1rem;
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--white);
    background: linear-gradient(145deg, var(--brown) 0%, var(--brown-soft) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(151, 75, 0, 0.25);
    line-height: 1;
}
.game-detail-step::after {
    content: '';
    position: absolute;
    left: calc(0.95rem + 0.925rem - 1px);
    top: calc(1rem + 1.85rem + 0.35rem);
    bottom: -0.75rem;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(151, 75, 0, 0.35) 0%,
        rgba(151, 75, 0, 0.08) 100%
    );
    border-radius: 2px;
}
.game-detail-step:last-child::after {
    display: none;
}
.game-detail-step h3 {
    margin: 0 0 0.45rem;
    padding: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brown-dark);
    letter-spacing: 0.01em;
}
.game-detail-step ul {
    margin: 0;
    padding-left: 1.1rem;
}
.game-detail-step li:last-child {
    margin-bottom: 0;
}

.site-footer.game-detail-simple-footer {
    padding: 2.25rem 0 2.75rem;
    text-align: center;
}
.site-footer.game-detail-simple-footer .game-detail-back {
    color: rgba(245, 239, 230, 0.95);
    margin-bottom: 0;
}
.site-footer.game-detail-simple-footer .game-detail-back:hover {
    color: var(--white);
}
.site-footer.game-detail-simple-footer .game-detail-copy {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: rgba(234, 222, 210, 0.55);
}
