:root {
    color-scheme: dark;
    --bg: #100c19;
    --panel: #1c1529;
    --ink: #fbf6ff;
    --muted: #c9bfd3;
    --gold: #ffda95;
    --line: #ffffff29;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    scroll-padding-top: 5.75rem;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(100% - 2.5rem, 75rem); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; transform: translateY(-180%); z-index: 20; padding: .6rem 1rem; background: var(--gold); color: var(--bg); }
.skip:focus { transform: none; }
.header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #100c19ef;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-inner { min-height: 4.4rem; }
.header-controls { display: flex; align-items: center; gap: .45rem; }
.language-picker { position: relative; }
.language-picker summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .35rem .65rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: var(--panel);
    cursor: pointer;
    list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after {
    content: "";
    width: .4rem;
    height: .4rem;
    border: solid var(--gold);
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}
.language-picker ul {
    position: absolute;
    z-index: 2;
    inset-inline-end: 0;
    width: max-content;
    min-width: 8.5rem;
    margin: .35rem 0 0;
    padding: .35rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: var(--panel);
    box-shadow: 0 .5rem 1.5rem #0009;
    list-style: none;
}
.language-picker a { display: block; padding: .35rem .65rem; border-radius: .35rem; }
.language-picker a:hover, .language-picker a[aria-current] { background: #ffffff12; color: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: .45rem; font-weight: 750; letter-spacing: .075em; }
.brand strong, .spark { color: var(--gold); }
.spark { font-size: 1.45rem; line-height: 1; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.8rem, 3vw, 2rem); }
nav a, .footer a { color: var(--muted); font-weight: 600; transition: color .2s; }
nav a:hover, nav a[aria-current], .footer a:hover { color: var(--gold); }
.menu-toggle, .lightbox button {
    min-height: 2.75rem;
    padding: .35rem .85rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: var(--panel);
}
.hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: #130c22; }
.hero-art { position: relative; display: block; width: min(100%, 92rem); margin-inline: auto; }
.hero-art img { width: 100%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #130c22 2%, transparent 55%); }
.hero-glow {
    position: absolute;
    inset: 30% 0 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 75%, #77244055, transparent 64%);
    animation: glow 4s ease-in-out 2 alternate both;
}
@keyframes glow { from { opacity: .2; } to { opacity: 1; } }
.hero-copy { position: relative; margin-top: max(-15rem, -16vw); padding-bottom: clamp(2.75rem, 6vw, 5rem); animation: arrival .8s ease-out both; }
@keyframes arrival { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.eyebrow { color: var(--gold); font-size: .875rem; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; }
h1, h2 { font-family: Georgia, serif; line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 7vw, 6.7rem); margin-block: .55rem 1rem; }
.hero h1 span { color: var(--gold); }
.hero-text, .section-heading > p:last-child, .intro { color: var(--muted); max-width: 39rem; font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-text { margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.55rem; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3.15rem;
    padding: .65rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    font-weight: 750;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.button:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 .7rem 2rem #edab4e34; }
.primary { background: linear-gradient(135deg, #fff0c8, #efbc6c); color: #211329; }
.secondary { background: #ffffff13; }
.fact-band { border-block: 1px solid var(--line); background: #160f22; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 1.2rem; gap: 1.2rem; }
.facts div { display: grid; gap: .15rem; }
.facts div + div { padding-inline-start: 1.2rem; border-inline-start: 1px solid var(--line); }
.facts span { color: var(--muted); font-size: .875rem; }
.facts strong { color: var(--gold); }
.section { padding-block: clamp(3.25rem, 8vw, 6.75rem); }
.section-heading { margin-bottom: 1.8rem; }
h2 { font-size: clamp(2.15rem, 5.1vw, 4.5rem); margin-block: .45rem .85rem; }
.section-tinted { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 86% 0%, #311b42, transparent 67%), #15101f; }
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.screen {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: .9rem;
    background: var(--panel);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.screen:hover, .screen:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 10px 30px #0007; }
.screen-image { display: block; position: relative; overflow: hidden; }
.screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s cubic-bezier(.2,.6,.3,1); }
.screen:hover img { transform: scale(1.075); }
.screen-icon { position: absolute; bottom: .5rem; right: .5rem; display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 50%; background: #100c19e8; color: var(--gold); }
.screen-caption { display: block; padding: .75rem .85rem; font-weight: 650; }
.tablist { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.tablist button { min-height: 2.85rem; border: 1px solid var(--line); border-radius: 2rem; padding: .45rem 1rem; background: #ffffff0b; transition: color .25s, background .25s; }
.tablist [aria-selected="true"] { background: var(--gold); color: #211329; border-color: var(--gold); }
.mode-panel { padding: clamp(1rem, 3vw, 2rem); margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #100c198a; }
.mode-panel[data-active] { animation: arrival .32s ease-out both; }
.mode-panel > p { margin: .3rem 0 1rem; color: var(--muted); }
.character-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.character-intro img { width: 100%; max-height: 27rem; object-fit: contain; filter: drop-shadow(0 0 2rem #863f9865); }
.character-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.footer { padding-block: 2rem; border-top: 1px solid var(--line); }
.footer p:last-child { color: var(--muted); font-size: .875rem; margin-top: .4rem; }
.lightbox { width: min(94vw, 70rem); max-height: 94dvh; color: var(--ink); background: #18111f; border: 1px solid var(--line); border-radius: .85rem; padding: .75rem; }
.lightbox[open] { animation: arrival .22s ease-out both; }
.lightbox::backdrop { background: #08060ce8; backdrop-filter: blur(6px); }
.lightbox img { margin-inline: auto; max-height: 70dvh; object-fit: contain; }
.lightbox-bar, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.lightbox-bar { margin-bottom: .65rem; }
.lightbox-controls { margin-top: .65rem; }
.lightbox button:hover { border-color: var(--gold); }
[data-reveal].revealing { animation: arrival .65s ease-out both; }
@media (max-width: 900px) {
    .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .character-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 681px) {
    .hero-art { aspect-ratio: 2.75; }
    .hero-art img { height: 100%; object-fit: cover; object-position: top; }
    .hero-art::after { background: linear-gradient(0deg, #130c22 1%, #130c2273 30%, transparent 74%); }
    .hero-copy { margin-top: clamp(-5rem, -6vw, -3rem); }
    .hero h1 { font-size: clamp(3.1rem, 6vw, 5.25rem); }
}
@media (max-width: 680px) {
    .wrap { width: calc(100% - 2rem); }
    .header-inner { flex-wrap: wrap; gap: 0; padding-block: .65rem; }
    .header .brand { font-size: .85rem; }
    nav { order: 1; width: 100%; justify-content: space-between; gap: .4rem .8rem; padding-top: .6rem; }
    nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
    .hero-art { width: 108%; margin-inline: -4%; }
    .hero-copy { margin-top: -11vw; }
    .hero h1 span { display: block; }
    .facts { grid-template-columns: 1fr; gap: .5rem; }
    .facts div { display: flex; justify-content: space-between; gap: .65rem; align-items: baseline; }
    .facts div + div { padding: .45rem 0 0; border-inline-start: 0; border-top: 1px solid var(--line); }
    .facts strong { text-align: right; }
    .character-intro { grid-template-columns: 1fr; gap: 0; }
    .character-intro img { max-height: 20rem; }
    .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .screen-caption { padding: .55rem .6rem; overflow-wrap: anywhere; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
