:root {
    color-scheme: dark;
    --page: #100e0d;
    --panel: #191512;
    --input: #110f0d;
    --ink: #fbf1de;
    --muted: #cbbba5;
    --gold: #edc679;
    --line: #5b4428;
    --danger: #ffb2a0;
    --art-wash: linear-gradient(90deg, #17120fe6, #21150c55 75%), linear-gradient(0deg, #100e0d 2%, #100e0d22 75%, #17120f7d);
}
:root[data-theme="light"] {
    color-scheme: light;
    --page: #f4ede0;
    --panel: #fffaf0;
    --input: #ffffff;
    --ink: #241a13;
    --muted: #5b4b3b;
    --gold: #785114;
    --line: #c6a97a;
    --danger: #9a3020;
    --art-wash: linear-gradient(90deg, #f4ede0ef 1%, #f4ede0a8 43%, #f4ede025 73%, #f4ede012), linear-gradient(0deg, #f4ede0 0%, #f4ede026 26%, transparent 67%);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); font: 400 1rem/1.55 "DM Sans", system-ui, sans-serif; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.shell { width: min(100% - 96px, 1180px); margin-inline: auto; }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { width: 136px; height: auto; display: block; }
.themes { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.themes button { min-height: 36px; color: var(--muted); background: transparent; cursor: pointer; border: 0; border-radius: 99px; padding: 4px 14px; font-size: .9rem; }
.themes button[aria-pressed="true"] { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.hero { position: relative; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: url("/assets/castle-siege.jpg") center center / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: var(--art-wash); }
.hero-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-art video.has-video { opacity: 1; }
.video-toggle { position: absolute; right: max(18px, calc((100% - 1180px) / 2)); bottom: 13px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--panel); cursor: pointer; font-size: .875rem; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(365px, 440px); gap: clamp(44px, 8vw, 112px); align-items: center; min-height: min(695px, max(640px, 78vh)); padding-block: 70px 84px; }
.hero-copy { max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--gold); font-weight: 700; font-size: .9rem; letter-spacing: .21em; text-transform: uppercase; }
.eyebrow span { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
h1, h2, .reward strong { font-family: "Cinzel", Georgia, serif; line-height: 1.02; }
h1 { margin: 17px 0 22px; font-size: clamp(3.6rem, 8vw, 7.2rem); font-weight: 600; letter-spacing: -.055em; }
h1 em { color: var(--gold); font-style: normal; }
.hero-intro { max-width: 430px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero-intro strong { color: var(--ink); }
.game-details { margin-top: 15px; color: var(--ink); font-weight: 700; font-size: .9rem; }
.game-details span { color: var(--gold); padding-inline: 3px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.platforms img { display: block; width: 22px; height: 22px; object-fit: contain; }
.registration { padding: clamp(22px, 4vw, 38px); background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 6px; box-shadow: 0 30px 75px #0004; }
.reward { display: flex; align-items: center; gap: 14px; padding-bottom: 19px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.reward img { object-fit: contain; }
.reward span { display: block; color: var(--muted); font-size: .9rem; }
.reward strong { display: block; margin-top: 5px; color: var(--gold); font-size: 1.45rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); margin-bottom: 9px; }
.registration p { color: var(--muted); }
.beta-opt-in { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .9rem; cursor: pointer; }
.beta-opt-in input { width: 1rem; height: 1rem; flex: none; margin: 0; accent-color: var(--gold); }
.google-register:not(:empty) { margin-top: 19px; }
.registration .privacy { margin-top: 15px; font-size: .875rem; }
.registration .status { margin-top: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; color: var(--ink); font-size: .9rem; }
.registration .status[data-error="true"] { color: var(--danger); }
footer { background: var(--page); border-top: 1px solid var(--line); }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .9rem; }
.social { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.social a { color: var(--gold); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .25em; }
@media (max-width: 900px) {
    .shell { width: min(100% - 52px, 1180px); }
    .hero-inner { gap: 30px; grid-template-columns: 1fr minmax(315px, 390px); }
}
@media (max-width: 690px) {
    .shell { width: calc(100% - 36px); }
    .header-inner { min-height: 76px; }
    .brand { width: 105px; }
    .hero-inner { grid-template-columns: 1fr; gap: 33px; padding-block: 54px 62px; }
    .hero-art { background-position: 58% top; }
    .hero-art video { object-position: 58% center; }
    :root[data-theme="light"] .hero-copy { text-shadow: 0 0 12px #fffaf0; }
    .footer-inner { flex-wrap: wrap; padding-block: 18px; }
}
