:root {
  color-scheme: dark;
  --ink: #101913;
  --paper: #f1ead2;
  --muted: #b8bdab;
  --gold: #e9c787;
  --line: #ffffff1c;
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #ffe2a8; outline-offset: 5px; }
.shell { width: min(1232px, calc(100% - 112px)); margin-inline: auto; }
.site-header { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand strong { display: block; font-family: var(--serif); font-size: 17px; letter-spacing: .16em; }
.brand small, .eyebrow, .scene-label, footer { letter-spacing: .2em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font: 9px/1.3 system-ui, sans-serif; letter-spacing: .2em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; margin-left: 5px; border: 1px solid #cba56d; transform: rotate(45deg); }
.brand-mark i, .flame { width: 10px; height: 14px; background: currentColor; border-radius: 8px 2px 8px 8px; transform: rotate(25deg); }
.brand-mark i { color: var(--gold); transform: rotate(-25deg); }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); color: var(--muted); font-size: 13px; }
nav a { padding: 11px 0; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--gold); }
nav a[aria-current] { box-shadow: 0 1px var(--gold); }
.hero { position: relative; display: flex; align-items: center; min-height: clamp(480px, 46vw, 630px); isolation: isolate; overflow: hidden; background: #172a20; border: 1px solid #c6b88555; }
.scene, .hero::after, .hero-frame { position: absolute; pointer-events: none; }
.scene { z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; transition: filter .7s; }
.hero::after { z-index: -2; inset: 0; content: ""; background: linear-gradient(90deg, #0b1712d9, #0c191350 52%, transparent 83%); transition: opacity .45s; }
.hero-frame { inset: 13px; border: 1px solid #ebdaad30; z-index: -1; }
.intro { padding: 58px 38px 78px clamp(42px, 7vw, 100px); }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--gold); font: 650 11px/1.6 system-ui, sans-serif; letter-spacing: .23em; }
.eyebrow > span { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
h1 { margin: 17px 0 14px; font: 750 clamp(52px, 7.4vw, 108px)/1.15 var(--serif); letter-spacing: .08em; }
.tagline { margin: 0; color: #e7d8ac; font-family: var(--serif); font-size: clamp(17px, 2.1vw, 27px); letter-spacing: .15em; }
.intro-copy { margin: 24px 0 31px; color: #dedfd0; font-size: 14px; line-height: 1.9; letter-spacing: .06em; }
.primary { min-height: 50px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid #f4d9a0; background: var(--gold); color: #222717; padding: 0 18px; font-size: 14px; font-weight: 750; letter-spacing: .075em; transition: background .2s; }
.primary:hover { background: #ffe3a7; }
.arrow { margin-left: 21px; font-size: 17px; }
.scene-label { position: absolute; right: 32px; bottom: 27px; display: flex; gap: 10px; align-items: center; color: #f5e8c6; font-size: 11px; text-shadow: 0 1px 5px #000; }
.scene-label span { color: var(--gold); }
.play-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 24px 0; margin-top: 11px; border-block-end: 1px solid var(--line); }
.play-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #e9c78745; background: #1d271d; color: var(--gold); font-size: 21px; }
h2 { margin: 0; font: 700 19px/1.45 var(--serif); letter-spacing: .08em; }
.play-strip p, .studio p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.text-button { min-height: 44px; border: 0; background: none; color: var(--gold); font-size: 13px; padding: 0 5px 0 0; }
.text-button span { margin-left: 10px; }
.text-button:hover { color: #ffe6b5; }
.studio { display: grid; grid-template-columns: minmax(130px, .3fr) 1fr; align-items: baseline; padding: 48px 0; gap: 16px; }
.studio p { margin: 0; }
footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); padding: 24px 0; font-size: 10px; }
.hero.is-playing::after { opacity: .21; }
.hero.is-cleared .scene { filter: brightness(1.18) saturate(1.16); }
.game { position: absolute; inset: 0; }
.game-hud { position: absolute; top: 26px; left: 26px; right: 26px; display: flex; justify-content: space-between; align-items: start; gap: 13px; padding: 15px 17px; background: #101913ed; border: 1px solid #e9c78755; }
.game-hud .eyebrow { margin: 0 0 6px; }
.game-hud h2 { margin: 0; }
#game-status { margin: 5px 0 0; color: #dedfd0; line-height: 1.5; font-size: 13px; }
.game-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: end; }
.counter { color: var(--gold); white-space: nowrap; font: 650 13px system-ui, sans-serif; }
.quiet { background: #21291e; border: 1px solid #e9c78755; padding: 5px 9px; min-height: 38px; white-space: nowrap; font-size: 12px; }
.quiet:hover { background: #363c2b; }
.spark { position: absolute; top: var(--y); left: var(--x); display: grid; place-items: center; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid #fce2a08c; background: #142116aa; box-shadow: 0 0 24px #f4cd8266; }
.spark span { width: 12px; height: 12px; background: #ffe5a9; box-shadow: 0 0 14px 4px #ffca66; transform: rotate(45deg); border-radius: 2px; animation: flicker 2s ease-in-out infinite alternate; }
.spark:hover { background: #66502bcc; }
@keyframes flicker { from { opacity: .6; } to { opacity: 1; } }
@media (max-width: 900px) {
  .shell { width: calc(100% - 64px); }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 72px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 21px; height: 21px; }
  .brand-mark i { width: 7px; height: 10px; }
  .brand strong { font-size: 13px; letter-spacing: .06em; }
  .brand small { font-size: 6px; letter-spacing: .09em; }
  nav { gap: 12px; font-size: 11px; }
  .hero { min-height: 510px; align-items: end; }
  .scene { object-position: 70% center; }
  .hero::after { background: linear-gradient(0deg, #0b1712, #0c1913ae 46%, #0c191309 85%); }
  .intro { padding: 42px 20px 72px 25px; }
  h1 { margin-top: 12px; font-size: clamp(45px, 12vw, 68px); }
  .tagline { letter-spacing: .09em; }
  .intro-copy { margin: 17px 0 23px; font-size: 13px; }
  .scene-label { right: 24px; bottom: 23px; }
  .play-strip { gap: 10px; }
  .play-mark { width: 34px; height: 34px; }
  .play-strip h2 { font-size: 16px; }
  .play-strip p, .text-button { font-size: 11px; }
  .text-button { white-space: nowrap; }
  .text-button span { margin-left: 3px; }
  .studio { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
  .game-hud { top: 20px; left: 19px; right: 19px; padding: 12px; }
  .game-hud h2 { font-size: 16px; }
  #game-status { font-size: 12px; }
  .game-actions { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
