:root {
    --ink: #151515;
    --ink-soft: #201d1c;
    --panel: #282220;
    --panel-light: #332a26;
    --paper: #f7efe7;
    --muted: #b9aabc;
    --line: rgba(247, 239, 231, .16);
    --pink: #f39bb8;
    --gold: #f4c879;
    --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--paper);
    background: var(--ink);
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #151515;
}

.age-gate__panel {
    width: min(100%, 470px);
    padding: 42px 42px 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.age-gate__mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border: 1px solid var(--pink);
    border-radius: 50%;
    color: var(--pink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .04em;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}

.age-gate h1, .hero h1, h2, h3, p { margin-top: 0; }
.age-gate h1 { margin-bottom: 16px; font-size: 32px; line-height: 1.2; }
.age-gate__copy { margin-bottom: 24px; color: var(--muted); font-size: 14px; }

.age-gate__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 22px;
    color: var(--paper);
    font-size: 13px;
    text-align: left;
}

.age-gate__check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--pink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button--primary { color: var(--ink); background: var(--pink); }
.button--primary:hover { background: #ffb2ca; }
.button--primary:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.button--quiet { border-color: var(--line); color: var(--paper); background: transparent; }
.button--quiet:hover { border-color: var(--pink); background: rgba(243, 155, 184, .1); }
.age-gate > .age-gate__panel .button { width: 100%; }
.age-gate__leave { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 13px; }
.age-gate__leave:hover { color: var(--paper); }
.age-gate__note { margin: 20px 0 0; color: #8e7b95; font-size: 11px; }

.site-shell { visibility: hidden; opacity: 0; transition: opacity .3s ease; }
body.is-unlocked .age-gate { display: none; }
body.is-unlocked .site-shell { visibility: visible; opacity: 1; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 76px; padding: 0 5vw; border-bottom: 1px solid var(--line); background: rgba(21, 21, 21, .96); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); background: var(--pink); font-size: 18px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; line-height: 1.1; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.site-nav a:hover { color: var(--paper); }
.site-nav .nav-cta { padding: 10px 15px; border: 1px solid var(--pink); border-radius: 6px; color: var(--pink); }
.site-nav .nav-cta:hover { color: var(--ink); background: var(--pink); }
.menu-toggle { display: none; border: 0; color: var(--paper); background: transparent; }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 4vw; max-width: 1280px; min-height: 670px; margin: 0 auto; padding: 80px 3vw 90px; }
.hero__copy { position: relative; z-index: 1; }
.hero h1 { max-width: 590px; margin-bottom: 24px; font-size: 52px; line-height: 1.14; letter-spacing: 0; }
.hero__lead { max-width: 500px; margin-bottom: 32px; color: var(--muted); font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 12px; }
.hero__meta span { padding-left: 12px; border-left: 1px solid var(--pink); }
.hero__meta b { display: block; margin-bottom: 2px; color: var(--paper); font-size: 13px; }
.hero__art { position: relative; min-width: 0; }
.hero__art::before { position: absolute; inset: 7% -5% -7% 5%; z-index: -1; border: 1px solid rgba(243, 155, 184, .35); content: ""; }
.hero__art img { width: 100%; height: 440px; object-fit: cover; object-position: center; border-radius: 8px; }
.hero__caption { position: absolute; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 16px; background: rgba(21, 21, 21, .9); }
.hero__caption span { color: var(--gold); font-size: 10px; letter-spacing: .14em; }
.hero__caption strong { font-size: 16px; }

.section-band { border-top: 1px solid var(--line); }
.library { padding: 94px 5vw 110px; background: var(--ink-soft); }
.section-heading, .game-grid, .about { max-width: var(--max); margin-right: auto; margin-left: auto; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
h2 { margin-bottom: 0; font-size: 39px; line-height: 1.2; }
.section-heading > p { max-width: 285px; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr); gap: 22px; }
.game-card { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.game-card__media { position: relative; min-height: 280px; }
.game-card__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.game-card__badge { position: absolute; top: 16px; left: 16px; padding: 5px 9px; border-radius: 4px; color: var(--ink); background: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.game-card__body { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; }
.game-card__type { margin-bottom: 10px; color: var(--gold); font-size: 11px; letter-spacing: .08em; }
.game-card h3 { margin-bottom: 14px; font-size: 28px; line-height: 1.2; }
.game-card__body > p:not(.game-card__type) { margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.text-link { margin-top: auto; color: var(--pink); font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--paper); }
.text-link span { padding-left: 6px; }
.library-note { align-self: stretch; padding: 30px; border-left: 1px solid var(--line); background: var(--panel-light); }
.library-note__index { color: var(--pink); font-size: 11px; letter-spacing: .12em; }
.library-note h3 { max-width: 200px; margin: 56px 0 14px; font-size: 23px; line-height: 1.3; }
.library-note p { margin: 0; color: var(--muted); font-size: 13px; }

.about { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 8vw; padding: 108px 5vw 115px; }
.about__intro h2 { max-width: 400px; margin-bottom: 22px; }
.about__intro > p:last-child { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; }
.about__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-self: end; }
.fact { padding-top: 16px; border-top: 1px solid var(--pink); }
.fact strong { display: block; margin-bottom: 32px; color: var(--pink); font-size: 12px; letter-spacing: .12em; }
.fact span { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.fact p { margin: 0; color: var(--muted); font-size: 12px; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 40px; padding: 34px 5vw 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--paper); font-size: 14px; }
.site-footer p { margin: 6px 0 0; }
.site-footer__links { display: flex; gap: 18px; }
.site-footer__links a:hover { color: var(--paper); }
.site-footer small { white-space: nowrap; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
    .hero__art { max-width: 720px; width: 100%; }
    .game-grid { grid-template-columns: 1fr; }
    .library-note { min-height: 180px; border-top: 1px solid var(--line); border-left: 0; }
    .library-note h3 { margin-top: 30px; }
    .about { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 680px) {
    .age-gate__panel { padding: 32px 24px 28px; }
    .site-header { min-height: 68px; padding: 0 20px; }
    .menu-toggle { display: inline-flex; align-items: center; padding: 8px 0 8px 12px; font-size: 12px; }
    .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); background: var(--ink); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 10px 0; }
    .site-nav .nav-cta { margin-top: 5px; padding: 10px 12px; text-align: center; }
    .hero { gap: 46px; padding: 62px 20px 72px; }
    .hero h1 { font-size: 36px; }
    .hero__lead { font-size: 14px; }
    .hero__meta { gap: 12px; }
    .hero__art img { height: 300px; }
    .hero__caption { display: block; }
    .hero__caption strong { display: block; margin-top: 4px; }
    .library { padding: 72px 20px 80px; }
    .section-heading { display: block; }
    h2 { font-size: 31px; }
    .section-heading > p { margin: 18px 0 0; }
    .game-card { grid-template-columns: 1fr; }
    .game-card__media, .game-card__media img { min-height: 210px; height: 210px; }
    .game-card__body { padding: 24px; }
    .about { padding: 76px 20px 84px; }
    .about__facts { grid-template-columns: 1fr; gap: 24px; }
    .fact strong { margin-bottom: 14px; }
    .site-footer { grid-template-columns: 1fr; gap: 18px; padding: 30px 20px 34px; }
    .site-footer small { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
