:root { color-scheme: dark; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #e9e8e3; background: #000; --muted: #a2a29d; --red: #a63226; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; border: 1px solid #64645f; background: #10100fe6; padding: 12px 20px; cursor: pointer; border-radius: 2px; min-height: 44px; }
button:hover { background: #292925; border-color: #c4c3bb; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #e6d59c; outline-offset: 4px; }
button.primary { background: #e9e8e3; color: #131312; border-color: #e9e8e3; padding: 15px 40px; }
button.primary:hover { background: #fff; }
button.quiet, nav button { border-color: transparent; background: transparent; color: #bdbdb6; }
a { color: #e5ce9c; text-underline-offset: 4px; }
h1,h2,h3 { font-family: "Songti SC", "SimSun", serif; font-weight: 400; }
h1 { font-size: clamp(44px, 5.6vw, 80px); letter-spacing: .14em; margin: 8px 0 30px; }
h2 { font-size: 34px; margin: 0 0 24px; }
h3 { font-size: 21px; margin: 30px 0 10px; }
p { line-height: 1.9; max-width: 42em; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.screen { position: fixed; inset: 0; overflow-y: auto; padding: max(30px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left)); }
#menu { background: linear-gradient(90deg, #000e 0%, #000b 27%, #0001 78%); display: flex; align-items: center; }
.title-block { margin: 0 0 0 5vw; max-width: 640px; padding: 30px 0; }
.english { font-family: Georgia, serif; color: #adada6; font-size: 17px; letter-spacing: .04em; margin: 0; }
.intro { font-family: "Songti SC", "SimSun", serif; font-size: 24px; margin-bottom: 28px; }
.headphones { font-size: 14px; color: #c6c5bc; margin-bottom: 4px; }
#quick-controls { color: var(--muted); font-size: 13px; margin-top: 0; }
#load-status { color: #c7c0ac; font-size: 13px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 18px; }
nav button { padding: 10px 14px; font-size: 14px; }
nav button:first-child { padding-left: 0; }
.scene-caption { position: absolute; right: 38px; bottom: 22px; writing-mode: vertical-rl; font-family: "Songti SC", "SimSun", serif; letter-spacing: .2em; color: #a3a29a; font-size: 13px; }
.centered, .modal { display: grid; place-items: center; background: #000b; }
.modal { position: fixed; z-index: 20; inset: 0; padding: max(22px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); overflow: auto; }
.panel { position: relative; width: min(720px, 100%); max-height: 86dvh; overflow: auto; background: #0b0b0a; border: 1px solid #42423d; padding: 40px; box-shadow: 0 20px 100px #000; }
.panel p { font-size: 15px; color: #c7c7be; }
.compact { width: min(540px, 100%); }
.compact .english { margin-bottom: 18px; }
.close { float: right; margin: -18px -20px 10px 12px; padding: 8px 12px; border: 0; color: #aaa99f; background: transparent; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 28px 0; }
.setting input { width: 60%; accent-color: #d8d6ca; }
select { background: #1a1a18; color: #e9e8e3; padding: 10px; border: 1px solid #64645f; }
.muted { color: var(--muted); font-size: 13px !important; }
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.vital { position: absolute; top: max(30px, env(safe-area-inset-top)); left: max(30px, env(safe-area-inset-left)); }
#health { display: flex; gap: 11px; }
#health i { display: block; width: 7px; height: 26px; background: #ece9df; transform: rotate(18deg); }
#health i.empty { background: #2f2926; }
#pause-button { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); pointer-events: auto; }
#action-state { position: absolute; bottom: max(35px, env(safe-area-inset-bottom)); left: 30px; color: #c3c0b4; font-size: 14px; }
#fire-status { position: absolute; left: 30px; top: 74px; color: #e69c58; font-size: 14px; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; background: #ecebd6; opacity: .45; border-radius: 50%; }
#hurt { position: fixed; inset: 0; background: radial-gradient(ellipse, transparent 45%, #a41313b0 100%); opacity: 0; pointer-events: none; z-index: 4; }
.results { display: flex; justify-content: space-between; gap: 16px; margin: 36px 0; }
.results dt { font-size: 13px; color: var(--muted); }.results dd { margin: 12px 0; font-size: 25px; }
#mobile-controls { position: fixed; z-index: 5; bottom: max(20px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); display: flex; align-items: flex-end; gap: 10px; touch-action: none; }
#mobile-controls button { border-radius: 50%; width: 62px; height: 62px; padding: 0; background: #111d; touch-action: none; }
#mobile-controls .attack { width: 78px; height: 78px; border-color: #d1cdbd; background: #34332be0; }
#mobile-controls button[aria-pressed="true"] { background: #b6aa80; color: #000; }
#mobile-controls small { display: block; font-size: 10px; color: #aaa; }
.wide { width: min(1000px, 100%); }.wide fieldset { border: 1px solid #353530; margin: 24px 0; padding: 18px; display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.wide legend { padding: 0 10px; }.dev-field { display: grid; grid-template-columns: 1fr 95px; gap: 10px; font-size: 13px; align-items: center; }.dev-field small { display: block; color: #999; margin-top: 4px; }
.dev-field input { width: 95px; color: #eee; background: #171715; border: 1px solid #555; padding: 8px; }.dev-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#developer-error, #control-error { color: #e6a394; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.phone #action-state { bottom: 110px; left: 20px; }
@media (max-width: 600px) {
  .screen { padding: 24px; }.title-block { margin-left: 0; padding: 16px 0; } h1 { font-size: 46px; margin-bottom: 22px; }.intro { font-size: 20px; margin-bottom: 20px; }
  .panel { padding: 26px 22px; max-height: 90dvh; } h2 { font-size: 28px; }.close { margin: -10px -9px 8px 8px; }.wide fieldset { grid-template-columns: 1fr; }.scene-caption { display: none; }
  .setting { gap: 12px; }.setting input { width: 55%; } #mobile-controls { right: 15px; gap: 7px; } #mobile-controls button { width: 58px; height: 58px; } #mobile-controls .attack { width: 70px; height: 70px; }
}
@media (max-height: 520px) {
  .title-block { padding: 8px 0; } h1 { font-size: 40px; margin: 4px 0 12px; }.intro { display: none; } nav { margin-top: 8px; }.panel { max-height: 94dvh; }.screen { padding-top: 16px; padding-bottom: 16px; } #mobile-controls { bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
