:root {
  color-scheme: dark;
  --bg: #090b0a;
  --surface: #101512;
  --surface-2: #171d19;
  --glass: rgba(16, 21, 18, .84);
  --paper: #e9dfca;
  --ink: #f7f0e1;
  --muted: #a99f8d;
  --faint: #6e6a61;
  --line: rgba(233, 223, 202, .13);
  --line-strong: rgba(233, 223, 202, .25);
  --copper: #d88945;
  --ember: #ff6b24;
  --gold: #e8bd69;
  --bronze: #4e9b84;
  --success: #70d4a7;
  --danger: #ec7869;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
  --safe-top: max(10px, env(safe-area-inset-top));
  --safe-bottom: max(14px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior: none;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 8%, rgba(209, 108, 40, .1), transparent 32rem),
    radial-gradient(circle at 9% 88%, rgba(45, 128, 104, .1), transparent 28rem),
    var(--bg);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

button { font: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.app-shell { width: min(1600px, 100%); min-height: 100dvh; margin: 0 auto; display: grid; grid-template-rows: auto 1fr; position: relative; isolation: isolate; }

.topbar {
  min-height: 82px;
  padding: var(--safe-top) clamp(14px, 2.1vw, 30px) 10px;
  display: grid;
  grid-template-columns: minmax(180px, .62fr) minmax(360px, 1.3fr) auto;
  align-items: center;
  gap: 22px;
  background: rgba(8, 10, 9, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 100;
}

.brand { padding: 0; display: flex; align-items: center; gap: 12px; border: 0; color: var(--ink); background: none; cursor: pointer; text-align: left; }
.brand-sigil { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; position: relative; border: 1px solid rgba(232,189,105,.28); border-radius: 50% 50% 44% 44%; background: radial-gradient(circle at 50% 70%, rgba(255,142,47,.35), rgba(216,137,69,.08) 46%, rgba(255,255,255,.03) 47%); box-shadow: inset 0 0 0 5px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.24); }
.brand-sigil::before { content: ""; width: 13px; height: 25px; border-radius: 60% 40% 55% 45%; background: linear-gradient(#f7d77a, #ff7427 52%, #c93c17); transform: rotate(6deg); box-shadow: 0 0 13px rgba(255,101,32,.7); clip-path: polygon(48% 0, 90% 48%, 78% 100%, 19% 94%, 5% 46%); }
.brand-sigil i { position: absolute; width: 8px; height: 15px; border-radius: 50%; background: #fff4a7; bottom: 11px; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; font-size: 19px; letter-spacing: .13em; white-space: nowrap; }
.brand-copy small { display: block; margin-top: 3px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .1em; white-space: nowrap; }

.chapter-rail { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: center; gap: 7px; }
.chapter-node { min-width: 0; min-height: 50px; padding: 8px 11px; display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 14px; color: var(--faint); transition: color .25s ease, background .25s ease, border-color .25s ease; }
.chapter-node > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 850; }
.chapter-node strong { display: block; font-size: 13px; letter-spacing: .08em; }
.chapter-node small { display: block; margin-top: 2px; overflow: hidden; color: inherit; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.chapter-node.active { color: var(--ink); border-color: rgba(216,137,69,.35); background: rgba(216,137,69,.09); }
.chapter-node.active > span { color: #29180e; border-color: var(--gold); background: var(--gold); }
.chapter-node.done { color: #a7dac8; }
.chapter-node.done > span { border-color: rgba(78,155,132,.42); background: rgba(78,155,132,.14); }
.rail-line { height: 1px; background: var(--line); }

.hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.timer-chip { min-height: 46px; padding: 6px 11px; display: flex; align-items: stretch; gap: 10px; border: 1px solid rgba(78,155,132,.3); border-radius: 14px; background: rgba(78,155,132,.06); }
.timer-cell { min-width: 55px; display: grid; align-content: center; gap: 2px; }
.timer-cell small { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.timer-cell strong { color: var(--ink); font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.timer-cell.elapsed strong { color: var(--success); font-size: 14px; }
.timer-divider { width: 1px; background: var(--line); }
.score-chip { min-height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(232,189,105,.22); border-radius: 14px; color: var(--gold); background: rgba(232,189,105,.055); }
.score-chip strong { min-width: 38px; font-family: ui-monospace, monospace; font-size: 14px; letter-spacing: .08em; }
.score-gem { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 12px rgba(232,189,105,.55); }
.round-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.035); cursor: pointer; transition: background .18s ease, transform .18s ease; }
.language-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(232,189,105,.3); border-radius: 14px; color: var(--gold); background: rgba(232,189,105,.055); cursor: pointer; font-family: ui-monospace, monospace; font-size: 12px; font-weight: 900; }
.round-button:hover { background: rgba(255,255,255,.08); }
.round-button:active { transform: scale(.95); }
.round-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.game-root { min-height: 0; position: relative; }

.home-screen {
  min-height: calc(100dvh - 82px);
  padding: clamp(26px, 5vw, 72px) clamp(18px, 5vw, 72px) var(--safe-bottom);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  overflow: hidden;
  position: relative;
}

.home-screen::before { content: ""; position: absolute; inset: 0; z-index: -3; background-image: linear-gradient(90deg, rgba(7,9,8,.98) 0%, rgba(7,9,8,.88) 35%, rgba(7,9,8,.35) 76%, rgba(7,9,8,.42) 100%), linear-gradient(0deg, rgba(7,9,8,.8), transparent 45%), url('../iron-chronicle/assets/hero-v2.jpg'); background-size: cover; background-position: center; }
.home-screen::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 74% 52%, transparent 0 12%, rgba(255,103,35,.09) 22%, transparent 42%); pointer-events: none; }
.home-content { align-self: center; max-width: 760px; }
.version-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.version-tag::before { content: ""; width: 42px; height: 1px; background: currentColor; }
.home-screen h1 { margin: 18px 0 17px; font-size: clamp(55px, 8.4vw, 118px); line-height: .85; letter-spacing: -.07em; text-wrap: balance; }
.home-screen h1 span { display: block; margin-top: .17em; color: transparent; font-size: .57em; letter-spacing: .21em; -webkit-text-stroke: 1px rgba(247,240,225,.72); text-indent: .09em; }
.home-lead { max-width: 620px; margin: 0; color: #d6cbb9; font-size: clamp(16px, 1.8vw, 21px); line-height: 1.8; text-wrap: balance; }
.home-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 11px; }

.primary-action, .secondary-action, .ghost-action {
  min-height: 58px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 850;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.primary-action { border: 1px solid #f0c779; color: #24150d; background: linear-gradient(135deg, #f0c779, #cf7938); box-shadow: 0 16px 38px rgba(204,111,48,.22), inset 0 1px rgba(255,255,255,.42); }
.secondary-action { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(255,255,255,.055); }
.ghost-action { min-height: 48px; padding-inline: 16px; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.primary-action:hover, .secondary-action:hover, .ghost-action:hover { filter: brightness(1.09); }
.primary-action:active, .secondary-action:active, .ghost-action:active { transform: scale(.98); }
.primary-action svg, .secondary-action svg, .ghost-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-footnote { margin-top: 18px; color: #8d8577; font-size: 12px; }

.case-file { width: min(100%, 460px); justify-self: end; padding: clamp(21px, 3vw, 32px); border: 1px solid var(--line-strong); border-radius: 3px 24px 3px 24px; background: linear-gradient(145deg, rgba(22,28,24,.88), rgba(10,13,11,.94)); box-shadow: var(--shadow); backdrop-filter: blur(15px); position: relative; }
.case-file::before { content: "CASE · 008"; position: absolute; right: 18px; top: 15px; color: rgba(232,189,105,.42); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .15em; }
.case-file h2 { margin: 0 0 19px; font-size: 19px; letter-spacing: .08em; }
.case-row { min-height: 76px; padding: 13px 0; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.case-index { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-family: ui-monospace, monospace; font-size: 11px; }
.case-row strong { display: block; font-size: 14px; }
.case-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.case-row b { color: var(--bronze); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; }

.screen { min-height: calc(100dvh - 82px); padding: 16px clamp(12px, 2.3vw, 34px) var(--safe-bottom); display: grid; grid-template-rows: auto 1fr; gap: 13px; }
.mission-strip { min-height: 70px; padding: 12px 16px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--line); background: rgba(13,17,14,.88); backdrop-filter: blur(15px); }
.mission-number { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid rgba(232,189,105,.28); border-radius: 50%; color: var(--gold); font-family: ui-monospace, monospace; font-size: 11px; }
.mission-copy strong { display: block; font-size: 15px; letter-spacing: .05em; }
.mission-copy span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.mission-meta { text-align: right; color: var(--gold); font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; }

.stage { min-height: 600px; overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; }
.stage-main { min-height: 600px; position: relative; overflow: hidden; }
.stage-panel { padding: 20px; border-left: 1px solid var(--line); background: rgba(12,15,13,.9); }
.panel-kicker { color: var(--gold); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.stage-panel h2 { margin: 9px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.stage-panel > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.forge-environment { background-image: linear-gradient(90deg, rgba(10,12,10,.2), rgba(10,12,10,.7)), linear-gradient(0deg, rgba(9,11,10,.88), transparent 55%), url('../iron-chronicle/assets/hero-v2.jpg'); background-size: cover; background-position: center; }
.forge-environment::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 62% 58%, rgba(255,94,24,.18), transparent 26%); }

.charge-layout { min-height: 600px; padding: clamp(25px, 5vw, 64px); display: grid; grid-template-columns: 1fr minmax(230px, 320px) 1fr; align-items: end; gap: clamp(18px, 3vw, 42px); position: relative; z-index: 2; }
.material-card { min-height: 180px; padding: 20px; border: 1px solid var(--line-strong); color: var(--ink); background: rgba(9,12,10,.72); backdrop-filter: blur(12px); cursor: pointer; text-align: left; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.material-card:hover { transform: translateY(-4px); border-color: rgba(232,189,105,.5); background: rgba(20,24,20,.86); }
.material-card:active { transform: translateY(-1px) scale(.99); }
.material-visual { height: 76px; display: flex; align-items: center; justify-content: center; position: relative; }
.ore-rock { width: 78px; height: 58px; background: linear-gradient(145deg, #738078, #343a36 52%, #171b19); clip-path: polygon(15% 30%, 37% 3%, 73% 9%, 98% 44%, 79% 91%, 39% 100%, 2% 72%); box-shadow: inset 12px 10px rgba(255,255,255,.07); filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); }
.ore-rock::after { content: ""; position: absolute; width: 19px; height: 11px; top: 29px; left: calc(50% + 2px); border-radius: 50%; background: #b78a63; transform: rotate(-20deg); box-shadow: -29px 12px #8f735c, 23px 15px #8e6f57; }
.charcoal-pile { width: 88px; height: 58px; position: relative; filter: drop-shadow(0 12px 14px rgba(0,0,0,.45)); }
.charcoal-pile i { position: absolute; width: 38px; height: 30px; border-radius: 7px; background: linear-gradient(140deg, #373733, #111211); box-shadow: inset 5px 5px rgba(255,255,255,.035); transform: rotate(var(--r)); left: var(--x); top: var(--y); }
.material-card strong { display: block; margin-top: 11px; font-size: 17px; }
.material-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.material-card.recommended { border-color: rgba(232,189,105,.46); box-shadow: 0 0 0 1px rgba(232,189,105,.08), 0 20px 45px rgba(0,0,0,.25); }
.material-card.recommended::after { content: "下一层"; float: right; margin-top: 10px; padding: 5px 8px; border-radius: 999px; color: #24160d; background: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
html[lang="en"] .material-card.recommended::after { content: "NEXT LAYER"; }

.furnace-cutaway { width: 100%; height: 330px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.furnace-body { width: 230px; height: 305px; position: relative; border: 9px solid #51362b; border-radius: 48% 48% 20% 20% / 24% 24% 12% 12%; background: repeating-linear-gradient(7deg, #81604e 0 27px, #49342b 28px 34px); box-shadow: inset 0 0 45px rgba(0,0,0,.56), 0 22px 45px rgba(0,0,0,.38); }
.furnace-core { position: absolute; left: 50%; bottom: 32px; translate: -50% 0; width: 58%; height: 68%; padding: 10px; display: flex; flex-direction: column-reverse; gap: 5px; overflow: hidden; border: 7px solid #2f211c; border-radius: 35px 35px 18px 18px; background: linear-gradient(#17100e, #2a1510); }
.charge-layer { min-height: 31px; display: grid; place-items: center; border-radius: 8px; color: #f4dfbe; font-size: 9px; font-weight: 850; letter-spacing: .08em; animation: layer-in .35s cubic-bezier(.2,.9,.3,1.2); }
.charge-layer.ore { background: linear-gradient(90deg, #3e4944, #7c7568, #39423e); }
.charge-layer.coal { background: repeating-linear-gradient(135deg, #111 0 8px, #292923 9px 14px); }
@keyframes layer-in { from { transform: translateY(-40px); opacity: 0; } }
.empty-layer { min-height: 31px; border: 1px dashed rgba(255,255,255,.15); border-radius: 8px; }
.charge-counter { position: absolute; left: 50%; bottom: -15px; translate: -50% 0; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #111511; font-family: ui-monospace, monospace; font-size: 10px; white-space: nowrap; }

.sequence-list { margin: 18px 0 0; padding: 0; list-style: none; }
.sequence-list li { min-height: 48px; padding: 8px 0; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sequence-list li:first-child { border-top: 0; }
.sequence-list .step-dot { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: ui-monospace, monospace; font-size: 9px; }
.sequence-list li.done { color: var(--success); }
.sequence-list li.current { color: var(--ink); }
.sequence-list li.current .step-dot { color: #24160d; border-color: var(--gold); background: var(--gold); }
.sequence-list b { color: var(--gold); font-size: 9px; }

.feedback-line { min-height: 45px; margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--bronze); color: #b9d8cd; background: rgba(78,155,132,.08); font-size: 11px; line-height: 1.5; }
.feedback-line.bad { border-color: var(--danger); color: #f1b2aa; background: rgba(236,120,105,.08); }

.heat-stage { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,390px); background: radial-gradient(circle at 38% 58%, rgba(255,92,24,.23), transparent 27%), linear-gradient(120deg, #161311, #080a09); }
.heat-visual { min-height: 600px; display: grid; place-items: center; position: relative; overflow: hidden; }
.heat-visual::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: url('../iron-chronicle/assets/hero-v2.jpg'); background-size: cover; background-position: 60% center; filter: saturate(.55) brightness(.36); }
.heat-furnace { width: min(380px, 62vw); height: min(470px, 68vw); max-height: 470px; position: relative; z-index: 2; border: 12px solid #573a2d; border-radius: 46% 46% 19% 19% / 23% 23% 11% 11%; background: repeating-linear-gradient(6deg, #735447 0 31px, #3c2b25 32px 39px); box-shadow: inset 0 0 70px rgba(0,0,0,.7), 0 28px 70px rgba(0,0,0,.45); }
.heat-mouth { position: absolute; left: 50%; bottom: 41px; translate: -50% 0; width: 62%; height: 48%; overflow: hidden; border: 10px solid #2b1c18; border-radius: 28px 28px 40% 40%; background: #0a0706; }
.heat-flame { position: absolute; left: 6%; right: 6%; bottom: -15%; height: var(--flame-height, 70%); border-radius: 50% 50% 15% 15%; background: radial-gradient(ellipse at 50% 78%, #fff6b5 0 14%, #ffc94d 15% 34%, #ff6d24 35% 66%, rgba(169,37,12,.5) 68%, transparent 72%); filter: drop-shadow(0 0 22px #ff6220); transform-origin: bottom; animation: flame-dance .8s ease-in-out infinite alternate; transition: height .15s ease, filter .15s ease; }
@keyframes flame-dance { from { transform: scale(.94, 1); } to { transform: scale(1.05, 1.08); } }
.spark-field { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.spark-field i { position: absolute; left: var(--x); bottom: 25%; width: 3px; height: 3px; border-radius: 50%; background: #ffd16c; animation: spark-rise var(--d) ease-out infinite; animation-delay: var(--delay); }
@keyframes spark-rise { from { transform: translate(0,0); opacity: 0; } 15% { opacity: 1; } to { transform: translate(var(--dx), -250px); opacity: 0; } }

.heat-console { padding: clamp(20px,3vw,34px); border-left: 1px solid var(--line); background: rgba(10,13,11,.96); }
.temperature-readout { margin: 16px 0 10px; display: flex; align-items: flex-end; gap: 9px; }
.temperature-readout strong { font-family: ui-monospace, monospace; font-size: clamp(52px,7vw,78px); line-height: .9; letter-spacing: -.08em; }
.temperature-readout span { padding-bottom: 7px; color: var(--muted); font-size: 17px; }
.temperature-readout strong.in-zone { color: var(--gold); text-shadow: 0 0 28px rgba(232,189,105,.25); }
.temperature-readout strong.too-hot { color: var(--danger); }
.temp-caption { min-height: 22px; color: var(--muted); font-size: 12px; }
.temp-gauge { height: 270px; margin: 18px 0; display: grid; grid-template-columns: 35px 1fr; gap: 13px; }
.gauge-labels { display: flex; flex-direction: column; justify-content: space-between; color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; text-align: right; }
.gauge-track { position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(to top, #283d42 0 30%, #c8783d 56%, #e6b966 70%, #a93c2d 100%); }
.gauge-track::before { content: "还原区间"; position: absolute; left: 0; right: 0; bottom: 49%; height: 17%; display: grid; place-items: center; border-block: 1px solid rgba(255,255,255,.55); color: #27180e; background: rgba(255,239,178,.58); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
html[lang="en"] .gauge-track::before { content: "REDUCTION ZONE"; }
.gauge-needle { position: absolute; left: 0; right: 0; bottom: var(--needle, 22%); height: 3px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); transition: bottom .08s linear; }
.gauge-needle::after { content: ""; position: absolute; right: 4px; top: -5px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.stability { margin: 17px 0; }
.stability-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.stability-head b { color: var(--gold); font-family: ui-monospace, monospace; }
.stability-bar { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.stability-bar i { display: block; width: var(--stable, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bronze), var(--gold)); transition: width .15s linear; }
.bellows-button { width: 100%; min-height: 66px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(232,189,105,.34); color: #27170d; background: linear-gradient(135deg, #edc06c, #c86f35); cursor: pointer; font-weight: 900; }
.bellows-button:active { transform: scale(.985); }
.bellows-button span { font-size: 18px; }
.bellows-button small { font-size: 10px; letter-spacing: .1em; }
.science-note { margin-top: 14px; padding: 12px 13px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.025); font-size: 10px; line-height: 1.6; }
.science-note strong { color: var(--bronze); }

.hammer-stage { padding: clamp(22px,4vw,54px); display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,370px); align-items: center; gap: clamp(24px,4vw,58px); background: radial-gradient(circle at 31% 48%, rgba(255,101,26,.24), transparent 27%), linear-gradient(135deg, #211813, #090c0a 68%); }
.anvil-scene { min-height: 520px; isolation: isolate; overflow: hidden; position: relative; border: 1px solid rgba(232,189,105,.12); background: radial-gradient(circle at 50% 52%, rgba(255,112,31,.2), transparent 23%), linear-gradient(180deg, rgba(39,27,20,.32), rgba(7,9,8,.16)); }
.anvil-scene::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .46; background: repeating-linear-gradient(90deg, transparent 0 92px, rgba(232,189,105,.055) 93px 94px), repeating-linear-gradient(0deg, transparent 0 68px, rgba(232,189,105,.045) 69px 70px); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.forge-haze { position: absolute; left: 50%; top: 45%; width: 360px; height: 230px; z-index: -1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,105,30,.2), rgba(255,68,18,.06) 48%, transparent 72%); filter: blur(8px); }
.anvil-shadow { position: absolute; left: 50%; bottom: 45px; z-index: 0; width: 390px; height: 62px; translate: -50% 0; border-radius: 50%; background: rgba(0,0,0,.52); filter: blur(13px); }
.anvil-shape { width: 370px; height: 218px; position: absolute; z-index: 2; left: 50%; top: 54%; translate: -50% 0; filter: drop-shadow(0 27px 17px rgba(0,0,0,.5)); }
.anvil-face { position: absolute; inset: 0 0 auto; height: 58px; border-radius: 8px 11px 18px 12px; background: linear-gradient(165deg, #b7c0bc 0 12%, #66716d 31%, #323a37 74%, #1d2421); clip-path: polygon(0 12%, 68% 12%, 100% 0, 91% 44%, 68% 75%, 12% 75%); box-shadow: inset 0 8px rgba(255,255,255,.08); }
.anvil-face::after { content: ""; position: absolute; left: 9%; top: 6px; width: 59%; height: 5px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,.44), transparent); }
.anvil-waist { position: absolute; left: 31%; top: 45px; width: 39%; height: 125px; background: linear-gradient(90deg, #252c29, #626c68 45%, #28302d); clip-path: polygon(9% 0, 91% 0, 72% 48%, 88% 100%, 12% 100%, 28% 48%); }
.anvil-base { position: absolute; left: 20%; bottom: 0; width: 60%; height: 48px; border-radius: 11px 11px 3px 3px; background: linear-gradient(160deg, #626b67, #222926 64%); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.iron-piece { --iron-x: 1; --iron-y: 1; width: 218px; height: 34px; position: absolute; z-index: 4; left: 50%; top: calc(54% - 27px); translate: -50% 0; border: 1px solid rgba(255,180,77,.36); border-radius: 3px; background: radial-gradient(ellipse at 36% 22%, rgba(255,222,116,.82), transparent 16%), radial-gradient(ellipse at 72% 70%, rgba(100,25,16,.92), transparent 28%), linear-gradient(180deg, #d95c27 0 18%, #822b1d 43%, #351917 78%, #171313); box-shadow: 0 0 12px rgba(255,130,42,.7), 0 0 34px rgba(255,68,16,.32), inset 0 -7px rgba(18,12,11,.45); clip-path: polygon(1% 24%, 7% 7%, 29% 2%, 46% 9%, 68% 3%, 94% 9%, 100% 32%, 96% 82%, 72% 96%, 48% 91%, 23% 100%, 3% 82%); transform: rotate(-1deg) scaleX(var(--iron-x)) scaleY(var(--iron-y)); transform-origin: center bottom; transition: transform .24s cubic-bezier(.2,.76,.2,1), filter .16s ease; }
.iron-piece::before { content: ""; position: absolute; inset: 4px 12px 7px; opacity: .7; background: radial-gradient(circle at 14% 56%, #201616 0 2px, transparent 3px), radial-gradient(circle at 47% 29%, #ef7937 0 2px, transparent 3px), radial-gradient(circle at 78% 63%, #251516 0 3px, transparent 4px), repeating-linear-gradient(105deg, transparent 0 22px, rgba(34,16,15,.68) 23px 25px); }
.iron-piece i { position: absolute; left: 18px; right: 18px; bottom: -7px; height: 9px; border-radius: 50%; background: rgba(26,11,8,.58); filter: blur(4px); }
.hammer-visual { --hammer-scale: 1; --hammer-lift: -92px; position: absolute; z-index: 7; left: 50%; top: calc(54% - 250px); width: 152px; height: 226px; transform-origin: 50% 8%; transform: translateX(-50%) translateY(var(--hammer-lift)) rotate(-18deg) scale(var(--hammer-scale)); will-change: transform; }
.hammer-visual.hit { animation: hammer-strike .4s cubic-bezier(.22,.72,.12,1) both; }
@keyframes hammer-strike { 0% { transform: translateX(-50%) translateY(var(--hammer-lift)) rotate(-18deg) scale(var(--hammer-scale)); } 24% { transform: translateX(-50%) translateY(calc(var(--hammer-lift) - 27px)) rotate(-24deg) scale(var(--hammer-scale)); } 74%,100% { transform: translateX(-50%) translateY(0) rotate(0deg) scale(var(--hammer-scale)); } }
.hammer-head { position: absolute; left: 10px; top: 172px; width: 132px; height: 54px; border-radius: 8px 6px 8px 8px; background: linear-gradient(150deg, #aeb7b3 0 10%, #626c68 30%, #2a302e 76%, #161b19); box-shadow: inset 7px 7px rgba(255,255,255,.08), 0 8px 12px rgba(0,0,0,.36); }
.hammer-head::before { content: ""; position: absolute; left: -12px; top: 5px; width: 19px; height: 44px; border-radius: 5px 2px 2px 5px; background: linear-gradient(90deg, #353c39, #89928e); }
.hammer-head::after { content: ""; position: absolute; right: -22px; top: 8px; width: 29px; height: 38px; background: linear-gradient(90deg, #555f5b, #262d2a); clip-path: polygon(0 0, 100% 26%, 100% 74%, 0 100%); }
.hammer-head i { position: absolute; left: 12px; right: 18px; top: 7px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,.5), transparent); }
.hammer-handle { position: absolute; left: 64px; top: 4px; width: 25px; height: 181px; border-radius: 12px 12px 7px 7px; background: linear-gradient(90deg, #3a2016, #b87848 34%, #81502f 63%, #2d1912); box-shadow: inset 3px 0 rgba(255,210,154,.18), 4px 7px 9px rgba(0,0,0,.3); }
.hammer-handle i { position: absolute; inset: 15px 7px 13px; opacity: .42; background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(43,20,12,.7) 20px 21px); }
.impact-ring { position: absolute; z-index: 6; left: 50%; top: calc(54% - 19px); width: 28px; height: 12px; translate: -50% -50%; border: 2px solid #ffe089; border-radius: 50%; opacity: 0; }
.anvil-scene.impact .impact-ring { animation: impact-ring .33s ease-out .23s both; }
@keyframes impact-ring { 0% { opacity: .95; transform: scale(.2); } 100% { opacity: 0; transform: scale(4.7); } }
.forge-sparks { position: absolute; z-index: 8; left: 50%; top: calc(54% - 20px); width: 1px; height: 1px; }
.forge-sparks i { --angle: calc(var(--spark) * 45deg); position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff4a4; box-shadow: 0 0 8px #ff7b26; opacity: 0; transform: rotate(var(--angle)) translateX(0); }
.anvil-scene.impact .forge-sparks i { animation: forge-spark .34s ease-out calc(.22s + var(--spark) * .006s) both; }
@keyframes forge-spark { 0% { opacity: 1; transform: rotate(var(--angle)) translateX(8px) scale(1.15); } 100% { opacity: 0; transform: rotate(var(--angle)) translateX(84px) scale(.2); } }
.anvil-scene.impact .iron-piece { animation: iron-flash .26s ease-out .24s both; }
@keyframes iron-flash { 0% { filter: brightness(1); } 35% { filter: brightness(1.7); } 100% { filter: brightness(1.08); } }

.rhythm-console { padding: 27px; border: 1px solid var(--line); background: rgba(14,18,15,.8); }
.rhythm-console h2 { margin: 7px 0 9px; font-size: 26px; }
.rhythm-console > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.impact-note { margin-top: 13px; padding: 9px 11px; border-left: 2px solid var(--bronze); color: #cfbfa8; background: rgba(216,137,69,.06); font-size: 10px; line-height: 1.55; }
.rhythm-track { height: 68px; margin: 25px 0 16px; position: relative; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(236,120,105,.12), rgba(78,155,132,.09) 35% 65%, rgba(236,120,105,.12)); }
.rhythm-zone { position: absolute; left: 42%; width: 16%; top: 0; bottom: 0; border-inline: 1px solid rgba(112,212,167,.75); background: rgba(112,212,167,.17); }
.rhythm-zone::after { content: "最佳落点"; position: absolute; left: 50%; bottom: 4px; translate: -50% 0; color: #bff3dc; font-size: 8px; white-space: nowrap; }
html[lang="en"] .rhythm-zone::after { content: "BEST STRIKE"; }
.rhythm-marker { position: absolute; left: calc(var(--marker, 0) * 100%); top: 8px; bottom: 8px; width: 4px; translate: -50% 0; background: #fff; box-shadow: 0 0 13px rgba(255,255,255,.8); }
.hit-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.hit-dots i { height: 7px; border-radius: 999px; background: rgba(255,255,255,.09); }
.hit-dots i.on { background: var(--gold); box-shadow: 0 0 10px rgba(232,189,105,.35); }
.hammer-button { width: 100%; min-height: 68px; margin-top: 22px; border: 1px solid rgba(232,189,105,.4); color: #2a170c; background: linear-gradient(135deg, #f1c877, #d97d3b); cursor: pointer; font-size: 17px; font-weight: 900; }
.hammer-status { min-height: 42px; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.hammer-status.good { color: var(--success); }
.hammer-status.bad { color: #f0a098; }

.chapter-complete { min-height: calc(100dvh - 82px); padding: 24px; display: grid; place-items: center; position: relative; overflow: hidden; }
.chapter-complete::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(rgba(7,9,8,.74), rgba(7,9,8,.95)), url('../iron-chronicle/assets/hero-v2.jpg'); background-size: cover; background-position: center; filter: saturate(.7); }
.complete-card { width: min(790px, 100%); padding: clamp(28px,5vw,58px); border: 1px solid var(--line-strong); background: rgba(13,17,14,.91); box-shadow: var(--shadow); backdrop-filter: blur(18px); text-align: center; }
.complete-seal { width: 108px; height: 108px; margin: 0 auto 23px; display: grid; place-items: center; border: 1px solid rgba(232,189,105,.4); border-radius: 50%; color: var(--gold); background: radial-gradient(circle, rgba(232,189,105,.14), transparent 67%); font-family: serif; font-size: 44px; box-shadow: 0 0 0 8px rgba(232,189,105,.04); }
.complete-card .eyebrow { color: var(--bronze); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .16em; }
.complete-card h1 { margin: 10px 0 13px; font-size: clamp(35px,5vw,56px); }
.complete-card > p { max-width: 610px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.8; }
.stat-row { margin: 26px 0; display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line); }
.stat { padding: 15px 8px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; color: var(--gold); font-family: ui-monospace, monospace; font-size: 20px; }
.stat small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .09em; }

.dig-stage { display: grid; grid-template-columns: minmax(0,1fr) 310px; background: #17120f; }
.dig-workspace { min-height: 610px; padding: 18px; display: grid; grid-template-rows: 1fr auto; gap: 12px; background: linear-gradient(145deg, #35261d, #181310); }
.dig-field { min-height: 465px; overflow: hidden; position: relative; border: 1px solid rgba(232,189,105,.18); background: radial-gradient(circle at 46% 40%, #9a7450, #694a33 68%, #473124); touch-action: none; }
.dig-field::before { content: ""; position: absolute; inset: 0; opacity: .24; background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 3px 58px); }
.strata-label { position: absolute; left: 12px; z-index: 5; padding: 5px 8px; color: rgba(255,244,220,.75); background: rgba(39,26,18,.62); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .1em; pointer-events: none; }
.strata-label.one { top: 11%; }
.strata-label.two { top: 44%; }
.strata-label.three { top: 76%; }
.dig-artifact { position: absolute; z-index: 1; width: 104px; height: 92px; display: grid; place-items: center; translate: -50% -50%; border: 1px solid rgba(255,234,190,.24); border-radius: 46%; background: radial-gradient(circle, rgba(247,223,176,.24), rgba(176,131,86,.08) 58%, transparent 73%); opacity: .88; transform: scale(.88); transition: transform .35s ease, filter .35s ease, opacity .35s ease; }
.dig-artifact.found { z-index: 4; filter: none; opacity: 1; transform: scale(1); animation: artifact-reveal .65s cubic-bezier(.2,.9,.25,1.25); }
@keyframes artifact-reveal { from { transform: scale(.25) rotate(-16deg); opacity: 0; } 65% { transform: scale(1.35) rotate(5deg); } }
.artifact-image, .find-thumb { display: block; background-image: url('./assets/artifacts-sprite.png'); background-repeat: no-repeat; background-size: 300% 200%; }
.artifact-image { width: 90px; height: 90px; filter: drop-shadow(0 9px 8px rgba(25,13,7,.38)); }
.artifact-sprite-0 { background-position: 0% 0%; }
.artifact-sprite-1 { background-position: 50% 0%; }
.artifact-sprite-2 { background-position: 100% 0%; }
.artifact-sprite-3 { background-position: 0% 100%; }
.artifact-sprite-4 { background-position: 50% 100%; }
.artifact-sprite-5 { background-position: 100% 100%; }
.artifact-label { position: absolute; left: 50%; bottom: -7px; translate: -50% 0; max-width: 92px; padding: 3px 7px; overflow: hidden; border: 1px solid rgba(247,223,176,.35); border-radius: 999px; color: #2d1a0e; background: rgba(240,211,160,.92); box-shadow: 0 4px 10px rgba(40,20,8,.18); font-size: 8px; font-weight: 950; white-space: nowrap; text-overflow: ellipsis; }
#digCanvasV2 { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.dig-hint { position: absolute; right: 12px; top: 12px; z-index: 5; max-width: 230px; padding: 8px 10px; border: 1px solid var(--line); color: var(--ink); background: rgba(12,15,13,.82); font-size: 10px; pointer-events: none; }
.find-dock { min-height: 88px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.find-slot { min-width: 0; padding: 8px 4px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid var(--line); color: var(--faint); background: rgba(255,255,255,.025); }
.find-slot b { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: ui-monospace, monospace; font-size: 8px; }
.find-slot small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.find-slot.found { color: var(--success); border-color: rgba(112,212,167,.3); background: rgba(112,212,167,.06); }
.find-thumb { width: 40px; height: 40px; filter: drop-shadow(0 5px 5px rgba(0,0,0,.32)); }

.dig-panel { padding: 20px; border-left: 1px solid var(--line); background: rgba(10,13,11,.96); }
.integrity { margin: 17px 0 20px; }
.integrity-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.integrity-head strong { color: var(--success); font-family: ui-monospace, monospace; }
.integrity-bar { height: 7px; margin-top: 7px; background: rgba(255,255,255,.08); }
.integrity-bar i { display: block; width: var(--integrity,100%); height: 100%; background: linear-gradient(90deg, var(--danger), var(--gold) 45%, var(--success)); transition: width .25s ease; }
.tool-list { display: grid; gap: 10px; }
.dig-tool { min-height: 108px; padding: 12px; display: grid; grid-template-columns: 66px 1fr; align-items: center; gap: 12px; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.025); cursor: pointer; text-align: left; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.dig-tool:hover { background: rgba(255,255,255,.055); }
.dig-tool:hover { transform: translateY(-2px); }
.dig-tool.active { border-color: rgba(232,189,105,.58); background: linear-gradient(100deg, rgba(232,189,105,.12), rgba(232,189,105,.035)); box-shadow: inset 3px 0 var(--gold); }
.tool-symbol { width: 66px; height: 78px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px 14px 20px 20px; color: var(--gold); background: radial-gradient(circle at 50% 38%, rgba(232,189,105,.13), transparent 68%); }
.tool-symbol svg { width: 45px; height: 58px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.tool-copy { min-width: 0; }
.tool-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tool-head strong { font-size: 14px; }
.tool-head b { color: var(--bronze); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .1em; }
.dig-tool.risky .tool-head b { color: var(--danger); }
.tool-use { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.risk-meter { margin-top: 9px; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.risk-meter i { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); }
.risk-meter.low i:first-child, .risk-meter.medium i:nth-child(-n+2) { background: var(--success); }
.risk-meter.high i { background: var(--danger); }
.field-log { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }

.museum-stage { min-height: 620px; padding: clamp(20px,4vw,50px); display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: clamp(20px,4vw,54px); align-items: center; background: radial-gradient(circle at 70% 25%, rgba(48,122,102,.13), transparent 26rem), linear-gradient(135deg, #111713, #080b09); }
.evidence-card { min-height: 430px; padding: clamp(22px,3vw,34px); display: grid; align-content: center; border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(30,38,32,.9), rgba(13,17,14,.95)); box-shadow: var(--shadow); position: relative; }
.evidence-card::before { content: attr(data-index); position: absolute; right: 19px; top: 15px; color: rgba(232,189,105,.28); font-family: ui-monospace, monospace; font-size: 11px; }
.evidence-mark { width: 148px; height: 148px; margin: 0 auto 22px; display: grid; place-items: center; border: 1px solid rgba(232,189,105,.32); border-radius: 50%; background: radial-gradient(circle, rgba(232,189,105,.14), transparent 70%); }
.evidence-mark .artifact-image { width: 132px; height: 132px; }
.evidence-card h2 { margin: 0; text-align: center; font-size: 30px; }
.evidence-card p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.classification { align-self: stretch; display: grid; align-content: center; }
.classification h2 { margin: 0 0 8px; font-size: clamp(28px,4vw,44px); }
.classification > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.category-card { min-height: 180px; padding: 18px 14px; display: grid; align-content: center; justify-items: center; gap: 12px; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.025); cursor: pointer; text-align: center; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.category-card:hover { transform: translateY(-4px); border-color: rgba(232,189,105,.4); background: rgba(255,255,255,.055); }
.category-symbol { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.category-symbol svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.category-card strong { font-size: 14px; }
.category-card small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.sort-feedback { min-height: 48px; margin-top: 13px; padding: 11px 13px; border-left: 3px solid var(--bronze); color: #b9d8cd; background: rgba(78,155,132,.07); font-size: 11px; line-height: 1.5; }
.sort-feedback.bad { border-color: var(--danger); color: #f1aaa2; background: rgba(236,120,105,.07); }

.museum-drag-stage { min-height: 650px; padding: clamp(16px,2.6vw,32px); display: grid; grid-template-rows: 1fr auto; gap: 12px; background: radial-gradient(circle at 74% 20%, rgba(48,122,102,.14), transparent 27rem), linear-gradient(135deg, #111713, #080b09); }
.museum-drag-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(330px,.85fr); gap: 16px; }
.artifact-shelf, .collection-board { min-width: 0; padding: clamp(15px,2vw,23px); border: 1px solid var(--line); background: rgba(13,18,15,.82); box-shadow: 0 20px 55px rgba(0,0,0,.22); }
.museum-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.museum-section-head h2 { margin: 0; font-size: clamp(21px,2.4vw,30px); }
.museum-section-head > strong { flex: 0 0 auto; color: var(--gold); font-family: ui-monospace, monospace; font-size: 11px; }
.artifact-shelf > p, .collection-board > p { min-height: 36px; margin: 7px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.artifact-drag-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.artifact-drag-card { --drag-x: 0px; --drag-y: 0px; min-width: 0; min-height: 190px; padding: 11px 9px 12px; position: relative; display: grid; align-content: center; justify-items: center; gap: 8px; border: 1px solid var(--line); color: var(--ink); background: radial-gradient(circle at 50% 35%, rgba(232,189,105,.09), transparent 48%), rgba(255,255,255,.025); cursor: grab; touch-action: none; user-select: none; transform: translate(var(--drag-x),var(--drag-y)); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease; }
.artifact-drag-card:hover, .artifact-drag-card:focus-visible { border-color: rgba(232,189,105,.52); background-color: rgba(232,189,105,.07); }
.artifact-drag-card.selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(232,189,105,.24), 0 14px 30px rgba(0,0,0,.22); }
.artifact-drag-card.dragging { z-index: 30; pointer-events: none; cursor: grabbing; opacity: .94; transform: translate(var(--drag-x),var(--drag-y)) scale(1.05) rotate(-2deg); box-shadow: 0 26px 60px rgba(0,0,0,.5); transition: border-color .18s ease, box-shadow .18s ease; }
.artifact-drag-card.placing { animation: card-place .46s ease both; }
.artifact-drag-card.wrong-drop { animation: wrong-drop .42s ease; }
.drag-grip { position: absolute; right: 9px; top: 9px; width: 25px; height: 25px; display: grid; grid-template-columns: repeat(2,3px); align-content: center; justify-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 50%; }
.drag-grip i { width: 3px; height: 3px; border-radius: 50%; background: var(--bronze); }
.artifact-drag-card .artifact-image { width: 106px; height: 106px; }
.drag-card-copy { min-width: 0; text-align: center; }
.drag-card-copy strong { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 1.25; }
.drag-card-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.collection-zone-list { display: grid; gap: 10px; }
.collection-zone { width: 100%; min-height: 145px; padding: 13px; display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px dashed rgba(232,189,105,.28); color: var(--ink); background: rgba(255,255,255,.022); cursor: pointer; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.collection-zone:hover, .collection-zone:focus-visible, .collection-zone.drop-target { border-color: var(--gold); background: rgba(232,189,105,.08); }
.collection-zone.drop-target { transform: scale(1.015); box-shadow: inset 0 0 0 1px rgba(232,189,105,.18); }
.collection-zone.accepted { animation: zone-accept .42s ease; }
.collection-zone.rejected { animation: zone-reject .42s ease; }
.collection-symbol { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.collection-symbol svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.collection-copy { min-width: 0; }
.collection-copy strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.25; }
.collection-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.collection-count { color: var(--bronze); font-family: ui-monospace, monospace; font-size: 9px; }
.collection-items { grid-column: 1 / -1; min-height: 48px; padding-top: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; border-top: 1px solid var(--line); }
.collection-item { min-width: 0; padding: 4px 8px 4px 5px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(112,212,167,.23); color: #c7eadb; background: rgba(112,212,167,.055); font-size: 8px; }
.collection-item .find-thumb { flex: 0 0 auto; width: 38px; height: 38px; }
.collection-empty { color: var(--faint); font-size: 8px; }
.museum-drag-feedback { min-height: 50px; padding: 11px 14px; display: flex; align-items: center; border-left: 3px solid var(--bronze); color: #c6d8d0; background: rgba(78,155,132,.07); font-size: 11px; line-height: 1.5; }
.museum-drag-feedback.good { border-color: var(--success); color: #bff3dc; background: rgba(112,212,167,.075); }
.museum-drag-feedback.bad { border-color: var(--danger); color: #f1aaa2; background: rgba(236,120,105,.075); }
@keyframes card-place { 60% { opacity: .5; transform: scale(.84); } 100% { opacity: 0; transform: scale(.7); } }
@keyframes wrong-drop { 25% { transform: translateX(-7px); } 55% { transform: translateX(7px); } }
@keyframes zone-accept { 50% { border-color: var(--success); background: rgba(112,212,167,.15); } }
@keyframes zone-reject { 50% { border-color: var(--danger); background: rgba(236,120,105,.13); } }

.quiz-stage-v2 { min-height: 620px; padding: clamp(20px,4vw,50px); display: grid; place-items: center; background: radial-gradient(circle at 20% 75%, rgba(216,137,69,.12), transparent 25rem), radial-gradient(circle at 80% 20%, rgba(78,155,132,.1), transparent 25rem), #0c100d; }
.quiz-card-v2 { width: min(940px,100%); padding: clamp(23px,4vw,42px); border: 1px solid var(--line-strong); background: rgba(18,23,19,.92); box-shadow: var(--shadow); }
.quiz-top { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; }
.quiz-progress { height: 3px; margin: 13px 0 27px; background: rgba(255,255,255,.08); }
.quiz-progress i { display: block; width: var(--progress,0%); height: 100%; background: linear-gradient(90deg,var(--bronze),var(--gold)); transition: width .25s ease; }
.quiz-card-v2 h2 { margin: 0 0 25px; font-size: clamp(24px,3.4vw,38px); line-height: 1.42; text-wrap: balance; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-card { min-height: 90px; padding: 14px 16px; display: grid; grid-template-columns: 37px 1fr; align-items: center; gap: 12px; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.025); cursor: pointer; text-align: left; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.answer-card:hover:not(:disabled) { background: rgba(255,255,255,.055); border-color: rgba(232,189,105,.34); }
.answer-card:active:not(:disabled) { transform: scale(.99); }
.answer-letter { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-family: ui-monospace, monospace; font-size: 11px; }
.answer-card.correct { border-color: rgba(112,212,167,.55); background: rgba(112,212,167,.08); }
.answer-card.wrong { border-color: rgba(236,120,105,.55); background: rgba(236,120,105,.08); animation: shake .32s ease; }
@keyframes shake { 33% { transform: translateX(-7px); } 66% { transform: translateX(7px); } }
.quiz-explain { min-height: 65px; margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02); font-size: 11px; line-height: 1.65; }
.quiz-explain strong { color: var(--success); }
.quiz-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.quiz-setup { width: min(760px, 100%); padding: clamp(24px,5vw,48px); border: 1px solid var(--line-strong); background: rgba(18,23,19,.94); box-shadow: var(--shadow); text-align: center; }
.quiz-setup h2 { margin: 12px 0 10px; font-size: clamp(30px,5vw,50px); }
.quiz-setup > p { max-width: 580px; margin: 0 auto; color: var(--muted); line-height: 1.75; }
.quiz-count-grid { margin-top: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-count-card { min-height: 180px; padding: 20px; display: grid; align-content: center; justify-items: center; gap: 7px; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.025); cursor: pointer; }
.quiz-count-card:hover, .quiz-count-card:focus-visible { border-color: rgba(232,189,105,.55); background: rgba(232,189,105,.08); }
.quiz-count-card strong { color: var(--gold); font-family: ui-monospace, monospace; font-size: 48px; }
.quiz-count-card span { font-size: 15px; font-weight: 850; }
.quiz-count-card small { color: var(--muted); font-size: 10px; }

.final-screen { min-height: calc(100dvh - 82px); padding: clamp(20px,4vw,50px); display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.75fr); align-items: center; gap: clamp(25px,5vw,75px); position: relative; overflow: hidden; }
.final-screen::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,9,8,.96), rgba(7,9,8,.48)), url('../iron-chronicle/assets/hero-v2.jpg'); background-size: cover; background-position: center; filter: saturate(.7); }
.final-title .eyebrow { color: var(--gold); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .17em; }
.final-title h1 { margin: 13px 0 17px; font-size: clamp(48px,7.5vw,100px); line-height: .92; letter-spacing: -.06em; }
.final-title h1 span { display: block; color: var(--gold); font-size: .53em; letter-spacing: .05em; }
.final-title p { max-width: 620px; margin: 0; color: #d1c7b7; font-size: 15px; line-height: 1.8; }
.final-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.report-card { padding: 27px; border: 1px solid var(--line-strong); background: rgba(13,17,14,.91); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.report-card > small { color: var(--bronze); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .15em; }
.report-card h2 { margin: 9px 0 2px; font-size: 26px; }
.report-card .score-big { margin: 17px 0; color: var(--gold); font-family: ui-monospace, monospace; font-size: clamp(54px,7vw,78px); letter-spacing: -.08em; }
.report-card .score-big span { color: var(--muted); font-size: 15px; letter-spacing: 0; }
.report-stat { min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.report-stat strong { color: var(--ink); font-family: ui-monospace, monospace; }
.rank-seal { margin-top: 16px; padding: 13px; border: 1px solid rgba(232,189,105,.3); color: var(--gold); background: rgba(232,189,105,.055); text-align: center; font-size: 15px; font-weight: 900; letter-spacing: .1em; }

.modal-backdrop { position: fixed; inset: 0; z-index: 2000; padding: 20px; display: grid; place-items: center; background: rgba(3,5,4,.74); backdrop-filter: blur(10px); }
.modal-card { width: min(600px,100%); padding: clamp(22px,4vw,38px); border: 1px solid var(--line-strong); background: #141a16; box-shadow: var(--shadow); }
.modal-label { color: var(--bronze); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .17em; }
.modal-card h2 { margin: 10px 0 12px; font-size: 29px; }
.modal-card p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.record-artifact-preview { width: 158px; height: 158px; margin: 2px auto 16px; display: grid; place-items: center; border: 1px solid rgba(232,189,105,.28); border-radius: 50%; background: radial-gradient(circle, rgba(232,189,105,.12), transparent 70%); }
.record-artifact-preview .artifact-image { width: 142px; height: 142px; }
.artifact-record { margin: 17px 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.artifact-record div { padding: 12px; border-left: 1px solid var(--line); }
.artifact-record div:first-child { border-left: 0; }
.artifact-record small { display: block; color: var(--faint); font-size: 9px; }
.artifact-record strong { display: block; margin-top: 5px; color: var(--gold); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 2500; max-width: min(88vw,540px); padding: 12px 16px; border: 1px solid var(--line-strong); color: var(--ink); background: rgba(13,17,14,.96); box-shadow: 0 18px 48px rgba(0,0,0,.4); transform: translate(-50%,18px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* English uses longer words and phrases. Keep the same hierarchy with a calmer density. */
html[lang="en"] .chapter-node { padding-inline: 8px; gap: 7px; }
html[lang="en"] .chapter-node strong { font-size: 11px; letter-spacing: .045em; }
html[lang="en"] .chapter-node small { font-size: 8px; letter-spacing: -.01em; }
html[lang="en"] .home-screen h1 { max-width: 930px; font-size: clamp(50px,7.4vw,102px); line-height: .9; letter-spacing: -.055em; }
html[lang="en"] .home-screen h1 span { margin-top: .22em; font-size: .49em; letter-spacing: .12em; }
html[lang="en"] .home-lead { max-width: 660px; font-size: 13px; line-height: 1.68; }
html[lang="en"] .primary-action, html[lang="en"] .secondary-action, html[lang="en"] .ghost-action { padding-inline: 17px; font-size: 11px; letter-spacing: .045em; }
html[lang="en"] .case-row { min-height: 70px; gap: 9px; }
html[lang="en"] .case-row strong { font-size: 12px; line-height: 1.25; }
html[lang="en"] .case-row small { font-size: 9px; line-height: 1.35; }
html[lang="en"] .case-row b { font-size: 8px; }
html[lang="en"] .mission-strip { min-height: 65px; gap: 10px; }
html[lang="en"] .mission-copy strong { font-size: 13px; line-height: 1.22; letter-spacing: .025em; }
html[lang="en"] .mission-copy span { margin-top: 3px; font-size: 10px; }
html[lang="en"] .mission-meta { font-size: 9px; }
html[lang="en"] .stage-panel h2, html[lang="en"] .rhythm-console h2 { font-size: 21px; line-height: 1.16; }
html[lang="en"] .material-card strong { font-size: 14px; }
html[lang="en"] .material-card small, html[lang="en"] .rhythm-console > p { font-size: 10px; }
html[lang="en"] .impact-note { font-size: 9px; }
html[lang="en"] .dig-panel h2 { font-size: 22px; line-height: 1.18; }
html[lang="en"] .tool-head strong { font-size: 12px; line-height: 1.2; }
html[lang="en"] .tool-use { font-size: 8px; }
html[lang="en"] .classification h2 { font-size: clamp(25px,3.4vw,38px); line-height: 1.12; }
html[lang="en"] .classification > p { margin-bottom: 18px; font-size: 11px; }
html[lang="en"] .category-card strong { font-size: 12px; }
html[lang="en"] .category-card small { font-size: 8px; }
html[lang="en"] .museum-section-head h2 { font-size: clamp(18px,2vw,25px); line-height: 1.15; }
html[lang="en"] .artifact-shelf > p, html[lang="en"] .collection-board > p { font-size: 9px; line-height: 1.45; }
html[lang="en"] .drag-card-copy strong, html[lang="en"] .collection-copy strong { font-size: 10px; line-height: 1.18; }
html[lang="en"] .drag-card-copy small, html[lang="en"] .collection-copy small { font-size: 7px; }
html[lang="en"] .museum-drag-feedback { font-size: 9px; }
html[lang="en"] .quiz-card-v2 h2 { font-size: clamp(22px,2.8vw,32px); line-height: 1.3; }
html[lang="en"] .quiz-setup { padding-block: clamp(22px,4vw,38px); }
html[lang="en"] .quiz-setup h2 { font-size: clamp(27px,4vw,42px); }
html[lang="en"] .quiz-setup > p { max-width: 620px; font-size: 12px; line-height: 1.55; }
html[lang="en"] .quiz-count-card { min-height: 155px; padding: 16px; }
html[lang="en"] .quiz-count-card strong { font-size: 42px; }
html[lang="en"] .quiz-count-card span { font-size: 12px; line-height: 1.2; }
html[lang="en"] .quiz-count-card small { font-size: 8px; }
html[lang="en"] .complete-card h1 { font-size: clamp(31px,4.3vw,48px); line-height: 1.05; }
html[lang="en"] .complete-card > p { max-width: 670px; font-size: 12px; line-height: 1.65; }
html[lang="en"] .final-title h1 { font-size: clamp(44px,6vw,78px); line-height: .96; letter-spacing: -.045em; }
html[lang="en"] .final-title h1 span { font-size: .46em; letter-spacing: .025em; }
html[lang="en"] .final-title p { font-size: 13px; line-height: 1.65; }
html[lang="en"] :is(.mission-copy strong,.mission-copy span,.case-row strong,.case-row small,.tool-head strong,.tool-use,.classification h2,.classification p,.category-card strong,.category-card small,.quiz-card-v2 h2,.quiz-setup h2,.quiz-setup p,.quiz-count-card span,.quiz-count-card small,.complete-card h1,.complete-card p,.final-title h1,.final-title p) { overflow-wrap: anywhere; hyphens: auto; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; gap: 11px; }
  .chapter-rail { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 900px) {
  .heat-stage { grid-template-columns: 1fr 340px; }
  .hammer-stage { grid-template-columns: 1fr 330px; }
}

@media (max-width: 820px) {
  .topbar { min-height: 68px; padding-inline: 12px; }
  .brand-sigil { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { display: none; }
  .score-chip { padding-inline: 9px; }
  .timer-chip { order: 5; flex: 1 0 100%; justify-content: center; }
  .timer-cell { min-width: 80px; }
  .chapter-rail { grid-template-columns: 1fr 14px 1fr 14px 1fr; }
  .chapter-node { min-height: 42px; padding: 5px; grid-template-columns: 29px 1fr; }
  .chapter-node div small { display: none; }
  .home-screen { min-height: calc(100dvh - 68px); padding-top: 42px; }
  .home-screen { grid-template-columns: 1fr; align-content: center; }
  .home-screen::before { background-image: linear-gradient(0deg, rgba(7,9,8,.99) 0%, rgba(7,9,8,.62) 63%, rgba(7,9,8,.34) 100%), url('../iron-chronicle/assets/hero-v2.jpg'); background-position: 62% center; }
  .home-screen h1 { font-size: clamp(55px,16vw,88px); }
  .case-file { justify-self: stretch; width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .case-file h2 { grid-column: 1; }
  .case-row { grid-template-columns: 38px 1fr auto; align-content: center; border: 1px solid var(--line); padding: 12px; }
  .case-row b { grid-column: auto; }
  .screen { min-height: calc(100dvh - 68px); }
  .mission-strip { grid-template-columns: auto 1fr; }
  .mission-meta { grid-column: 2; text-align: left; }
  .mission-copy span { white-space: normal; }
  .stage { min-height: 660px; }
  .stage-grid { grid-template-columns: 1fr; }
  .stage-panel { border-left: 0; border-top: 1px solid var(--line); }
  .charge-layout { min-height: 620px; padding: 20px; grid-template-columns: 1fr 1fr; align-content: end; }
  .furnace-cutaway { grid-column: 1 / -1; grid-row: 1; height: 300px; }
  .furnace-body { width: 195px; height: 275px; }
  .material-card { min-height: 155px; }
  .stage-panel { padding: 17px; }
  .heat-stage { grid-template-columns: 1fr; }
  .heat-visual { min-height: 460px; }
  .heat-furnace { width: 270px; height: 380px; }
  .heat-console { border-left: 0; border-top: 1px solid var(--line); }
  .temp-gauge { height: 220px; }
  .hammer-stage { grid-template-columns: 1fr; padding: 18px; }
  .anvil-scene { min-height: 430px; }
  .anvil-shape { width: 310px; height: 190px; top: 55%; }
  .iron-piece { width: 184px; top: calc(55% - 31px); }
  .hammer-visual { --hammer-scale: .84; --hammer-lift: -70px; top: calc(55% - 215px); }
  .impact-ring, .forge-sparks { top: calc(55% - 19px); }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .dig-stage { grid-template-columns: 1fr; }
  .dig-workspace { min-height: 580px; padding: 10px; }
  .dig-field { min-height: 450px; }
  .dig-artifact { width: 84px; height: 76px; }
  .dig-artifact .artifact-image { width: 74px; height: 74px; }
  .artifact-label { max-width: 76px; font-size: 7px; }
  .find-dock { grid-template-columns: repeat(3,1fr); }
  .dig-panel { border-left: 0; border-top: 1px solid var(--line); }
  .tool-list { grid-template-columns: repeat(3,1fr); }
  .dig-tool { min-height: 165px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tool-head { justify-content: center; flex-wrap: wrap; }
  .museum-stage { grid-template-columns: 1fr; }
  .museum-drag-layout { grid-template-columns: 1fr; }
  .artifact-drag-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .collection-zone-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .collection-zone { min-height: 190px; padding: 10px; grid-template-columns: 42px 1fr; align-content: center; }
  .collection-symbol { width: 42px; height: 42px; }
  .collection-count { grid-column: 1 / -1; }
  .evidence-card { min-height: 320px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 95px; grid-template-columns: 48px 1fr; justify-items: start; text-align: left; }
  .category-symbol { width: 48px; height: 48px; grid-row: 1 / span 2; }
  .answer-grid { grid-template-columns: 1fr; }
  .final-screen { min-height: calc(100dvh - 68px); grid-template-columns: 1fr; }
  html[lang="en"] .home-screen h1 { font-size: clamp(46px,13vw,72px); }
  html[lang="en"] .home-screen h1 span { font-size: .46em; letter-spacing: .08em; }
  html[lang="en"] .mission-copy strong { font-size: 12px; }
  html[lang="en"] .mission-copy span { font-size: 9px; line-height: 1.35; }
  html[lang="en"] .tool-list { gap: 7px; }
  html[lang="en"] .dig-tool { padding: 9px; }
  html[lang="en"] .tool-head strong { font-size: 10px; }
  html[lang="en"] .quiz-card-v2 { padding: 22px 18px; }
}

@media (max-width: 420px) {
  .round-button { width: 42px; height: 42px; }
  .language-button { width: 42px; height: 42px; }
  .hud { gap: 4px; }
  .brand { gap: 7px; }
  .brand-sigil { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 14px; letter-spacing: .07em; }
  .brand-copy { display: none; }
  .score-chip { min-height: 42px; padding-inline: 8px; }
  .timer-chip { min-height: 42px; padding-block: 5px; }
  .score-chip strong { min-width: 32px; font-size: 12px; }
  .chapter-node div { display: none; }
  .chapter-node { grid-template-columns: 1fr; justify-items: center; }
  .home-actions > * { width: 100%; }
  .charge-layout { gap: 9px; padding: 13px; }
  .material-card { padding: 13px; }
  .material-card strong { font-size: 14px; }
  .tool-list { gap: 6px; }
  .dig-tool { padding: 8px; }
  .tool-symbol { width: 54px; height: 66px; }
  .tool-symbol svg { width: 38px; height: 49px; }
  .quiz-count-grid { grid-template-columns: 1fr; }
  .anvil-scene { min-height: 390px; }
  .anvil-shape { width: 270px; height: 174px; top: 54%; }
  .iron-piece { width: 162px; height: 32px; top: calc(54% - 27px); }
  .hammer-visual { --hammer-scale: .72; --hammer-lift: -58px; top: calc(54% - 185px); }
  .impact-ring, .forge-sparks { top: calc(54% - 16px); }
  .museum-drag-stage { padding: 10px; }
  .artifact-shelf, .collection-board { padding: 12px; }
  .artifact-drag-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .artifact-drag-card { min-height: 154px; }
  .artifact-drag-card .artifact-image { width: 82px; height: 82px; }
  .collection-zone-list { grid-template-columns: 1fr; }
  .collection-zone { min-height: 128px; grid-template-columns: 44px 1fr auto; }
  .collection-count { grid-column: auto; }
  html[lang="en"] .home-screen h1 { font-size: clamp(40px,12.5vw,55px); }
  html[lang="en"] .mission-strip { padding: 10px; }
  html[lang="en"] .mission-copy strong { font-size: 11px; }
  html[lang="en"] .mission-copy span { font-size: 8px; }
  html[lang="en"] .quiz-setup > p { font-size: 11px; }
}

@media (max-height: 820px) and (orientation: landscape) {
  .topbar { min-height: 62px; padding-top: 6px; padding-bottom: 6px; }
  .brand-sigil { width: 40px; height: 40px; }
  .home-screen { min-height: 650px; }
  .screen { min-height: auto; }
  .stage, .stage-main, .dig-workspace { min-height: 550px; }
  .charge-layout { min-height: 550px; }
  .heat-visual { min-height: 550px; }
  .hammer-stage, .museum-stage, .museum-drag-stage, .quiz-stage-v2 { min-height: 550px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
