:root{color-scheme:dark;--bg:#0d1517;--panel:#172326;--line:#364345;--muted:#a3b4b2;--paper:#efeadd;--red:#ee7153;--teal:#87b6af;--sans:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;--serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif CJK JP",serif;--mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--paper);font-family:var(--sans)}body{font-size:15px}button,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:transparent}button:hover{border-color:var(--teal);background-color:#273639}button:focus-visible,select:focus-visible{outline:2px solid #f8bf8d;outline-offset:3px}button:disabled{cursor:default;opacity:.45}button svg,.identity svg,.stat svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.symbols,[hidden]{display:none!important}button{touch-action:manipulation}.wrapper{width:min(1344px,93%);margin-inline:auto}.landing{min-height:100svh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 60% 20%,#1b2628 0,transparent 67%),#101719}.mast{height:80px;display:flex;align-items:center;justify-content:space-between}.identity{display:flex;align-items:center;gap:12px}.brandIcon{display:grid;place-items:center;width:39px;height:39px;border:1px solid #8fa9a5;box-shadow:inset 0 0 0 3px #182522;background:#222e2c;color:#e0e3d2}.identity svg{width:24px;height:24px}.identity b{font-size:17px;letter-spacing:.13em}.identity small{display:block;margin-top:4px;font:9px var(--mono);letter-spacing:.21em;color:#a5b3af}.topTools{display:flex;align-items:center;gap:8px}.offair,.micro,.heroFoot,.eyebrow,.imgMeta,.tape,.engtitle,.landFooter,.hudIdentity small,.tapeCounter,.sectionTag,.serial,.photoCap,.pill,.chapterTag{font-family:var(--mono)}.offair{font-size:10px;letter-spacing:.15em;margin-right:17px;color:#b8bfba;display:flex;align-items:center;gap:8px}.offair i,.landFooter i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#929d94}.iconBtn,.hudRight button{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:36px;gap:7px;border-radius:2px}.iconBtn svg{width:17px;height:17px}.audioToggle.on{color:#e4b38d}.hero{isolation:isolate;position:relative;overflow:hidden;min-height:435px;height:clamp(435px,58.7svh,695px);border:1px solid #596460;background:#253438}.hero canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 4%;image-rendering:pixelated;z-index:-3}.heroShade{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(8,18,20,.95) 0,rgba(12,23,24,.88) 20%,rgba(13,23,25,.53) 37%,transparent 62%),linear-gradient(0deg,rgba(8,18,20,.78),transparent 20%)}.heroCopy{height:100%;position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:20px 4.4% 26px}.eyebrow{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:600;letter-spacing:.13em;color:#c2c7b6}.eyebrow i{width:22px;height:2px;background:var(--red)}.eyebrow span,.heroFoot b,.imgMeta b{color:var(--red)}h1{margin:16px 0 3px;font:900 clamp(68px,7.45vw,112px)/1.18 var(--serif);letter-spacing:.025em;color:#f1e9d6;text-shadow:3px 3px 0 #292e29}.engtitle{font-size:clamp(10px,1.08vw,14px);letter-spacing:.35em;color:#d5b49b}.heroCopy p{font-size:clamp(13px,1.03vw,16px);line-height:1.95;letter-spacing:.045em;color:#e0e0d3;margin:23px 0 24px}.playBtns{display:flex;align-items:center;gap:16px}.primary,.secondary,.textBtn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700;letter-spacing:.045em;font-size:14px;padding:12px 18px}.primary{background:var(--red);color:#17201e;border:1px solid #fa9676;min-height:45px}.primary:hover{background:#ff8f70;border-color:#ffbb9d}.primary svg{width:16px;height:16px}.primary svg:last-child:not(:first-child){width:20px;margin-left:9px}.textBtn{border-color:transparent;background:transparent;padding:10px 0;color:#d5dcd3;font-size:12px}.textBtn:hover{background:transparent;border-color:transparent;color:#ffba96}.textBtn svg{width:17px}.secondary{color:#d7dfd7;background:#202e30}.corner{position:absolute;width:12px;height:12px;border-color:#b7c0a8;border-style:solid;z-index:2;pointer-events:none}.tl{top:7px;left:7px;border-width:1px 0 0 1px}.tr{top:7px;right:7px;border-width:1px 1px 0 0}.bl{bottom:7px;left:7px;border-width:0 0 1px 1px}.br{bottom:7px;right:7px;border-width:0 1px 1px 0}.imgMeta{position:absolute;right:20px;top:20px;color:#f3edde;text-shadow:1px 1px #182023;font-size:9px;letter-spacing:.13em;display:flex;align-items:center;gap:7px;padding:5px 7px;background:#0e1a1e87}.frameSquare{width:7px;height:7px;background:var(--red)}.heroFoot{position:absolute;bottom:15px;left:21px;right:21px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:.17em;color:#c2cbc0}.heroFoot b{margin-left:6px}.tape{margin-top:8px;height:47px;display:flex;overflow:hidden;border:1px solid var(--line);background:#152123;align-items:center;color:#c0cbbf}.tapeRec,.tapeEnd{display:flex;align-items:center;height:100%;padding:0 18px;gap:8px;font-size:10px;letter-spacing:.12em;white-space:nowrap}.tapeRec{border-right:1px solid var(--line)}.recdot,.tinyRec{width:7px;height:7px;border-radius:50%;display:inline-block;background:var(--red)}.tapeRec b{color:#eadfc7}.tapeEnd{border-left:1px solid var(--line)}.tapeEnd strong{border:1px solid #a1b0a4;padding:1px 4px;font-size:10px}.tape svg{height:100%;flex:1;min-width:0;background:repeating-linear-gradient(90deg,transparent 0 29px,#44525650 30px),repeating-linear-gradient(0deg,transparent 0 10px,#44525640 11px)}.metaRow{display:grid;grid-template-columns:1.12fr 1fr 1fr 1fr;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:24px;padding:19px 0}.micro,.sectionTag,.serial,.photoCap,.pill,.chapterTag{font-size:10px;letter-spacing:.15em}.micro,.sectionTag,.serial,.chapterTag{color:var(--teal)}.metaIntro h2{font:600 19px var(--serif);letter-spacing:.13em;margin:4px 0 0}.stat{display:flex;align-items:center;gap:14px;border:0;border-left:1px solid var(--line);padding:3px 12%;text-align:left}.stat svg{width:23px;height:23px;color:#abbbb0}.stat small{display:block;color:#adbbb7;font-size:10px;letter-spacing:.1em}.stat b{font-size:18px;letter-spacing:.09em;line-height:1.6}.statButton span{font-size:14px;color:var(--red);margin-left:auto}.landFooter{margin-top:auto;padding:20px 0 18px;font-size:9px;letter-spacing:.11em;color:#9eada8;display:flex;align-items:center;justify-content:space-between}.landFooter i{background:var(--teal);margin-right:5px;width:5px;height:5px}.landFooter b{color:var(--red);font-weight:400}
#game{height:100dvh;position:relative;overflow:hidden;background:#0c1417;touch-action:none}#world{height:100%;width:100%;display:block;image-rendering:pixelated;touch-action:none}.hud{position:absolute;inset:0 0 auto;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:linear-gradient(#0a1215ef,#0a1215ac);padding:8px max(16px,env(safe-area-inset-left));border-bottom:1px solid #83918a61;pointer-events:none}.hudIdentity,.hudRight{display:flex;align-items:center;gap:10px}.hudIdentity{font-family:var(--serif);font-weight:bold;letter-spacing:.13em}.hudIdentity small{font-size:11px;letter-spacing:.06em;color:var(--teal)}.hudRight{pointer-events:auto;gap:6px}.hudRight button{background:#152123bb;font-size:12px;padding:0 9px}.hudRight svg{width:16px;height:16px}.objective,.danger,.worldNotice,.target,.gameFoot,.reticle{position:absolute;pointer-events:none}.objective{top:65px;left:17px;padding:9px 12px;border-left:2px solid var(--red);background:#101b1ed4;max-width:min(590px,90vw);line-height:1.65;text-shadow:1px 1px #070908}.objective small{display:block;letter-spacing:.15em;font-size:10px;color:#e2ac8f}.objective span{font-size:13px}.danger{top:144px;right:16px;font-size:13px;border:1px solid #ba7557;color:#ffd2b3;background:#382628ed;padding:8px 12px}.reticle{left:50%;top:50%;border:1px solid #dbded3;width:5px;height:5px;transform:translate(-50%,-50%);border-radius:50%;box-shadow:0 0 2px black}.target{left:50%;transform:translateX(-50%);bottom:21%;color:#f6edda;background:#112124e8;border:1px solid #b7b5a8;padding:9px 16px;pointer-events:auto;white-space:nowrap;font-size:14px;display:flex;align-items:center;gap:10px}kbd{display:inline-flex;align-items:center;justify-content:center;border:1px solid #89a09d;background:#263638;padding:1px 5px;color:#e3e4d9;font:12px/1.6 var(--mono);border-radius:2px;white-space:nowrap}.worldNotice{bottom:11%;left:50%;transform:translateX(-50%);min-width:min(230px,90vw);max-width:min(640px,92vw);padding:9px 16px;text-align:center;background:#121b1de8;border-left:2px solid var(--teal);font-size:13px}.gameFoot{bottom:0;left:0;right:0;padding:11px 16px;background:linear-gradient(transparent,#091315ea);display:flex;justify-content:space-between;color:#dee5db;font-size:11px}.tapeCounter{letter-spacing:.13em;color:#dfa988}.tapeCounter b{color:#efecdd}#touchPad,#runBtn{display:none}
.modal{position:fixed;inset:0;z-index:20;display:flex;justify-content:center;align-items:center;background:#050c10ba;backdrop-filter:blur(3px);padding:18px}.dialog{width:min(680px,100%);max-height:90dvh;overflow:auto;overscroll-behavior:contain;outline:none;border:1px solid #697674;background:linear-gradient(110deg,#1e2c2f,#152023);box-shadow:0 22px 80px #0009;padding:25px 29px 24px;scrollbar-width:thin;scrollbar-color:#647871 #172226}.dialog.wide{width:min(900px,100%)}.dlgHead{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid #52605d}.dlgHead h2{margin:6px 0 0;font:700 clamp(22px,3.8vw,33px)/1.35 var(--serif);letter-spacing:.065em}.xbtn{flex:0 0 35px;width:35px;height:35px;display:grid;place-items:center}.xbtn svg{width:14px;height:14px}.prose{font-family:var(--serif);font-size:16px;line-height:1.95;letter-spacing:.025em;color:#e6e2d5}.prose p{margin:13px 0;white-space:pre-line}.note{line-height:1.8;color:#b5c6c2;font-size:13px;white-space:pre-line}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;border-top:1px solid var(--line);padding-top:15px;margin-top:19px}.actions button{min-height:40px}.sectionTag{display:block;margin-top:2px}.photoPlate{padding:6px;background:#0a1315;border:1px solid #4c5d5d}.photoPlate canvas{width:100%;height:auto;display:block;image-rendering:pixelated}.photoCap{color:#a8bbb3;display:flex;justify-content:space-between;gap:8px;margin:8px 3px 3px;font-size:9px}.evidenceGrid{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:21px;margin-top:19px}.evidenceText .prose{margin:0;font-size:15px;line-height:1.91;white-space:pre-line}.caption{display:block;margin-top:14px;color:#b2c7bf;font-size:12px;line-height:1.7;border-left:2px solid #6a8b84;padding-left:10px}.pill{display:inline-block;color:#e0b299;border:1px solid #947460;padding:3px 6px;font-size:9px}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:17px 0}.tabs button,.minor{padding:7px 12px;font-size:12px;background:#18272a}.tabs button.selected,.choice.selected,.roomTab.selected{background:#344641;border-color:#a7b9a1;color:#f7eedc}.logRow{display:flex;gap:11px;align-items:center;width:100%;text-align:left;padding:7px 10px;background:#192629;margin:6px 0}.logRow canvas{width:64px;height:40px;object-fit:cover;image-rendering:pixelated}.logRow small{display:block;color:var(--teal);font-size:10px}.logRow b{font-size:14px;line-height:1.7}.logRow .chev{margin-left:auto;color:var(--red)}.panelBody{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;margin-top:17px}.machine{padding:15px;background:#111c1f;border:1px solid #455355}.slot{padding:9px 0 12px;border-bottom:1px solid #324246}.slot:first-child{padding-top:0}.slot:last-child{border:0;padding-bottom:0}.slot label{display:block;font-size:12px;letter-spacing:.07em;margin-bottom:7px;color:#d3b89f}.choices{display:flex;gap:5px;flex-wrap:wrap}.choice{font-size:12px;padding:6px 9px;background:#223034;line-height:1.45}.hintBox,.feedback{white-space:pre-line;font-size:13px;line-height:1.75;border-left:2px solid #bc9676;padding:7px 10px;margin:10px 0;background:#322d27;color:#f7d8af}.feedback:empty{display:none}.sideTitle{display:block;color:#bdcec5;margin:0 0 8px;font-size:13px}.fact{border:1px solid #354744;margin:5px 0;line-height:1.7;font-size:12px}.fact summary{cursor:pointer;padding:7px 9px;color:#d7dfd6}.fact p{padding:0 10px 8px;margin:0;white-space:pre-line;color:#b9cac3}.roomTabs{display:flex;gap:4px;flex-wrap:wrap;margin:10px 0}.roomTab{padding:5px 10px;font-size:12px}.endOpt{display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;width:100%;padding:11px 13px;margin:7px 0;background:#19282a}.endOpt b,.endOpt small{display:block}.endOpt small{font-size:11px;font-weight:400;color:#b5c6bd;margin-top:4px}.endOpt .serial{color:#cfac8d;font-size:11px}.endingTitle{color:#e9bd9c}.guideGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px 22px;margin:16px 0}.guideGrid>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:6px 0;font-size:13px}.mapWrap{width:100%;background:#101e22;border:1px solid #4e625e;margin-top:14px;padding:5px}.mapWrap svg{display:block;width:100%;max-height:49dvh}.legend{margin-top:9px;color:#c0cfc5;font-size:12px;line-height:1.8}.mobileOnly{display:none}#touchPad{touch-action:none}.splitFoot{justify-content:space-between}.smallNote{margin:10px 0;color:#b5c4bb;font-size:12px}
@media(min-width:1600px){.mast{height:9vh}.hero{height:59vh}.metaRow{margin-top:31px;padding-block:23px}}
@media(max-width:750px){.wrapper{width:94%}.mast{height:63px}.offair{margin-right:4px;font-size:9px}.hero{height:clamp(450px,62svh,630px);min-height:0}.hero canvas{object-position:64% center}.heroShade{background:linear-gradient(90deg,rgba(8,18,20,.75),rgba(11,21,22,.32) 44%,transparent 78%),linear-gradient(0deg,rgba(8,18,20,.95),rgba(9,18,22,.62) 32%,transparent 75%)}.heroCopy{justify-content:flex-end;padding:20px 5% 52px}.coord{display:none}.imgMeta{font-size:8px;top:12px;right:11px}.eyebrow{font-size:9px}.heroCopy h1{font-size:clamp(56px,11vw,79px);margin-top:12px}.heroCopy p{margin:14px 0 16px;font-size:12px}.heroFoot{font-size:7px}.metaRow{margin-top:14px;padding:13px 0;grid-template-columns:.9fr 1fr 1fr 1fr}.stat{padding:3px 8%;gap:7px}.stat svg{width:17px;height:17px}.stat b{font-size:14px}.stat small{font-size:9px}.metaIntro h2{font-size:16px}.micro{font-size:8px}.tape{height:37px}.tapeRec,.tapeEnd{padding-inline:9px;font-size:8px}.evidenceGrid,.panelBody{grid-template-columns:1fr}.evidenceGrid{gap:13px}.evidenceGrid .photoPlate{width:min(100%,340px);margin:auto}.dialog{padding:19px;max-height:93dvh}.legend{font-size:11px}.hudRight button span{display:none}.objective{top:57px}.landFooter{font-size:7px}.statButton span{display:none}}
@media(max-width:460px){.identity b{font-size:14px}.identity small{font-size:7px}.brandIcon{width:33px;height:33px}.identity{gap:8px}.iconBtn{min-width:32px;height:32px}.topTools{gap:5px}.metaRow{grid-template-columns:repeat(3,1fr);gap:9px}.metaIntro{display:none}.stat:first-of-type{border-left:0}.stat{padding-inline:5px;justify-content:center}.playBtns{gap:12px}.playBtns .primary{font-size:13px;padding:10px 12px}.playBtns .textBtn{font-size:11px}.engtitle{letter-spacing:.24em}.guideGrid{grid-template-columns:1fr}.modal{padding:9px}.actions{gap:6px}.actions .primary,.actions .secondary{padding:9px 11px;font-size:13px}.objective{max-width:92vw}.hud{padding-inline:8px}.hudIdentity{gap:5px;font-size:14px}.worldNotice{width:87vw}.tapeEnd{padding:0 7px}}
@media(pointer:coarse),(max-width:700px){#touchPad{display:block;position:absolute;bottom:max(33px,env(safe-area-inset-bottom));left:max(18px,env(safe-area-inset-left));width:95px;height:95px;border:1px solid #c5d3c180;background:#101d228f;border-radius:50%;touch-action:none}#touchPad div{position:absolute;top:32px;left:32px;width:29px;height:29px;border:1px solid #cbd3c2aa;background:#8eac9a72;border-radius:50%}#runBtn{display:block;position:absolute;right:17px;bottom:42px;border-radius:50%;width:54px;height:54px;background:#1c2a2dbb;font-size:12px;touch-action:none}.gameFoot>span:first-child{display:none}.gameFoot{justify-content:flex-end}.target{bottom:24%}.target kbd{display:none}.danger{top:126px}.worldNotice{bottom:31%;font-size:12px}.mobileOnly{display:block}}
@media(max-height:520px) and (orientation:landscape){.hero{height:365px;min-height:0}.heroCopy h1{font-size:55px}.heroCopy p{margin:10px 0}.dialog{max-height:96dvh}.objective{top:50px;padding:3px 7px}.objective small{display:none}.target{bottom:12%}.danger{top:67px}.worldNotice{bottom:25%}.mast{height:50px}.gameFoot{padding-block:2px}.hud{min-height:44px;padding-block:4px}}
.letter{margin:17px 0 11px;padding:15px 19px 13px;color:#353c37;background:repeating-linear-gradient(0deg,#cbc4ad 0,#cbc4ad 1px,transparent 1px,transparent 25px),#ded6be;border-left:4px solid #b39a78;box-shadow:2px 3px 0 #0f181ae6}.letter small{font:9px var(--mono);letter-spacing:.17em;color:#57655a}.letter p{margin:6px 0 0;line-height:1.8;font:600 15px/1.8 var(--serif)}.lesson{position:absolute;top:68px;left:18px;width:min(440px,calc(100% - 36px));padding:12px 15px 13px;background:linear-gradient(105deg,#152022f4,#101b1de8);border:1px solid #667873;border-left:3px solid var(--red);box-shadow:0 5px 14px #08101266;pointer-events:none;color:var(--paper)}.lessonTop{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;letter-spacing:.12em}.lessonTop .lessonStamp{border:1px solid #b67d64;color:#e2ab8e;padding:1px 5px}.lessonTop #lessonCount{margin-left:auto;font:10px var(--mono);letter-spacing:.12em;color:#8eaca5}.lesson p{font:15px/1.7 var(--serif);margin:9px 0 7px}.lessonAction{display:flex;gap:9px;flex-wrap:wrap;align-items:baseline;font-size:12px}.lessonAction b{color:#f3bc95}.lessonAction span{color:#c6d6d1}.lesson small{display:block;color:#edd5aa;font-size:11px;line-height:1.6;letter-spacing:.04em}.lesson small:not(:empty){margin-top:5px}.trainingBook{outline:1px solid var(--red);color:#f1c3a2}.modelTools{margin-top:7px;display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.modelTools button{padding:6px 9px;font-size:11px}.modelTools .rotateBtns{display:flex;gap:5px}.modelTools .rotateBtns button{padding:5px 10px}.modelHelp{color:#a6bcb2;font-size:10px;margin:6px 0 0}.objectView{touch-action:none;cursor:grab}.objectView:active{cursor:grabbing}.glanceNote{font:14px/1.75 var(--serif);color:#d9d9c5;border-left:2px solid #b99675;padding:4px 10px;background:#253130}.introPlace{display:block;font-size:12px;color:#d3b79c;letter-spacing:.14em;margin:13px 0 0}
@media(max-width:540px){.lesson{top:55px;left:8px;width:calc(100% - 16px);padding:7px 10px}.lesson p{font-size:13px;margin:5px 0}.lessonAction{gap:6px;font-size:11px}.letter{padding:11px 13px}.letter p{font-size:13px}.lesson small:not(:empty){margin-top:2px}}
@media(max-height:470px) and (orientation:landscape){.lesson{top:48px;padding:6px 10px;width:min(390px,58vw)}.lesson p{font-size:12px;margin:3px 0}.lessonTop{font-size:9px}.lessonAction{font-size:11px}}

/* 2026-11-06 calm tutorial pass */
:root{--red:#b98772;--teal:#8fa7a0;--paper:#e7e3d8;--muted:#9ca9a6}
.primary{background:#d8c9b5;color:#1c2524;border-color:#e6dac8;box-shadow:none}.primary:hover{background:#e3d7c5;border-color:#f1e8db}
.secondary{background:#1a2527;border-color:#465250;color:#cfd5cf}.dialog{background:#182225;border-color:#4f5d5b;box-shadow:0 22px 70px #0008}.modal{background:#071013cf;backdrop-filter:blur(2px)}
.lesson{background:#111a1ceF;border-color:#485854;border-left:2px solid #9d8877;box-shadow:0 5px 16px #0006}.lessonTop .lessonStamp{border-color:#756a5f;color:#cbb9a5}.lessonAction b{color:#ded3c4}.trainingBook{outline:2px solid #d8c9b5;outline-offset:2px;color:#f0e8dc}
.target{background:#111b1de8;border-color:#8a9792;color:#e9e6de;padding:8px 14px}.objective{border-left-color:#827a70;background:#10191bd8}.danger{border-color:#8f6358;background:#2b2323eb}.worldNotice{border-left-color:#758d87;background:#101719ef}
.photoPlate{background:#0f1719;border-color:#394644}.pill{color:#cdb8a7;border-color:#6f6258}.caption{border-left-color:#526965}.hintBox,.feedback{background:#272522;border-left-color:#8d7a68;color:#ddd2c5}.choice.selected,.roomTab.selected{background:#2b3633;border-color:#8e9b91;color:#eee7da}
.guidedAction{width:100%;min-height:54px;font-size:15px;letter-spacing:.07em;border:1px solid #e4d8c8;background:#d8c9b5;color:#1b2422}.guidedAction::after{content:'  →';font-weight:800}.onlyAction{margin:12px 0 3px;padding:10px 12px;border:1px solid #4e5a57;background:#11191b;color:#bfc7c1;font-size:12px;line-height:1.7}.onlyAction b{color:#e6ded1}.actions.guided{justify-content:stretch}.actions.guided button:not(.guidedAction){display:none}.lessonLock{margin-top:8px;padding-top:7px;border-top:1px solid #34413f;color:#9da9a5!important}.lessonLock b{color:#ddd3c4}.recap{margin:11px 0;padding:9px 11px;background:#111a1c;border-left:2px solid #596d68;color:#bcc8c2;font-size:12px;line-height:1.75}.recap b{color:#e0d8ca;font-weight:600}.mapWrap svg circle.itemMark{display:none}

/* 2026-11-06 rules pass */
/* A7: windows open from the same top edge */
.modal{align-items:flex-start;padding-top:max(14px,env(safe-area-inset-top))}
/* A6: the opening pictures */
.introPlate{margin:0 0 12px;background:#0f1719;border:1px solid #394644}.introPlate canvas{display:block;width:100%;max-height:min(30vh,240px);object-fit:contain;image-rendering:pixelated}.introPlate figcaption{padding:6px 10px;font-size:13px;color:#b9c3bf;border-top:1px solid #2b3736}
@media(max-height:520px) and (orientation:landscape){.introPlate canvas{max-height:24vh}}
/* A13: words to keep */
.em{color:#f0dcae;font-weight:700}
/* U19: what was seen, and what she thought, apart */
.thought{margin:10px 0;padding:9px 12px;border-left:2px solid #9d8877;background:#1f2424}.thought small{display:block;font-size:13px;color:#cbb9a5;margin-bottom:3px}.thought p{margin:0;line-height:1.75}
/* U5: the desk's settings are a lever */
.lever{position:relative;touch-action:none;border:1px solid #4f5d5b;background:repeating-linear-gradient(90deg,#141d1f 0 6px,#182325 6px 12px);display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0;padding:0;user-select:none}
.leverKnob{position:absolute;left:0;top:0;bottom:0;background:#d8c9b5;border:1px solid #efe5d6;box-shadow:inset 0 -3px 0 #a89478,inset 0 3px 0 #efe5d6;transition:transform .12s steps(3);pointer-events:none}
.lever button.choice{position:relative;z-index:1;background:transparent;border:0;min-height:48px;margin:0;color:#d6dbd5;cursor:grab}.lever button.choice.selected{color:#1b2422;font-weight:700}
.relBtn{font-size:13px}.relHead{font-size:16px;margin:12px 0 4px}.relList{margin:0 0 12px;padding-left:20px;line-height:1.8}
/* A12: on a phone, window text is large enough to read */
@media(max-width:500px),(max-height:500px){
  .dialog,.dialog p,.dialog li,.dialog .prose,.dialog .prose p,.dialog .note,.dialog .recap,.dialog .hintBox,.dialog .feedback,.dialog .fact p,.dialog .letter p,.dialog .onlyAction,.lesson p{font-size:17px;line-height:1.7}
  .dialog small,.dialog label,.dialog .caption,.dialog .smallNote,.dialog .sectionTag,.dialog .pill,.dialog .legend,.dialog .glanceNote,.dialog summary,.dialog figcaption,.dialog .photoCap,.dialog .modelHelp,.dialog .thought small,.dialog .serial,.dialog button,.lesson small,.lesson span,.lesson b,.objective small,.objective span,.hud,.hudIdentity small{font-size:14px}
  .dialog h2{font-size:20px}.dialog{padding-left:14px;padding-right:14px}
}
@media(max-width:500px),(max-height:500px){.dialog .actions button,.dialog .introPlace,.dialog .sideTitle,.dialog .guidedAction{font-size:15px!important}}
/* phone on its side: the lesson stays clear of the stick and the run button (U27) */
@media(max-height:500px) and (orientation:landscape){.lesson{left:136px!important;width:calc(100vw - 216px)!important;top:44px}.lesson #lessonLock{display:none}}
/* the map uses the whole width when the screen is short, the window scrolls (U28) */
@media(max-height:500px){.mapWrap svg{max-height:none}}
/* desktop windows: nothing the player has to read is under 15px */
@media(min-width:501px) and (min-height:501px){.dialog p,.dialog li,.dialog .recap,.dialog .note,.dialog .smallNote,.dialog .hintBox,.dialog .feedback,.dialog summary,.dialog .fact p,.dialog label,.dialog .choices button,.dialog .legend,.dialog .actions button{font-size:15px}}
