
:root{--ink:#20333f;--cream:#fff0d1;--gold:#e6b66f;--blue:#417c8a}*{box-sizing:border-box}html,body{margin:0;background:#101d2b;color:#f6e9d5;font-family:"Microsoft YaHei","PingFang SC",Trebuchet MS,Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #fcda91;outline-offset:2px}.shell{max-width:1240px;margin:auto;padding:12px}.top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 3px 14px}.logo{font:700 clamp(19px,2.8vw,29px) Georgia,serif;letter-spacing:.03em}.logo span{color:#f4c987}.topright{display:flex;gap:7px;flex-wrap:wrap}.btn{border:2px solid #dbb67a;background:linear-gradient(#327f83,#1d505b);border-radius:10px;box-shadow:0 4px 0 #102b35;color:#fff4e1;padding:10px 15px;font-weight:700;min-height:41px}.btn:hover{filter:brightness(1.1)}.btn.secondary{background:linear-gradient(#f8e9ca,#dfc69e);color:#3c4148;box-shadow:0 4px 0 #a88f70}.btn.small{font-size:12px;padding:7px 10px}.steps{display:flex;gap:9px;margin:2px 0 10px}.steps div{background:#334656;border-radius:20px;height:5px;flex:1}.steps div.done{background:var(--gold)}.viewport{background:#142334;border:5px solid #bd9463;border-radius:19px;overflow:hidden;box-shadow:0 22px 60px #0009}.stage{position:relative;aspect-ratio:1200/695;min-height:490px;overflow:hidden;isolation:isolate}.stage svg.bg{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.roomtitle{position:absolute;top:3.2%;left:3.5%;z-index:2;text-shadow:0 3px 9px #091823;pointer-events:none}.roomtitle small{color:#ffe0a5;letter-spacing:.19em;font-size:11px;font-weight:800}.roomtitle h1{font:700 clamp(25px,3vw,42px) Georgia,serif;margin:4px 0}.hot{position:absolute;z-index:4;background:transparent;border:2px solid transparent;border-radius:12px;transition:.18s;box-shadow:none;touch-action:manipulation;outline:none}.hot:hover,.hot:focus-visible,.hot.active{background:rgba(255,221,154,.10);border-color:rgba(255,235,178,.78);box-shadow:0 0 0 2px rgba(255,235,178,.18) inset,0 0 26px rgba(255,227,169,.38)}.hot::after{content:'';display:none}.hud{min-height:67px;background:#f2e6ce;color:#3e4e55;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:11px 17px;flex-wrap:wrap}.status{flex:1;line-height:1.5;font-size:14px;min-width:210px}.inventory{margin-top:14px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:40px}.inventory strong{font-size:11px;letter-spacing:.14em;color:#b4c7d3;margin-right:8px}.piece{background:#f2dfb9;color:#4a4843;border:2px solid #c89b67;padding:7px 14px;border-radius:7px;font:700 19px Georgia,serif;box-shadow:0 3px 0 #aa855c}.note{color:#9fb2bc;font-size:12px;margin:12px 0}.overlay{position:fixed;inset:0;z-index:25;display:grid;place-items:center;background:#071521d8;padding:15px}.dialog{width:min(540px,100%);max-height:90vh;overflow:auto;border:7px solid #b48b5e;border-radius:20px;background:#f7e9d0;color:#34424b;text-align:center;box-shadow:0 24px 60px #000a;padding:26px}.dialog h2{font:700 32px Georgia,serif;margin:0 0 12px}.dialog p{line-height:1.65}.dialog .row{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:17px}.bigpiece{font:bold 45px Georgia,serif;color:#ad7255;margin:12px}.start{position:absolute;inset:0;display:grid;place-items:center;text-align:center;background:radial-gradient(ellipse at 50% 35%,#5d6f86,#192b3c 74%);padding:23px}.start h1{font:700 clamp(40px,6vw,72px) Georgia,serif;margin:8px}.start p{font-size:19px;line-height:1.5}.orn{font-size:70px;color:#f3cf99}.mapFrame{position:absolute;left:16%;top:17%;width:68%;height:77%;background:linear-gradient(140deg,#d2a971,#f1dcad,#bc8c5d);padding:11px;border:8px ridge #805a41;border-radius:14px;box-shadow:0 12px 36px #0014}.mapFrame canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;background:#f0e8d5}.mapText{position:absolute;top:27%;left:1.5%;width:14%;font-size:12px;line-height:1.5;background:#f8e8cfe8;border:3px solid #cba87b;border-radius:9px;padding:10px;color:#475264}.mapText.right{left:auto;right:1.4%}.mapText strong{font:700 17px Georgia,serif}.mapText p{margin:8px 0}.mini{font-size:11px}.theaterControl{position:absolute;bottom:4%;left:4%;width:92%;min-height:94px;border-radius:14px;background:#f6e4ccea;border:5px solid #98683e;box-shadow:0 8px 23px #0009;color:#4e4143;padding:10px;display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;z-index:4}.theaterControl button{padding:9px 11px;border:2px solid #a88761;border-radius:9px;background:#f9eed7;color:#4e4040;font-size:13px;min-height:38px;font-weight:700}.theaterControl button.active{background:#f4ce85;border-color:#754e37}.spot{position:absolute;left:36%;top:13%;width:31%;height:61%;background:linear-gradient(#ffefb82b,#ffe3a036);clip-path:polygon(44% 0,56% 0,100% 100%,0 100%);pointer-events:none;z-index:2;transition:all .35s}.spot.left{left:10%}.spot.right{left:58%}.theaterMessage{position:absolute;left:25%;top:19%;width:50%;text-align:center;color:#fff8dc;text-shadow:0 2px 8px #070c16;font:700 18px Georgia,serif;z-index:3;pointer-events:none}.prop{position:absolute;bottom:25%;width:12%;height:17%;z-index:3;border:none;background:transparent;border-radius:12px;font-size:47px;filter:drop-shadow(0 5px 3px #0007);transition:.2s}.prop:hover{transform:translateY(-8px);background:#ffeeaa40}.prop[data-prop="moon"]{left:27%}.prop[data-prop="crown"]{left:45%}.prop[data-prop="star"]{left:63%}.prop.active{filter:drop-shadow(0 0 12px #ffe88e);transform:translateY(-13px)}.curtain{position:absolute;top:14%;bottom:20%;width:25%;background:repeating-linear-gradient(90deg,#5b142b 0,#a72e49 15%,#64172e 28%,#310e20 36%);border:8px solid #b47f4f;box-shadow:inset 10px 1px 15px #0007;transition:width 1s;z-index:2;pointer-events:none}.curtain.l{left:17%;border-right:5px solid #dca866}.curtain.r{right:17%;border-left:5px solid #dca866}.curtain.open{width:4%}.stageReward{position:absolute;top:36%;left:37%;width:26%;text-align:center;z-index:2;font:700 52px Georgia,serif;color:#fae2a9;text-shadow:0 0 17px #fff0bb;animation:rise .8s ease-out}@keyframes rise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.sortBox{position:absolute;left:13%;top:21%;width:74%;z-index:4;background:#f6e7cdeb;border:7px solid #bc946a;border-radius:18px;color:#42404a;text-align:center;padding:22px;box-shadow:0 10px 30px #0008}.sortBox h2{font:700 clamp(19px,3vw,30px) Georgia,serif;margin:0 0 8px}.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:15px 0}.tiles button{background:#fff5df;color:#473d46;border:3px solid #bc9063;border-radius:10px;font:700 clamp(16px,2.5vw,24px) Georgia,serif;padding:15px 2px;min-height:59px}.tiles button.sel{background:#a4d8ce;border-color:#307577}.ending{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:30px;background:radial-gradient(ellipse,#d1b5ad,#735f88 58%,#1d334f);color:white}.ending h1{font:700 clamp(37px,6vw,72px) Georgia,serif;margin:18px 0;text-shadow:0 3px 20px #39264a}.ending p{font:clamp(16px,2vw,24px) Georgia,serif}.ending .hearts{font-size:70px;color:#fce1b4}.fallback{padding:50px;text-align:center}.testnote{font-size:11px;color:#a7aeba}@media(max-width:760px){.shell{padding:6px}.logo{font-size:18px}.topright .btn{padding:8px;font-size:12px}.stage{aspect-ratio:4/5;min-height:490px}.stage svg.bg{width:100%;height:100%;object-fit:cover;object-position:center}.roomtitle{top:2%}.roomtitle h1{font-size:24px}.roomtitle small{font-size:9px}.safe{left:20%;width:60%;bottom:3%;padding:6px}.safe input{width:80px}.mapFrame{left:2%;width:96%;top:25%;height:57%;padding:5px;border-width:5px}.mapText{top:16%;left:2%;width:46%;font-size:11px;padding:5px}.mapText.right{right:2%;width:45%;top:16%}.mapText strong{font-size:13px}.mapText p{margin:3px}.theaterControl{bottom:2%;left:2%;width:96%;padding:6px;gap:5px}.theaterControl button{font-size:11px;padding:6px}.theaterMessage{top:26%;font-size:14px}.curtain{top:21%;bottom:25%}.prop{bottom:29%;font-size:34px}.sortBox{left:3%;width:94%;top:25%;padding:10px}.tiles{gap:4px}.tiles button{min-height:51px}.hud{padding:9px}.status{font-size:12px}.dialog{padding:17px}.dialog h2{font-size:25px}}

.factoryPanel{position:absolute;left:11%;right:11%;top:19%;bottom:5%;background:#f4e7cbed;color:#38434b;border:7px solid #bf9868;border-radius:17px;padding:12px;z-index:3;box-shadow:0 12px 35px #0008;overflow:auto}.factoryTitle{display:flex;justify-content:space-between;font:bold 17px Georgia,serif;border-bottom:2px solid #bc996b;padding-bottom:7px}.factoryTitle span{font:700 12px Arial}.factoryInstruction{font-weight:650;font-size:13px;margin:8px 0}.factoryMachine{position:relative;height:222px;border:6px solid #936c4b;border-radius:12px;background:linear-gradient(90deg,#394f61,#6b8190);overflow:hidden}.factoryRails{position:absolute;left:10%;width:72%;top:22px}.factoryRail{height:62px;display:flex;justify-content:space-between;align-items:center;padding:0 10px;border-top:10px solid #c19c66;border-bottom:10px solid #c19c66;background:repeating-linear-gradient(90deg,#39505d 0,#39505d 20px,#557388 20px,#557388 35px);color:#fff6da;font-size:12px;opacity:.56}.factoryRail.selected{opacity:1;box-shadow:inset 0 0 18px #ffe1a2}.factoryBox{position:absolute;left:12%;width:47px;height:43px;border:4px solid #fff0ca;border-radius:7px;text-align:center;font-size:28px;z-index:2;box-shadow:0 3px 8px #0007;transition:top .2s}.factoryGate{position:absolute;top:5px;right:17%;font-size:12px;background:#dfc592;color:#3d4149;border-radius:7px;padding:5px}.factoryGoal{position:absolute;right:1%;bottom:15px;background:#f1d6a6;color:#514535;font-weight:bold;border-radius:7px;padding:9px}.factoryControls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding-top:10px}.factoryControl{display:flex;align-items:center;gap:5px;font-size:12px;background:#ead6b1;border-radius:9px;padding:5px}.factoryControls button{border:2px solid #b38b61;border-radius:7px;padding:7px;background:#fff4db;color:#3d4149;font-weight:bold}.factoryControls button.chosen{background:#b8e6d1}.factoryButtons{display:flex;align-items:center;gap:4px}.factorySend{background:#2a7376!important;color:white!important}.factoryFoot{font-size:11px;text-align:center;margin-top:7px;color:#64605a}@media(max-width:760px){.factoryPanel{left:2%;right:2%;top:22%;bottom:2%;padding:7px}.factoryMachine{height:190px}.factoryRail{height:50px}.factoryBox{width:34px;height:35px;font-size:19px}.factoryControls{gap:3px}.factoryControl{font-size:10px;padding:3px}.factoryControls button{padding:5px}.factoryTitle{font-size:13px}.factoryInstruction{font-size:11px}}

.celebrate{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:9}.spark{position:absolute;top:-10%;width:8px;height:19px;background:var(--c);left:var(--x);opacity:.93;animation:fall var(--t) linear infinite;animation-delay:var(--d);transform:rotate(var(--r))}@keyframes fall{0%{transform:translateY(-60px) rotate(0deg);opacity:0}12%{opacity:1}100%{transform:translateY(850px) rotate(870deg);opacity:0}}.firework{position:absolute;left:var(--x);top:var(--y);width:6px;height:6px;background:#ffe8ab;border-radius:50%;box-shadow:0 0 0 8px #ffeaaa22,0 0 0 26px #fff0b022,0 0 0 43px #f4b5ba16;animation:burst 1.8s ease-out infinite;animation-delay:var(--d)}@keyframes burst{0%{opacity:0;transform:scale(.15)}25%{opacity:1}100%{opacity:0;transform:scale(2.4)}}

/* V9 tactile factory — responsive, no keyboard controls required */
.newfactory{left:9%;right:9%;top:17%;bottom:3%;display:flex;flex-direction:column;gap:7px;overflow:hidden;padding:12px;background:#f2e3c9f2}
.factoryHow{font-size:12px;background:#fff6e5;border-left:4px solid #b58653;padding:7px 10px;line-height:1.4}
.factoryScene{position:relative;flex:1;min-height:170px;background:linear-gradient(160deg,#294858,#426779);border:5px solid #ba8f5c;border-radius:12px;overflow:hidden;touch-action:none;user-select:none;cursor:grab}
.factoryScene svg{width:100%;height:100%;position:absolute;inset:0;pointer-events:none}
.draggableCrate{position:absolute;width:7.3%;aspect-ratio:1.15;transform:translate(-50%,-50%);border-radius:8px;border:4px solid #fff2cd;box-shadow:0 3px 0 #7d6045,0 0 20px #f0d19770;display:grid;place-items:center;color:#315168;font-size:26px;z-index:3;pointer-events:none;transition:top .07s linear,left .07s linear}
.factoryFeedback{position:absolute;bottom:2%;left:3%;width:94%;text-align:center;font-size:12px;color:#fff5d8;background:#1d3448b8;border-radius:7px;padding:5px;pointer-events:none}
.newcontrols{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:center;margin-top:3px}
.newcontrols button{touch-action:manipulation;border:2px solid #ac8458;border-radius:8px;color:#35475a;background:#f9eed6;font-size:13px;font-weight:650;padding:9px;min-height:43px}
.newcontrols button.chosen{background:#b4e1d3;border-color:#38847e}
.newfactory .factoryFoot{font-size:12px;text-align:center}
@media(max-width:760px){.newfactory{left:2%;right:2%;top:22%;bottom:2%;padding:7px;gap:4px}.newfactory .factoryTitle{font-size:14px}.newfactory .factoryInstruction{font-size:11px;line-height:1.35;margin:3px 0}.newfactory .factoryHow{font-size:10px;padding:4px}.newcontrols{gap:3px}.newcontrols button{padding:6px 5px;font-size:10px;min-height:38px}.newfactory .factoryFoot{font-size:10px}.draggableCrate{border-width:3px;font-size:17px}.factoryFeedback{font-size:10px}}

/* V18 Tactical mission — pointer and touch controls */
.tacticPanel{position:absolute;left:6%;right:6%;top:17%;bottom:2%;z-index:4;background:#e6dbbc;color:#243643;border:6px solid #ae8658;border-radius:17px;padding:10px;display:flex;flex-direction:column;gap:7px;box-shadow:0 12px 24px #0009}
.tacticHead{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:2px solid #bd9b6c;padding:3px 6px 8px;font-size:14px}.tacticHead strong{font:700 19px Georgia,serif}.tacticInstructions{background:#fff4d9;border-left:5px solid #ba8e54;padding:7px 9px;font-size:12px;line-height:1.5}.tacticViewport{position:relative;flex:1;min-height:235px;background:#344b4b;border:5px solid #957e57;border-radius:12px;overflow:hidden}.tacticViewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.tacticActions{display:flex;justify-content:space-between;gap:6px;align-items:center;flex-wrap:wrap}.tacticActions button{border:2px solid #a27a4b;background:#fdf0ce;color:#2d4652;padding:7px 12px;border-radius:8px;font-weight:bold}.tacticActions button.fire{background:#a44e39;color:#fff1cd;border-color:#843a33}.tacticBar{font-size:12px;font-weight:bold}.tacticToast{position:absolute;bottom:7px;left:3%;right:3%;text-align:center;background:#142a35ce;color:#fff4d3;border-radius:8px;padding:7px;font-size:12px;pointer-events:none}
@media(max-width:700px){.tacticPanel{left:1%;right:1%;top:21%;bottom:1%;padding:5px;gap:4px;border-width:3px}.tacticHead strong{font-size:14px}.tacticHead{font-size:11px;padding:1px 3px 3px}.tacticInstructions{font-size:10px;padding:4px}.tacticViewport{min-height:255px}.tacticActions button{padding:7px;font-size:11px}.tacticBar{font-size:10px}}
.stealth-embed{width:100%;background:#102536;padding:0;overflow:hidden;min-height:725px}
.stealth-embed iframe{display:block;width:100%;height:725px;border:0;background:#102536}
@media(max-width:820px){.stealth-embed{min-height:1180px}.stealth-embed iframe{height:1190px}}
@media(max-width:480px){.stealth-embed{min-height:1190px}.stealth-embed iframe{height:1200px}} 

/* V24 polish: unified objective side panels and refined stage chrome */
.level-right-panel{position:absolute;right:1.2%;top:14%;width:22%;bottom:4.2%;z-index:5;background:linear-gradient(155deg,#0f2b41f2,#0a1e30f4);border:2px solid #c89657;border-radius:18px;box-shadow:0 15px 30px #0007;padding:16px 16px 14px;color:#f5ebd7;display:flex;flex-direction:column;gap:12px}
.level-right-panel h3{margin:0;font:700 17px Georgia,serif;color:#ffe3a6;letter-spacing:.03em}.level-right-panel .panel-block{background:#0b2234d0;border:1px solid #34566a;border-radius:14px;padding:12px 13px;line-height:1.6;font-size:13px;color:#dfe5df}.level-right-panel .panel-steps{display:flex;flex-direction:column;gap:8px}.level-right-panel .step{background:#0b2234d0;border:1px solid #305064;border-radius:12px;padding:10px 12px;line-height:1.55;font-size:13px;color:#e6ece3}.level-right-panel .step b{color:#f2ce91;font-family:Georgia,serif;margin-right:6px}.level-right-panel .panel-actions{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}.study-focus-frame{position:absolute;left:1.4%;top:12.5%;width:76%;height:82.5%;z-index:1;border:2px solid #d2a461;border-radius:20px;box-shadow:0 0 0 2px #fff1c427 inset,0 20px 40px #0006;background:linear-gradient(180deg,#0a182540,#0a182510)}
.level-banner{position:absolute;left:32%;top:8.6%;width:34%;z-index:6;background:linear-gradient(180deg,#f4cf85,#d3a253);border:2px solid #f5d391;border-radius:28px;padding:10px 18px;text-align:center;color:#21384b;font:700 16px/1.35 Georgia,serif;box-shadow:0 0 22px #e1af5160}
.study-tip-card{position:absolute;left:2.6%;bottom:4.2%;width:22%;z-index:6;background:linear-gradient(155deg,#0f2b41f2,#0a1e30f4);border:2px solid #c89657;border-radius:18px;box-shadow:0 15px 30px #0007;padding:14px;color:#f5ebd7;line-height:1.6;font-size:13px}
.study-tip-card h3{margin:0 0 8px;font:700 17px Georgia,serif;color:#ffe3a6}.study-tip-card p{margin:7px 0;color:#dde4dc}.study-tip-card .small{font-size:12px;color:#c9d2cf}
.mapShell{position:absolute;left:1.3%;right:24.7%;top:14.2%;bottom:4.2%;z-index:4;border:2px solid #d2a461;border-radius:20px;box-shadow:0 0 0 2px #fff1c427 inset,0 18px 40px #0006;background:linear-gradient(180deg,#0a182550,#0a182518)}
.mapFrame{left:2.2%!important;top:9.5%!important;width:95.2%!important;height:84%!important}
.mapText{display:none!important}
.maze-right-panel{position:absolute;right:1.2%;top:14%;width:22%;bottom:4.2%;z-index:5;background:linear-gradient(155deg,#0f2b41f2,#0a1e30f4);border:2px solid #c89657;border-radius:18px;box-shadow:0 15px 30px #0007;padding:16px 16px 14px;color:#f5ebd7;display:flex;flex-direction:column;gap:12px}
.maze-right-panel h3{margin:0;font:700 17px Georgia,serif;color:#ffe3a6}.maze-right-panel .panel-block{background:#0b2234d0;border:1px solid #34566a;border-radius:14px;padding:12px 13px;line-height:1.6;font-size:13px;color:#dfe5df}.maze-right-panel .panel-actions{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}.maze-right-panel .seal-big{font:700 30px Georgia,serif;color:#f3d49a}
@media(max-width:760px){.level-right-panel,.maze-right-panel{position:absolute;left:2%;right:2%;top:12%;width:auto;bottom:auto;padding:10px 12px;gap:8px}.study-focus-frame{left:2%;width:96%;top:28%;height:68%}.level-banner{left:6%;top:24%;width:88%;font-size:12px;padding:7px 11px}.study-tip-card{left:2%;bottom:2%;width:96%;padding:10px;font-size:11px}.mapShell{left:2%;right:2%;top:26%;bottom:18%;}.mapFrame{left:2%!important;top:5%!important;width:96%!important;height:90%!important}.level-right-panel .panel-actions,.maze-right-panel .panel-actions{margin-top:0}.stealth-embed{min-height:1230px}.stealth-embed iframe{height:1230px}}

.safe-panel-inner{padding:8px 4px 2px}
.safe-instruction{font-size:15px;color:#5c5a58;margin:7px auto 14px;max-width:390px}
.safe-progress{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:13px 0 18px}
.safe-progress span{border:1px solid #d4b788;border-radius:8px;background:#f9efdc;color:#725b44;padding:7px 11px;font-weight:700}
.safe-label{display:block;font-size:13px;letter-spacing:.12em;color:#967149;font-weight:700;margin-bottom:6px}
#safeInput{width:136px;border:2px solid #b89a71;border-radius:10px;text-align:center;letter-spacing:.30em;background:#fffcf6;color:#383d45;font-size:27px;padding:9px 11px;box-shadow:inset 0 3px 5px #00000014}
.safe-notice{color:#866e57;font-size:13px;margin:12px auto 0;max-width:330px}

/* V42: clue tiles immediately follow the label; retain sticky shelf. */
.clue-shelf{justify-content:flex-start!important;gap:12px!important}.clue-shelf .clue-label{flex:0 0 auto!important;min-width:0!important;width:max-content;max-width:100%}.clue-shelf .evidence-meter{max-width:100%}.clue-shelf .clue-chips{flex:0 1 auto!important;justify-content:flex-start!important;order:0!important;overflow-x:auto;min-width:0}.clue-shelf .clue-explain{margin-left:auto;flex:0 1 210px;order:0;text-align:right}.v42-side{display:flex;flex-direction:column;gap:12px;min-width:0}.v42-side>.brief{width:100%;min-width:0}.hud.v42-support{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:0;padding:13px;background:linear-gradient(155deg,#1c4053,#10283a);border:1px solid #cda46c;border-radius:13px;color:#d4e3e4;box-shadow:0 8px 20px #0004}.hud.v42-support:before{content:'FIELD SUPPORT';grid-column:1/-1;font-size:14px;font-weight:700;color:#ffe4ae}.hud.v42-support .status{grid-column:1/-1;min-width:0;font-size:13px;line-height:1.55;color:#d4e3e4;overflow-wrap:anywhere;margin:0 0 3px}.hud.v42-support .btn{min-height:40px;font-size:13px;padding:7px 5px}.viewport:has(.stealth-embed)>.hud{display:none!important}
@media(max-width:850px){.clue-shelf{flex-wrap:wrap;gap:5px 8px!important}.clue-shelf .clue-label{flex:0 0 auto!important}.clue-shelf .clue-chips{flex:0 1 auto!important;max-width:100%;order:0!important}.clue-shelf .clue-explain{flex:1 0 100%;margin-left:0;text-align:left}.hud.v42-support .btn{min-height:44px}}
/* Final decryption and cinematic reveal: original, local-only assets. */
.clue-shelf .clue-label strong{font-size:clamp(12px,1.3vw,17px);letter-spacing:.08em}.clue-shelf .piece{font-size:clamp(12px,1.5vw,19px)}.chapter-banner{font-size:clamp(13px,1.35vw,19px)!important;line-height:1.35;overflow-wrap:anywhere}.brief-card,.brief-help{line-height:1.5}.book-volume strong{font-size:clamp(10px,1.35vw,15px)!important;overflow-wrap:anywhere;letter-spacing:0!important}.stamp-list span{font-size:10px!important;overflow-wrap:anywhere}.safe-progress span{font-size:12px}.dialog h2{overflow-wrap:anywhere}.hud .btn{white-space:normal}.chapter-head>div h1{font-size:clamp(20px,2.4vw,32px)}
.decoder44{padding:clamp(15px,3vw,40px);background:radial-gradient(ellipse at 35% 10%,#26475a,#102333 75%);color:#f0e3c9}.dec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.dec-head small,.dec-aside small{font:700 11px Arial,sans-serif;letter-spacing:.19em;color:#a7c4cb}.dec-head h1{font:normal clamp(28px,4vw,48px) Georgia,serif;margin:7px 0;color:#f5dba8}.dec-badge{border:1px solid #587b7c;padding:9px 12px;color:#a7d9c3;border-radius:4px;font:700 10px Arial;letter-spacing:.14em;white-space:nowrap}.dec-badge i,.dec-leds i{display:inline-block;width:8px;height:8px;background:#5ea88d;border-radius:50%;box-shadow:0 0 9px #68cba9;margin-right:6px}.dec-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:22px;align-items:start}.dec-machine{position:relative;border:1px solid #d2ac72;border-radius:17px;padding:clamp(15px,2.6vw,30px);background:linear-gradient(145deg,#967c52 0,#382f27 1%,#1a2b33 3%,#2e4449 12%,#172a33 65%,#0c1924 95%);box-shadow:0 10px 0 #0b1720,0 15px 35px #0009,inset 0 0 0 4px #423b32,inset 0 0 0 5px #927752}.dec-plate{display:flex;justify-content:space-between;gap:8px;font:700 10px Arial;letter-spacing:.18em;color:#dbc08d;margin-bottom:14px}.dec-screen{border:1px solid #947d55;background:radial-gradient(ellipse at center,#163b3e,#081b25 75%);box-shadow:inset 0 0 0 4px #0b1d27,inset 0 3px 12px #000;padding:18px;text-align:center;border-radius:8px}.dec-screen small{font:10px Arial;letter-spacing:.23em;color:#95b6b5}.dec-screen #decReadout{font:700 clamp(16px,2.6vw,28px) 'Courier New',monospace;letter-spacing:.11em;color:#c1e8cb;margin:15px 0 4px;min-height:1.4em;overflow-wrap:anywhere}.dec-wave{height:35px;display:flex;gap:3px;justify-content:center;align-items:center;overflow:hidden}.dec-wave i{height:var(--h);width:2px;background:#8bd2ba;opacity:.25;animation:decPulse44 1.8s var(--d) infinite alternate}.dec-leds{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:7px;padding:18px 0 9px}.dec-leds div{display:flex;align-items:center;justify-content:center;gap:3px;color:#bcb49e;font:10px monospace}.dec-leds i{width:6px;height:6px;margin:0;background:#7e6c51;box-shadow:none}.dec-leds i.correct{background:#85c7a8;box-shadow:0 0 8px #77c9aa}.dec-tiles{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.dec-tile{position:relative;min-width:0;padding:10px 2px 7px;min-height:84px;border:1px solid #b89962;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#f7e1ba;background:linear-gradient(150deg,#6d5940,#2c3537 36%,#192a33 80%,#6b5438);box-shadow:0 5px 0 #0b171c,inset 0 0 0 2px #172830,inset 0 1px 1px #f5d59b;text-shadow:0 2px 2px #000;transition:filter .18s,transform .18s}.dec-tile span{font:700 clamp(14px,2.4vw,29px) Georgia,serif;line-height:1.15}.dec-tile small{font:8px Arial;letter-spacing:.06em;color:#b8a481}.dec-tile.sealed{color:#b3cdd0;background:linear-gradient(145deg,#4b6269,#20333d 55%,#16242f)}.dec-tile.locked{background:linear-gradient(145deg,#4f6d63,#234039 58%,#182b28);border-color:#8fd0ae;box-shadow:0 5px 0 #0b171c,inset 0 0 0 2px #1a2f31,inset 0 1px 1px #dff8ea,0 0 0 1px rgba(141,211,169,.25),0 0 18px rgba(124,216,173,.22)}.dec-tile.locked span{color:#e7fff1}.dec-tile.locked small{color:#a9e0c2}.dec-tile.locked::after{content:'✓';position:absolute;top:6px;right:8px;font:700 14px Arial;color:#cbffe1;text-shadow:0 0 8px rgba(140,240,189,.9)}.dec-tile.chosen{outline:2px solid #ffe0a1;outline-offset:2px;transform:translateY(-5px);filter:brightness(1.3)}.dec-tile:hover{filter:brightness(1.15)}.dec-under{display:flex;align-items:center;gap:12px;font:9px Arial;letter-spacing:.18em;color:#b59a6a;margin:20px 0}.dec-under i{height:1px;flex:1;background:#a58752}.dec-confirm{width:100%;border:1px solid #e8c78f;border-radius:6px;padding:15px;color:#1a2a33;font-weight:800;letter-spacing:.13em;background:linear-gradient(120deg,#f5e4bf,#cba365);box-shadow:0 3px 0 #725c3f}.dec-confirm span{margin-left:8px}.dec-aside{border:1px solid #b99b66;background:#132b3b;padding:20px;border-radius:12px}.dec-aside h2{font:normal 26px/1.15 Georgia,serif;color:#f4d9a5;margin:15px 0}.dec-aside p{font-size:14px;line-height:1.6;color:#d7e2e0}.dec-aside .dec-meta{font-size:12px;color:#a9c1c6}.dec-divider{height:1px;background:#46616a;margin:17px 0}.dec-aside .btn{margin:5px 4px 0 0}.decrypted .dec-leds i{background:#b4f4cc;box-shadow:0 0 10px #b4f4cc}.decrypted .dec-screen{box-shadow:inset 0 0 20px #70c9a844}.decrypted .dec-confirm{opacity:.6;pointer-events:none}@keyframes decPulse44{to{opacity:.7}}
.v44-revealing .clue-shelf,.v44-revealing .steps,.v44-revealing .viewport>.hud,.v44-revealing .note{display:none!important}.v44-revealing .shell{max-width:1500px!important}.reveal44{position:relative;isolation:isolate;overflow:hidden;min-height:560px;height:min(80vh,760px);background:#0d1b29;color:#f9ecd3;text-align:center;display:grid;place-items:center}.rev-room{position:absolute;inset:0;z-index:-4;opacity:.38;filter:blur(2px);transform:scale(1.05)}.rev-room .study-art{object-fit:cover}.rev-shade{position:absolute;inset:0;z-index:-3;background:radial-gradient(ellipse at 50% 42%,#9e805032 0%,#11263591 49%,#07131ff2 100%);transition:background 2s}.rev-frame{position:absolute;inset:18px;z-index:-1;border:1px solid #ba9c6755;pointer-events:none}.rev-frame i{width:22px;height:22px;position:absolute;border-color:#d9bc86;border-style:solid}.rev-frame i:nth-child(1){top:-1px;left:-1px;border-width:1px 0 0 1px}.rev-frame i:nth-child(2){top:-1px;right:-1px;border-width:1px 1px 0 0}.rev-frame i:nth-child(3){bottom:-1px;left:-1px;border-width:0 0 1px 1px}.rev-frame i:nth-child(4){bottom:-1px;right:-1px;border-width:0 1px 1px 0}.rev-motes{position:absolute;inset:0;pointer-events:none;z-index:-1}.rev-motes i{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);border-radius:50%;background:#efd2a0;box-shadow:0 0 10px #ffdda3;animation:revDust44 7s var(--d) infinite;opacity:.15}@keyframes revDust44{0%,100%{transform:translateY(16px);opacity:.08}50%{transform:translateY(-16px);opacity:.55}}.rev-intro,.rev-letter,.rev-final{position:absolute;inset:35px 25px 60px;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity 1.1s,transform 1.1s,visibility 1.1s}.reveal44[data-scene="0"] .rev-intro,.reveal44[data-scene="1"] .rev-intro,.reveal44[data-scene="2"] .rev-letter,.reveal44[data-scene="3"] .rev-letter,.reveal44[data-scene="4"] .rev-final,.reveal44[data-scene="5"] .rev-final,.reveal44[data-scene="6"] .rev-final{opacity:1;visibility:visible;transform:translateY(0)}.rev-kicker{font:700 clamp(9px,1.3vw,13px) Arial;letter-spacing:.24em;color:#e1c89d}.rev-rule{height:1px;width:min(220px,65%);background:linear-gradient(90deg,transparent,#d4b27b,transparent);margin:17px auto}.rev-intro h1{font:normal clamp(32px,5vw,68px)/1.12 Georgia,serif;color:#f7e3bb;margin:15px 0}.rev-intro p,.rev-letter p{font:clamp(15px,2vw,21px)/1.5 Georgia,serif;color:#e3d7bf;margin:8px 0}.rev-incoming{margin-top:40px;letter-spacing:.17em;font:700 12px Arial;color:#c7dbc8;opacity:0;transition:opacity .7s}.rev-incoming i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#b9efcd;box-shadow:0 0 8px #b9efcd;margin-left:6px}.reveal44[data-scene="1"] .rev-incoming{opacity:1}.rev-letter-copy{z-index:2}.rev-letter-copy small{font:10px Arial;letter-spacing:.22em;color:#e6cda1}.rev-letter h2{font:normal clamp(24px,3.8vw,43px)/1.15 Georgia,serif;margin:12px 0;color:#f8e7c5}.rev-envelope{position:relative;width:min(390px,77vw);height:225px;margin-top:55px;perspective:950px;filter:drop-shadow(0 20px 15px #0008)}.rev-envelope-back{position:absolute;inset:0;border-radius:6px;background:linear-gradient(145deg,#ebd6ae,#c3a276);border:1px solid #e8d1a5}.rev-envelope-front{position:absolute;inset:0;background:linear-gradient(150deg,#f4e0b7,#bd9968);clip-path:polygon(0 0,50% 55%,100% 0,100% 100%,0 100%);border:1px solid #e0c292;z-index:3}.rev-flap{position:absolute;inset:0;background:linear-gradient(#f5e5c3,#d0ab79);clip-path:polygon(0 0,100% 0,50% 69%);transform-origin:top;transition:transform 1.15s cubic-bezier(.4,.1,.3,1);z-index:4}.rev-wax{position:absolute;left:50%;top:64%;width:52px;height:52px;display:grid;place-items:center;transform:translate(-50%,-50%);border:3px double #d59672;border-radius:50%;background:radial-gradient(circle at 35% 20%,#aa5144,#6d252a 65%,#491a20);color:#e9b88f;box-shadow:0 4px 7px #0006;z-index:5;transition:transform .6s,opacity .6s;font-size:28px}.rev-paper{position:absolute;left:7%;right:7%;top:6%;height:90%;background:linear-gradient(140deg,#fff6de,#e7d0a5);color:#675237;border:1px solid #bba077;box-shadow:0 4px 12px #392e2470;padding:12px;transition:transform 1.3s .5s;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.rev-paper-line{position:absolute;inset:8px;border:1px solid #bb9c67;pointer-events:none}.rev-paper small{font:9px Arial;letter-spacing:.16em}.rev-paper span{font:italic 12px Georgia,serif}.rev-paper svg{height:110px;width:95%}.reveal44[data-scene="3"] .rev-flap{transform:rotateX(175deg);z-index:1}.reveal44[data-scene="3"] .rev-wax{transform:translate(-50%,60px) rotate(24deg);opacity:0}.reveal44[data-scene="3"] .rev-paper{transform:translateY(-78px)}.rev-booties{width:min(280px,47vw);margin:0 auto -5px;filter:drop-shadow(0 0 25px #e9c58c44)}.rev-booties svg{display:block;width:100%;height:auto}.rev-final h1{font:normal clamp(26px,4.6vw,62px)/1.05 Georgia,serif;margin:5px 0;color:#fff1d8;text-shadow:0 3px 15px #0006}.rev-final h1 em{display:block;font:normal 1.65em/1.04 Georgia,serif;letter-spacing:.035em;color:#f6d49b;text-shadow:0 0 28px #e2b57355}.rev-sub{font:italic clamp(16px,2.3vw,26px)/1.3 Georgia,serif;color:#f6e5c7;margin:9px 0}.rev-baby{font:clamp(15px,1.7vw,20px)/1.55 Georgia,serif;color:#eee1cd;opacity:0;transform:translateY(6px);transition:opacity 1.7s,transform 1.7s;margin-top:7px}.rev-baby span{font-style:italic;color:#f6d8a0}.rev-final .bottom,.rev-foot{opacity:0;transition:opacity 1.7s}.rev-foot{font:9px Arial;letter-spacing:.18em;color:#d2b98d}.reveal44[data-scene="5"] .rev-baby,.reveal44[data-scene="6"] .rev-baby,.reveal44[data-scene="5"] .rev-foot,.reveal44[data-scene="6"] .rev-foot,.reveal44[data-scene="5"] .bottom,.reveal44[data-scene="6"] .bottom{opacity:1;transform:none}.rev-controls{position:absolute;bottom:24px;left:25px;right:25px;display:flex;justify-content:center;gap:15px}.rev-controls button{border:1px solid #ad956657;border-radius:5px;background:#0b1b2699;color:#e4d0aa;font-size:12px;padding:8px 15px;box-shadow:none}.rev-controls button[hidden]{display:none}.reveal44[data-scene="4"] .rev-shade,.reveal44[data-scene="5"] .rev-shade,.reveal44[data-scene="6"] .rev-shade{background:radial-gradient(ellipse at 50% 40%,#ad82473a,#112635b0 55%,#07131ff0 100%)}
@media(max-width:800px){.dec-layout{grid-template-columns:1fr}.dec-head{margin-bottom:14px}.dec-machine{padding:12px}.dec-tile{min-height:58px}.dec-tile small{font-size:6px}.dec-tile span{font-size:clamp(10px,3.8vw,20px)}.dec-tiles,.dec-leds{gap:4px}.dec-aside{padding:14px}.dec-aside h2{font-size:22px}.dec-leds div{font-size:8px}.dec-screen{padding:10px}.reveal44{min-height:510px;height:calc(100svh - 90px);max-height:760px}.rev-frame{inset:10px}.rev-intro,.rev-letter,.rev-final{inset:22px 17px 53px}.rev-envelope{height:170px;margin-top:62px}.rev-paper svg{height:76px}.rev-paper span{font-size:10px}.rev-paper small{font-size:8px}.rev-wax{width:38px;height:38px;font-size:20px}.rev-rule{margin:10px auto}.rev-booties{width:min(220px,55vw)}.rev-baby{font-size:15px}.rev-controls{bottom:17px}.rev-foot{font-size:8px}.dec-badge{font-size:8px;padding:7px}.dec-head small{font-size:9px}.dec-tile svg{width:21px!important;height:21px!important}}
@media(max-height:560px) and (orientation:landscape){.reveal44{height:500px;min-height:500px}.rev-booties{width:185px}.rev-final h1{font-size:36px}.rev-baby{font-size:15px}.rev-rule{margin:8px auto}}
@media(prefers-reduced-motion:reduce){.rev-motes i,.dec-wave i{animation:none}.rev-intro,.rev-letter,.rev-final,.rev-baby,.rev-flap,.rev-paper,.rev-wax{transition:none}}

.rev-letter-copy{position:absolute;top:7%;left:0;right:0;z-index:6}.rev-envelope{position:absolute;bottom:8%;left:50%;transform:translateX(-50%);margin:0}.rev-envelope-front{background:linear-gradient(150deg,#f4e0b7,#bd9968);box-shadow:inset 0 -3px 3px #9b754536}.rev-envelope-front:after{content:"";position:absolute;inset:0;background:linear-gradient(34deg,transparent 49.7%,#95713d55 50%,transparent 50.6%),linear-gradient(-34deg,transparent 49.7%,#95713d55 50%,transparent 50.6%)}.rev-paper span{display:none}.rev-paper{padding-bottom:20px}.reveal44[data-scene="3"] .rev-paper{transform:translateY(-96px)}.rev-letter[data-scene="3"]{pointer-events:none}@media(max-width:800px){.rev-letter-copy{top:6%}.rev-envelope{bottom:9%;width:min(330px,76vw);height:168px}.reveal44[data-scene="3"] .rev-paper{transform:translateY(-73px)}}@media(max-height:560px) and (orientation:landscape){.rev-letter-copy{top:0}.rev-envelope{height:150px;bottom:3%}.rev-letter h2{font-size:26px}.rev-letter p{font-size:15px}}

.study-board .study-off52{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;opacity:0;transition:opacity .35s;z-index:1}.study-board.dim .study-off52{opacity:1}.study-board.dim .study-contours{opacity:0!important}.study-board.dim .contour{opacity:0!important}.study-board.dim #hot-lamp .object-glow{opacity:0!important}.study-board.dim .study-art{filter:none}.ink52{position:absolute;left:46.9%;top:88.4%;width:12.6%;height:6.3%;border:0;background:transparent;color:#b8edff;z-index:4;opacity:0;visibility:hidden;pointer-events:none;padding:0;transform:rotate(5deg) skewX(-12deg);text-shadow:0 0 4px #53a9fa,0 0 10px #68c5ff;display:flex;align-items:center;justify-content:center;gap:2px;font:700 clamp(8px,1.2vw,19px) Georgia}.ink52 small{position:absolute;right:-4%;top:-18%;color:#e0faff;font-size:.8em}.study-board.dim .ink52{visibility:visible;opacity:1;pointer-events:auto;animation:inkFade52 .7s ease-out both}.ink52:focus-visible{outline:2px solid #9bd8ff}.ink-panel52{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:radial-gradient(ellipse,#254a63,#0a1d2b);padding:19px 10px;border:1px solid #9ab6c5;border-radius:12px;color:#c5efff}.ink-panel52>div{display:grid;gap:7px;justify-items:center;text-shadow:0 0 10px #54b9e7}.ink-panel52 b{font:18px Georgia}.ink-panel52 span{font:38px Georgia}.ink-panel52 small{font:10px Arial;letter-spacing:.12em}@keyframes inkFade52{from{opacity:0}to{opacity:1}}
.v46:not(.is-revealed) .rev-room{filter:blur(2px) saturate(.65) hue-rotate(8deg);opacity:.32}.v46:not(.is-revealed) .rev-shade{background:radial-gradient(ellipse at 50% 45%,#244c6960,#0c2032be 50%,#050f1cf5 100%)}.v46 .cipherSeal52{color:#a58248;font:clamp(30px,5vw,58px) Georgia;line-height:1.1;margin:7px auto;text-shadow:0 1px 1px #fff6d9}.revealBurst52{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 50% 43%,#ffe4ae75 0%,#dfa95a38 26%,transparent 67%)}.v46.is-revealed .revealBurst52{animation:burst52 1.65s ease-out both}@keyframes burst52{0%{opacity:.9;transform:scale(.35)}35%{opacity:.76;transform:scale(1.1)}100%{opacity:0;transform:scale(1.7)}}.v46.is-revealed .rev-shade{background:radial-gradient(ellipse at 50% 39%,#dba45365 0%,#6a472b40 37%,#0a1827e6 76%)}.v46.is-revealed .rev-final{animation:title52 .52s cubic-bezier(.16,.85,.24,1) both}@keyframes title52{from{opacity:.3;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.ink52,.v46.is-revealed .revealBurst52,.v46.is-revealed .rev-final{animation:none!important}}

.mobileMission55{display:none}.complete55{display:grid;gap:8px;padding:13px;border:1px solid #82b69d;background:linear-gradient(145deg,#244b42,#15333a);border-radius:12px;color:#d4f1df}.complete55 strong{font-size:13px;letter-spacing:.08em}.complete55 small{display:block;font-size:12px;margin-top:4px;color:#c1d9cd}.complete55 .btn{white-space:normal;font-size:13px;min-height:44px}#game>.complete55{margin:0 0 12px;grid-template-columns:1fr auto;align-items:center}#safeFeedback55{color:#9a3027;font-weight:700;min-height:1.3em;margin:8px 0 0;font-size:13px}#safeFeedback55:empty{display:none}
@media(max-width:850px){.mobileMission55{display:flex;gap:6px}.mobileMission55 button{flex:1;min-height:44px;white-space:normal;padding:7px 5px}.mobileMission55 button:first-child{flex:1.6}.v42-side:not(.expanded55)>.brief,.v42-side:not(.expanded55)>.hud{display:none}.v42-side.expanded55>.brief,.v42-side.expanded55>.hud{display:revert}.v42-side.expanded55>.hud{display:grid}#game>.complete55{grid-template-columns:1fr}.v47-continue{min-height:44px}}

.safe-gate56{display:grid;gap:5px;padding:10px 13px;margin:8px 0 14px;border:1px solid #c7a16b;border-radius:9px;background:#fff6e4;color:#77532f;font-size:13px;line-height:1.45;text-align:left}.safe-gate56 b{font-size:14px}.safe-progress .safe-order-pending56{border-style:dashed;color:#88613c}.safe-progress .safe-order-done56{color:#326c52;border-color:#80a890}#safeFeedback55.safe-pending56{color:#79552e}


.v10factory{left:7%;right:7%;top:17%;bottom:3%;display:flex;flex-direction:column;overflow:hidden;gap:8px;background:linear-gradient(#f6e7ca,#e5cfaa)}
.v10factory .factoryTitle{flex-shrink:0}.factoryNote{font-size:14px;line-height:1.5;color:#3b4650;background:#fff6e2;border-left:5px solid #b28a59;padding:8px 12px}.factoryNote small{font-size:12px;color:#6f6b65}.factoryPlay{flex:1;min-height:280px;position:relative;background:#29495a;border:5px solid #a27d50;border-radius:14px;overflow:hidden;touch-action:none;user-select:none}.factoryPlay>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.factoryStation{position:absolute;width:15%;height:25%;transform:translate(-50%,-50%);border:4px solid #d7b77a;border-radius:14px;background:linear-gradient(145deg,#eee0bd,#b8bbc0);color:#2b4652;box-shadow:0 7px 0 #1b3342,0 10px 15px #0005;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none}.factoryStationSymbol{font-size:31px;color:#9a6738}.factoryStation strong{font-size:14px}.factoryStation small{font-size:10px}.factoryStation.completed{background:linear-gradient(#e1efc3,#a6cab2);border-color:#c5f0bf}.stationStamp{position:absolute;right:5px;top:0;font-size:19px;color:#278269;font-weight:900}.v10crate{position:absolute;transform:translate(-50%,-50%);width:9%;min-width:48px;aspect-ratio:1.2;border-radius:9px;border:4px solid #fff4cc;box-shadow:0 8px 10px #0006, inset 0 4px 0 #ffffff6a;color:#4e5360;font-size:31px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:8;touch-action:none;cursor:grab}.v10crate small{font-size:10px;white-space:nowrap;position:absolute;bottom:-20px;color:#f7e6c6;text-shadow:0 2px 4px #000}.factoryPulse{position:absolute;left:15%;right:15%;bottom:4px;text-align:center;border-radius:8px;background:#122d3cbd;color:#e4f0ed;padding:5px;font-size:11px;pointer-events:none}.factoryProgress{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:#41505a}.factoryProgress span{border:1px solid #bba47f;border-radius:12px;padding:4px 8px;background:#fff0d6}.factoryProgress span.ok{background:#b5d8c5}.factoryActions{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}.factoryActions button{border:2px solid #b68d5a;background:#fff0d8;border-radius:9px;padding:7px;color:#354a53;font-weight:bold}.factoryActions span{font-size:12px;color:#536069}@media(max-width:760px){.v10factory{left:1%;right:1%;top:20%;bottom:1%;padding:7px}.factoryNote{font-size:11px;padding:5px}.factoryNote small{font-size:10px}.factoryPlay{min-height:280px}.factoryStation{width:21%;height:20%;border-width:2px}.factoryStationSymbol{font-size:21px}.factoryStation strong{font-size:10px}.factoryStation small{font-size:8px}.v10crate{min-width:38px;font-size:22px;border-width:2px}.factoryProgress{font-size:10px;gap:3px}.factoryProgress span{padding:2px 4px}}

/* V18 Tactical mission — pointer and touch controls */
.tacticPanel{position:absolute;left:6%;right:6%;top:17%;bottom:2%;z-index:4;background:#e6dbbc;color:#243643;border:6px solid #ae8658;border-radius:17px;padding:10px;display:flex;flex-direction:column;gap:7px;box-shadow:0 12px 24px #0009}
.tacticHead{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:2px solid #bd9b6c;padding:3px 6px 8px;font-size:14px}.tacticHead strong{font:700 19px Georgia,serif}.tacticInstructions{background:#fff4d9;border-left:5px solid #ba8e54;padding:7px 9px;font-size:12px;line-height:1.5}.tacticViewport{position:relative;flex:1;min-height:235px;background:#344b4b;border:5px solid #957e57;border-radius:12px;overflow:hidden}.tacticViewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.tacticActions{display:flex;justify-content:space-between;gap:6px;align-items:center;flex-wrap:wrap}.tacticActions button{border:2px solid #a27a4b;background:#fdf0ce;color:#2d4652;padding:7px 12px;border-radius:8px;font-weight:bold}.tacticActions button.fire{background:#a44e39;color:#fff1cd;border-color:#843a33}.tacticBar{font-size:12px;font-weight:bold}.tacticToast{position:absolute;bottom:7px;left:3%;right:3%;text-align:center;background:#142a35ce;color:#fff4d3;border-radius:8px;padding:7px;font-size:12px;pointer-events:none}
@media(max-width:700px){.tacticPanel{left:1%;right:1%;top:21%;bottom:1%;padding:5px;gap:4px;border-width:3px}.tacticHead strong{font-size:14px}.tacticHead{font-size:11px;padding:1px 3px 3px}.tacticInstructions{font-size:10px;padding:4px}.tacticViewport{min-height:255px}.tacticActions button{padding:7px;font-size:11px}.tacticBar{font-size:10px}}

/* The always-visible evidence shelf: directly above the gameplay */
.clue-shelf{position:sticky;top:0;z-index:14;display:flex;align-items:center;gap:16px;margin:0 0 12px;padding:12px 16px;border:2px solid #d7ad72;border-radius:13px;background:linear-gradient(110deg,#203e4e 0%,#23485a 55%,#172e3d 100%);box-shadow:0 5px 22px #0007}
.clue-label{flex:0 0 auto;display:flex;flex-direction:column;gap:4px;min-width:133px}
.clue-label strong{font-size:17px;color:#ffe0a0;letter-spacing:.05em}
.clue-label small{font-size:12px;color:#d2e1e4}
.clue-chips{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:4px 2px;scrollbar-width:thin;flex:1;min-width:0}
.clue-chips .piece{white-space:nowrap;font-size:18px;padding:7px 13px;background:#fff0ce;border-color:#f6c785;animation:clueIn .34s ease-out both}
.clue-empty{color:#c2d8dc;font-size:14px;white-space:nowrap}
.clue-chips .clue-blank{flex:0 0 auto;width:42px;height:39px;border:1px dashed #6b8b96;border-radius:7px;display:flex;align-items:center;justify-content:center;color:#7695a1;font-size:18px}
@keyframes clueIn{from{opacity:0;transform:scale(.82) translateY(5px)}to{opacity:1;transform:scale(1) translateY(0)}}
@media(max-width:760px){.clue-shelf{padding:8px 10px;gap:9px;margin-bottom:7px}.clue-label{min-width:93px}.clue-label strong{font-size:13px}.clue-label small{font-size:10px}.clue-chips{gap:5px}.clue-chips .piece{font-size:15px;padding:6px 9px}.clue-chips .clue-blank{height:32px;width:30px}}

/* V18 art direction: quiet luxury game UI, refined typography and feedback */
:root{--ink:#18313f;--cream:#fff4de;--gold:#e5b97a;--blue:#468a93}
html,body{background:radial-gradient(ellipse at 50% -15%,#2e4656 0%,#152533 46%,#0e1c29 100%);}
.shell{max-width:1300px;padding:16px 20px 30px}
.top{padding:7px 4px 17px}.logo{font-size:clamp(23px,2.5vw,33px);letter-spacing:.04em;text-shadow:0 2px 10px #0005}
.btn{border-color:#e4bb80;background:linear-gradient(180deg,#368992,#1d5968);box-shadow:0 3px 0 #0d3442,0 8px 18px #0003;transition:filter .15s,transform .15s}
.btn:hover{transform:translateY(-1px);filter:brightness(1.08)}
.viewport{border:2px solid #cfa16b;border-radius:20px;box-shadow:0 22px 70px #0009,0 0 0 6px #f5dba70b;}
.stage{background:#1d3949}.roomtitle{top:3%;left:3.7%;filter:drop-shadow(0 3px 9px #12222bcc)}.roomtitle h1{font-weight:700;color:#fff2d7;letter-spacing:.04em}
.clue-shelf{border:1px solid #d9b078;border-radius:16px;background:linear-gradient(115deg,#213b48,#29495b 65%,#234353);box-shadow:0 8px 28px #0005,inset 0 1px 0 #f5dfa333;padding:15px 18px}
.clue-chips .piece{background:linear-gradient(#fff4db,#f2dcb5);border:1px solid #f5d39b;color:#34414a;border-radius:9px;box-shadow:0 3px 0 #a58561,0 4px 9px #0003}
.clue-chips .clue-blank{background:#ffffff06;border-color:#62818e;color:#809daa}
.hot{background:transparent!important;border:2px solid transparent!important;border-radius:15px;box-shadow:none!important}
.hot:hover,.hot:focus-visible{border:2px solid #ffe6a5cc!important;box-shadow:0 0 0 3px #ffdc8940 inset,0 0 35px #ffdfa450!important;background:rgba(255,235,163,.075)!important;}
.hot::after{display:none!important}
.safe{background:linear-gradient(155deg,#fff5deee,#e8cfaaee);border:2px solid #9f7554;border-radius:14px;box-shadow:0 12px 32px #0008,0 0 0 5px #f6daa344 inset;padding:15px 14px;bottom:4.4%;}
.safe b{font:700 20px Georgia,serif;color:#443e3a}.safe p{line-height:1.55;color:#5a5552}
.safe input{background:#fffdf4;border:1px solid #ae916c;border-radius:8px;box-shadow:inset 0 2px 5px #0001}
.dialog{border:2px solid #e2bd8b;background:linear-gradient(145deg,#fff4df,#f1e0c4);border-radius:22px;padding:30px;box-shadow:0 28px 80px #000b,0 0 0 6px #eecf9966 inset;}
.dialog h2{color:#3c4148;font-size:clamp(26px,3vw,34px);line-height:1.15}.dialog p{font-size:15px;line-height:1.7}
.bigpiece{color:#91603f;text-shadow:0 2px 0 #fff6df}
.encourage-en{display:inline-block;margin-top:7px;font:italic 600 15px Georgia,serif;color:#667d7d;letter-spacing:.02em}
.hud{background:linear-gradient(#f8ebd2,#ebdbbf);border-top:1px solid #fff6dc;color:#42515a}
@media(max-width:700px){.shell{padding:8px}.clue-shelf{padding:10px}.safe{width:40%;left:30%;padding:9px}.dialog{padding:22px}}

/* V18: no rectangular hotspot visuals, even on hover, focus or touch */
.stage .hot,.stage .hot:hover,.stage .hot:focus,.stage .hot:focus-visible,.stage .hot:active{
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;outline:0!important;transition:none!important;
}
.stage .hot::after,.stage .hot:hover::after{display:none!important;content:none!important}
.stage svg.bg .interactive-object{transition:filter .2s ease,opacity .2s ease;filter:brightness(1)}
.stage svg.bg .interactive-object.object-lit{opacity:.32;filter:brightness(1.8) saturate(1.1) drop-shadow(0 0 9px #ffdda0) drop-shadow(0 0 18px #f2c97a)}
.stage svg.bg .interactive-object.object-lit .glow-detail{opacity:1}
@media(prefers-reduced-motion:reduce){.stage svg.bg .interactive-object{transition:none}}

/* The Secret Message: cinematic visual system */
:root{--ink:#263a49;--cream:#fff3dc;--gold:#eac281;--blue:#4d8b91}
html,body{background:radial-gradient(ellipse at 50% -20%,#24465a 0%,#0c1b2b 55%,#09131d 100%);color:#fff0d8}
.shell{max-width:1360px;padding:16px 20px 24px}
.top{padding:8px 4px 17px;border-bottom:1px solid #d8b67833;margin-bottom:12px}
.logo{font-family:Georgia,'Songti SC','Microsoft YaHei',serif;font-size:clamp(22px,2.7vw,34px);text-shadow:0 3px 16px #0007}
.btn{background:linear-gradient(160deg,#2f7d87,#184f60);border:1px solid #efd1a0;border-bottom-width:3px;box-shadow:0 4px 10px #0005, inset 0 1px #ffffff44;transition:filter .2s,transform .15s}
.btn:hover{filter:brightness(1.17);transform:translateY(-1px)}
.btn.secondary{background:linear-gradient(#fff5df,#dbbd89);border:1px solid #e8ce9f;box-shadow:0 4px 10px #0005;color:#3d4451}
.steps{gap:8px;margin-bottom:14px}.steps div{height:5px;background:#3b4d5d}.steps div.done{background:linear-gradient(90deg,#d2a56e,#f0d79f)}
.clue-shelf{background:linear-gradient(120deg,#203f52,#173044);border:1px solid #d7a96d;border-radius:17px;box-shadow:0 11px 29px #0005,0 1px #fff2 inset;padding:12px 18px}
.viewport{border:3px solid #cda369;border-radius:22px;box-shadow:0 26px 64px #0008,inset 0 1px #fff5}
.roomtitle{top:3%;left:3.4%;background:linear-gradient(90deg,#102539de,#1025399c,transparent);padding:10px 26px 11px 15px;border-radius:11px;backdrop-filter:blur(5px)}
.roomtitle h1{margin:1px 0;font-size:clamp(24px,3.6vw,39px);color:#ffe4b7}
.hot{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:50%}
.hot::after{display:none!important}.hot:hover,.hot:focus-visible{border:0!important;box-shadow:none!important;background:transparent!important}
.hud{background:linear-gradient(#fff3db,#e7d1ac);padding:12px 20px;border-top:1px solid #f5dda9}
.dialog{background:linear-gradient(160deg,#fffaf1,#efdbb7);border:2px solid #ce9d63;box-shadow:0 20px 60px #0009,inset 0 0 0 6px #fff6e5;border-radius:23px;color:#3a4850;padding:26px}
.dialog h2{font-family:Georgia,'Songti SC',serif;color:#403d43;font-size:clamp(24px,3vw,33px);margin:2px 0 15px;text-align:center}
.dialog p{line-height:1.72}
.safe-panel-inner{max-width:430px;margin:auto;text-align:center}
.safe-progress{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:12px 0 18px}
.safe-progress span{background:#f8eddb;color:#765b3d;border:1px solid #d4b98d;border-radius:9px;padding:7px 10px;font-weight:700}
.safe-instruction{font-size:15px;color:#5c5a58}
.safe-label{display:block;color:#8a6640;font-weight:700;font-size:12px;margin:10px 0 6px}
#safeInput{font-size:25px;width:146px;text-align:center;letter-spacing:.32em;padding:8px 11px;background:#fffcf6;border:2px solid #c5a77a;border-radius:9px;outline-color:#c79d62}
.safe-notice{color:#997553;font-size:13px}
.mapFrame{border:6px ridge #a07750;border-radius:13px;background:linear-gradient(140deg,#d9b17e,#f3dfb5,#b88b5a);box-shadow:0 16px 34px #001a}
.mapText{background:#fff2dbe8;border:2px solid #d2ac75;box-shadow:0 6px 16px #0015;backdrop-filter:blur(4px)}
.mapText strong{color:#73573e}
@media(max-width:650px){.shell{padding:8px}.clue-shelf{padding:9px}.roomtitle{top:2%;left:2%;padding:5px 14px}.roomtitle h1{font-size:21px}.dialog{padding:14px}.btn{font-size:13px}}

/* V23 — cinematic coherent art system */
body{background:radial-gradient(ellipse at 45% -15%,#2a4057,#091826 73%,#07131d)!important}
.shell{max-width:1580px!important;padding:12px 18px 28px!important}
.top{border-bottom:1px solid #cfaa74!important}
.logo{font-family:Georgia,'Songti SC',serif!important;letter-spacing:.05em;color:#fff0d3!important}
.clue-shelf{background:linear-gradient(145deg,#102a3f,#173247)!important;border:1.5px solid #d7a661!important;box-shadow:0 8px 30px #0006,inset 0 1px #fff2!important}
.viewport{border:2px solid #d6a764!important;border-radius:22px!important;box-shadow:0 24px 66px #0008!important}
.roomtitle{background:linear-gradient(100deg,#081725eb,#081725c9,transparent)!important;border-radius:9px!important}
.roomtitle h1{font-family:Georgia,'Songti SC',serif!important;color:#fff0cc!important}
.hot,.hot:hover,.hot:focus-visible{border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important}
.hot::after{display:none!important}
.btn{background:linear-gradient(160deg,#236877,#144b5c)!important;color:#fff5d8!important;border:1px solid #e4bd80!important;box-shadow:0 4px 14px #0005!important}
.btn.secondary{background:linear-gradient(#fae9cc,#dcb783)!important;color:#344354!important}
.dialog{background:linear-gradient(145deg,#fff9e9,#e9d0a9)!important;border:2px solid #c9995f!important;box-shadow:0 22px 80px #0009,inset 0 0 0 5px #fff6e0!important}
.dialog h2{font-family:Georgia,'Songti SC',serif!important}
/* hover: genuine soft local light only, never a clipped bright duplicate photo */
.art-light{position:absolute;z-index:2;pointer-events:none;opacity:0;transition:opacity .19s ease;mix-blend-mode:screen}
.art-light.active{opacity:1}
#studyLights .art-light{filter:blur(9px)}
.study-scene{position:absolute;inset:0;background-position:center;background-size:cover;z-index:0}
.stage>.bg{z-index:0}
.mapFrame{left:18.6%!important;top:17%!important;width:62.6%!important;height:76.5%!important;border:8px solid #b9894f!important;border-radius:22px!important;padding:11px!important;background:linear-gradient(120deg,#9e6d3d,#ecd3a1 15%,#f7e6c4 50%,#ad7a49)!important;box-shadow:0 22px 44px #0008,0 0 0 2px #ffebb5 inset!important;z-index:3}
.mapFrame:before{content:'✦ The Moonlit Garden ✦';position:absolute;top:-24px;left:50%;transform:translateX(-50%);background:linear-gradient(#112d43,#0b2132);border:2px solid #d9b070;border-radius:19px;color:#ffe8b7;padding:4px 23px;font:bold 14px Georgia,'Microsoft YaHei',serif;white-space:nowrap;pointer-events:none}
.mapFrame canvas{border-radius:11px!important;background:#efe6cf!important;touch-action:none!important;cursor:crosshair!important}
.mapText{left:1%!important;top:29%!important;width:16.5%!important;background:linear-gradient(155deg,#102d45f2,#0b1e30f2)!important;color:#fff0cf!important;border:2px solid #bd9159!important;border-radius:16px!important;font-size:13px!important;line-height:1.55!important;box-shadow:0 10px 24px #0005!important}
.mapText.right{right:1%!important;left:auto!important}
.mapText strong{font-family:Georgia,'Microsoft YaHei',serif!important;font-size:18px!important;color:#ffe0a4!important}
.mapText p{color:#e2d5c7!important}
#sealCount{color:#ffe3a4;font-size:17px;font-weight:800}
@media(max-width:800px){.mapFrame{left:12%!important;width:76%!important;top:19%!important;height:66%!important}.mapText{top:87%!important;left:1%!important;width:47%!important;font-size:10px!important}.mapText.right{right:1%!important;width:47%!important}}

/* V25 responsive chapter layout; art and hit targets share the same coordinate plane. */
.shell{max-width:1440px!important;padding:16px 20px 24px!important}.top{margin-bottom:10px}.clue-shelf{position:relative;top:auto}.viewport{overflow:hidden}.chapter{padding:18px;background:linear-gradient(145deg,#183347,#0d2131)}.chapter-head{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;margin-bottom:16px}.chapter-head small{font-size:11px;letter-spacing:.13em;color:#b8d1d5}.chapter-head h1{font:700 clamp(22px,3vw,34px) Georgia,'Microsoft YaHei',serif;margin:5px 0;color:#ffe8bd}.chapter-banner{margin:0 auto;padding:13px 22px;background:linear-gradient(150deg,#fff0c7,#d8ac67);color:#21374a;border:1px solid #f1d9a6;border-radius:14px;text-align:center;font-weight:800;line-height:1.45;font-size:14px;max-width:min(980px,100%);width:fit-content;justify-self:center;box-shadow:0 6px 24px #00000018}.chapter-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(255px,300px);gap:16px;align-items:start}.play-column{min-width:0}.study-board{position:relative;aspect-ratio:1200/642;border:2px solid #d5ad76;border-radius:15px;overflow:hidden;isolation:isolate;background:#0b1d2a}.study-art{position:absolute;inset:0;display:block;width:100%;height:100%;transition:filter .3s;pointer-events:none}.study-board.dim .study-art{filter:brightness(.72) saturate(.85)}.study-hot{position:absolute;z-index:2;border:0;background:none;padding:0;cursor:pointer;touch-action:manipulation;outline:none;isolation:isolate;-webkit-tap-highlight-color:transparent}.object-glow{position:absolute;inset:0;opacity:0;pointer-events:none;background:radial-gradient(ellipse at 50% 50%,#ffe2a654 0%,#ffd98c34 48%,#ffcc7814 68%,transparent 88%);filter:drop-shadow(0 0 8px #ffde91);mix-blend-mode:screen;transition:opacity .18s}.study-hot.rect .object-glow{border-radius:12%;box-shadow:inset 0 0 18px #ffe3a470,0 0 13px #ffd38c80}.study-hot.ellipse .object-glow{border-radius:50%;box-shadow:inset 0 0 14px #ffe3a470,0 0 13px #ffd38c80}.study-hot:focus-visible .object-glow,.study-hot.flash .object-glow{opacity:1}@media(hover:hover){.study-hot:hover .object-glow{opacity:1}}.play-caption{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:#b7cbd0;padding:10px 4px}.play-caption span:first-child{color:#f0d29c}.brief{min-width:0;border:1px solid #cda46c;border-radius:15px;padding:17px;background:linear-gradient(155deg,#1c4053,#0c2335);box-shadow:0 8px 22px #0004;display:flex;flex-direction:column;gap:10px}.brief-kicker{color:#d2b17f;font:11px Georgia,serif;letter-spacing:.16em}.brief h2{font:700 22px Georgia,'Microsoft YaHei',serif;color:#ffe4ae;margin:0 0 3px}.brief h3{font-size:13px;margin:0 0 9px;color:#f8d9a2}.brief-card{border:1px solid #35596d;border-radius:10px;padding:10px 12px;background:#0b2639;color:#e5ebdf;font-size:13px;line-height:1.6}.brief-card>b{font:700 15px Georgia,serif;color:#f4cf90;margin-right:5px}.brief-help{margin:0;font-size:12px;color:#b7ced3;line-height:1.6}.stamp-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.stamp-list span{display:grid;gap:3px;text-align:center;border:1px solid #4c6571;border-radius:8px;padding:5px 2px;color:#c3d4d5;font-size:11px}.stamp-list span b{font:700 25px Georgia,serif;color:#d4b27d}.stamp-list .complete{background:#254c42;border-color:#7bb19c}.seal-big{font:700 25px Georgia,'Microsoft YaHei',serif;color:#f6d49b}.garden-board{border:2px solid #d4ac75;border-radius:15px;padding:12px;background:linear-gradient(135deg,#1d3836,#102a35);overflow:hidden}.garden-top{text-align:center;letter-spacing:.15em;color:#f8d9a4;font:700 13px Georgia,serif;margin-bottom:10px;padding:15px 5px;border-radius:8px;background:linear-gradient(#0c263bbb,#0c263bbb),url(assets/cf9478ee5619b727.jpg) center/cover}.maze-scroll{overflow:auto;max-height:clamp(230px,62vw,650px);border:3px solid #ae875a;border-radius:9px;box-shadow:0 6px 20px #0006;overscroll-behavior:contain;scrollbar-color:#c29a67 #132e38}.maze-scroll canvas{display:block;width:100%;height:auto;aspect-ratio:39/29;touch-action:none;cursor:crosshair;max-width:none}.maze-tools,.maze-pad{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-top:10px;font-size:12px;color:#d9e4df}.maze-tools span{margin-left:auto}.maze-pad{justify-content:center;padding-bottom:6px}.maze-pad .btn{min-width:44px;min-height:44px;font-size:19px;padding:4px 10px}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#a46ed1}.legend-dot.teal{background:#46b7a7}.stealth-embed{min-height:0!important;overflow:visible}.stealth-embed iframe{height:760px;width:100%;display:block}.stage{min-height:0;aspect-ratio:1200/695}.start,.ending{padding:24px}.sortBox{max-height:75%;overflow:auto}.hud{gap:8px}.status{min-width:0}.dialog{max-height:85dvh;overscroll-behavior:contain}.btn{touch-action:manipulation}.overlay{overflow:auto}.topright{margin-left:auto}
@media(max-width:850px){.chapter-grid{grid-template-columns:1fr}.chapter-head{grid-template-columns:1fr;gap:7px}.chapter{padding:10px}.chapter-head h1{font-size:24px}.brief{padding:13px;gap:8px}.shell{padding:8px!important}.clue-shelf{padding:9px!important}.chapter-banner{font-size:13px;padding:9px}.stage{min-height:390px;aspect-ratio:auto}.sortBox{top:23%;left:4%;width:92%;padding:12px}.tiles{grid-template-columns:repeat(3,1fr)}.ending h1{font-size:clamp(28px,8vw,45px)}.garden-board{padding:6px}.maze-scroll{max-height:65vw}.hud .status{flex:1 0 100%}.study-board{border-radius:10px}.topright .btn{min-height:36px}.clue-label{min-width:95px}.clue-chips{min-width:0}.play-caption{font-size:11px}}
@media(prefers-reduced-motion:reduce){.object-glow,.study-art{transition:none}.spark,.firework{animation:none}}

.garden-board{background:linear-gradient(#112e36e8,#112e36e8),url(assets/a006175146bf00f0.jpg) left center/auto 100% no-repeat,url(assets/a48343678d8374f3.jpg) right center/auto 100% no-repeat,#14343c}.maze-scroll{width:min(100%, 820px);margin-inline:auto;max-height:none}.maze-scroll.zoomed{max-height:min(64vh,650px)}.garden-top{background-size:cover;background-position:center 47%}.maze-scroll canvas{image-rendering:auto}.maze-pad{padding-top:9px}.study-hot.rect .object-glow{box-shadow:inset 0 0 18px #ffe3a450,0 0 12px #ffd38c70}.chapter-grid{align-items:start}.clue-chips .piece{animation:none}
@media(min-width:1100px){.garden-board{padding-inline:clamp(14px,3.4vw,52px)}.maze-scroll{width:min(100%,calc(max(420px, min(65vh, 650px))*39/29))}}
@media(max-width:850px){.maze-scroll{max-height:none}.maze-scroll.zoomed{max-height:70vw}.garden-board{padding-inline:7px}}

/* V31: localized illumination of the actual artwork, no outlines or luminous hitboxes. */
.study-hot{overflow:visible}
.study-hot .object-glow{display:none!important;border:0!important;box-shadow:none!important}
.study-contours{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:hidden}
.study-contours .contour{opacity:0;transition:opacity .20s ease-out;position:absolute;display:block;pointer-events:none}
.study-board.dim .study-contours{filter:brightness(.72) saturate(.85)}
@media(hover:hover){.study-board:has(#hot-books:hover) .contour-books{opacity:1}}
.study-board:has(#hot-books:focus-visible) .contour-books,.study-board:has(#hot-books.flash) .contour-books{opacity:1}
@media(hover:hover){.study-board:has(#hot-clock:hover) .contour-clock{opacity:1}}
.study-board:has(#hot-clock:focus-visible) .contour-clock,.study-board:has(#hot-clock.flash) .contour-clock{opacity:1}
@media(hover:hover){.study-board:has(#hot-painting:hover) .contour-painting{opacity:1}}
.study-board:has(#hot-painting:focus-visible) .contour-painting,.study-board:has(#hot-painting.flash) .contour-painting{opacity:1}
@media(hover:hover){.study-board:has(#hot-globe:hover) .contour-globe{opacity:1}}
.study-board:has(#hot-globe:focus-visible) .contour-globe,.study-board:has(#hot-globe.flash) .contour-globe{opacity:1}
@media(hover:hover){.study-board:has(#hot-safe:hover) .contour-safe{opacity:1}}
.study-board:has(#hot-safe:focus-visible) .contour-safe,.study-board:has(#hot-safe.flash) .contour-safe{opacity:1}
@media(hover:hover){.study-board:has(#hot-lamp:hover) .contour-lamp{opacity:1}}
.study-board:has(#hot-lamp:focus-visible) .contour-lamp,.study-board:has(#hot-lamp.flash) .contour-lamp{opacity:1}
@media(prefers-reduced-motion:reduce){.study-contours .contour{transition:none}}

/* V34: chapter presentation and tactile puzzles. Existing relighting is untouched. */
.start.v34{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:clamp(20px,5vw,70px);background:linear-gradient(90deg,#091727f5,#142634c9 48%,#10253618),#172a38;text-align:left;overflow:hidden}.v34 .intro-copy{position:relative;z-index:2;max-width:480px}.v34 .intro-copy h1{font:700 clamp(35px,5vw,65px)/1.05 Georgia,serif;letter-spacing:.035em;color:#f5dfb7;margin:18px 0}.v34 .intro-copy p{font-size:clamp(14px,1.4vw,18px);color:#d7e3df;line-height:1.85}.v34 .eyebrow{font:700 12px Georgia;letter-spacing:.22em;color:#d2ae75}.v34 .letter-prop{position:relative;display:block;width:100%;border:0;background:none;box-shadow:none;cursor:pointer;transition:transform .25s;filter:drop-shadow(0 18px 18px #0008)}.letter-prop:hover,.letter-prop:focus-visible{transform:translateY(-6px) rotate(-1deg)}.letter-prop svg{width:100%;display:block}.v34 .intro-action{display:inline-block;margin-top:18px}.v34 .intro-foot{display:block;color:#c1cecb;font-size:12px;margin-top:18px}.v34 .intro-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;filter:brightness(.56)}.v34 .letter-note{color:#e9cf9f;text-align:center;letter-spacing:.1em;font-size:12px;margin-top:6px}
.dialog:has(.puzzle-art){width:min(740px,100%);padding:clamp(14px,3vw,28px)}.puzzle-art{margin:15px 0 8px;border-radius:13px;position:relative;overflow:hidden;border:1px solid #aa8251;box-shadow:0 8px 16px #5c44252a}.puzzle-note{font-size:14px!important;color:#655640;margin:5px 0 12px!important}.book-shelf{padding:24px 17px 26px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;align-items:end;background:radial-gradient(ellipse at 50% 20%,#705039,#33251f 77%);border:8px ridge #9b7148;box-shadow:inset 0 7px 20px #0008}.book-volume{position:relative;min-width:0;height:clamp(115px,23vw,190px);border:1px solid #d6b782;border-radius:6px 3px 3px 6px;background:linear-gradient(90deg,#0005,transparent 14%,#fff1 20%,transparent 38%,#0003 97%),var(--cover);color:#f5dfab;padding:10px 5px;box-shadow:4px 5px 0 #100d0a,8px 10px 12px #0006,inset 0 0 0 4px #0003;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:transform .18s,filter .18s}.book-volume:before,.book-volume:after{content:'';position:absolute;left:5%;right:5%;height:4px;border-block:1px solid #d7b17b;top:9%}.book-volume:after{top:auto;bottom:9%}.book-volume:hover,.book-volume:focus-visible,.book-volume.selected{transform:translateY(-9px);filter:brightness(1.2)}.book-volume.selected{box-shadow:0 0 12px #e2be76a0,4px 5px 0 #100d0a}.book-volume .book-icon{font:clamp(19px,4vw,31px) Georgia;color:#e6c585}.book-volume strong{font-size:clamp(11px,1.5vw,16px);line-height:1.4}.book-volume small{font:12px Georgia;color:#e7c78c}.book-shelf:after{content:'';position:absolute;bottom:0;left:0;right:0;height:15px;background:linear-gradient(#e0a769,#81512e 30%,#402619);box-shadow:0 -3px 8px #0005;pointer-events:none}.clock-art{max-width:270px;margin-inline:auto;aspect-ratio:1;overflow:visible;border:0;box-shadow:none;touch-action:none}.clock-art svg{display:block;width:100%;height:100%;filter:drop-shadow(0 6px 6px #49321d55);cursor:grab}.clock-art svg:active{cursor:grabbing}.clock-art .hour-hand{transform-origin:150px 150px;transition:transform .12s ease}.clock-read{font:700 25px Georgia;color:#79532e;margin:5px}.atlas-art{aspect-ratio:600/330;background:#d9c19a;isolation:isolate}.atlas-art svg{width:100%;height:100%;display:block;position:absolute;inset:0}.atlas-art .city-pin{position:absolute;transform:translate(-50%,-50%);padding:5px 7px;border-radius:20px;border:1px solid #ac854b;background:#fff1ce;color:#4f4b39;font-size:12px;font-weight:700;box-shadow:0 2px 5px #40301a55;white-space:nowrap;min-height:30px;z-index:2}.city-pin:before{content:'◆';color:#9e632d;margin-right:3px}.city-pin.selected{background:#235f62;color:#fff2d4;border-color:#8fe1d5}.city-pin.selected:before{color:#b8f3db}.atlas-art .city-pin:hover{background:#ffe3aa}.atlas-art .city-pin.selected:hover{background:#235f62}.puzzle-progress{font-size:13px!important;min-height:23px;color:#746040!important}.study-board{touch-action:manipulation}.maze-pad button{min-width:46px;min-height:45px}.maze-tools .follow-toggle{white-space:nowrap}.garden-board{background-color:#102c2c}.maze-scroll{border:1px solid #d3b47c;box-shadow:0 4px 20px #071c19aa;border-radius:7px}
@media(max-width:650px){.start.v34{grid-template-columns:1fr;gap:9px;align-content:center;padding:23px;text-align:center;min-height:510px}.v34 .intro-copy{margin:auto}.v34 .intro-copy h1{font-size:35px}.v34 .intro-copy p{font-size:14px;line-height:1.6}.v34 .letter-prop{width:min(235px,80%);margin:auto}.v34 .intro-foot{margin-top:10px}.book-shelf{gap:4px;padding:18px 7px 23px;border-width:4px}.book-volume{padding:4px 2px;gap:5px}.book-volume small{font-size:10px}.atlas-art{aspect-ratio:1.3}.atlas-art .city-pin{font-size:10px;padding:4px;min-height:28px}.dialog:has(.puzzle-art) .row .btn{min-height:41px}.maze-scroll.zoomed{max-height:min(62vh,430px)}.maze-pad{position:sticky;bottom:0;background:#142f40;z-index:6;border-radius:10px;padding:8px;box-shadow:0 0 8px #0004}.maze-pad span{font-size:11px}}

.start.v34{background:linear-gradient(90deg,rgba(8,20,31,.97) 0%,rgba(12,29,41,.86) 43%,rgba(14,28,38,.43) 100%);isolation:isolate}.stage:has(.start.v34)>.study-art{filter:brightness(.83);object-fit:cover}.v34 .letter-prop svg{filter:drop-shadow(0 2px 9px #e6b56536)}.v34 .letter-prop{max-width:510px;margin-inline:auto}.v34 .intro-copy{text-shadow:0 2px 14px #061320}.book-volume:before,.book-volume:after{height:7px;border-color:#d5b583}.book-volume .book-icon{border-block:1px solid #d7b17b77;padding:8px 0;width:75%}.book-volume{background:linear-gradient(90deg,#0006,transparent 9%,#fff2 13%,transparent 24%,#0003 96%),repeating-linear-gradient(105deg,#ffffff03 0px,#0000000b 2px,transparent 4px),var(--cover)}.clock-art .hour-hand{transform-box:view-box}.city-pin:before{content:'';margin:0}.maze-pad button{touch-action:manipulation}@media(min-width:1100px){.maze-scroll:not(.zoomed){width:min(100%,calc(max(400px,min(62vh,100vh - 440px))*39/29))}}@media(max-width:650px){.start.v34{background:linear-gradient(180deg,#0b1b2be8,#112532b0)}.v34 .letter-prop{max-width:240px}.atlas-art .city-pin{padding:5px 6px;min-height:29px}.maze-pad{position:relative;bottom:auto}}

/* V35: maps use the available playing column instead of being constrained by viewport height. */
.maze-chapter .garden-board{padding:8px!important}
.maze-chapter .maze-scroll{width:100%!important;margin:0;max-height:none}
.maze-chapter .maze-scroll.zoomed{max-height: min(76vh,820px)}
.maze-chapter .garden-top{margin-bottom:8px;padding:10px 5px}
.maze-chapter .maze-scroll canvas{height:auto;aspect-ratio:39/29}
@media(min-width:851px){
.shell:has(.maze-chapter),.shell:has(.stealth-embed){max-width:1760px!important;padding-inline:14px!important}
.maze-chapter{padding:14px}
.maze-chapter .chapter-grid{grid-template-columns:minmax(0,1fr) minmax(238px,270px);gap:12px}
.maze-chapter .brief{padding:14px}
}
@media(max-width:850px){.maze-chapter .garden-board{padding:5px!important}.maze-chapter .maze-scroll.zoomed{max-height:min(70vh,620px)}}

/* V36: shared compact chapter heading, objective beside the title. */
.chapter-head{grid-template-columns:max-content minmax(0,1fr);justify-content:start;align-items:end;column-gap:24px;margin-bottom:12px}
.chapter-head>div{min-width:0}.chapter-head h1{margin:4px 0 0;line-height:1.2}
.chapter-head .chapter-banner{justify-self:start;align-self:center;width:fit-content;max-width:100%;min-width:0;padding:10px 17px;line-height:1.45;font-size:14px;border-radius:10px;overflow-wrap:anywhere}
/* Keep the entire 39:29 maze visible in fit mode; zoom remains optional. */
.shell:has(.maze-chapter){padding-top:7px!important}
.shell:has(.maze-chapter) .top{padding:3px 4px 6px;margin-bottom:5px}
.shell:has(.maze-chapter) .steps{margin:2px 0 6px}
.shell:has(.maze-chapter) .clue-shelf{padding:5px 12px!important;margin-bottom:7px}
.shell:has(.maze-chapter) .clue-chips{padding:2px}.shell:has(.maze-chapter) .clue-chips .piece{padding:5px 11px}
.maze-chapter{padding:10px 12px}.maze-chapter .chapter-head{margin-bottom:8px}
.maze-chapter .garden-top{padding:5px 5px;margin-bottom:5px;font-size:12px}
.maze-chapter .maze-scroll{width:min(100%,var(--maze-fit-width,740px))!important;margin-inline:auto;max-height:none!important;overflow:hidden}
.maze-chapter .maze-scroll.zoomed{max-height:var(--maze-fit-height,500px)!important;overflow:auto}
.maze-chapter .maze-tools{padding-top:6px}.maze-chapter .maze-tools .btn{min-height:34px;padding:6px 10px}
@media(min-width:851px){.maze-chapter .garden-board{padding:6px!important}.maze-chapter .maze-pad{position:static;box-shadow:none;background:transparent;padding:5px 0 0}.maze-chapter .maze-pad .btn{min-height:34px;min-width:38px;padding:2px 9px;font-size:16px}}
@media(max-width:850px){.chapter-head{grid-template-columns:minmax(0,1fr);gap:7px;align-items:start}.chapter-head .chapter-banner{justify-self:start;padding:7px 12px;font-size:13px}.maze-chapter{padding:8px}.maze-chapter .maze-scroll{width:min(100%,var(--maze-fit-width,100%))!important}.maze-chapter .maze-tools .btn{min-height:40px}.maze-chapter .maze-pad{padding:6px;position:static}}

/* V37: center the objective relative to the entire chapter, not the title. */
.chapter-head{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:16px}
.chapter-head>div{grid-column:1;grid-row:1}
.chapter-head .chapter-banner{grid-column:2;grid-row:1;justify-self:center;align-self:center;text-align:center;font-size:clamp(17px,1.5vw,21px);font-weight:800;padding:11px 25px;min-width:360px;max-width:100%;line-height:1.4;box-shadow:0 3px 14px #0003}
.maze-chapter .maze-scroll canvas{aspect-ratio:1440/870;height:auto;image-rendering:auto}
@media(max-width:1050px){.chapter-head{grid-template-columns:minmax(0,1fr);gap:8px}.chapter-head .chapter-banner{grid-column:1;grid-row:2;justify-self:center;min-width:0;width:fit-content;font-size:clamp(15px,2vw,19px);padding:9px 15px}}

/* V38: one shared layout and a persistent evidence ledger */
.shell:has(.maze-chapter),.shell:has(.stealth-embed){max-width:1440px!important;padding-inline:20px!important}
.chapter,.maze-chapter{padding:18px}.chapter-grid,.maze-chapter .chapter-grid{grid-template-columns:minmax(0,1fr) minmax(255px,300px);gap:16px}.maze-chapter .brief{padding:17px}
.chapter-head{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;position:relative;min-height:56px;margin-bottom:12px;align-items:center}.chapter-head>div{grid-column:1;grid-row:1;justify-self:start}.chapter-head .chapter-banner{grid-column:1;grid-row:1;justify-self:center;min-width:0;max-width:100%;width:fit-content;font-size:clamp(16px,1.4vw,20px);padding:10px 22px;line-height:1.4;text-align:center}
.clue-shelf,.shell:has(.maze-chapter) .clue-shelf{position:sticky;top:0;z-index:20;padding:8px 14px!important;gap:16px;margin-bottom:10px;background:linear-gradient(115deg,#17384a,#203e50 65%,#142c3c)!important;border:1px solid #d7ac70!important;box-shadow:0 8px 24px #0008!important;border-radius:12px}
.clue-label{min-width:0;flex:0 0 235px;gap:3px}.clue-label strong{font-size:16px}.clue-label small{font-size:12px;color:#e9c995}.evidence-meter{height:4px;background:#59717b65;border-radius:6px;overflow:hidden;width:100%}.evidence-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#c39454,#f6dca0);transition:width .3s}.clue-chips{gap:7px;padding:3px 2px;justify-content:center}.clue-chips .piece,.clue-chips .clue-blank{min-width:40px;height:34px;display:grid;place-items:center;padding:3px 8px!important;flex:0 0 auto}.clue-chips .clue-blank{border-color:#81959a88;background:#0b213270}.clue-explain{flex:0 1 210px;font-size:12px;color:#d6e3df;line-height:1.45}.clue-explain b{color:#ffe0a0;font-size:14px}
@media(max-width:1200px){.chapter-head>div{grid-column:1;grid-row:1}.chapter-head .chapter-banner{grid-column:1;grid-row:2}.chapter-head{row-gap:6px;min-height:0}}
@media(max-width:850px){.shell:has(.maze-chapter),.shell:has(.stealth-embed){padding-inline:8px!important}.chapter,.maze-chapter{padding:10px}.chapter-grid,.maze-chapter .chapter-grid{grid-template-columns:minmax(0,1fr);gap:12px}.chapter-head{grid-template-columns:minmax(0,1fr)}.chapter-head .chapter-banner{font-size:15px;padding:8px 13px}.clue-shelf,.shell:has(.maze-chapter) .clue-shelf{flex-wrap:wrap;gap:3px 8px;padding:7px 10px!important}.clue-label{flex:1 1 150px}.clue-label strong{font-size:13px}.clue-label small{font-size:10px}.clue-explain{flex:0 1 130px;font-size:10px;text-align:right}.clue-explain b{font-size:10px}.clue-chips{order:3;flex:1 0 100%;justify-content:center;gap:4px}.clue-chips .piece,.clue-chips .clue-blank{min-width:28px;height:28px;font-size:14px;padding:2px 5px!important}}

/* V40: stable header, responsive interaction, cinematic feedback */
.chapter-head{grid-template-rows:auto auto!important;row-gap:6px!important}.chapter-head>div{grid-row:1!important}.chapter-head .chapter-banner{grid-row:2!important;grid-column:1!important;justify-self:center!important;max-width:100%!important;white-space:normal;overflow-wrap:anywhere;margin:0}
.v40-fly{position:fixed;z-index:100;pointer-events:none;background:linear-gradient(145deg,#fff5d9,#d6ab6c);border:1px solid #f5d89f;border-radius:8px;color:#304452;box-shadow:0 3px 18px #e6b66f80;padding:7px 13px;font:bold 19px Georgia;transform:translate(-50%,-50%)}
.v40-stamp{animation:v40stamp .65s cubic-bezier(.2,.8,.2,1) both}@keyframes v40stamp{0%{opacity:0;transform:scale(1.45) rotate(-9deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
.v40-solved{pointer-events:none;animation:v40solved .8s ease both}@keyframes v40solved{0%{filter:brightness(1)}35%{filter:brightness(1.17) drop-shadow(0 0 8px #ffd8a0)}100%{filter:brightness(1)}}
.v40-safe{position:absolute;left:84.42%;top:55.76%;width:15.58%;height:24.61%;z-index:5;perspective:450px;pointer-events:none;overflow:visible}.v40-safe-inside{position:absolute;inset:0;background:radial-gradient(ellipse at 65% 60%,#ffe9b9 0%,#bb8542 24%,#34271e 64%,#10151b 100%);box-shadow:inset 0 0 10px #080e14;border:2px solid #bc8d53;display:flex;align-items:center;justify-content:center;gap:4px;opacity:0;animation:v40inside 1.75s forwards}.v40-safe-inside span{padding:4px;background:#f3dbaa;color:#4d3e31;border-radius:3px;font:bold clamp(7px,1.3vw,17px) Georgia;box-shadow:0 4px 8px #0009}.v40-safe-door{position:absolute;inset:0;background-size:100% 100%;transform-origin:right center;animation:v40door 1.75s cubic-bezier(.4,0,.2,1) forwards;box-shadow:inset 0 0 2px #cfa568,2px 4px 8px #0009}.v40-safe-wheel{position:absolute;left:42%;top:29%;width:37%;aspect-ratio:1;border:2px solid #ceab6f;border-radius:50%;background:conic-gradient(from 10deg,#bc8b42 0deg,#75532f 15deg,transparent 16deg 58deg,#e8bc79 59deg 66deg,transparent 67deg 118deg,#e0a75a 119deg 126deg,transparent 127deg 178deg,#e0a75a 179deg 186deg,transparent 187deg 238deg,#e0a75a 239deg 246deg,transparent 247deg 298deg,#e0a75a 299deg 306deg,transparent 307deg);animation:v40wheel .65s ease-in-out forwards;opacity:.75}@keyframes v40wheel{to{transform:rotate(135deg)}}@keyframes v40door{0%,32%{transform:rotateY(0)}100%{transform:rotateY(82deg)}}@keyframes v40inside{0%,29%{opacity:0}55%,100%{opacity:1}}
.v40-transition{position:fixed;inset:0;z-index:90;display:grid;place-content:center;text-align:center;pointer-events:none;background:radial-gradient(ellipse,#1e3947,#081725);color:#f4d5a0;animation:v40transition 1.5s ease both}.v40-transition small{letter-spacing:.2em;color:#a4c5ca}.v40-transition h2{font:700 clamp(25px,5vw,48px) Georgia,serif;margin:12px}.v40-transition p{color:#e0e7de}@keyframes v40transition{0%{opacity:0}15%,70%{opacity:1}100%{opacity:0}}
.maze-scroll{position:relative}.v40-fit{white-space:nowrap}.maze-pad button{min-width:44px;min-height:44px}.clue-shelf{isolation:isolate}.clue-chips .piece.v40-stamp{animation:v40stamp .6s both!important}
@media(max-width:850px){.chapter-head .chapter-banner{width:100%!important}.chapter-head{grid-template-columns:minmax(0,1fr)!important}.clue-shelf{top:0!important}.study-board{touch-action:manipulation}.maze-chapter .maze-scroll.zoomed{max-height:min(48dvh,460px)!important}}
@media(prefers-reduced-motion:reduce){.v40-fly,.v40-transition{display:none}.v40-safe-door,.v40-safe-inside,.v40-stamp{animation-duration:.01s}}

/* V41 — consistent wide game surfaces, deliberate fit mode */
.maze-chapter .maze-scroll{width:100%!important;max-width:none!important;margin-inline:auto}
.maze-chapter .maze-scroll.v41-overview:not(.zoomed){width:min(100%,var(--maze-fit-width,100%))!important}
.maze-chapter .garden-board{padding:8px!important;background-position:center}
.maze-chapter .garden-top{padding:6px 8px;margin-bottom:7px;letter-spacing:.22em}
.maze-chapter .maze-scroll{border-radius:9px;box-shadow:0 9px 24px #03151c77,0 0 0 1px #d6bc8470}
.chapter-head{row-gap:5px!important;margin-bottom:12px!important}.chapter-head .chapter-banner{font-size:clamp(15px,1.4vw,19px);padding:8px 20px;background:linear-gradient(110deg,#fff0ce,#e1bc81);box-shadow:0 5px 15px #091b293b,inset 0 1px #fff7dc;border:1px solid #f3d9aa;border-radius:9px}
.brief{box-shadow:0 10px 28px #020f1b44,inset 0 1px #ffffff10}.brief-card{background:linear-gradient(120deg,#102c3d,#0b2232);border-color:#52717b65}.brief-card>b{font-variant-numeric:tabular-nums}
.v40-safe-inside{background:radial-gradient(ellipse at 50% 45%,#a57d46 0%,#59412b 35%,#211a17 68%,#0e1319 100%);box-shadow:inset 0 0 0 3px #624425,inset 0 0 17px 6px #0b1018b0;align-items:center;gap:5px}.v40-safe-inside span{background:linear-gradient(135deg,#fff3d5,#d2a96d);border:1px solid #fff0bd;padding:5px 6px;box-shadow:0 4px 7px #050b13a8,0 0 12px #f6ca7a60;transition:opacity .2s;white-space:nowrap}
.v40-fly{border-radius:6px;box-shadow:0 4px 12px #08162388,0 0 16px #eec78299,inset 0 1px #fff8e1;background:linear-gradient(145deg,#fff3d6,#e4bd80);border:1px solid #f5dca8;letter-spacing:.02em;will-change:transform,opacity}.v41-incoming{visibility:hidden}.v41-trail{position:fixed;pointer-events:none;z-index:99;width:5px;height:5px;border-radius:50%;background:#ffebbe;box-shadow:0 0 7px #ffd68f;transform:translate(-50%,-50%)}
@media(max-width:850px){.maze-chapter .garden-board{padding:5px!important}.chapter-head .chapter-banner{font-size:14px;padding:8px 10px}.maze-chapter .maze-scroll.v41-overview:not(.zoomed){width:100%!important}}


/* V41 compact chapter chrome, more space for the play area */
@media(min-width:1150px){.shell:has(.maze-chapter) .top,.shell:has(.stealth-embed) .top{padding-block:3px 7px;margin-bottom:4px}.shell:has(.maze-chapter) .clue-shelf,.shell:has(.stealth-embed) .clue-shelf{padding-block:6px!important}.maze-chapter .maze-scroll:not(.zoomed):not(.v41-overview){width:min(100%,max(90%,var(--maze-fit-width,100%)))!important}}
.v41-view-controls{display:flex;gap:6px;flex-wrap:wrap}.v41-view-controls button{flex:1;font-size:12px;padding:7px 9px;min-height:36px}
/* V46: independent header rows, consistent on all screen sizes */
.chapter .chapter-head{grid-template-rows:auto auto!important;row-gap:7px!important;min-height:0!important;align-items:center!important}
.chapter .chapter-head>div{grid-row:1!important;grid-column:1!important;max-width:100%;min-width:0}
.chapter .chapter-head .chapter-banner{grid-row:2!important;grid-column:1!important;position:static!important;transform:none!important;justify-self:center!important;min-width:0!important;width:fit-content!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35!important;margin:0!important}
@media(max-width:850px){.chapter .chapter-head{grid-template-columns:minmax(0,1fr)!important}.chapter .chapter-head .chapter-banner{font-size:14px!important;padding:8px 12px!important}}
/* V46: full-viewport cinematic keepsake, not a pop-up card */
body.v44-revealing{margin:0;background:#07131f;overflow-x:hidden}
.v44-revealing .shell{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
.v44-revealing .shell>.top{display:none!important}
.v44-revealing .viewport{border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
.reveal44.v46{height:100vh;height:100svh;min-height:530px;max-height:none;background:#091725;isolation:isolate;overflow:hidden;position:relative;display:block}
.v46 .rev-room{opacity:.53;filter:blur(3px) saturate(.72);transform:scale(1.10);animation:v46Push 8s cubic-bezier(.18,.5,.25,1) both}
@keyframes v46Push{0%{transform:scale(1.015)}100%{transform:scale(1.10)}}
.v46 .rev-shade{background:radial-gradient(ellipse at 50% 40%,#98744928 0%,#142b3b88 45%,#08121de9 100%);z-index:-3}
.v46.is-revealed .rev-shade{background:radial-gradient(ellipse at 50% 34%,#ca98543b 0%,#182b3bb5 46%,#071320f5 100%);transition:background .7s}
.v46 .rev-frame{inset:clamp(9px,2vw,28px);border-color:#d8bb8544;z-index:0}
.v46 .rev-frame i{border-color:#e7c58caa;width:30px;height:30px}
.v46 .rev-intro,.v46 .rev-letter,.v46 .rev-final{inset:clamp(16px,3.5vh,38px) clamp(16px,5vw,70px) 64px;z-index:2;transition:opacity .38s ease,transform .55s ease,visibility .38s;transform:translateY(8px)}
.v46 .rev-kicker{font:600 clamp(9px,1.1vw,12px)/1.4 Arial,sans-serif;letter-spacing:.26em;color:#e2cba3;text-shadow:0 1px 12px #000b}
.v46 .rev-rule{margin:12px auto;width:min(230px,60%)}
.v46 .rev-intro h1{font-size:clamp(36px,6vw,76px);letter-spacing:-.035em;text-shadow:0 3px 25px #0009;margin:16px 0 8px}
.v46 .rev-incoming{margin-top:20px;transition:opacity .35s}
.v46 .rev-letter-copy{top:2%;z-index:6}
.v46 .rev-letter h2{font-size:clamp(25px,4vw,50px);letter-spacing:-.015em;line-height:1.15;margin:9px 0}
.v46 .rev-letter p{font-size:clamp(14px,1.8vw,20px)}
.v46 .rev-envelope{width:min(430px,72vw);height:clamp(148px,30vh,252px);bottom:6%;filter:drop-shadow(0 20px 24px #000a)}
.v46 .rev-envelope-back{background:linear-gradient(140deg,#fbefd7,#c6a273)}
.v46 .rev-envelope-front{background:linear-gradient(155deg,#fff1d6 0%,#d8b789 78%,#bd976a 100%)}
.v46 .rev-flap{background:linear-gradient(170deg,#fff7e5,#dbbc8e 85%);transition:transform .65s cubic-bezier(.3,.1,.2,1)}
.v46 .rev-paper{background:linear-gradient(135deg,#fffdf5,#f5e5c8);padding:10px 12px 16px;justify-content:flex-start;overflow:hidden;gap:5px;transition:transform .75s .18s cubic-bezier(.18,.7,.2,1)}
.v46 .rev-paper small{font-size:9px;letter-spacing:.21em;margin-top:3px}
.v46 .rev-paper .v46-shoes{width:65%;height:72%;object-fit:contain;filter:none}
.v46[data-scene="3"] .rev-paper{transform:translateY(-54%)}
.v46[data-scene="3"] .rev-envelope{animation:v46Lift 1.7s ease-out both}
@keyframes v46Lift{0%{transform:translateX(-50%) scale(1)}100%{transform:translateX(-50%) scale(1.06)}}
.v46 .rev-final{justify-content:center;gap:0;padding:0;transform:translateY(5px)}
.v46 .rev-final .rev-kicker{margin:0 0 7px}
.v46 .rev-booties{width:min(320px,55vw,36vh);margin:0 auto 2px;filter:drop-shadow(0 12px 24px #0006);flex:0 0 auto}
.v46-shoes{display:block;width:100%;height:auto;object-fit:contain}
.v46 .rev-final h1{font:400 clamp(29px,5.3vw,67px)/1.08 Georgia,'Times New Roman',serif;letter-spacing:-.035em;margin:2px 0;color:#fff5e6;text-shadow:0 3px 20px #06101cdd;max-width:100%}
.v46 .rev-final h1 em{display:block;font:400 clamp(64px,10vw,128px)/.98 Georgia,serif;letter-spacing:.035em;color:#f8d59b;text-shadow:0 4px 32px #0a1722dd,0 0 20px #e4b77244;margin:2px 0 5px}
.v46 .rev-sub{font-size:clamp(15px,2.2vw,27px);margin:5px 0 5px;color:#f3dfbf;text-shadow:0 2px 12px #000a}
.v46 .rev-baby{font:clamp(13px,1.6vw,19px)/1.4 Georgia,serif;margin-top:9px;color:#f6ead8;transition:opacity .85s,transform .85s;text-shadow:0 2px 12px #000b}
.v46 .rev-foot{font-size:clamp(8px,1vw,11px);letter-spacing:.22em;color:#d8c1a0}
.v46 .rev-final .bottom{margin:10px auto 7px}
.v46.is-revealed .rev-final{animation:v46Title .7s cubic-bezier(.16,.8,.2,1) both}
@keyframes v46Title{0%{opacity:0;transform:scale(.94)}100%{opacity:1;transform:scale(1)}}
.v46 .rev-controls{z-index:5;bottom:clamp(13px,2.5vh,28px);left:16px;right:16px;gap:8px;flex-wrap:wrap}
.v46 .rev-controls button{font:600 11px Arial,sans-serif;letter-spacing:.03em;color:#efdbbb;background:#0a1926b5;border-color:#bc9d685e;padding:8px 13px;min-height:34px;border-radius:6px}
.v46 .rev-controls button:hover{background:#233747}
.v46 .rev-controls button[hidden]{display:none!important}
.v46-fire{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;display:block}
.v46 .rev-motes{z-index:0;opacity:.55}
@media(max-width:600px){.reveal44.v46{min-height:570px}.v46 .rev-final{inset:21px 14px 83px}.v46 .rev-booties{width:min(245px,58vw,32vh)}.v46 .rev-final h1{font-size:clamp(28px,8vw,42px)}.v46 .rev-final h1 em{font-size:clamp(66px,19vw,90px)}.v46 .rev-sub{font-size:17px;max-width:95%}.v46 .rev-baby{font-size:15px}.v46 .rev-letter-copy{top:5%}.v46 .rev-envelope{bottom:13%;width:min(345px,78vw);height:clamp(150px,28vh,208px)}.v46 .rev-controls{bottom:13px}.v46 .rev-controls button{font-size:10px;padding:8px 9px}.v46 .rev-kicker{letter-spacing:.16em}}
@media(max-height:580px) and (orientation:landscape){.reveal44.v46{height:100svh;min-height:350px}.v46 .rev-final{inset:18px 7% 47px;display:grid;grid-template-columns:34% 66%;grid-template-rows:auto auto auto auto auto;column-gap:10px;align-content:center;justify-items:center}.v46 .rev-final .rev-kicker{grid-column:1/-1}.v46 .rev-final>.rev-rule:first-of-type{display:none}.v46 .rev-booties{grid-row:2/6;grid-column:1;width:min(100%,220px)}.v46 .rev-final h1{grid-column:2;font-size:clamp(25px,5vw,38px)}.v46 .rev-final h1 em{font-size:clamp(44px,9vw,75px)}.v46 .rev-sub,.v46 .rev-baby,.v46 .rev-foot{grid-column:2;font-size:13px}.v46 .rev-final .bottom{display:none}.v46 .rev-foot{font-size:8px}.v46 .rev-envelope{height:145px;bottom:4%;width:280px}.v46 .rev-letter-copy{top:0}.v46 .rev-letter h2{font-size:25px}.v46 .rev-letter p{font-size:14px}.v46 .rev-controls{bottom:9px}}
@media(prefers-reduced-motion:reduce){.v46 .rev-room,.v46.is-revealed .rev-final,.v46[data-scene="3"] .rev-envelope{animation:none}.v46 .rev-intro,.v46 .rev-letter,.v46 .rev-final,.v46 .rev-paper,.v46 .rev-flap,.v46 .rev-baby{transition:none}}

/* V46 finishing details */
@media(min-width:851px) and (min-height:581px){.v46 .rev-letter-copy{top:12%}.v46 .rev-envelope{bottom:19%;width:min(470px,64vw)}}
.v46 .rev-envelope-back,.v46 .rev-envelope-front{border-radius:4px}.v46 .rev-envelope-front:after{background:linear-gradient(34deg,transparent 49.7%,#95713d55 50%,transparent 50.6%),linear-gradient(-34deg,transparent 49.7%,#95713d55 50%,transparent 50.6%),repeating-linear-gradient(0deg,#ffffff0b 0px,#ffffff0b 1px,#65441c07 1px,#65441c07 2px);box-shadow:inset 0 0 15px #6e492b22}.v46 .rev-flap{filter:drop-shadow(0 3px 3px #6b472c44)}.v46 .rev-wax{border:3px double #d59a70;box-shadow:0 4px 9px #3b211999,inset 0 0 6px #f4bd7a44}
.v46.keepsake .rev-controls{opacity:0;pointer-events:none}.v46.keepsake .rev-frame{cursor:default}.v46.keepsake{cursor:pointer}


.study-hot.v47-done:after{content:'✓';position:absolute;right:5px;top:5px;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#163f38e8;border:1px solid #8bc8a9;color:#d0f6df;font:bold 13px Arial;box-shadow:0 2px 7px #0008;pointer-events:none}
.v47-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:255px;margin:12px auto}.v47-keypad button{min-height:44px;border:1px solid #947447;border-radius:7px;background:linear-gradient(#fdf1d5,#cbaa75);color:#423727;font:bold 18px Georgia;box-shadow:0 2px 0 #8c704c}.v47-keypad button:active{transform:translateY(2px);box-shadow:none}.v47-keypad button:nth-child(10){font:12px Arial}
.safe-panel-inner #safeInput{font:700 30px monospace;letter-spacing:.32em;background:#263b42;color:#ffebba;border:3px ridge #c49b5d;border-radius:8px;padding:10px;text-align:center;width:175px;max-width:100%}
.v46[data-scene="6"] .rev-motes{opacity:.75}.v46[data-scene="6"] .rev-booties{animation:v47Warm 5s ease-in-out infinite}@keyframes v47Warm{0%,100%{filter:drop-shadow(0 4px 17px #f0c78833)}50%{filter:drop-shadow(0 4px 23px #f0c78866)}}
body.v47-paused .reveal44 *{animation-play-state:paused!important;transition-property:none!important}
.v47-test-label{color:#d7c29c;font-size:11px;letter-spacing:.07em;margin-left:8px}.v47-continue{margin:10px 0 0}
@media(max-height:530px) and (orientation:landscape) and (max-width:1000px){.clue-shelf{padding:5px 8px!important}.chapter-head{margin-bottom:6px!important}.chapter-head h1{font-size:20px!important}.chapter-banner{font-size:12px!important;padding:6px 10px!important}.maze-scroll.zoomed{max-height:60vh!important}.maze-pad button{min-height:38px}.dialog{max-height:92dvh}.top{padding:5px 0!important}}
@media(prefers-reduced-motion:reduce){.reveal44 .rev-booties,.rev-motes i{animation:none!important}.study-hot,.v40-stamp,.dec-tile{transition:none!important}}

.dec-tile.locked{cursor:default}.dec-tile.locked:hover{filter:none}.dec-tile.locked::after{font-size:15px;right:7px;top:5px}.dec-tile.locked small{letter-spacing:.10em}


/* V53: moonlight cipher and letter composition */
.study-board .ink52{left:47.2%;top:92%;width:9.2%;height:4%;transform:rotate(5deg) skewX(-12deg);display:block;filter:drop-shadow(0 0 3px #70c8ff);padding:0;line-height:0;overflow:visible}.ink52 .moonGlyph53{display:block;width:100%;height:100%;overflow:visible}.study-board.dim .ink52::before{content:"";position:absolute;inset:-30% -9%;background:radial-gradient(ellipse,#6bcfff28,transparent 72%);pointer-events:none}.study-board.dim .study-hot .object-glow{opacity:0!important}.study-board.dim .study-hot:hover .object-glow,.study-board.dim .study-hot:focus-visible .object-glow{opacity:.14!important;filter:saturate(.15)}.moonPaper53{background:radial-gradient(ellipse at 50% 42%,#415963,#273640 68%,#182830);border:1px solid #a8a18a;border-radius:8px;padding:12px;box-shadow:inset 0 0 22px #07151caa,0 6px 18px #0002}.moonPaper53 svg{width:100%;height:auto;display:block;filter:drop-shadow(0 0 2px #8dd9ff)}.inkLog53{display:block;color:inherit;font-weight:700;margin:6px 0}.inkReview53{padding:5px 9px;border:1px solid #9e895f;border-radius:6px;color:inherit;background:#ffffff15;font:inherit;font-size:.83em;cursor:pointer}
.v46 .rev-letter-copy{z-index:6}.v46 .rev-letter-copy h2{font-size:clamp(20px,4.2vw,44px);margin:6px 0}.v46 .rev-letter-copy p{font-size:clamp(12px,2vw,19px);margin:5px auto;max-width:90%}.v46 .rev-paper .v46-shoes{width:68%;height:72%;object-fit:contain;filter:none}.v46 .rev-paper small{margin-top:2px}.v46[data-scene="3"] .rev-envelope{animation:none}.v46 .rev-envelope{bottom:12%;width:min(410px,69vw);height:clamp(116px,28vh,210px)}.v46 .rev-letter-copy{top:5%}@media(max-height:580px){.v46 .rev-letter-copy{top:2%}.v46 .rev-envelope{bottom:8%;height:clamp(90px,24vh,150px);width:min(300px,62vw)}.v46 .rev-letter-copy h2{font-size:clamp(17px,3vw,30px)}.v46 .rev-letter-copy p{font-size:clamp(10px,1.7vw,15px)}}

/* V54: surface-registered moonlight ink */
.study-board .ink52{left:47.4%;top:91.6%;width:12.1%;height:5.1%;transform:rotate(3deg) skewX(-11deg);filter:drop-shadow(0 0 2px #65d7ff) drop-shadow(0 0 5px #4acbff);}
.study-board.dim .ink52::before{inset:-25% -5%;background:radial-gradient(ellipse,#71cfff35,transparent 72%);}
.study-board.dim .ink52 .moonGlyph53{animation:ink54 .95s ease-out both;}
@keyframes ink54{from{opacity:0;filter:brightness(.55)}to{opacity:1;filter:brightness(1.08)}}
.study-board.dim .ink52:hover{filter:drop-shadow(0 0 3px #c2f2ff) drop-shadow(0 0 7px #49cbff)}
.study-board.dim .study-hot .object-glow,.study-board.dim .study-hot:hover .object-glow,.study-board.dim .study-hot:focus-visible .object-glow{opacity:0!important}
@media(prefers-reduced-motion:reduce){.study-board.dim .ink52 .moonGlyph53{animation:none}}

/* V57: fixed inventory cells; no shifting or overscale at landing. */
.clue-chips{display:grid!important;grid-template-columns:repeat(7,minmax(0,58px));justify-content:center;gap:7px;overflow:hidden!important;padding:4px 2px!important;align-items:center;min-width:0}
.clue-chips>.piece,.clue-chips>.clue-blank{box-sizing:border-box;width:100%!important;min-width:0!important;height:34px!important;padding:2px!important;animation:none!important;transform:none!important;display:grid;place-items:center;white-space:nowrap;line-height:1;font-size:18px;transition:none}
.clue-chips>.piece.v57-long{font-size:15px;letter-spacing:-.04em}
.clue-chips>.piece.v57-landed{animation:land57 .4s ease-out both!important}
@keyframes land57{0%{filter:brightness(1.22);box-shadow:0 3px 0 #a58561,0 0 9px #fce2ae88}100%{filter:brightness(1);box-shadow:0 3px 0 #a58561,0 4px 9px #0003}}
@media(max-width:850px){.clue-shelf,.shell:has(.maze-chapter) .clue-shelf{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.clue-label{grid-column:1;grid-row:1}.clue-explain{grid-column:2;grid-row:1;min-width:0}.clue-chips{grid-column:1/-1;grid-row:2;width:100%;grid-template-columns:repeat(7,minmax(0,58px));gap:4px;padding:4px 2px!important}.clue-chips>.piece,.clue-chips>.clue-blank{height:28px!important;font-size:14px}.clue-chips>.piece.v57-long{font-size:clamp(10px,3.3vw,14px)}}
@media(prefers-reduced-motion:reduce){.clue-chips>.piece.v57-landed{animation:none!important}}

#menu58[hidden]{display:none!important}

/* Release: verified local progress feedback */
.topright{align-items:center}.save59-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;line-height:1.4;color:#a7d5b9;white-space:normal}.save59-status .save59-icon{flex:0 0 14px;width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:50%;font:700 10px/1 Arial}.save59-status[data-state="pending"]{color:#d8c6a0}.save59-status[data-state="error"]{color:#f0c07d}.save59-top{padding:6px 8px;min-width:110px}.save59-home{display:grid;gap:4px;margin-top:12px;color:#c4d1d2;line-height:1.5;max-width:440px}.save59-home small{display:block;font-size:11px;color:#b9cbd0;line-height:1.5}.save59-home .save59-status{font-size:12px}.save59-reward{justify-content:center;margin:13px auto 0;font-size:12px;color:#477856;line-height:1.45}.save59-reward[data-state="pending"]{color:#8c6735}.save59-reward[data-state="error"]{color:#985126}.complete55 .save59-status{margin-top:6px;font-size:11px;display:flex}.complete55 .save59-status .save59-label{color:inherit}.complete55 .save59-status .save59-icon{color:inherit}.save59-status[hidden]{display:none!important}
@media(max-width:760px){.save59-top{font-size:11px;min-width:0;padding:4px 5px}.save59-home{margin:8px auto 0;max-width:340px}.save59-home .save59-status{justify-content:center}.save59-home small{font-size:10px}.v34 .intro-foot{margin-top:8px}.v34 .intro-copy p{margin:8px 0}.v34 .intro-action{margin-top:10px}}
/* Give the homepage space for the save note and optional resume actions on small screens. */
@media(min-width:761px) and (max-width:1000px) and (max-height:530px){.stage:has(>.start.v34){min-height:580px}.stage:has(>.start.v34 .v47-continue){min-height:640px}.start.v34 .intro-copy h1{font-size:36px;margin:10px 0}.start.v34 .intro-copy p{font-size:14px;line-height:1.55;margin:8px 0}.start.v34 .intro-action{margin-top:10px}}
@media(max-width:760px){.stage:has(>.start.v34){min-height:630px}.stage:has(>.start.v34 .v47-continue){min-height:700px}}


/* V61: dedicated phone layout. Keep desktop rendering untouched. */
#rotate61{display:none}
@media (orientation:portrait) and (max-width:1100px) and (any-pointer:coarse){
 #rotate61{position:fixed;inset:0;z-index:99999;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:radial-gradient(ellipse at 50% 35%,#2a4756,#0e2130 75%);color:#f8e6bf;gap:14px}
 #rotate61 svg{width:100px;height:100px;color:#e9c68c}#rotate61 h2{font:700 28px Georgia;margin:0}#rotate61 p{max-width:300px;font-size:15px;line-height:1.6;color:#d1dfe0;margin:0}#rotate61 small{color:#b5c8cf;font-size:12px;line-height:1.5}
 html,body{overflow:hidden!important}
}
@media (orientation:landscape) and (max-height:1100px) and (max-width:1600px) and (any-pointer:coarse){
 html,body{height:100%;overflow:hidden!important;overscroll-behavior:none}
 .shell,.shell:has(.maze-chapter),.shell:has(.stealth-embed){box-sizing:border-box!important;width:100%!important;max-width:none!important;height:100dvh;min-height:0!important;display:flex;flex-direction:column;gap:3px;padding:3px max(6px,env(safe-area-inset-right)) max(3px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;margin:0!important;overflow:hidden}
 .shell>.top{flex:0 0 auto;flex-wrap:nowrap!important;margin:0!important;padding:0!important;gap:4px!important;min-height:34px}.top .logo{font-size:15px!important;white-space:nowrap}.topright{flex-wrap:nowrap!important;gap:4px!important}.topright .btn{min-height:32px!important;font-size:11px!important;padding:3px 8px!important;border-radius:7px}.save59-top{min-width:0!important;font-size:10px!important;padding:0 4px!important;max-width:110px;line-height:1.1}.save59-icon{width:12px!important;height:12px!important;flex-basis:12px!important}
 .shell>.steps{margin:0!important;gap:4px!important;flex:0 0 auto}.steps div{height:2px!important}.shell>.note{display:none!important}
 .shell>.clue-shelf,.shell:has(.maze-chapter)>.clue-shelf{flex:0 0 auto;position:relative!important;top:auto!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;margin:0!important;padding:2px 6px!important;gap:5px!important;border-radius:7px!important;box-shadow:none!important}
 .clue-shelf .clue-label{grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:row!important;align-items:center;gap:5px!important;min-width:0!important;width:auto!important;white-space:nowrap}.clue-label strong{font-size:10px!important}.clue-label small{font-size:10px!important}.clue-label .evidence-meter{display:none!important}.clue-shelf .clue-chips{grid-column:2!important;grid-row:1!important;justify-content:center!important;width:100%!important;grid-template-columns:repeat(7,minmax(0,35px))!important;gap:3px!important;padding:0!important}.clue-chips>.piece,.clue-chips>.clue-blank{height:24px!important;font-size:12px!important;border-radius:5px!important}.clue-chips>.piece.v57-long{font-size:10px!important}.clue-shelf .clue-explain{grid-column:3!important;grid-row:1!important;margin:0!important;min-width:0!important;font-size:9px!important;line-height:1.1!important;text-align:right!important;white-space:nowrap}.clue-explain b{font-size:10px!important}.clue-explain br,.clue-explain #evidenceText{display:none!important}
 .shell>.viewport{flex:1;min-height:0!important;border-radius:10px!important;border-width:1px!important;overflow:hidden!important;display:flex;flex-direction:column}.viewport>#game{flex:1;min-height:0!important;position:relative;overflow:hidden}.viewport>.hud{display:none!important}
 #game>.chapter{height:100%;min-height:0!important;padding:5px!important;display:grid!important;grid-template-columns:minmax(0,1fr) clamp(195px,31%,300px)!important;grid-template-rows:auto minmax(0,1fr);gap:4px 7px;overflow:hidden}
 .chapter>.chapter-head{grid-column:2;grid-row:1;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:3px!important;margin:0!important;min-height:0!important}.chapter .chapter-head small{font-size:9px!important;letter-spacing:.07em!important}.chapter .chapter-head h1{font-size:18px!important;line-height:1.05!important;margin:1px 0!important}.chapter .chapter-head .chapter-banner{font-size:10px!important;padding:4px 6px!important;line-height:1.25!important;width:100%!important;border-radius:6px!important}
 .chapter-grid,.maze-chapter .chapter-grid{display:contents!important}.chapter-grid>.play-column{grid-column:1;grid-row:1/3;min-height:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;container-type:size;overflow:hidden}
 .study-board{width:min(100%,calc((100cqh - 17px)*1.8691589))!important;height:auto!important;min-height:0!important;flex:0 0 auto;border-width:1px!important;border-radius:7px!important;aspect-ratio:1200/642!important}.play-caption{width:100%;flex:0 0 auto;font-size:10px!important;line-height:1!important;padding:2px 4px!important;gap:4px!important}
 .chapter-grid>.v42-side{grid-column:2;grid-row:2;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;gap:5px!important;padding-right:2px}.chapter-grid .mobileMission55{display:none!important}.v42-side>.brief,.v42-side>.hud{display:grid!important}.brief,.v42-support{padding:7px!important;gap:4px!important;border-radius:7px!important}.brief-kicker{font-size:9px!important}.brief h2{font-size:15px!important;margin:0!important}.brief-card{font-size:11px!important;line-height:1.35!important;padding:5px!important;gap:3px!important}.brief-card h3{font-size:12px!important;margin:0!important}.brief-help,.v42-support .status{font-size:11px!important;line-height:1.35!important;margin:0!important}.v42-support:before{font-size:11px!important}.v42-support .btn,.brief .btn{font-size:11px!important;min-height:34px!important;padding:4px 6px!important}.v42-support{min-height:0!important}.stamp-list{gap:3px!important}.complete55{padding:6px!important;gap:4px!important}.complete55 .btn{min-height:34px!important;padding:4px 7px!important}
 .maze-chapter .play-column{justify-content:center!important}.maze-chapter .garden-board{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:2px!important;gap:3px!important;container-type:size}.garden-top{display:none!important}.maze-chapter .maze-scroll:not(.zoomed),.maze-chapter .maze-scroll.v41-overview:not(.zoomed){width:min(100%,calc((100cqh - 38px)*1.6551724))!important;max-width:100%!important;height:auto!important;max-height:none!important;flex:0 0 auto;border-width:1px!important;margin:0 auto!important}.maze-chapter .maze-scroll.zoomed{width:100%!important;height:calc(100cqh - 38px)!important;max-height:calc(100cqh - 38px)!important;overflow:auto!important;flex:0 0 auto;overscroll-behavior:contain}.maze-chapter .maze-tools{display:flex!important;justify-content:center;align-items:center;gap:3px!important;padding:0!important;flex:0 0 auto;width:100%;flex-wrap:nowrap!important}.maze-tools span{display:none!important}.maze-chapter .maze-tools .btn{min-height:34px!important;font-size:11px!important;padding:3px 8px!important}.maze-chapter .maze-pad{display:flex!important;flex:0 0 auto;position:static!important;padding:1px!important;gap:4px!important;background:transparent!important;box-shadow:none!important}.maze-pad button,.maze-chapter .maze-pad .btn{min-height:34px!important;min-width:42px!important;font-size:17px!important;padding:2px 8px!important}.maze-pad span{font-size:10px!important}
 #game>.stealth-embed{height:100%!important;min-height:0!important;display:block!important;padding:0!important;overflow:hidden!important}.stealth-embed iframe{height:100%!important;min-height:0!important;width:100%!important}#game:has(>.stealth-embed){display:flex;flex-direction:column}#game>.complete55{flex:0 0 auto;margin:0!important;max-height:85px;overflow:auto}#game>.complete55+.stealth-embed{flex:1;height:auto!important;min-height:0!important}
 #game>.decoder44{height:100%;min-height:0;padding:7px!important;display:flex;flex-direction:column;overflow:hidden}.dec-head{flex:0 0 auto;margin:0 0 5px!important}.dec-head h1{font-size:23px!important;margin:0!important}.dec-head small{font-size:9px!important}.dec-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) clamp(180px,29%,270px)!important;gap:7px!important;align-items:stretch}.dec-machine{padding:8px!important;min-height:0;overflow:auto;display:flex;flex-direction:column;justify-content:center;gap:4px}.dec-screen{padding:5px!important;margin:0!important}.dec-wave{height:18px!important}.dec-plate,.dec-under{font-size:9px!important;margin:0!important}.dec-tiles,.dec-leds{gap:4px!important;margin:0!important}.dec-tile{min-height:50px!important;padding:3px!important}.dec-tile span{font-size:clamp(12px,2.2vw,20px)!important}.dec-tile small{font-size:7px!important}.dec-confirm{min-height:34px!important;padding:6px!important;font-size:12px!important;margin:0!important}.dec-aside{padding:8px!important;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}.dec-aside h2{font-size:16px!important;margin:3px 0!important}.dec-aside p{font-size:11px!important;line-height:1.4!important;margin:4px 0!important}.dec-aside .btn{min-height:33px!important;padding:4px 7px!important;font-size:11px!important}
 .shell:has(.start.v34)>.clue-shelf,.shell:has(.start.v34)>.steps{display:none!important}.stage:has(>.start.v34){height:100%!important;min-height:0!important;aspect-ratio:auto!important}.start.v34{position:absolute!important;inset:0!important;display:grid!important;grid-template-columns:1.25fr 1fr!important;gap:12px!important;padding:8px 20px!important;text-align:left!important;min-height:0!important;overflow:auto!important;align-items:center!important;align-content:start!important}.v34 .intro-copy{margin:0!important}.v34 .intro-copy h1{font-size:clamp(26px,4.6vh,37px)!important;margin:5px 0!important}.v34 .intro-copy p{font-size:12px!important;line-height:1.3!important;margin:4px 0!important}.v34 .eyebrow{font-size:9px!important}.v34 .intro-action,.v34 .v47-continue{min-height:34px!important;font-size:12px!important;padding:5px 10px!important;margin:4px 4px 0 0!important}.v34 .save59-home{margin:4px 0!important;gap:1px!important}.v34 .save59-home small,.v34 .intro-foot{font-size:10px!important;line-height:1.2!important;margin:2px 0!important}.v34 .letter-prop{width:min(100%,230px)!important;max-width:100%!important;margin:auto!important}.v34 .letter-note{font-size:10px!important}
 .overlay{padding:4px max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left))!important;z-index:1000!important;overflow:auto!important}.dialog{max-height:calc(100dvh - 12px)!important;width:min(660px,96%)!important;overflow:auto!important;padding:10px 16px!important}.dialog h2{font-size:21px!important;margin:3px 0 6px!important}.dialog p{font-size:12px!important;line-height:1.4!important;margin:4px 0!important}.dialog .row{margin:6px 0!important}.dialog .btn{min-height:34px!important;padding:5px 10px!important;font-size:12px!important}
 body.v44-revealing .shell{padding:0!important;gap:0!important}body.v44-revealing .viewport{border:0!important}body.v44-revealing .reveal44.v46{height:100dvh!important;min-height:0!important}.v44-revealing .rev-final{inset:8px 5% 38px!important}.v44-revealing .rev-final h1{font-size:clamp(19px,5vh,34px)!important}.v44-revealing .rev-final h1 em{font-size:clamp(42px,13vh,75px)!important}.v44-revealing .rev-booties{width:min(150px,24vh)!important}.v44-revealing .rev-sub,.v44-revealing .rev-baby{font-size:clamp(11px,3.4vh,16px)!important;margin:3px 0!important}.v44-revealing .rev-controls{bottom:4px!important}.v44-revealing .rev-controls button{font-size:11px!important;min-height:30px!important;padding:3px 8px!important}.v44-revealing .rev-envelope{width:min(350px,48vw,64vh)!important;bottom:9%!important}.v44-revealing .rev-letter-copy h2{font-size:clamp(20px,6vh,32px)!important}
}

@media (orientation:landscape) and (max-height:550px) and (max-width:1200px) and (any-pointer:coarse){
 .shell:not(:has(.start.v34)):not(:has(.reveal44)){display:grid!important;grid-template-columns:max-content minmax(0,1fr);grid-template-rows:36px minmax(0,1fr);gap:3px 5px!important}
 .shell:not(:has(.start.v34)):not(:has(.reveal44))>.top{grid-column:1;grid-row:1;min-height:0!important;align-self:center}
 .shell:not(:has(.start.v34)):not(:has(.reveal44)) .top .logo{display:none!important}
 .shell:not(:has(.start.v34)):not(:has(.reveal44))>.clue-shelf{grid-column:2;grid-row:1;grid-template-columns:auto minmax(0,1fr)!important;align-self:center;justify-content:start!important}
 .shell:not(:has(.start.v34)):not(:has(.reveal44))>.steps{display:none!important}
 .shell:not(:has(.start.v34)):not(:has(.reveal44))>.viewport{grid-column:1/-1;grid-row:2}
 .clue-shelf .clue-label strong{display:none!important}.clue-label small{font-size:11px!important}.clue-shelf .clue-explain{display:none!important}
 .chapter .chapter-head small{display:none!important}.chapter .chapter-head h1{font-size:17px!important}.chapter .chapter-head .chapter-banner{padding:3px 5px!important}
 .maze-chapter .play-column{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) 36px;align-items:center;justify-items:center;gap:2px!important}
 .maze-chapter .garden-board{display:contents!important;container-type:normal!important}
 .maze-chapter .maze-scroll:not(.zoomed),.maze-chapter .maze-scroll.v41-overview:not(.zoomed){grid-column:1/-1;grid-row:1;width:min(100%,calc((100cqh - 39px)*1.6551724))!important;max-height:100%!important}
 .maze-chapter .maze-scroll.zoomed{grid-column:1/-1;grid-row:1;height:100%!important;max-height:100%!important;width:100%!important}
 .maze-chapter .maze-tools{grid-column:1;grid-row:2;gap:2px!important}.maze-chapter .maze-tools .btn{padding:3px 5px!important;min-width:30px!important}.maze-chapter .maze-pad{grid-column:2;grid-row:2;gap:2px!important}.maze-pad span{display:none!important}.maze-chapter .maze-pad .btn{min-width:32px!important;padding:2px 4px!important}
 .dec-head{margin-bottom:4px!important}.dec-head small{display:none!important}.dec-head h1{font-size:20px!important}.dec-machine{justify-content:flex-start!important;gap:2px!important}.dec-wave{display:none!important}.dec-screen #decReadout{font-size:17px!important;margin:2px 0!important}.dec-screen small{font-size:9px!important}.dec-under{padding:0!important;min-height:0!important}.dec-tile{min-height:46px!important}.dec-confirm{flex:0 0 auto!important}.dec-layout{align-items:stretch!important}
}
@media (orientation:landscape) and (max-height:320px) and (max-width:1200px) and (any-pointer:coarse){.dec-plate,.dec-under,.dec-leds,.dec-screen small{display:none!important}.dec-screen #decReadout{font-size:15px!important;margin:1px 0!important;line-height:1.2!important}.dec-screen{min-height:0!important;padding:6px!important}.dec-tile{min-height:44px!important}.dec-machine{padding:7px!important;gap:5px!important}.dec-confirm{min-height:34px!important}.dec-head h1{line-height:1.1!important}.dec-head .dec-badge{padding:4px!important}.dec-aside .dec-divider{margin:5px 0!important}}
@media (orientation:landscape) and (max-height:550px) and (max-width:1200px) and (any-pointer:coarse){body.v44-revealing .shell>.clue-shelf,body.v44-revealing .shell>.steps,body.v44-revealing .shell>.top,body.v44-revealing .shell>.note{display:none!important}body.v44-revealing .shell>.viewport{height:100dvh!important;flex:1}body.v44-revealing .reveal44.v46{max-height:none!important}.v44-revealing .rev-controls{bottom:max(4px,env(safe-area-inset-bottom))!important}}
.boot62-detail{font:12px Arial,sans-serif;opacity:.7;overflow-wrap:anywhere}.fallback{overflow:auto!important}.fallback .btn{margin:8px auto}
@media (orientation:landscape) and (max-height:550px) and (max-width:1200px) and (any-pointer:coarse){.shell,.shell:has(.maze-chapter),.shell:has(.stealth-embed){height:100vh;height:100dvh}.fallback{padding:10px!important}.fallback p{margin:6px 0}.fallback strong{font-size:16px}}

/* V63: real Safari viewport and stable independently scrolling mission cards. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (any-pointer:coarse){
 body,button,input{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 #rotate61{max-width:100%;box-sizing:border-box}
 .overlay{position:fixed!important;inset:0!important;width:100%!important;height:var(--visible63,100dvh)!important;max-height:var(--visible63,100dvh)!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:max(5px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;overflow:hidden!important}
 .overlay>.dialog{box-sizing:border-box!important;flex:0 1 auto!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;margin:0!important;overflow-wrap:break-word;}
 .dialog p,.dialog h2,.dialog .row,.dialog .btn{max-width:100%;overflow-wrap:break-word;white-space:normal}
 .dialog input{font-size:16px!important}.dialog #safeInput{font-size:24px!important}
 .dialog .row:empty{display:none!important}
 .dialog .pane63-art,.dialog .pane63-copy{min-width:0;min-height:0}
}
@media (orientation:landscape) and (max-height:1100px) and (max-width:1600px) and (any-pointer:coarse){
 .shell,.shell:has(.maze-chapter),.shell:has(.stealth-embed){height:var(--visible63,100dvh)!important;max-height:var(--visible63,100dvh)!important;padding-top:max(3px,env(safe-area-inset-top))!important}
 .chapter-grid>.v42-side{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;-webkit-overflow-scrolling:touch;padding-bottom:6px!important}
 .chapter-grid>.v42-side>*{flex:0 0 auto!important;min-height:max-content!important;max-height:none!important;position:relative!important}
 .chapter-grid>.v42-side>.brief{display:flex!important;flex-direction:column!important;align-items:stretch!important;grid-template-rows:none!important}
 .chapter-grid>.v42-side>.brief>*{flex:0 0 auto!important;min-height:0!important;max-height:none!important}
 .chapter-grid>.v42-side>.hud.v42-support{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:max-content!important;align-content:start!important;align-items:center!important;flex-shrink:0!important;min-height:max-content!important;max-height:none!important;overflow:visible!important;gap:6px!important}
 .hud.v42-support:before,.hud.v42-support .status{position:static!important;grid-column:1/-1!important;height:auto!important;min-height:0!important;max-height:none!important;white-space:normal!important;overflow-wrap:anywhere!important}
 .hud.v42-support .btn{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
 .chapter .chapter-head{min-width:0!important}.chapter .chapter-head h1,.chapter-banner{overflow-wrap:anywhere}
}
@media (orientation:landscape) and (max-height:550px) and (any-pointer:coarse){
 .overlay>.dialog{width:min(560px,100%)!important;padding:10px 14px!important;border-radius:13px!important}
 .overlay>.dialog h2{font-size:clamp(17px,3.1vh,23px)!important;line-height:1.12!important;margin:0 0 6px!important}
 .overlay>.dialog p{font-size:13px!important;line-height:1.35!important;margin:5px 0!important}
 .overlay>.dialog .row{margin:6px 0!important;gap:5px!important}.overlay>.dialog .btn{min-height:36px!important;font-size:13px!important;padding:5px 10px!important}
 .overlay>.dialog.split63{width:min(960px,100%)!important;display:grid!important;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:10px;align-items:center;overflow:auto!important;max-height:100%!important}
 .pane63-art{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:0;overflow:visible}
 .pane63-copy{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;max-height:calc(var(--visible63,100dvh) - 34px);overflow:auto;overscroll-behavior:contain;padding:2px 3px 4px;text-align:center;scrollbar-width:thin}
 .pane63-copy>*{flex:0 0 auto;max-width:100%;min-width:0}
 .split63 .puzzle-art{margin:0!important;max-width:100%!important}
 .split63 .atlas-art{width:min(100%,calc((var(--visible63,100dvh) - 45px)*1.81818))!important;aspect-ratio:600/330!important;height:auto!important;flex:0 0 auto!important}
 .split63 .atlas-art .city-pin{font-size:11px!important;min-height:30px!important;padding:4px 6px!important}
 .split63 .clock-art{width:min(100%,calc(var(--visible63,100dvh) - 60px),270px)!important;aspect-ratio:1!important;height:auto!important}
 .split63 .clock-read{font-size:19px!important;margin:0!important}
 .split63 .book-shelf{width:100%!important;gap:4px!important;padding:14px 7px 17px!important;border-width:4px!important}
 .split63 .book-volume{height:clamp(86px,calc(var(--visible63,100dvh) - 87px),170px)!important;padding:4px 2px!important;gap:3px!important}
 .split63 .book-volume strong{font-size:clamp(10px,1.55vw,14px)!important;line-height:1.18!important}.split63 .book-volume small{font-size:10px!important}.split63 .book-volume .book-icon{font-size:19px!important;padding:3px 0!important}
 .split63 .book-volume:before,.split63 .book-volume:after{height:3px!important}
 .split63 .v47-keypad{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:min(100%,240px)!important;gap:3px!important;margin:3px auto!important}
 .split63 .v47-keypad button{min-height:30px!important;height:clamp(30px,calc((var(--visible63,100dvh) - 90px)/4),40px)!important;font-size:15px!important;padding:2px!important}
 .split63 #safeInput{padding:3px!important;width:130px!important;font-size:20px!important}.split63 .safe-label{margin:0!important;font-size:10px!important}
 .split63 .safe-progress{margin:5px 0!important;gap:3px!important}.split63 .safe-progress span{padding:4px 6px!important;font-size:11px!important}
 .split63 .safe-notice{margin:4px 0!important}.split63 .safe-panel-inner{display:contents!important}
 .overlay>.dialog:not(.split63) .bigpiece{font-size:36px!important;margin:5px auto!important}
}
@media (orientation:landscape) and (min-height:551px) and (max-width:1600px) and (any-pointer:coarse){
 .shell{padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important;gap:7px!important}
 .shell>.top{min-height:42px!important}.top .logo{font-size:23px!important}.topright .btn{min-height:44px!important;font-size:14px!important}.save59-top{font-size:13px!important;max-width:150px!important}.clue-label strong,.clue-label small{font-size:14px!important}.clue-shelf .clue-chips{grid-template-columns:repeat(7,minmax(0,52px))!important}.clue-chips>.piece,.clue-chips>.clue-blank{height:34px!important;font-size:17px!important}.clue-chips>.piece.v57-long{font-size:13px!important}
 #game>.chapter{padding:10px!important;gap:7px 12px!important;grid-template-columns:minmax(0,1fr) clamp(250px,30%,380px)!important}
 .chapter .chapter-head h1{font-size:25px!important}.chapter .chapter-head small{font-size:12px!important}.chapter .chapter-head .chapter-banner{font-size:14px!important;padding:8px!important}
 .brief,.v42-support{padding:12px!important;gap:7px!important}.brief h2{font-size:21px!important}.brief-kicker{font-size:12px!important}.brief-card,.brief-help,.hud.v42-support .status{font-size:14px!important;line-height:1.45!important}.hud.v42-support:before{font-size:14px!important}.brief-card h3{font-size:15px!important}.hud.v42-support .btn,.brief .btn{min-height:44px!important;font-size:14px!important}.play-caption{font-size:13px!important}
 .maze-chapter .maze-tools .btn,.maze-chapter .maze-pad .btn{min-height:44px!important;font-size:14px!important}
 .overlay>.dialog{width:min(800px,100%)!important;padding:20px!important}.overlay>.dialog h2{font-size:28px!important}.overlay>.dialog p{font-size:16px!important}.overlay>.dialog .btn{min-height:44px!important;font-size:15px!important}
 .overlay>.dialog.split63{display:block!important}.pane63-art{margin:8px auto}.pane63-copy{display:block!important}.split63 .atlas-art{max-width:600px;margin:auto}.split63 .clock-art{max-width:250px;margin:auto}.split63 .book-shelf{max-width:620px;margin:auto}.split63 .v47-keypad{max-width:260px;margin:8px auto}
 .dec-head h1{font-size:30px!important}.dec-aside p{font-size:15px!important}.dec-aside h2{font-size:22px!important}.dec-tile{min-height:70px!important}.dec-confirm{min-height:44px!important;font-size:16px!important}
 .start.v34{align-content:center!important;padding:20px 30px!important}.v34 .intro-copy h1{font-size:clamp(36px,5vw,60px)!important}.v34 .intro-copy p{font-size:17px!important;line-height:1.5!important}.v34 .intro-action,.v34 .v47-continue{min-height:44px!important;font-size:16px!important}.v34 .letter-prop{width:min(100%,360px)!important}.v34 .save59-home small{font-size:13px!important}
}

@media (orientation:landscape) and (min-height:551px) and (max-width:1600px) and (any-pointer:coarse){.overlay>.dialog.split63{width:min(1000px,100%)!important;display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px;align-items:center}.pane63-art{width:100%;margin:0!important;min-width:0}.pane63-copy{max-height:calc(var(--visible63,100dvh) - 60px);overflow:auto;min-width:0}.split63 .atlas-art{aspect-ratio:600/330!important;width:100%!important}.split63 .book-shelf{width:100%!important}.split63 .clock-art{width:100%!important;max-width:270px!important}.split63 .v47-keypad{width:100%!important;max-width:260px!important}.split63 .v47-keypad button{min-height:44px!important}}

@media (orientation:landscape) and (max-width:1600px) and (any-pointer:coarse){
html,body{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;overscroll-behavior:none!important} .shell{min-width:0!important;max-width:100%!important;left:0!important;right:0!important;transform:none!important;}
#game,.viewport,.chapter,.chapter-grid>.play-column{min-width:0!important;max-width:100%!important}
.topright{min-width:0!important}.topright .btn{white-space:nowrap!important}
.maze-chapter .play-column{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:minmax(0,1fr) 38px!important;align-items:stretch!important;justify-items:stretch!important;gap:2px!important;min-width:0!important}
.maze-chapter .garden-board{display:contents!important;container-type:normal!important}
.maze-chapter .maze-scroll,.maze-chapter .maze-scroll.zoomed,.maze-chapter .maze-scroll.v41-overview:not(.zoomed),.maze-chapter .maze-scroll:not(.zoomed){grid-column:1/-1!important;grid-row:1!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-height:0!important;overflow:auto!important;position:relative!important;display:block!important;margin:0!important;touch-action:none!important;overscroll-behavior:none!important;scrollbar-width:none!important}
.maze-scroll canvas{display:block!important;max-width:none!important;max-height:none!important;margin:0!important;touch-action:none!important;flex:none!important}.maze-scroll.map64fit canvas{margin:auto!important}
.maze-chapter .maze-tools{grid-column:1!important;grid-row:2!important;justify-content:center!important;min-width:0!important;gap:3px!important}.maze-chapter .maze-pad{grid-column:2!important;grid-row:2!important;justify-content:center!important;min-width:0!important;gap:3px!important}.maze-tools #mazeZoom64{display:inline!important;font-size:11px!important;white-space:nowrap;color:#d8e1e3}.maze-chapter .maze-tools .btn{min-width:28px!important;padding:3px 5px!important}.maze-chapter .maze-pad .btn{min-width:30px!important;padding:2px 4px!important}
#focus64{display:inline-flex!important;align-items:center;justify-content:center}body.focus64 #game>.chapter{grid-template-columns:minmax(0,1fr)!important}body.focus64 .chapter>.chapter-head,body.focus64 .chapter-grid>.v42-side{display:none!important}body.focus64 .chapter-grid>.play-column{grid-column:1!important;grid-row:1/-1!important}body.focus64 #game>.chapter{grid-template-rows:minmax(0,1fr)!important}
}
#focus64{display:none}
@media (orientation:landscape) and (max-height:550px) and (max-width:1600px) and (any-pointer:coarse){.shell:not(:has(.start.v34)):not(:has(.reveal44)){grid-template-columns:minmax(0,max-content) minmax(0,1fr)!important}.clue-shelf .clue-chips{grid-template-columns:repeat(7,minmax(0,31px))!important;gap:2px!important}.clue-shelf .clue-label small{white-space:nowrap;font-size:10px!important}.save59-top{max-width:82px!important;font-size:9px!important}.topright .btn{font-size:10px!important;padding:3px 5px!important}.clue-shelf .clue-chips .piece,.clue-shelf .clue-chips .clue-blank{min-width:0!important}.maze-tools #mazeZoom64{display:none!important}}

body:has(.start.v34) #focus64,body:has(.decoder44) #focus64,body:has(.stealth-embed) #focus64,body:has(.reveal44) #focus64{display:none!important}

/* Post-completion replay menu */
.replay65-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.replay65-card{display:flex;align-items:center;gap:10px;text-align:left;min-width:0;min-height:68px;border-radius:12px;padding:10px 12px;border:1px solid #ae8d5e;background:linear-gradient(145deg,#244959,#122e3e);color:#fff0d1;box-shadow:0 4px 8px #51381422;cursor:pointer}.replay65-card:hover,.replay65-card:focus-visible{border-color:#f0cb8c;background:#345a65;outline:2px solid #d7b579}.replay65-card strong{display:block;font:700 17px/1.15 Georgia,serif}.replay65-card small{display:block;font-size:12px;line-height:1.2;margin-top:5px;color:#c4d6db}.replay65-num{font:700 21px Georgia,serif;color:#eac68e}.replay65-arrow{margin-left:auto;font-size:25px;color:#eac68e}.replay65-intro{margin:4px 0!important}.save59-status[data-state="replay"]{color:#e8cc98}.dialog:has(.replay65-grid){width:min(760px,94vw)!important;max-width:94vw!important;overflow:auto!important}.dialog:has(.replay65-grid) .row{margin-top:6px!important}
@media(max-height:450px) and (orientation:landscape){.replay65-grid{gap:6px;margin:6px 0}.replay65-card{min-height:44px;padding:5px 8px;gap:6px}.replay65-card strong{font-size:13px}.replay65-card small{font-size:10px;margin-top:2px}.replay65-num{font-size:16px}.replay65-arrow{font-size:18px}.dialog:has(.replay65-grid) h2{margin:0 0 4px!important;font-size:21px!important}.dialog:has(.replay65-grid) .replay65-intro{font-size:11px!important;line-height:1.3!important}.dialog:has(.replay65-grid) .row button{min-height:30px!important;padding:4px 12px!important;font-size:11px!important}}
@media(max-width:500px) and (orientation:portrait){.replay65-grid{grid-template-columns:1fr}}

/* Completed adventure controls: desktop, tablet and mobile. */
.completed66-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}.completed66-actions .completed66-label{flex:0 0 100%;font:700 11px/1.4 Arial,sans-serif!important;letter-spacing:.065em;color:#c5e5c9!important;margin:0!important}.completed66-actions .btn{margin:0!important;min-height:40px}.completed66-actions #replay65Menu{flex:0 0 100%;background:linear-gradient(145deg,#f9e8bd,#d6ac73)!important;color:#203746!important;border-color:#f5dbab!important;font-weight:700}.version66{display:block;font:10px Arial,sans-serif;color:#afc0c7;opacity:.8;margin-top:8px}.v46 .rev-controls #revRestart{background:linear-gradient(145deg,#f9e8bd,#d6ac73);color:#203746;border-color:#f5dbab;font-weight:700}.v46 .rev-controls #revRestart[hidden]{display:none!important}
@media(orientation:landscape) and (max-height:550px){.completed66-actions{gap:5px;margin:5px 0}.completed66-actions .completed66-label{font-size:9px!important}.completed66-actions .btn{min-height:32px!important;font-size:12px!important;padding:5px 8px!important}.version66{margin-top:2px}.start.v34:has(.completed66-actions){align-content:start!important}.start.v34:has(.completed66-actions) .intro-copy p:not(.completed66-label){font-size:11px!important;line-height:1.3!important;margin:4px 0!important}.start.v34:has(.completed66-actions) .intro-copy h1{font-size:clamp(22px,6vh,32px)!important;margin:4px 0!important}.start.v34:has(.completed66-actions) .save59-home{margin-top:4px!important}.start.v34:has(.completed66-actions) .intro-foot{display:none!important}}

/* V67: all-device mission picker, never shown before first completed adventure. */
#choose67{background:linear-gradient(145deg,#f9e8bd,#d6ac73)!important;color:#203746!important;border:1px solid #f5dbab!important;font-weight:700;white-space:nowrap!important}
#choose67[hidden]{display:none!important}
@media (orientation:landscape) and (max-height:550px) and (any-pointer:coarse){.topright #choose67{font-size:10px!important;min-height:32px!important;padding:3px 6px!important}.shell:has(#choose67:not([hidden])) .save59-top{max-width:64px!important;white-space:normal!important}.shell:has(#choose67:not([hidden])) .clue-shelf .clue-chips{grid-template-columns:repeat(7,minmax(0,29px))!important}.shell:has(#choose67:not([hidden])) .clue-chips>.piece.v57-long{font-size:8px!important;letter-spacing:-.04em!important;padding:0!important}.shell:has(#choose67:not([hidden])) .clue-shelf .clue-label small{font-size:9px!important}.dialog:has(.replay65-grid) .row{flex-wrap:wrap!important}}

/* V69: explicit build label and reliable replay switch. */
.build71{display:inline-block;vertical-align:middle;font:600 10px/1.1 Arial,sans-serif;letter-spacing:.06em;color:#adbec6;margin-left:5px;opacity:.85}
.topright #choose67:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;visibility:visible!important;opacity:1!important;position:relative}
@media (orientation:landscape) and (max-height:550px) and (any-pointer:coarse){.topright #choose67:not([hidden]){min-width:0!important;max-width:none!important;font-size:10px!important;padding:3px 5px!important}.topright .save59-top[data-state="replay"]{font-size:10px!important;line-height:1.12!important;max-width:60px!important}}

/* V70: permanent in-game switch next to Replay mode. */
.replay70 .topright #choose67:not([hidden]){display:inline-flex!important;visibility:visible!important;opacity:1!important;background:linear-gradient(145deg,#fff0cd,#d7af75)!important;color:#153346!important;min-width:108px;font-weight:800!important;box-shadow:0 0 0 1px #f0cc8c55;white-space:nowrap;align-items:center;justify-content:center}
@media (any-pointer:fine) and (min-width:850px){body.replay70:not(.v44-revealing) .shell>.top{position:sticky;top:0;z-index:22;background:#152c3e;border-radius:0 0 9px 9px}body.replay70:not(.v44-revealing) .shell>.clue-shelf{top:var(--replay70-top,65px)!important}}
@media (orientation:landscape) and (max-height:550px) and (any-pointer:coarse){.replay70 .topright #choose67:not([hidden]){min-width:0!important;font-size:10px!important;padding:3px 7px!important}}

/* V71: directly visible in-game replay switch, independent of header layout. */
.topright .save59-top[data-state="replay"]{cursor:pointer;color:#f0ce96;white-space:nowrap;}
body.replay70 .topright #choose67{flex-shrink:0!important;min-height:38px;pointer-events:auto!important;}
@media (orientation:landscape) and (max-height:550px) and (any-pointer:coarse){body.replay70 .topright #choose67{min-height:32px!important}.topright .save59-top[data-state="replay"]{white-space:normal!important;max-width:64px!important}}
