:root {
  color-scheme:dark;
  --night:#0c1520; --ink:#101b29; --panel:#162537; --edge:#3d515a; --paper:#f7e9cb; --white:#fff2d4;
  --brass:#e9bc6c; --teal:#8ee8d8; --muted:#afc6cd; --dark:#27333a; --width:1140px;
  --serif:"Songti TC","Noto Serif CJK HK","Noto Serif TC","PMingLiU",serif;
  --sans:"PingFang HK","Noto Sans CJK HK","Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;color:var(--white);background:
 radial-gradient(ellipse at 55% 1%,#24394a 0,transparent 55%),
 radial-gradient(ellipse at 89% 85%,#19373b7c,transparent 49%),var(--night);
 font:17px/1.55 var(--sans)}
button{cursor:pointer;font:inherit;color:inherit;touch-action:manipulation}
button:disabled{cursor:default}
button,a{user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
button img{-webkit-user-drag:none}
button:focus-visible,a:focus-visible{outline:3px solid var(--brass);outline-offset:3px}
a{color:var(--teal)}
img{max-width:100%}
[hidden]{display:none!important}
p,h1,h2,h3,ol,blockquote{margin:0}
h1,h2,h3{line-height:1.23}
.icon{width:22px;height:22px;flex:0 0 auto;vertical-align:middle}
.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);margin:-1px;overflow:hidden;white-space:nowrap}
.skip{position:fixed;z-index:30;top:8px;left:10px;transform:translateY(-150%);padding:10px 15px;background:var(--ink);border-radius:5px}
.skip:focus{transform:none}
.topbar{position:relative;z-index:3;border-bottom:1px solid #b28e4e;background:#111d2bf7;
 padding:env(safe-area-inset-top,0px) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
.top-inner{display:grid;grid-template-columns:1fr minmax(180px,235px) 1fr;max-width:var(--width);margin:auto;gap:14px;align-items:center;min-height:66px}
.brand{display:flex;align-items:center;gap:8px;font:830 22px/1.2 var(--serif);color:#f6d49a;white-space:nowrap;letter-spacing:.025em}
.brand img{width:38px;height:38px}
.core-meter{display:grid;grid-template-columns:repeat(4,1fr);padding:0;list-style:none;position:relative}
.core-meter::before{content:"";position:absolute;top:14px;height:1px;inset-inline:12%;background:#51646a}
.core-meter li{display:grid;justify-items:center;grid-template-rows:28px 15px;position:relative;gap:1px;font-size:12px;color:#b6c8c7;font-weight:760}
.core-meter .icon{padding:3px;width:27px;height:27px;border-radius:50%;color:#b7c8c4;background:#152330;border:1px solid #5c6e6f}
.core-meter .current,.core-meter .current .icon{color:var(--brass)}
.core-meter .held,.core-meter .held .icon{color:var(--teal)}
.core-meter .held .icon{background:#154344;border-color:#88e4cc;box-shadow:0 0 12px #73e4d54b}
.tools{display:flex;gap:6px;justify-content:flex-end}
.tools button{white-space:nowrap;display:inline-flex;gap:5px;align-items:center;justify-content:center;
 min-height:46px;min-width:52px;padding:4px 8px;border:1px solid #607278;border-radius:7px;background:#192b3c;color:#f7e4bd;font-size:14px;font-weight:700}
.tools button .icon{width:17px;height:17px}
#game{width:min(calc(var(--width) + 42px),100%);margin:0 auto;outline:none;
 padding:clamp(12px,2vh,23px) max(17px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(17px,env(safe-area-inset-left))}
.mission{position:relative;padding:12px;border:1px solid #7e714d;border-radius:14px;
 background:linear-gradient(150deg,#203145 0,#121f2f 52%,#172d34 100%);box-shadow:0 13px 55px #0005,inset 0 0 0 3px #101b2860}
.chapter{display:flex;align-items:baseline;justify-content:space-between;gap:8px 18px;padding:4px 8px 12px;flex-wrap:wrap}
.chapter h1{font-family:var(--serif);color:#ffe3a9;font-size:clamp(27px,3.7vw,45px);letter-spacing:.035em;font-weight:850;outline:none}
.chapter p{color:#d4ded8;font-size:clamp(14px,1.7vw,18px);font-weight:650;max-width:42em}
.view-lab .chapter,.view-end .chapter{padding:7px 8px 13px}
.view-lab .chapter h1{font-size:clamp(28px,4.15vw,51px)}
.scene{position:relative;isolation:isolate;overflow:hidden;border:1px solid #a58855;border-radius:11px 11px 5px 5px;
 background:#201f20;width:100%;height:clamp(145px,26vh,285px)}
.backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.scene::after{content:"";pointer-events:none;position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#111d2b19 30%,#0b131c6b 100%)}
.lab-stage{height:clamp(390px,65vh,630px)}
.lab-stage .backdrop{object-position:50% 47%}
.lab-stage::after{background:linear-gradient(180deg,#0c152218 36%,#081421de 100%)}
.scene-note{position:absolute;left:12px;top:11px;display:inline-flex;align-items:center;gap:6px;border:1px solid #ad9158;
 border-radius:6px;padding:4px 8px;color:#ffe8b5;background:#12202de8;font-size:13px;font-weight:720;z-index:2}
.scene-note .icon{width:16px;height:16px}
.hero-actions{position:absolute;inset:auto 14px 14px;display:flex;align-items:end;justify-content:space-between;gap:12px}
.hero-actions .speech{width:min(605px,100%);background:#152739ed;border:1px solid #8a8566}
.hero-actions .primary{min-height:65px;font-size:clamp(19px,2.4vw,26px);padding-inline:20px}
.hero-actions .speech p{font-size:clamp(16px,2vw,22px)}
.short-stage{height:clamp(107px,20vh,191px)}
.story-stage{height:clamp(170px,34vh,310px)}
.treasure-stage{height:clamp(160px,36vh,310px)}
.scene-face{position:absolute;height:135%;width:auto;right:9%;bottom:-37%;object-fit:contain;object-position:top;pointer-events:none;
 filter:drop-shadow(0 4px 19px #111923aa);max-width:45%}
.story-stage .scene-face{height:113%;bottom:-16%}
.twin-left{right:auto;left:12%}
.twin-right{right:12%}
.panel,.narrative{background:linear-gradient(150deg,#1d3041,#152637);border:1px solid #536369;border-top:0;padding:clamp(11px,1.6vw,17px);border-radius:0 0 9px 9px}
.chapter + .panel{border-top:1px solid #586a69;border-radius:9px}
.panel h2{color:#ffe7b5;font-size:clamp(19px,2.15vw,27px);margin-bottom:9px}
.speech{display:flex;align-items:center;gap:11px;min-height:69px;border-radius:8px;padding:6px 11px;background:#132232;color:#f6efd8}
.speech + .speech{margin-top:6px}
.speech b{color:#f4ce87;font-weight:800;margin-right:7px;font-size:14px}
.speech small{color:#b9c4c4;font-size:11px}
.speech p{font-size:clamp(16px,1.9vw,20px);font-weight:680;line-height:1.38}
.face{display:block;width:64px;height:64px;flex:0 0 auto;object-fit:contain;object-position:bottom;background:#273b44;border:1px solid #637d7c;border-radius:8px}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;
 border:1px solid #bfa76f;border-radius:8px;padding:8px 14px;font-weight:830;white-space:nowrap;font-size:clamp(15px,1.65vw,18px)}
.primary{color:#092a2b;background:linear-gradient(157deg,#a7eee1,#67c5bb);box-shadow:inset 0 0 0 2px #e5fff179,0 3px 0 #14343a}
.primary:hover{background:#b4f7e5}
.primary .icon{width:17px;height:17px}
.secondary{color:#ffe4a9;background:#22384a;border-color:#9c956b}
.secondary:hover{background:#284959}
.step-footer{margin-top:10px;display:flex;gap:8px 12px;justify-content:space-between;align-items:center;min-height:42px;flex-wrap:wrap}
.step-footer>span{color:#bed1cc;font-size:15px;font-weight:720}
.step-footer>.primary{margin-inline-start:auto}
.hint{padding:7px 0 1px;display:flex;gap:7px;min-height:36px;align-items:center;color:#d0e0d8;font-size:15px;font-weight:620}
.hint>p{flex:1}
.hint .icon{color:var(--teal);width:17px;height:17px}
.hint-active{color:#ffe3ae}
.hint-active .icon{color:#ffca82}
.clock{display:inline-flex;position:relative;min-height:34px;min-width:96px;padding:3px 9px 7px;gap:5px;
 align-items:center;justify-content:center;background:#131b2df0;border:1px solid #d4ad61;border-radius:7px;color:#ffdb8e;font-size:15px;white-space:nowrap;overflow:hidden}
.clock .icon{width:16px;height:16px}
.clock i{height:3px;position:absolute;left:0;bottom:0;background:#ddaf56;transition:width .22s linear}
.clock.expired{border-color:#87c5b5;color:#b7eee1}
.clock-note{margin-top:4px;color:#b7eee1;font-size:14px}
.market-stage{height:clamp(225px,38vh,350px)}
.market-stage .backdrop{object-position:50% 44%}
.counter-hud{position:absolute;top:10px;inset-inline:12px;display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:clamp(13px,1.7vw,17px)}
.counter-hud>span:not(.clock){display:inline-flex;align-items:center;min-height:34px;border-radius:7px;background:#1c2a31f0;border:1px solid #e3bd7a;padding:4px 9px;font-weight:750}
.combo .icon{width:15px;height:15px;color:#ffe1a0;margin-right:4px}
.customers{position:absolute;bottom:11px;inset-inline:clamp(8px,3vw,34px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(5px,2.5vw,34px)}
.customer{display:grid;justify-items:center;align-content:end;min-width:0}
.customer-face{width:min(82%,148px);height:clamp(52px,14vh,122px);object-fit:contain;object-position:bottom;display:block;filter:drop-shadow(0 2px 8px #191f1fe0)}
.customer-card{width:100%;display:flex;justify-content:center;align-items:center;gap:clamp(3px,1vw,12px);min-height:65px;
 border:1px solid #ccb16c;border-radius:8px;background:linear-gradient(135deg,#fff0cc,#dac697);color:#332b20;line-height:1.2;box-shadow:0 4px 8px #1520257e}
.customer-card b{font-size:clamp(13px,1.65vw,18px)}
.line-state{font-size:13px;font-weight:720;color:#3a594c}
.coin-token{min-width:54px;min-height:54px;width:clamp(55px,7vw,69px);height:clamp(55px,7vw,69px);
 border-radius:50%;background:#fcf0cd;border:2px solid #9a7946;display:grid;place-items:center;padding:1px;touch-action:none;
 box-shadow:0 2px 5px #543a285e;animation:coin-drop .26s ease-out both}
.coin-art{width:54px;height:54px;display:block}
.coin-token .coin-art{width:95%;height:auto}
.coin-token.picked{outline:3px solid #18897f;outline-offset:1px}
@keyframes coin-drop{from{transform:translateY(-8px) scale(.78);opacity:.5}to{transform:none;opacity:1}}
.market-calm .backdrop{animation:market-settle .55s ease-out both}
@keyframes market-settle{from{filter:saturate(.65)}to{filter:saturate(1.17)}}
.trays,.options,.targets,.inventory,.glyph-grid{display:grid;gap:clamp(5px,1.15vw,12px)}
.trays{grid-template-columns:repeat(5,minmax(0,1fr))}
.options{grid-template-columns:repeat(3,minmax(0,1fr))}
.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.inventory{margin-top:12px}
.inventory-title{margin-top:0}
.target,.card{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;
 min-height:65px;padding:6px 8px;border:1px solid #636d64;border-radius:8px;line-height:1.28;text-align:center;font-weight:760}
.target{border:1px dashed #7bb2ac;color:#cff9ed;background:#193746}
.target strong{font-size:clamp(16px,1.9vw,21px);color:#aaf1dd}
.target>span{display:grid;justify-items:center;font-size:clamp(14px,1.6vw,18px)}
.target:not(:disabled):hover,.target.drop-hover{background:#275e63;border-style:solid}
.target.filled{border-style:solid;border-color:#78bb9f;background:#244f4a;color:#e8fff3}
.coin-tray{min-height:82px;color:#fcf0da;background:#334242;border-color:#c1a16d}
.coin-tray strong{font-size:clamp(13px,1.65vw,18px);color:#ffe3a4}
.coin-tray .coin-art{width:clamp(31px,5vw,52px);height:auto}
.card{color:#302920;background:linear-gradient(140deg,#fff0d0,#e6d0a7);border-color:#c5a46a}
.card:hover{background:#fff1d8}
.card .icon{color:#845337}
.card.option{flex-direction:row;justify-content:flex-start;min-height:68px;text-align:start;padding:9px 12px}
.options.picture .option{flex-direction:column;justify-content:center;min-height:96px;text-align:center}
.option.misstep{background:#f3cdb9;border-color:#d99a76;animation:nudge .22s ease-out both}
@keyframes nudge{20%,75%{transform:translateX(3px)}45%{transform:translateX(-3px)}}
.piece{position:relative;touch-action:none}
.piece.picked{outline:3px solid #81e5c9;outline-offset:1px;background:#fff5dc}
.piece.used{opacity:.65;background:#bdcbb2;color:#324637}
.piece.dragging,.coin-token.dragging{opacity:.38}
.drag-ghost{position:fixed;z-index:20;top:0;left:0;pointer-events:none;display:grid;place-items:center;text-align:center;gap:4px;
 width:min(136px,40vw);min-height:65px;color:#23363b;font-weight:760;font-size:15px;line-height:1.2;background:#fae6bb;
 border:2px solid #75bead;border-radius:8px;box-shadow:0 8px 19px #051019bd;padding:8px}
.new-placement{animation:placement-glow .36s ease-out both}
@keyframes placement-glow{from{box-shadow:0 0 0 5px #79e7d194;transform:translateY(-4px)}to{box-shadow:none;transform:none}}
.burst{position:fixed;z-index:25;pointer-events:none}
.burst .icon{position:absolute;left:0;top:0;color:#ffe7a2;animation:spark .63s ease-out both;width:18px;height:18px;filter:drop-shadow(0 0 6px #e6c272)}
.burst .icon:nth-child(1){--dx:-32px;--dy:-35px}.burst .icon:nth-child(2){--dx:38px;--dy:-39px}.burst .icon:nth-child(3){--dx:13px;--dy:23px}
@keyframes spark{from{opacity:.3;transform:scale(.5)}35%{opacity:1}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(33deg) scale(.8)}}
.hotspot{position:absolute;z-index:2;display:inline-flex;align-items:center;justify-content:center;gap:4px;max-width:185px;
 min-height:48px;min-width:65px;padding:5px 7px;border-radius:8px;background:#102630f2;border:1.5px solid #9fe7d8;
 color:#fff1c9;font-size:clamp(13px,1.6vw,18px);font-weight:820;white-space:nowrap;box-shadow:0 0 0 3px #0b1b2990,0 0 13px #5ce2c353;}
.hotspot small{font-size:11px;color:#c1dbd6}
.hotspot .icon{width:16px;height:16px;color:#a9f6e1}
.hotspot:hover,.hotspot.spot-active{background:#1d5058;border-color:#f4cf88}
.hologram{right:13px;top:12px}
.weight,.survey{right:12px;bottom:11px}
.explore-stage{height:clamp(235px,46vh,450px)}
.explore-stage .backdrop,.fire-stage .backdrop{object-fit:fill}
.explore-stage .rack{top:49%;left:4%}
.explore-stage .slips{top:22%;left:35%}
.explore-stage .box{bottom:18%;left:20%}
.explore-stage .desk{bottom:9%;left:50%}
.explore-stage .chest{top:42%;right:17%}
.explore-stage .stamp{bottom:11%;right:3%}
.search-readout{min-height:58px;color:#ebf2dc}
.search-readout p{font-weight:690}
.found-glyph,.ref-strip{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:740}
.found-glyph .glyph-art{margin-right:4px}
.found-glyph .glyph-art,.ref-strip span{border-radius:7px;background:#f0dfb8;color:#302b22;padding:3px}
.ref-strip{justify-content:space-between}
.ref-strip span{display:grid;place-items:center;min-width:0;flex:1}
.ref-strip .glyph-art{width:clamp(25px,5vw,49px);height:auto}
.glyph-art{display:block;object-fit:contain;width:53px;height:53px}
.glyph-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.glyph-target{background:#efe1bf;color:#262a23;border:1px solid #c0a879}
.glyph-target strong{color:#354d47}
.glyph-target.filled{background:#a8ccb9;color:#312d25}
.glyph-target.filled strong{color:#173b38}
.glyph-target:not(:disabled):hover{background:#fff1cc}
.glyph-target .glyph-art{width:min(52px,100%);height:auto}
.fire-stage{height:clamp(160px,31vh,280px)}
.ember{position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 13% 94%,#ee7c45a3,transparent 50%);animation:ember-light 1s ease-out both}
@keyframes ember-light{from{opacity:.35}to{opacity:1}}
.fire-stage .box{left:12%;bottom:16%}
.fire-stage .desk{left:50%;bottom:13%}
.fire-stage .scene-face{right:4%;height:110%;bottom:-24%}
.awards{display:flex;gap:7px;flex-wrap:wrap;margin:6px 0 9px}
.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:6px;background:#483a29;color:#ffe3a9;
 border:1px solid #a4894c;font-size:15px;font-weight:790}
.badge .icon{width:16px;height:16px;fill:#e6b861;color:#ffd896}
.fact{border-radius:7px;background:#263c49;border-inline-start:3px solid #d0a663;padding:8px 11px;margin-top:6px}
.fact strong{color:#fff0c0;font-size:18px}
.fact span{display:inline-block;color:#c9e6df;font-size:12px;margin-inline-start:9px;font-weight:660}
.fact p{color:#edecdb;font-size:16px;font-weight:610;margin-top:3px}
.core-spark{position:absolute;top:50%;left:50%;transform:translate(-50%,-60%);width:92px;height:92px;
 display:grid;place-items:center;color:#a6fff0;border:2px solid #b2f4dd;border-radius:50%;background:#144949a8;
 box-shadow:0 0 25px #68eadbaf;animation:core-appear .68s ease-out both}
.core-spark .icon{width:49px;height:49px;fill:#82ddc852;color:currentColor}
.core-spark.amber,.core-spark.gold{color:#ffe4a0;border-color:#eace88;background:#5b482ba8;box-shadow:0 0 26px #f0c978aa}
@keyframes core-appear{from{transform:translate(-50%,-28%) scale(.53);opacity:.2}to{transform:translate(-50%,-60%) scale(1);opacity:1}}
.treasure{position:absolute;left:50%;bottom:9%;width:95px;height:65px;transform:translateX(-50%);display:grid;justify-items:center}
.treasure-body,.treasure-lid{background:linear-gradient(135deg,#8e6240,#3e2c20);border:2px solid #c6a365;box-shadow:inset 0 0 0 3px #4e3829;display:block;width:100%;height:34px;border-radius:4px}
.treasure-lid{height:25px;transform-origin:bottom left;animation:chest-opens .54s ease-out both}
@keyframes chest-opens{to{transform:translateY(-7px) rotate(-17deg)}}
.build-hud{display:flex;gap:7px;align-items:center;justify-content:space-between;margin-bottom:8px}
.indicators{display:flex;gap:clamp(8px,2vw,20px)}
.indicator{background:#122333;border:1px solid #526d72;display:flex;gap:6px;align-items:center;padding:5px 7px;
 font-size:clamp(12px,1.6vw,16px);border-radius:6px;color:#deefe5;white-space:nowrap}
.pips{display:flex;gap:3px}
.pips i{width:clamp(7px,1.15vw,15px);height:9px;border:1px solid #758c90;border-radius:3px;background:#1a3242}
.pips .lit{background:#6ce4bd;border-color:#a1ecc9}
.indicator:nth-child(2) .pips .lit{background:#e7b065;border-color:#eec88d}
.map-board{position:relative;isolation:isolate;background:#d2ddc6;color:#263f3a;border-radius:7px;padding:6px 9px 7px;border:1px solid #90a98f}
.map-board::before{content:"";position:absolute;inset:10px 0 0;z-index:-1;pointer-events:none;background:#9aac92;
 clip-path:polygon(0 53%,9% 26%,19% 50%,28% 31%,34% 63%,49% 29%,57% 56%,71% 26%,78% 46%,89% 25%,100% 56%,100% 100%,0 100%);opacity:.55}
.map-board header{display:flex;justify-content:space-between;font-weight:700;font-size:13px}
.map-board p{font-size:12px;color:#34514a;margin-top:5px}
.map-line{display:grid;grid-template-columns:minmax(31px,.6fr) repeat(3,minmax(0,1fr)) minmax(31px,.6fr);gap:5px;align-items:center;position:relative;margin-top:6px}
.map-line::before{content:"";position:absolute;z-index:-1;inset:49% 10% auto;height:4px;background:repeating-linear-gradient(to right,#4f6954 0 10px,transparent 10px 16px)}
.joined .map-line::before{background:#315950;transform-origin:left;animation:wall-join .56s ease-out both}
@keyframes wall-join{from{transform:scaleX(.04)}to{transform:scaleX(1)}}
.endpoint{display:grid;place-items:center;justify-self:center;background:#f1efd8;color:#203a32;padding:3px;border-radius:4px;font-size:clamp(13px,1.7vw,18px);white-space:nowrap}
.endpoint small{font-size:11px}
.map-slot{min-height:61px;border-color:#4b766a;background:#eef0d7}
.map-slot strong,.map-slot span{color:#2d564b}
.map-slot.filled{background:#b2ccab}
.map-slot:not(:disabled):hover{background:#c4e4c3}
.wall-art{width:clamp(36px,8vw,71px);height:auto;display:block}
.wall-pieces .piece{flex-direction:row}
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:8px}
.duo .speech{margin:0}
.evidence-grid{grid-template-columns:repeat(var(--cards),minmax(0,1fr))}
.evidence-grid .piece{padding:7px;line-height:1.22;font-size:clamp(14px,1.6vw,18px)}
.evidence-icon .icon{width:19px;height:19px}
.fault-stage::after{background:linear-gradient(160deg,#4d272350,transparent)}
.fault-signal,.home-signal{position:absolute;left:50%;top:55%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:9px;
 border:1px solid #cf9369;background:#30222ae8;padding:10px 15px;border-radius:8px;font-weight:790;font-size:clamp(18px,3vw,31px);white-space:nowrap;color:#ffceb0}
.home-signal{color:#bdfbf0;background:#123f45e3;border-color:#8ae0cc}
.repair-stage{height:auto;min-height:240px}
.files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,2.2vw,22px);padding:clamp(11px,3vw,34px);position:relative}
.dossier{display:flex;flex-direction:column;gap:7px;padding:clamp(8px,1.5vw,15px);min-width:0;border:1px solid #c8ad72;border-radius:8px;
 background:#f6e5bbc9;color:#332921}
.file-heading{display:flex;justify-content:space-between;align-items:center;gap:4px 8px;flex-wrap:wrap;font-size:14px;font-weight:810;color:#6d402e}
.file-heading span:nth-child(2){display:inline-flex;align-items:center;gap:4px}
.file-heading .icon{width:16px;height:16px}
.dossier blockquote{font-size:clamp(16px,2vw,22px);font-weight:730;color:#2f2b24;line-height:1.41;margin-bottom:3px}
.dossier .target{width:100%;margin-top:auto}
.dossier.repaired{background:#e1ecd1db;border-color:#9cd5b4;animation:file-repaired .55s ease-out both}
.dossier.repaired .file-heading{color:#276147}
@keyframes file-repaired{from{box-shadow:0 0 0 5px #a7f3cd88}to{box-shadow:none}}
.warp-stage{height:clamp(390px,65vh,615px)}
.warp-stage .backdrop{animation:jump-camera 1.55s ease-in-out both;filter:saturate(1.2)}
.warp-content{display:grid;place-items:center;align-content:center;position:absolute;inset:0;gap:5px;text-align:center;background:#0a172b75;isolation:isolate}
.warp-content strong{font-family:var(--serif);font-size:clamp(25px,5vw,60px);color:#fff0bd;text-shadow:0 3px 9px #10232f}
.warp-content p{font-size:clamp(18px,2.7vw,30px);font-weight:790;color:#d2fff2}
.warp-content #warp-tick{font-size:45px;color:#d1fff4;font-weight:830;line-height:1.05}
.warning-icon{color:#f6c889;width:44px;height:44px}
.portal-glow{z-index:-1;position:absolute;width:clamp(125px,34vw,425px);aspect-ratio:1;border:3px solid #acfff0;border-radius:50%;
 box-shadow:inset 0 0 50px #44e9d184,0 0 90px #60f3de94;animation:grow-ring 1.44s ease-in-out both}
@keyframes jump-camera{from{transform:scale(1)}28%{transform:scale(1.036) translateX(4px)}44%{transform:scale(1.06) translateX(-3px)}to{transform:scale(1.22)}}
@keyframes grow-ring{from{transform:scale(.38);opacity:.3}to{transform:scale(1.46);opacity:.58}}
.ledger{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:11px}
.ledger section{padding:10px;border-radius:8px;background:#1c3d42;border:1px solid #66a695}
.ledger section.cost{background:#3c3037;border-color:#a98070}
.ledger section h2{margin-bottom:6px;font-size:22px}
.ledger .fact{font-size:14px;animation:file-repaired .55s ease-out both}
.ledger .fact p{font-size:clamp(14px,1.6vw,17px)}
.weight-note,.padlet{color:#dfebdf;font-size:16px;font-weight:680;margin-top:9px}
.reflection{display:flex;align-items:center;gap:11px;background:#162c3b;border:1px solid #638d88;padding:10px;margin-top:11px;border-radius:9px}
.reflection h2{color:#f5d899;margin-bottom:4px}
.reflection p{color:#e5f0e9}
dialog{width:min(calc(100% - 26px),440px);border:1px solid #d8b776;border-radius:12px;padding:21px;color:#ffecce;
 background:#162737;box-shadow:0 14px 35px #0008;text-align:center}
dialog[open]{position:fixed;inset:0;margin:auto}
dialog::backdrop{background:#08111cbb}
dialog h2{font-family:var(--serif);font-size:clamp(22px,4vw,29px);margin-bottom:10px;color:#ffdf9e}
dialog p{margin:8px 0}
dialog .qr{background:white;display:block;margin:10px auto;width:min(100%,240px);height:auto;border-radius:5px}
.dialog-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
@media(max-width:760px){
 .top-inner{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding-top:4px}
 .brand{font-size:19px}
 .core-meter{grid-row:2;grid-column:1/-1;max-width:265px;width:100%;justify-self:center;padding-bottom:7px}
 .tools button{padding-inline:7px}
 .hero-actions{align-items:start;flex-direction:column}
 .hero-actions .primary{align-self:end}
 .chapter{gap:5px 9px}
 .duo .speech{min-height:82px}
 .face{width:52px;height:52px}
 .hotspot{min-height:45px}
}
@media(max-width:480px){
 .topbar{padding-inline:7px}
 .brand{font-size:14px;gap:3px}
 .brand img{width:28px;height:28px}
 .tools{gap:3px}
 .tools button{padding:3px 4px;min-width:45px;min-height:44px;font-size:11px}
 .tools button .icon{width:13px;height:13px}
 #game{padding-inline:7px}
 .mission{padding:7px}
 .lab-stage{height:400px}
 .hero-actions{inset:auto 8px 9px}
 .hero-actions .primary{min-height:57px}
 .hologram{max-width:155px;top:49px}
 .explore-stage{height:255px}
 .hotspot{max-width:130px;padding:4px;font-size:12px}
 .explore-stage .desk{left:45%}
 .explore-stage .box{left:14%}
 .explore-stage .chest{right:11%}
 .hotspot small{display:none}
 .duo{grid-template-columns:1fr}
 .options.picture .option{padding:5px;min-height:84px}
 .options.picture .coin-art{width:45px;height:auto}
 .counter-hud{inset-inline:5px;gap:4px}
 .counter-hud>span:not(.clock){padding:3px 5px}
 .clock{min-width:69px;padding:3px 5px 6px}
 .customer-card{gap:2px;flex-direction:column;padding:3px}
 .customer-face{height:68px}
 .coin-token{width:47px;height:47px;min-width:47px;min-height:47px}
 .coin-tray{padding-inline:1px;min-height:66px}
 .coin-tray strong{font-size:12px;white-space:nowrap}
 .glyph-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .glyph-target{min-height:57px;padding-inline:3px}
 .glyph-target .glyph-art{width:min(40px,100%)}
 .build-hud{gap:3px}
 .indicators{gap:3px}
 .indicator{padding:5px 3px;gap:3px}
 .files{grid-template-columns:1fr}
 .evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ledger{gap:6px}
 .ledger section{padding:6px}
 .ledger .fact span{margin:0;display:block}
 .ledger .fact{padding:6px}
 .ledger .fact strong{font-size:15px}
 .ledger section h2{font-size:16px}
}
@media(max-height:770px) and (min-width:761px) and (orientation:landscape){
 .top-inner{min-height:59px}
 #game{padding-top:10px}
 .mission{padding:9px}
 .chapter{padding-bottom:9px}
 .story-stage{height:30vh}
 .short-stage{height:16.4vh}
 .view-wallEvidence .short-stage{height:14vh}
 .lab-stage{height:62vh}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
