:root {
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}
button { font-family: var(--font-serif); }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.scene-vignette, .gradient-overlay, .dialogue-wrap::before { display: none; }
.view, .archive-layer, .result-layer { background: #000; backdrop-filter: none; }
.global-back { left: 24px; top: max(4px,env(safe-area-inset-top)); }
.hud-left { grid-column: 1; display: flex; align-items: center; justify-self: start; gap: 24px; min-width: 0; margin-left: 64px; }
.hud-left .hud-time { grid-column: auto; }
.hud-left .archive-button { position: relative; inset: auto; flex: 0 0 44px; }
.ui-icon svg, .tool-icon svg { width: 22px; height: 22px; }
.status-hud { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 2px max(24px,calc(env(safe-area-inset-right) + 10px)); min-height: 46px; }
.hud-time span { font-size: 13px; }
.hud-time strong { font: 500 12px/1.2 var(--font-mono); }
.hud-values span { font: 400 11px/1.2 var(--font-sans); }
.hud-values b { font: 600 13px/1.2 var(--font-mono); }
.hub-view { display: flex; flex-direction: column; align-items: stretch; padding: 48px; gap: 32px; }
.hub-copy { width: 100%; align-self: stretch; }
.hub-copy .eyebrow { margin: 0 0 8px; font: 500 9px/1.2 var(--font-mono); }
.hub-copy h1 { margin: 0 0 12px; font: 600 20px/1.2 var(--font-serif); letter-spacing: 0; }
.hub-lead { font: 400 11px/1.5 var(--font-sans); }
.hub-lead br { display: none; }
.hub-progress { margin-top: 24px; font: 400 11px/1.5 var(--font-sans); letter-spacing: 0; }
.hub-progress strong { font: 600 14px/1.2 var(--font-mono); }
.chapter-list { width: min(1120px,100%); margin: 0; flex: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.chapter-entry { min-height: 148px; padding: 24px; grid-template-columns: 32px 1fr; gap: 12px; border-radius: 6px; }
.chapter-entry:last-child { grid-column: auto; }
.chapter-entry.is-current { border: 2px solid var(--gold); box-shadow: none; padding: 23px; }
.chapter-number { font: 600 14px/1.4 var(--font-mono); }
.chapter-name { font: 600 14px/1.4 var(--font-serif); letter-spacing: 0; }
.chapter-name small { margin-top: 8px; font: 400 11px/1.5 var(--font-sans); }
.chapter-state { font: 500 10px/1.2 var(--font-mono); }
.intro-en { margin: 0; font: 500 9px/1.2 var(--font-mono); letter-spacing: 7px; }
.intro-copy { display: grid; gap: 12px; }
.intro-body { display: none; }
.intro-copy h2 { margin: 0; font: 700 26px/1.35 var(--font-serif); letter-spacing: 8px; }
.intro-title { margin: 0; font: 400 11px/1.8 var(--font-serif); letter-spacing: 3px; }
.story-objective { display: none; }
.dialogue-wrap { bottom: max(56px,calc(env(safe-area-inset-bottom) + 24px)); }
.dialogue-name { margin: 0 0 16px; font: 600 18px/1.2 var(--font-serif); }
.dialogue-box { padding: 0; min-height: 44px; text-align: left; }
#dialogue-text { display: inline; font: 500 22px/1.75 var(--font-serif); line-break: strict; word-break: normal; overflow-wrap: normal; }
.dialogue-box small { position: static; display: inline-block; width: 12px; height: 16px; margin-left: 12px; vertical-align: middle; animation: none !important; }
.dialogue-box small::after { display: block; width: 12px; height: 16px; content: ""; background: #f2f2f2; clip-path: polygon(0 0,100% 50%,0 100%); }
#game-container[data-view="play"] .status-hud { display: none; }
#game-container[data-view="play"] .global-back { top: 24px; }
.play-header { top: 24px; left: 88px; width: calc(100% - 320px); max-width: none; }
.play-header .eyebrow { margin: 0 0 8px; font: 500 9px/1.2 var(--font-mono); }
.play-header h2 { display: block; margin: 0; font: 600 20px/1.2 var(--font-serif); }
#game-subtitle { display: none; }
.play-objective { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.play-objective span { color: var(--text-soft); font: 400 11px/1.5 var(--font-sans); white-space: nowrap; }
.play-objective p { margin: 0; font: 400 14px/1.7 var(--font-serif); }
.play-progress { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.play-progress span { color: var(--text-soft); font: 400 11px/1.5 var(--font-sans); }
.play-progress strong { color: var(--mint); font: 600 14px/1.2 var(--font-mono); }
.play-tools { top: 24px; right: 80px; gap: 12px; }
.tool-icon { border: 1px solid var(--line); border-radius: 6px; }
.tool-tooltip { font: 400 11px/1.4 var(--font-sans); }
.game-screen { top: 214px; right: 24px; bottom: 24px; left: 24px; padding: 24px 0 80px; overflow: hidden; }
.game-screen.has-submit { padding-bottom: 80px; }
.game-submit { right: 0; bottom: 0; min-height: 48px; padding: 0 24px; border-radius: 6px; border: 1px solid var(--gold); background: var(--gold); color: #17130b; font: 600 14px/1 var(--font-serif); letter-spacing: 0; }
.game-submit:hover { background: #ffe2a3; color: #17130b; }
.ritual-board,.trace-board,.dispatch-board { width: min(1120px,100%); max-height: 100%; overflow: auto; padding: 4px; }
.section-label { margin: 0 0 16px; font: 400 11px/1.5 var(--font-sans); letter-spacing: 0; }
.sequence-slots { gap: 12px; margin-bottom: 24px; }
.sequence-slot { min-height: 88px; padding: 16px; border-radius: 6px; font: 400 14px/1.7 var(--font-serif); }
.sequence-slot::before { font: 500 10px/1.2 var(--font-mono); margin-bottom: 8px; }
.law-actions { gap: 12px; margin-bottom: 0; }
.choice-line { min-height: 64px; padding: 16px; border-radius: 6px; font: 600 14px/1.4 var(--font-serif); }
.choice-line.is-used { opacity: .6; color: var(--mint); }
.banquet-stage { width: 1120px; height: 600px; transform: scale(var(--board-scale)); }
.banquet-stage>.section-label { position: absolute; top: 0; width: 100%; }
.person-pool { top: 32px; gap: 12px; }
.person-choice,.trace-token { min-height: 48px; padding: 12px 16px; font: 500 14px/1.4 var(--font-serif); border-radius: 6px; }
.banquet-table { left: 410px; top: 220px; width: 300px; height: 230px; font-size: 20px; background: transparent; }
.banquet-table small { font: 400 11px/1.5 var(--font-sans); }
.seat-node { width: 150px; min-height: 56px; border-radius: 6px; font: 500 14px/1.4 var(--font-serif); }
.seat-node[data-seat="emperor"] { left: 485px !important; top: 132px !important; }
.seat-node[data-seat="r1"] { left: 815px !important; top: 195px !important; }
.seat-node[data-seat="r2"] { left: 905px !important; top: 325px !important; }
.seat-node[data-seat="r3"] { left: 815px !important; top: 460px !important; }
.seat-node[data-seat="south"] { left: 485px !important; top: 510px !important; }
.seat-node[data-seat="l2"] { left: 90px !important; top: 325px !important; }
.trace-chain { gap: 24px; margin: 24px 0; }
.trace-step { min-height: 88px; padding: 16px; border-radius: 6px; font: 500 14px/1.4 var(--font-serif); }
.trace-step:not(:last-child)::after { right: -20px; }
.trace-pool { gap: 12px; margin-bottom: 24px; }
.trace-hint { font: 400 14px/1.7 var(--font-serif); }
.dispatch-board { grid-template-columns: 280px minmax(0,1fr); gap: 24px; }
.attendant-list,.task-list { gap: 12px; grid-template-rows: repeat(3,minmax(112px,1fr)); }
.attendant-choice,.task-row { min-height: 112px; border-radius: 6px; padding: 16px; }
.attendant-choice { padding-right: 88px; }
.attendant-choice strong,.task-name { font: 600 14px/1.4 var(--font-serif); }
.attendant-choice small,.task-detail { font: 400 11px/1.5 var(--font-sans); }
.attendant-choice::after { right: 12px; font: 500 10px/1.2 var(--font-mono); }
.task-row { grid-template-columns: 100px minmax(0,1fr) 112px; gap: 16px; }
.task-assignee { padding: 8px; border-radius: 4px; font: 500 10px/1.2 var(--font-mono); }
.task-assignee small { font-size: 10px; }
.task-assignee strong { font: 600 14px/1.4 var(--font-serif); }
.route-node { min-height: 48px; border-radius: 6px; font: 600 14px/1.4 var(--font-serif); box-shadow: none !important; }
.route-log { bottom: -32px; min-height: 44px; padding: 12px 16px; border: 0; border-radius: 0; font: 400 14px/1.7 var(--font-serif); }
.lantern-game { width: min(1120px,100%); height: min(600px,100%); padding: 24px; border: 0; border-radius: 0; background: #000; grid-template-rows: 64px 1fr 32px 48px; }
.lantern-status { grid-template-columns: 180px 1fr 80px; }
.lantern-status div:first-child span { font: 400 11px/1.5 var(--font-sans); }
.lantern-status div:first-child strong { font: 600 14px/1.2 var(--font-mono); }
.lantern-status p { font: 400 14px/1.7 var(--font-serif); }
.lantern, .lantern:not(:disabled):hover { opacity: 1; }
.lantern i { opacity: .48; }
.lantern.is-lit i, .lantern.is-correct i, .lantern.is-wrong i, .decoy-lantern.is-decoy-lit i { opacity: 1; }
.lantern span { color: var(--text-soft); font: 500 14px/1.4 var(--font-serif); }
.lantern-play { min-height: 48px; font-size: 14px; border-radius: 6px; color: #17130b; background: var(--gold); }
.result-layer { padding: 32px; }
.result-copy { display: grid; width: min(1120px,calc(100vw - 64px)); min-height: 420px; max-height: calc(100dvh - 64px); grid-template-columns: 28% minmax(0,1fr); padding: 0; gap: 0; border-radius: 6px; background: #101015; overflow: auto; }
.result-summary { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 16px; }
.result-summary > span { display: none; }
.result-summary .result-kicker { margin: 0; color: var(--mint); font: 600 14px/1.3 var(--font-serif); }
#result-chapter { margin: 0; color: var(--text-soft); font: 400 11px/1.5 var(--font-sans); }
.result-detail { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.result-copy h2 { margin: 0; font: 600 24px/1.3 var(--font-serif); letter-spacing: 0; }
#result-body { margin: 0; color: var(--text-soft); font: 400 14px/1.7 var(--font-serif); }
.result-metrics { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); margin: 8px 0 0; border-block: 1px solid var(--line); }
.result-metrics:empty { display: none; }
.result-metrics div { padding: 16px; border-right: 1px solid var(--line); }
.result-metrics div:last-child { border: 0; }
.result-metrics dt { color: var(--text-soft); font: 400 11px/1.5 var(--font-sans); }
.result-metrics dd { margin: 8px 0 0; color: var(--mint); font: 600 14px/1.2 var(--font-mono); }
.result-extra { margin: 0; color: var(--text-soft); font: 400 11px/1.5 var(--font-sans); }
.result-extra:empty { display: none; }
.result-echo { margin: 0; padding: 0; color: var(--text-soft); font: 400 14px/1.7 var(--font-serif); }
.result-echo:empty { display: none; }
.result-actions { margin-top: auto; padding-top: 8px; gap: 16px; align-items: center; }
.result-actions button { min-height: 48px; padding: 0 24px; font: 600 14px/1 var(--font-serif); }
#result-retry { border: 0; background: transparent; }
#result-next { min-width: 168px; }
.result-layer[data-success="false"] .result-kicker { color: var(--danger); }
.result-layer[data-success="false"] #result-retry { background: var(--gold); color: #17130b; }
#game-container:has(.result-layer.is-visible) > :not(.result-layer) { visibility: hidden; pointer-events: none; }
.archive-layer { padding: 48px; }
.archive-layer > .eyebrow,.archive-layer > h2,.archive-layer > .relationship-list,.archive-layer > .archive-note { max-width: 1120px; margin-left: 0; }
.archive-layer h2 { margin: 0 0 24px; font: 600 20px/1.2 var(--font-serif); letter-spacing: 0; }
.archive-layer > .eyebrow,.archive-note { display: none; }
.archive-close { top: 24px; right: 24px; width: 44px; height: 44px; }
.relationship-list { gap: 24px; }
.relationship-item { padding: 24px; border-radius: 0; border-width: 0 0 1px; background: transparent; }
.relationship-item h3 { font: 600 16px/1.4 var(--font-serif); }
.relationship-item header span { font: 500 10px/1.2 var(--font-mono); }
.relationship-item p { font: 400 14px/1.7 var(--font-serif); }
.archive-note { margin-top: 24px; font: 400 11px/1.5 var(--font-sans); text-align: left; }
.reset-confirm { width: min(520px,calc(100vw - 48px)); padding: 24px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #111116; }
.reset-confirm::backdrop { background: rgba(0,0,0,.88); }
.reset-confirm h2 { margin: 0 0 16px; font: 600 18px/1.3 var(--font-serif); }
.reset-confirm p { font: 400 14px/1.7 var(--font-serif); color: var(--text-soft); }
.reset-confirm>div { display: flex; justify-content: flex-end; gap: 16px; margin-top: 24px; }
.reset-confirm button { min-height: 48px; padding: 0 16px; font-size: 14px; border-radius: 6px; }
#reset-confirm-button { color: var(--danger); border: 1px solid var(--danger); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

[hidden] { display: none !important; }
.story-tools { position: absolute; top: max(4px,env(safe-area-inset-top)); right: max(24px,calc(env(safe-area-inset-right) + 10px)); display: flex; gap: 8px; z-index: 80; }
.story-tools button { width: 44px; height: 52px; min-height: 52px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 0; background: none; color: var(--text-soft); font: 500 11px/1 var(--font-serif); }
.story-tools svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.story-tools button[aria-pressed="true"] { color: var(--gold); }
.story-skip-status { position: absolute; left: max(48px,15vw); bottom: 192px; display: grid; gap: 4px; min-height: 44px; padding: 0; color: var(--text); text-align: left; font: 600 13px/1.2 var(--font-serif); background: none; border: 0; }
.story-skip-status small { font: 400 10px/1.2 var(--font-sans); color: var(--text-soft); }
.story-restore { position: fixed; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; z-index: 100; }
.story-ui-hidden .status-hud,.story-ui-hidden .global-back,.story-ui-hidden .archive-button,.story-ui-hidden .dialogue-wrap,.story-ui-hidden .story-tools,.story-ui-hidden .story-skip-status { visibility: hidden; }
.story-history { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px 48px; border: 0; color: var(--text); background: #000; }
.story-history::backdrop { background: #000; }
.story-history[open] { display: flex; flex-direction: column; }
.story-history header { display: flex; justify-content: space-between; align-items: center; flex: 0 0 48px; }
.story-history h2 { font: 600 22px/1.3 var(--font-serif); margin: 0; }
.story-history header button { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--text-soft); font-size: 28px; }
.story-history-list { width: min(880px,100%); margin: 24px auto 0; min-height: 0; overflow: auto; padding: 0 16px; }
.story-history-list article { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.history-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 16px; }
.story-history-list h3 { margin: 0 0 8px; color: var(--gold); font: 600 14px/1.4 var(--font-serif); }
.story-history-list p { margin: 0; font: 400 16px/1.8 var(--font-serif); }
.story-history-list .history-narration { padding-left: 60px; }
.dialogue-wrap { cursor: pointer; min-height: 88px; }
.dialogue-name { user-select: text; }
.result-copy .result-actions { gap: 16px; }
.result-copy h2 { font-size: 24px; }
.game-screen.is-active { overflow: auto; scrollbar-color: #666 #000; }
.banquet-stage,.route-board { position: relative; flex: 0 0 auto; transform: none; }
.route-board { width: min(1120px,100%); height: 580px; }
.route-lines { width: 100%; height: 100%; }
.route-log { bottom: 0; max-width: 100%; width: max-content; }
.route-node[data-route-node="start"] { left: 1% !important; top: 70% !important; }
.route-node[data-route-node="corridor"] { left: 20% !important; top: 45% !important; }
.route-node[data-route-node="garden"] { left: 20% !important; top: 79% !important; }
.route-node[data-route-node="medicine"] { left: 40% !important; top: 20% !important; }
.route-node[data-route-node="star"] { left: 42% !important; top: 62% !important; }
.route-node[data-route-node="cold"] { left: 64% !important; top: 31% !important; }
.route-node[data-route-node="west"] { left: 66% !important; top: 75% !important; }
.route-node[data-route-node="gate"] { left: 85% !important; top: 48% !important; }
.route-node { width: 14%; }
.route-node:not(.is-available):not(.is-current):not(.is-visited) { color: var(--text-soft); }
.attendant-choice small,.task-detail,.task-assignee small { color: var(--text-soft); }
.banquet-stage { max-width: 100%; }

@media (max-width: 1000px), (max-height: 560px) {
  .global-back { top: max(4px,env(safe-area-inset-top)); }
  .global-back { left: max(8px,env(safe-area-inset-left)); }
  .hud-left { gap: 6px; margin-left: 46px; }
  .hud-left .archive-button { flex-basis: 44px; }
  .status-hud { min-height: 44px; padding: 0 max(14px,env(safe-area-inset-right)); }
  .hud-time span,.hud-time strong { font-size: 12px; }
  .hud-values span { font-size: 10px; }
  .hud-values b { font-size: 13px; }
  .hub-view { padding: 24px; gap: 24px; overflow: auto; }
  .hub-copy { flex: 0 0 auto; }
  .hub-copy h1 { font-size: 17px; }
  .hub-copy .eyebrow { font-size: 8.5px; }
  .hub-lead,.hub-progress { font-size: 10px; }
  .hub-progress { margin-top: 16px; }
  .chapter-list { width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .chapter-entry { min-height: 112px; padding: 12px; grid-template-columns: 24px 1fr; gap: 8px; }
  .chapter-entry.is-current { padding: 11px; }
  .chapter-name,.chapter-number { font-size: 13px; }
  .chapter-name small { font-size: 10px; }
  .intro-copy h2 { font-size: 22px; letter-spacing: 5px; }
  .intro-en { font-size: 8.5px; letter-spacing: 5px; }
  .intro-title { font-size: 10px; letter-spacing: 2px; }
  .dialogue-wrap { left: max(24px,calc(env(safe-area-inset-left) + 14px)); bottom: max(56px,calc(env(safe-area-inset-bottom) + 24px)); width: min(72vw,560px); }
  .dialogue-name { font-size: 16px; margin-bottom: 12px; }
  #dialogue-text { font-size: 18px; }
  .dialogue-box small { width: 10px; height: 14px; margin-left: 10px; }
  .dialogue-box small::after { width: 10px; height: 14px; }
  .story-tools { top: max(4px,env(safe-area-inset-top)); right: max(14px,env(safe-area-inset-right)); gap: 6px; }
  .story-tools button { height: 44px; min-height: 44px; font-size: 10px; }
  .story-tools svg { width: 22px; height: 22px; }
  .story-skip-status { left: 24px; bottom: 12px; font-size: 12px; }
  .story-skip-status small { font-size: 9px; }
  .story-history { padding: 16px 24px; }
  .story-history h2 { font-size: 18px; }
  .story-history-list { margin-top: 16px; }
  .story-history-list h3 { font-size: 13px; }
  .story-history-list p { font-size: 14px; }
  #game-container[data-view="play"] .global-back { top: 4px; }
  .play-header { top: 8px; left: 64px; width: calc(100% - 244px); }
  .play-header .eyebrow { font-size: 8.5px; }
  .play-header h2 { font-size: 17px; }
  #game-subtitle { display: none; }
  .play-objective { margin-top: 16px; gap: 8px; }
  .play-objective span,.play-progress span { font-size: 10px; }
  .play-objective p { font-size: 13px; white-space: nowrap; }
  .play-progress { margin-top: 12px; gap: 8px; }
  .play-progress strong { font-size: 13px; }
  .play-tools { top: 4px; right: 64px; gap: 8px; }
  .game-screen,.game-screen.has-submit { top: 146px; left: max(14px,env(safe-area-inset-left)); right: max(14px,env(safe-area-inset-right)); bottom: 12px; padding: 0 0 72px; }
  .game-screen.is-active { display: block; overflow: auto; scroll-padding-bottom: 76px; }
  .game-screen.has-submit::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #000; z-index: 4; pointer-events: none; }
  .game-submit { position: fixed; right: max(14px,env(safe-area-inset-right)); bottom: 12px; min-height: 44px; z-index: 5; font-size: 13px; }
  .ritual-board,.trace-board,.dispatch-board { width: 100%; max-height: none; overflow: visible; padding: 4px; }
  .section-label { font-size: 10px; margin-bottom: 16px; }
  .sequence-slot { min-height: 64px; padding: 12px; font-size: 13px; }
  .sequence-slots { margin-bottom: 16px; }
  .choice-line { min-height: 52px; padding: 12px; font-size: 13px; }
  .law-actions { gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .banquet-stage,.game-screen.has-submit .banquet-stage { position: relative; inset: auto; width: 100%; height: 340px; margin: 0; transform: none; }
  .person-pool { top: 0; width: 100%; gap: 8px; flex-wrap: nowrap; }
  .person-choice { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .seat-node { width: 100px; min-height: 44px; font-size: 13px; }
  .seat-node[data-seat="emperor"] { left: calc(50% - 50px) !important; top: 64px !important; }
  .seat-node[data-seat="r1"] { left: calc(75% - 50px) !important; top: 120px !important; }
  .seat-node[data-seat="r2"] { left: calc(85% - 50px) !important; top: 184px !important; }
  .seat-node[data-seat="r3"] { left: calc(75% - 50px) !important; top: 248px !important; }
  .seat-node[data-seat="south"] { left: calc(50% - 50px) !important; top: 296px !important; }
  .seat-node[data-seat="l2"] { left: calc(15% - 50px) !important; top: 184px !important; }
  .banquet-table { left: calc(50% - 85px); top: 132px; width: 170px; height: 136px; font-size: 17px; }
  .trace-chain { gap: 16px; margin: 16px 0; }
  .trace-step { min-height: 64px; padding: 8px; font-size: 13px; }
  .trace-step:not(:last-child)::after { right: -14px; }
  .trace-token { min-height: 44px; font-size: 13px; }
  .trace-hint { font-size: 13px; }
  .dispatch-board { grid-template-columns: 210px minmax(0,1fr); gap: 16px; }
  .attendant-list,.task-list { grid-template-rows: repeat(3,minmax(96px,1fr)); }
  .attendant-choice,.task-row { min-height: 96px; padding: 12px; }
  .attendant-choice { padding-right: 72px; }
  .attendant-choice strong,.task-name,.task-assignee strong { font-size: 13px; }
  .attendant-choice small,.task-detail { font-size: 10px; }
  .attendant-choice::after { right: 8px; width: auto; height: auto; padding: 4px; border-radius: 4px; font-size: 10px; content: "可选择"; }
  .attendant-choice.is-selected::after { content: "待安排"; }
  .attendant-choice.is-used::after { color: var(--mint); background: transparent; font-size: 10px; content: "已安排"; }
  .task-row { grid-template-columns: minmax(80px,1fr) 92px; gap: 8px; }
  .task-name { grid-column: 1; }
  .task-detail { grid-column: 1; grid-row: 2; }
  .task-assignee { grid-column: 2; grid-row: 1 / 3; padding: 8px; }
  .route-board { position: relative; inset: auto; width: 100%; height: 340px; margin: 0; transform: none; }
  .route-node { min-height: 44px; font-size: 13px; }
  .route-log { bottom: -40px; font-size: 13px; }
  #game-5 { padding-bottom: 60px; }
  .route-lines { width: 100%; height: 100%; }
  .lantern-game { width: 100%; height: 320px; padding: 4px 16px; grid-template-rows: 56px 1fr 24px 44px; }
  .lantern-status { grid-template-columns: 130px 1fr 48px; }
  .lantern-status div:first-child span { font-size: 10px; }
  .lantern-status div:first-child strong,.lantern-status p,.lantern span { font-size: 13px; }
  .lantern { min-height: 136px; }
  .lantern i { width: 56px; height: 68px; }
  .lantern-play { min-height: 44px; font-size: 13px; }
  .result-layer { padding: 14px; }
  .result-copy { width: calc(100vw - 28px); min-height: 0; max-height: calc(100dvh - 28px); grid-template-columns: 26% minmax(0,1fr); padding: 0; }
  .result-summary,.result-detail { padding: 16px; gap: 12px; }
  .result-copy h2 { font-size: 20px; }
  #result-body,.result-echo { font-size: 13px; }
  .result-summary > span,#result-chapter,.result-extra,.result-metrics dt { font-size: 10px; }
  .result-metrics div { padding: 12px; }
  .result-metrics dd { font-size: 13px; }
  .result-copy .result-actions { gap: 12px; }
  .result-actions button { min-height: 44px; padding: 0 16px; font-size: 13px; }
  .archive-layer { padding: 24px; overflow: auto; }
  .archive-layer h2 { font-size: 17px; }
  .relationship-list { gap: 16px; }
  .relationship-item { padding: 16px; }
  .relationship-item h3 { font-size: 15px; }
  .relationship-item p { font-size: 13px; }
  .archive-note { font-size: 10px; }
}
