@scope (#szobajatek){

:scope{--paper:#fffaf2;--ink:#302d28;--muted:#6c665b;--forest:#354b40;--rust:#984d31;--line:#ded5c7;--e:#eda85f;--h:#78a5e0;--rf:#b292de}
*{box-sizing:border-box}:scope{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 'DM Sans',system-ui,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--rust);outline-offset:4px}button:disabled{cursor:default}a{color:inherit}[hidden]{display:none!important}
.header{max-width:1440px;margin:auto;padding:16px 36px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:8px;text-decoration:none}.brand img{width:64px;height:48px;object-fit:contain}.brand span{font-size:16px;font-weight:750;color:var(--forest)}.brand small{display:block;font-size:11px;letter-spacing:.05em;font-weight:400;color:var(--muted)}.prototype{font-size:11px;border:1px solid var(--line);border-radius:20px;padding:6px 12px;color:var(--muted)}.game-content{max-width:1440px;margin:auto;padding:38px 36px 16px}.opening{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:.13em;font-weight:800;color:var(--rust);margin:0}h1,h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.035em;line-height:1.12}h1{font-size:clamp(32px,3.4vw,54px);margin:10px 0 14px}.lead{color:var(--muted);margin:0;font-size:17px}.quiet{background:none;border:0;color:var(--forest);font-size:13px;white-space:nowrap;padding:8px 0;text-decoration:underline;text-underline-offset:5px}.help{padding:18px 24px;margin:0 0 20px;border:1px solid var(--line);background:#f3ecdf;border-radius:12px;font-size:14px}.game{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 0 12px;font-size:12px;color:var(--forest)}.toolbar>div{display:flex;gap:7px}.status-dot{display:inline-block;width:6px;height:6px;background:#849178;border-radius:50%;margin-right:5px}.tool{border:1px solid var(--line);border-radius:30px;background:transparent;color:var(--forest);padding:7px 12px;font-size:12px;min-height:36px}.tool[aria-pressed=true]{background:var(--forest);color:white;border-color:var(--forest)}
.room{position:relative;aspect-ratio:3/2;border-radius:18px;overflow:hidden;background:#e7ddca;isolation:isolate}.room-image{width:100%;height:100%;display:block;object-fit:fill;user-select:none}.room.probing{cursor:crosshair}.target{position:absolute;background:transparent;border:0;padding:0;transform:translate(-50%,-50%);border-radius:15px;min-width:40px;min-height:40px;z-index:3;touch-action:manipulation}.target:focus-visible{outline:3px solid white;box-shadow:0 0 0 6px var(--forest)}.target .check{display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;background:#fffaf2;color:var(--forest);border:1px solid #bfc7b9;font-weight:800;font-size:15px;box-shadow:0 2px 10px #0002}.target.found .check{display:grid;place-items:center}.target.hint{border:2px solid #fff8cf;background:#fff4b833;box-shadow:0 0 0 8px #fff4b833;animation:hint 1s ease-in-out infinite alternate}.target.secret:not(.found){pointer-events:none}.room-caption{position:absolute;bottom:0;left:0;right:0;padding:24px 16px 12px;color:white;background:linear-gradient(transparent,#201c17b8);font-size:12px;pointer-events:none;z-index:4}.room-caption span{padding-right:7px}.probe-cursor{pointer-events:none;position:absolute;transform:translate(-50%,-50%);border:1px solid white;border-radius:50%;width:48px;height:48px;box-shadow:0 0 0 9px #fff3;z-index:5;display:grid;place-items:center;color:white}.probe-cursor span{font-size:24px}.effect{position:absolute;transform:translate(-50%,-50%);pointer-events:none;z-index:1;border-radius:50%;width:28%;aspect-ratio:1;background:radial-gradient(ellipse,var(--glow),transparent 67%);mix-blend-mode:screen;animation:breathe 3s infinite alternate}.effect:before,.effect:after{content:'';position:absolute;inset:20%;border:2px solid var(--color);border-radius:50%;opacity:.65;animation:ripple 3s infinite}.effect:after{animation-delay:1.5s}.effect.reduced{width:16%;opacity:.55}.effect.wire{width:54%;height:42%;border-radius:0;background:repeating-linear-gradient(90deg,transparent 0 25%,#ffcf9566 26% 27%,transparent 28% 55%)}.effect.wire:before{inset:15% 10%;border-radius:8px}.effect.wire:after{inset:25% 20%;border-radius:8px}.under-room{display:flex;align-items:start;gap:20px;justify-content:space-between;padding-top:13px}.under-room p{font-size:13px;color:var(--muted);margin:0;min-height:40px;max-width:620px}.under-room .quiet{font-size:11px;padding-top:0}.meter{margin-top:10px;border:1px solid var(--line);border-radius:12px;background:#f0ebdf;padding:12px 16px;display:grid;grid-template-columns:1fr auto;gap:6px 15px;align-items:center}.meter strong{display:block;font-size:13px;font-weight:600}.meter p{font-size:10px;color:var(--muted);margin:0;grid-column:1/-1}.signal{display:flex;gap:3px;align-items:end;height:28px}.signal i{display:block;width:6px;background:#d3cdbf;border-radius:2px}.signal i:nth-child(1){height:7px}.signal i:nth-child(2){height:10px}.signal i:nth-child(3){height:13px}.signal i:nth-child(4){height:16px}.signal i:nth-child(5){height:19px}.signal i:nth-child(6){height:22px}.signal i:nth-child(7){height:25px}.signal i:nth-child(8){height:28px}.signal i.on{background:var(--forest)}
.panel{padding:24px;background:#f1ecdf;border:1px solid var(--line);border-radius:18px;min-height:495px}.progress-top{display:flex;align-items:center;justify-content:space-between}.count{display:flex;align-items:baseline;gap:5px}.count b{font-family:Georgia,serif;font-size:32px;font-weight:400}.count>span{color:#8c8779;font-size:14px}.progress-track{height:4px;background:#dad5c7;border-radius:10px;margin:8px 0 17px;overflow:hidden}.progress-track span{display:block;height:100%;width:0;background:var(--forest);transition:width .4s}.slots{display:flex;gap:8px;margin-bottom:26px}.slot{border:1px dashed #c6c0b0;border-radius:50%;width:33px;height:33px;background:none;font-size:12px;color:#9d9687;display:grid;place-items:center}.slot.discovered{background:var(--forest);color:var(--paper);border:1px solid var(--forest)}.slot.active{outline:2px solid var(--rust);outline-offset:3px}.panel-kicker{font-size:12px;color:var(--rust);margin:0 0 10px}.panel h2{font-size:29px;margin:0 0 15px}.panel p{font-size:14px;color:var(--muted)}.starting-tip{display:flex;gap:14px;align-items:start;border-top:1px solid var(--line);margin-top:26px;padding-top:18px}.starting-tip>span{font-family:Georgia,serif;font-size:24px;color:var(--rust)}.starting-tip p{margin:0;font-size:13px}.legend{border-top:1px solid var(--line);margin-top:25px;padding-top:16px;display:flex;flex-wrap:wrap;gap:7px 13px}.legend span{font-size:10px;color:var(--muted)}.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px}.e{background:var(--e)}.h{background:var(--h)}.rf{background:var(--rf)}.field-badge{display:inline-block;font-size:10px;color:var(--forest);padding:4px 8px;border:1px solid #c9c9b9;border-radius:20px;margin-bottom:14px}.detail-tip{border-left:2px solid var(--rust);padding-left:12px;margin:18px 0}.detail-tip strong{display:block;font-size:12px;color:var(--ink)}.detail-tip p{font-size:12px;margin:5px 0 0}.primary{background:var(--rust);color:white;text-decoration:none;border:0;border-radius:28px;padding:12px 19px;font-size:13px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px}.panel .primary{width:100%}.secondary{background:none;border:1px solid #c9c4b6;border-radius:25px;padding:9px 12px;color:var(--forest);font-size:12px;width:100%;margin-top:9px;min-height:40px}.completion{margin-top:25px;padding:30px;border:1px solid #c8d2c4;background:#eaf0e4;border-radius:18px;display:flex;align-items:center;gap:32px;justify-content:space-between}.completion h2{font-size:32px;margin:10px 0}.completion p:not(.eyebrow){font-size:14px;max-width:660px;color:var(--muted);margin:0}.completion .primary{flex-shrink:0}.note{font-size:11px;color:#7a7469;max-width:960px;line-height:1.7;margin-top:25px}footer{border-top:1px solid var(--line);max-width:1368px;margin:10px auto 0;padding:20px 0;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}footer span:first-child{font-weight:700;color:var(--forest)}
@keyframes breathe{to{opacity:.6;transform:translate(-50%,-50%) scale(1.12)}}@keyframes ripple{from{transform:scale(.55);opacity:.8}to{transform:scale(1.7);opacity:0}}@keyframes hint{to{box-shadow:0 0 0 15px #fff4b800}}
@media(min-width:1450px){.game-content{padding-top:45px}.room{max-height:680px}}
@media(max-width:1050px){.game{grid-template-columns:minmax(0,1fr) 275px;gap:16px}.panel{padding:20px}.panel h2{font-size:25px}.toolbar{flex-wrap:wrap}.toolbar>div{margin-left:auto}.lead{font-size:15px}}
@media(max-width:760px){.header{padding:12px 16px}.brand img{width:49px;height:38px}.brand span{font-size:13px}.brand small{font-size:9px}.prototype{font-size:9px;padding:4px 8px}.game-content{padding:25px 16px 10px}.opening{display:block;margin-bottom:18px}.eyebrow{font-size:9px}h1{font-size:36px;max-width:350px;line-height:1.06}.lead{font-size:14px}.opening .quiet{margin-top:8px}.game{display:flex;flex-direction:column;gap:16px}.room-column,.panel{width:100%}.toolbar{font-size:10px;gap:6px}.tool{font-size:10px;padding:6px 9px}.room{border-radius:13px}.room-caption{font-size:9px;padding:20px 10px 9px}.target{min-width:36px;min-height:36px}.target .check{width:22px;height:22px;font-size:12px}.panel{min-height:0;padding:20px}.progress-top{float:left;flex-direction:column;align-items:start}.count b{font-size:27px}.slots{justify-content:flex-end;margin-bottom:20px}.progress-track{clear:both;margin:15px 0}.panel h2{font-size:29px}.panel p{font-size:14px}.starting-tip{margin-top:16px}.legend{margin-top:18px}.under-room{gap:12px}.under-room p{font-size:11px}.completion{display:block;padding:22px}.completion h2{font-size:29px}.completion .primary{margin-top:20px;width:100%}footer{margin:10px 16px;padding:15px 0;flex-direction:column;gap:3px}.note{font-size:10px}.help{padding:14px;font-size:12px}.meter{padding:10px}.meter strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Version 2: selectable instruments and live scene overlays. */
.instrument-dock{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:15px 18px;margin-bottom:20px;background:#f1ecdf;border:1px solid var(--line);border-radius:16px}.device-options{display:flex;gap:10px;flex:1}.device-option{display:flex;align-items:center;gap:12px;text-align:left;padding:11px 15px;border:1px solid #d4cebf;border-radius:12px;background:#fffaf2;color:var(--forest);min-height:70px}.device-option.active{border:2px solid var(--forest);padding:10px 14px;background:#e8eee3}.device-option strong{font-size:14px;display:block}.device-option small{display:block;font-size:10px;color:var(--muted)}.device-thumb{position:relative;display:block;flex-shrink:0;width:25px;height:44px;border-radius:5px;border:4px solid #efbd27;background:#282a2a;transform:rotate(-8deg);box-shadow:2px 3px 3px #0002}.device-thumb i{position:absolute;left:2px;right:2px;top:15px;height:9px;background:#b9c7a5}.hf-thumb{border-color:#e3dfcf;height:39px;margin-top:5px}.hf-thumb:before{content:'';position:absolute;width:24px;height:31px;left:-3px;top:-26px;background:repeating-linear-gradient(0deg,transparent 0 6px,#a9ae76 7px 9px);border-left:2px solid #477641;border-right:2px solid #477641;clip-path:polygon(45% 0,60% 0,100% 100%,0 100%)}.nfa-modes{display:flex;border:1px solid #c6c0b3;border-radius:30px;overflow:hidden}.nfa-modes button{border:0;background:transparent;padding:10px 15px;font-size:12px;color:var(--forest);min-height:42px}.nfa-modes button[aria-pressed=true]{background:var(--forest);color:white}#sound[aria-pressed=true]{background:#e5eddd;color:#354b40;border-color:#839279}
.room{touch-action:none;cursor:crosshair}.room .target{pointer-events:none}.room .target:focus-visible{pointer-events:auto}.room .target.hint{pointer-events:none}.slots{flex-wrap:wrap;gap:5px}.slot{width:30px;height:30px;font-size:10px}#field-canvas,#reveals{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.wall-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.wall-wires path{fill:none;stroke-linecap:round;stroke-linejoin:round}.wire-shadow{stroke:#201b1577;stroke-width:12}.wire-lit{stroke:#ffe0a0;stroke-width:5;filter:drop-shadow(0 0 8px #ffc979);stroke-dasharray:14 5;animation:wire-flow 2s linear infinite}.hidden-meter{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;border:2px dashed #c7e6ff;border-radius:12px;padding:8px 14px;background:#a7d7ff20;box-shadow:0 0 30px #7abdff66}.meter-cover{width:52px;height:67px;background:#e6e9dfc9;border:2px solid #a9b5b8;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#26363d;font:9px monospace;gap:3px}.meter-cover i{font-size:8px;font-style:normal;background:#9bab99;padding:2px}.meter-cover em{font-size:17px;font-style:normal}.hidden-meter small{color:white;background:#203b53c9;border-radius:4px;padding:2px 6px;margin-top:5px;font-size:8px;white-space:nowrap}
#sensor{position:absolute;z-index:6;pointer-events:none;transform:translate(-50%,-50%);width:24px;height:24px;display:grid;place-items:center}.sensor-cross{border:1px solid #fff;border-radius:50%;box-shadow:0 0 0 5px #fff3;width:23px;height:23px;display:grid;place-items:center;color:#fff;font:20px/1 monospace;text-shadow:0 1px 3px #000}.handheld{position:absolute;top:22px;left:15px;width:84px;height:157px;transform:rotate(-8deg);border-radius:12px 12px 8px 8px;padding:9px 7px;background:linear-gradient(90deg,#c28d0a,#f6cb31 15%,#ffda3f 78%,#ce9b0f);border:1px solid #98730d;box-shadow:5px 9px 12px #0006}.instrument-front{position:relative;height:100%;background:#242829;border-radius:5px;color:#e5e3d3;padding:9px 5px}.device-model{display:block;text-align:center;font-size:11px;line-height:1.1}.instrument-front>small{display:block;font:4px/1.5 'DM Sans',sans-serif;text-align:center;margin:4px 0 12px;letter-spacing:.06em}.lcd{background:linear-gradient(120deg,#a8b99c,#d8dfbb);color:#1e3027;padding:4px 3px 3px;border:2px solid #101d17;border-radius:3px;box-shadow:inset 1px 2px 3px #0004}.lcd strong{font:700 18px/1.2 monospace;display:block;text-align:right;letter-spacing:-1px}.lcd>span{font:7px monospace;display:block;text-align:right}.switches{display:flex;justify-content:space-around;gap:5px;margin:13px 0 9px}.switches i{width:8px;height:13px;border:2px solid #8e9693;background:#c0c5bf;border-radius:2px;box-shadow:1px 1px 2px #000}.sim-label{font:5px/1.5 monospace;display:block;text-align:center;letter-spacing:.06em;color:#aab5a7}.hf-antenna{display:none}.handheld.hf{background:linear-gradient(90deg,#aaa89b,#eee9dc 18%,#dbd7c8 85%,#a5a295);border-color:#9a998e;height:164px;width:81px;padding-top:8px;transform:rotate(7deg)}.hf .device-model{font-size:10px}.hf .instrument-front>small{margin-bottom:18px}.hf .hf-antenna{display:block;position:absolute;left:14px;bottom:calc(100% - 1px);width:56px;height:90px;transform:perspective(140px) rotateX(-9deg);border-bottom:5px solid #326f48;clip-path:polygon(41% 0,59% 0,100% 100%,0 100%);background:linear-gradient(90deg,transparent 44%,#376c43 45% 55%,transparent 56%)}.hf-antenna span{position:absolute;inset:0;border-left:4px solid #498450;border-right:4px solid #498450;background:repeating-linear-gradient(0deg,transparent 0 14px,#afaa71 15px 18px)}.hf-antenna i{display:none}.live-reading{display:grid;grid-template-columns:1fr auto;gap:4px 20px;align-items:center;margin-top:12px;padding:12px 18px;background:#f0ecdf;border:1px solid var(--line);border-radius:12px}.live-reading strong{display:block;color:var(--forest);font:700 25px/1.2 monospace}.live-reading strong small{font:12px 'DM Sans',sans-serif}.scan-status{font-size:11px;color:var(--muted);grid-column:1/-1}.instrument-active .room-caption{font-size:10px}.game .panel{min-height:555px}
@keyframes wire-flow{to{stroke-dashoffset:-38}}
@media(max-width:760px){.instrument-dock{padding:10px;gap:9px;margin-bottom:15px}.device-options{width:100%;flex-basis:100%;gap:7px}.device-option{flex:1;gap:9px;padding:9px 8px;min-height:65px}.device-option.active{padding:8px 7px}.device-option strong{font-size:12px}.device-option small{font-size:8px}.device-thumb{width:22px;height:40px}.hf-thumb{height:35px}.nfa-modes button{font-size:11px;padding:7px 15px;min-height:36px}#sound{margin-left:auto}.handheld{width:62px;height:118px;left:10px;top:19px;padding:6px 5px;border-radius:9px}.instrument-front{padding:5px 3px}.device-model{font-size:8px}.instrument-front>small{font-size:3px;margin:3px 0 7px}.lcd{padding:2px}.lcd strong{font-size:14px}.lcd>span{font-size:6px}.switches{margin:7px 0 5px}.switches i{width:6px;height:10px}.sim-label{font-size:4px}.handheld.hf{height:125px;width:61px}.hf .device-model{font-size:8px}.hf .instrument-front>small{margin-bottom:12px}.hf .hf-antenna{height:62px;width:42px;left:10px}.hf-antenna span{border-width:3px;background:repeating-linear-gradient(0deg,transparent 0 10px,#afaa71 11px 13px)}.sensor-cross{width:18px;height:18px;font-size:15px}.live-reading{padding:10px 12px}.live-reading strong{font-size:22px}.game .panel{min-height:0}.hidden-meter{padding:3px 8px}.meter-cover{width:29px;height:40px;font-size:6px}.meter-cover i{font-size:5px}.meter-cover em{font-size:10px}.hidden-meter small{font-size:6px}.slots{gap:5px}.slot{width:29px;height:29px}.room-caption{font-size:8px!important}.prototype{max-width:120px;text-align:center}}
@media(prefers-reduced-motion:reduce){.wire-lit{animation:none}}
/* Version 3: plain-language tasks and photo-real instrument cutouts. */
.task-nav{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px;margin-bottom:20px}.task-step{display:flex;align-items:center;gap:13px;text-align:left;border:1px solid var(--line);border-radius:14px;padding:15px 18px;background:#f6f0e5;color:var(--forest);min-height:86px;position:relative}.task-step>b{display:grid;place-items:center;flex-shrink:0;border-radius:50%;width:34px;height:34px;background:#e7dfd1;font:24px Georgia,serif}.task-step>span{font-size:15px;font-weight:750;line-height:1.25}.task-step small{display:block;font-size:12px;font-weight:400;margin-top:4px;color:var(--muted)}.task-step.active{background:#e9eee3;border:2px solid #65795d;padding:14px 17px}.task-step.active>b{background:var(--forest);color:white}.task-step.done i:after{content:'✓';display:block;font-size:14px;margin-left:auto}.task-step.done i{margin-left:auto}.task-guide{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;margin:0 0 14px;padding:0 2px}.task-guide h2{font-size:30px;margin:8px 0 10px}.task-guide p:not(.eyebrow){margin:0;color:var(--muted);font-size:14px;max-width:700px}.chosen-instrument{display:flex;gap:13px;align-items:center;min-width:225px}.chosen-instrument>img{width:45px;height:90px;object-fit:contain;filter:drop-shadow(2px 4px 3px #0002)}.chosen-instrument>span{display:flex;flex-direction:column;gap:3px}.chosen-instrument small{font-size:8px;letter-spacing:.04em;color:var(--muted)}.chosen-instrument strong{font-size:14px;color:var(--forest)}.chosen-instrument span span{font-size:11px;color:var(--muted)}.instrument-dock.compact{padding:10px 15px;margin-bottom:16px;justify-content:space-between}.instrument-dock.compact p{font-size:12px;color:var(--muted);margin:0}.next-task{width:100%;margin-top:20px}.total-progress{font-size:11px!important;border-top:1px solid var(--line);padding-top:15px;margin-top:20px}.handheld.nfa,.handheld.hf{width:105px;height:210px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;transform:none;filter:drop-shadow(3px 7px 5px #0005)}.handheld.hf{width:135px;height:270px}.handheld>img{display:block;width:100%;height:100%;object-fit:fill}.photo-lcd{position:absolute;left:31%;top:51.7%;width:36%;height:7%;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;padding:0 2px;color:#1b2d20;line-height:1}.photo-lcd strong{font:700 10px/1 monospace;letter-spacing:-.7px}.photo-lcd span{font:4px/1 monospace}.hf .photo-lcd{left:41.1%;top:72.5%;width:19.4%;height:3.5%;padding:0 1px}.hf .photo-lcd strong{font-size:8px}.hf .photo-lcd span{font-size:3px}.photo-sim{position:absolute;bottom:-9px;left:0;width:100%;font-size:5px;text-align:center;letter-spacing:.03em;background:#fffaf2dd;border-radius:3px;color:var(--forest);padding:2px}.hf .photo-sim{left:20%;width:60%}
@media(max-width:760px){.task-nav{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}.task-step{padding:10px 13px;min-height:60px;gap:12px}.task-step.active{padding:9px 12px}.task-step>b{width:30px;height:30px;font-size:20px}.task-step>span{font-size:14px}.task-step small{display:inline;font-size:12px;margin-left:5px}.task-guide{display:flex;flex-direction:column;align-items:stretch;gap:14px}.task-guide h2{font-size:27px}.task-guide p:not(.eyebrow){font-size:13px}.chosen-instrument{border-top:1px solid var(--line);padding-top:8px;min-width:0;gap:10px}.chosen-instrument>img{width:30px;height:60px}.chosen-instrument small{font-size:7px}.chosen-instrument strong{font-size:12px}.chosen-instrument span span{font-size:10px}.instrument-dock.compact{flex-wrap:nowrap;gap:10px;padding:10px 12px}.instrument-dock.compact p{font-size:10px;max-width:230px}.handheld.nfa{width:78px;height:156px;transform:none;padding:0;border:0;border-radius:0}.handheld.hf{width:100px;height:200px;transform:none;padding:0;border:0;border-radius:0}.photo-lcd strong{font-size:8px}.photo-lcd span{font-size:3px}.hf .photo-lcd strong{font-size:6px}.hf .photo-lcd span{font-size:2.5px}.photo-sim{font-size:4px;bottom:-8px}.prototype{max-width:125px}}
.lesson-dialog{box-sizing:border-box;width:min(520px,calc(100% - 28px));max-height:86dvh;overflow:auto;border:1px solid #d7c9b6;border-radius:22px;padding:30px;background:#fffaf2;color:var(--ink);box-shadow:0 20px 80px #0004;font:14px/1.65 'DM Sans',system-ui,sans-serif}.lesson-dialog::backdrop{background:rgba(30,35,26,.30)}.lesson-dialog h2{font-size:34px;margin:12px 28px 15px 0}.lesson-dialog h3{font:750 13px/1.4 'DM Sans',system-ui,sans-serif;margin:19px 0 6px;color:var(--forest)}.lesson-dialog p{margin:0;color:var(--muted)}.lesson-dialog>.eyebrow{color:var(--rust);font-size:9px;padding-right:20px}.lesson-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--forest);font-size:25px;line-height:1}.lesson-visual-key{border-radius:10px;padding:12px 15px;background:#f4e6ce;color:#6d4c27;font-size:12px;margin:0 0 18px;border-left:3px solid #dea758}.lesson-visual-key[data-mode=H]{background:#e4eef6;color:#345a75;border-color:#78a5e0}.lesson-visual-key[data-mode=RF]{background:#ede7f5;color:#5a467d;border-color:#b292de}.lesson-dialog .lesson-note{font-size:10px;margin:20px 0;color:#82786a;border-top:1px solid var(--line);padding-top:12px}.lesson-dialog>.primary{width:100%;font-size:14px;margin-top:0}.lesson-dialog .field-badge{font-size:10px}
@media(max-width:760px){.lesson-dialog{padding:24px 20px;max-height:82dvh;border-radius:18px;font-size:13px}.lesson-dialog h2{font-size:29px}.lesson-dialog h3{font-size:12px;margin-top:15px}.lesson-dialog .lesson-note{font-size:9px}}
/* Version 5: image-only pinch zoom, independent of the measuring coordinates. */
.scene{position:absolute;inset:0;width:100%;height:100%;transform-origin:0 0;will-change:transform;isolation:isolate}.zoom-controls{display:flex;align-items:center;gap:10px;margin:0 0 10px;flex-wrap:wrap}.zoom-controls>div{display:flex;border:1px solid var(--line);border-radius:25px;overflow:hidden;background:#fffdf8}.zoom-controls button{border:1px solid var(--line);background:#fffdf8;color:var(--forest);border-radius:25px;padding:8px 13px;min-height:40px;font-size:12px;font-weight:600}.zoom-controls>div button{border:0;border-radius:0;min-width:42px}.zoom-controls>div button:first-child,.zoom-controls>div button:last-child{font-size:21px;line-height:1;padding:6px 12px}.zoom-controls button:disabled{opacity:.4;cursor:default}.zoom-controls #pan-toggle[aria-pressed=true]{background:var(--forest);color:#fff;border-color:var(--forest)}.zoom-controls>span{font-size:10px;color:var(--muted)}.room:has(+.live-reading){overscroll-behavior:contain}
@media(max-width:760px){.zoom-controls{gap:7px;margin-bottom:10px}.zoom-controls button{font-size:11px;padding:7px 11px;min-height:38px}.zoom-controls>span{width:100%;font-size:9px}.zoom-controls>div button:first-child,.zoom-controls>div button:last-child{font-size:22px}.zoom-controls>div button{min-width:40px}}
/* Dedicated finger handle stays beside the device and outside the zoom layer. */
.drag-handle{position:absolute;z-index:10;transform:translate(-50%,-50%);width:54px;height:54px;border:2px solid #fffaf2;border-radius:50%;background:#354b40;color:#fffaf2;box-shadow:0 3px 12px #0005;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;touch-action:none;user-select:none;cursor:grab;padding:5px}.drag-handle span{font-size:7px;letter-spacing:.08em;font-weight:800;line-height:1}.gripping .drag-handle{background:#984d31;box-shadow:0 0 0 5px #fffaf244,0 4px 16px #0005;cursor:grabbing}.drag-handle:focus-visible{outline:3px solid #ffe6a1;outline-offset:3px}.gripping .handheld{filter:drop-shadow(0 0 3px #fffaf2) drop-shadow(3px 7px 5px #0005)}
@media(max-width:760px){.drag-handle{width:56px;height:56px}.drag-handle svg{width:25px;height:25px}.drag-handle span{font-size:7px}}

/* Simplified completion sheet follows the owner's four-category form. */
.report-dialog{box-sizing:border-box;width:min(780px,calc(100% - 24px));max-height:88dvh;overflow:auto;border:1px solid #c9d5d1;border-radius:20px;padding:30px;background:#fff;color:#18312c;font:14px/1.55 'DM Sans',system-ui,sans-serif;box-shadow:0 20px 80px #0004;overscroll-behavior:contain}.report-dialog::backdrop{background:#1e231a80}.report-brand{display:flex;align-items:center;gap:12px;margin-bottom:20px}.report-brand img{object-fit:contain}.report-brand strong{display:block;font-size:18px}.report-brand small{display:block;color:#65736f}.report-dialog>.eyebrow{font-size:10px;color:#42675b;padding-right:15px}.report-dialog h2{font:36px/1.1 Georgia,serif;margin:10px 0}.report-dialog h2:focus{outline:none}.report-location{display:flex;flex-direction:column;background:#eef5f1;border-radius:9px;padding:12px;margin:18px 0 10px}.report-simulation{font-size:12px;color:#52635f}.report-row{margin:20px 0;padding-top:17px;border-top:1px solid #d8e1de}.report-row header{display:flex;justify-content:space-between;gap:12px;align-items:center}.report-row h3{font-size:20px;margin:3px 0}.report-row .eyebrow{font-size:9px;margin:0;letter-spacing:.04em}.report-value{font-size:25px;white-space:nowrap}.report-value small{font-size:12px}.report-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}.report-category{display:flex;gap:7px;padding:10px 7px;border-radius:9px;border:2px solid transparent;font-size:11px;line-height:1.35;color:#284038}.report-category small{display:block;margin-top:5px;font-size:10px}.report-category.c0{background:#d9ead3}.report-category.c1{background:#fff2cc}.report-category.c2{background:#f4cccc}.report-category.c3{background:#ef6f6c;color:#3d0a0a}.report-category.selected{border-color:#18312c;font-weight:800}.report-check{font-size:20px;line-height:1}.report-sources{font-size:12px;color:#52635f}.report-notes{padding:15px;background:#f3f6f4;border-radius:10px;margin-top:20px}.report-notes h3{margin:0;font-size:15px}.report-notes p{font-size:13px}.report-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.completion{flex-wrap:wrap}.report-dialog .lesson-close{min-height:36px;cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.report-dialog{padding:24px 17px;max-height:86dvh}.report-dialog h2{font-size:30px}.report-brand{margin-bottom:15px}.report-row h3{font-size:17px}.report-value{font-size:23px}.report-categories{grid-template-columns:1fr 1fr;gap:7px}.report-category{padding:10px;font-size:12px;min-height:65px}.report-category small{font-size:11px}.report-actions>*{width:100%;text-align:center}.report-dialog .eyebrow{overflow-wrap:anywhere}}

/* Guided sequence: the player moves only the instrument. */
.flow-overlay{position:absolute;inset:0;z-index:20;background:#fffaf2ed;backdrop-filter:blur(5px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center;gap:10px;touch-action:pan-y}.flow-overlay h2{font:32px/1.1 Georgia,serif;margin:0;color:#354b40}.flow-overlay p{max-width:430px;margin:0;font-size:14px;line-height:1.5;color:#52635f}.flow-overlay .primary{margin-top:6px;min-height:46px;min-width:140px}.flow-overlay #flow-mark{font:700 68px/1 'DM Sans',system-ui,sans-serif;color:#354b40}.flow-overlay[data-phase=success] #flow-mark{width:85px;height:85px;border-radius:50%;display:grid;place-items:center;background:#e1efdf;color:#27853a;font-size:62px}.flow-overlay[data-phase=countdown] #flow-mark{font-size:72px}.flow-blocked .drag-handle,.flow-blocked #sensor{visibility:hidden}.wall-source-label{position:absolute;transform:translate(-50%,-50%);color:white;background:#203b53d9;border:1px dashed #c7e6ff;border-radius:8px;padding:5px 8px;font-size:10px;white-space:nowrap}.task-step{cursor:default}.handheld .instrument-front,.handheld .hf-antenna,.handheld .device-model,.handheld .switches{display:none!important}
@media(max-width:760px){.task-nav{flex-direction:row;gap:5px}.task-step,.task-step.active{min-width:0;flex:1;padding:8px 6px;min-height:62px;gap:5px;align-items:center}.task-step.active{padding:7px 5px}.task-step>b{width:22px;height:22px;font-size:15px}.task-step>span{font-size:9px}.task-step small{display:block;margin-left:0;font-size:8px}.task-step.done i{display:none}.flow-overlay{gap:6px;padding:12px}.flow-overlay h2{font-size:23px}.flow-overlay p{font-size:11px;max-width:300px}.flow-overlay #flow-mark{font-size:44px}.flow-overlay[data-phase=success] #flow-mark{width:55px;height:55px;font-size:40px}.flow-overlay[data-phase=countdown] #flow-mark{font-size:48px}.flow-overlay .primary{padding:8px 20px;min-height:42px;font-size:14px}.wall-source-label{font-size:7px;padding:3px 5px}}

.stage-success{display:flex;gap:15px;align-items:flex-start;background:#eef5e8;border:1px solid #b9cdb2;border-radius:15px;padding:18px;margin:13px 0}.stage-check{width:49px;height:49px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#d6eacb;color:#27853a;font-size:36px;font-weight:800}.stage-success strong{font-size:17px;line-height:1.3;color:#284e32}.stage-success p{font-size:12px;color:#52635f;margin:7px 0 12px}.stage-success .primary{font-size:12px;min-height:44px;white-space:normal}.target.wall-guide{border:2px dashed #fff0bd;background:#fff0bd12;box-shadow:0 0 18px #fff0bd55}.handheld>img[hidden],.chosen-instrument>img[hidden]{display:none!important}@media(max-width:760px){.stage-success{padding:13px;gap:10px}.stage-check{width:38px;height:38px;font-size:28px}.stage-success strong{font-size:14px}.stage-success p{font-size:11px}.stage-success .primary{font-size:11px}}

/* Manual mode selection stays directly above the room. No timed transitions. */
.room-column>.task-nav{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;margin:8px 0 10px}.task-nav .task-step{cursor:pointer;position:relative;min-height:72px;padding:12px;gap:8px}.task-nav .task-step.active{padding:11px;border:2px solid #526f54}.task-nav .task-step:focus-visible{outline:3px solid #b78c37;outline-offset:3px}.task-step .stage-tick{display:none;font-style:normal}.task-step.done .stage-tick{display:grid!important;place-items:center;position:absolute;right:7px;top:5px;width:23px;height:23px;background:#27853a;color:#fff;border-radius:50%;font-size:16px;font-weight:900;margin:0}.task-step.done .stage-tick:after{content:none}.task-step.done{background:#edf5e8}.task-step>span{padding-right:12px}.flow-overlay{pointer-events:none}.task-step[aria-pressed=false]:not(.done)>b{background:#e7dfd1;color:#354b40}
@media(max-width:760px){.room-column>.task-nav{grid-template-columns:1fr 1fr 1.3fr;gap:5px;margin:7px 0 9px}.task-nav .task-step{min-height:83px;display:block;padding:9px 7px;text-align:left}.task-nav .task-step.active{padding:8px 6px}.task-nav .task-step>b{width:18px;height:18px;font-size:12px;margin-bottom:6px}.task-nav .task-step>span{display:block;font-size:11px;line-height:1.2;padding:0;overflow-wrap:anywhere}.task-nav .task-step small{font-size:9px;margin-top:4px}.task-step.done .stage-tick{width:20px;height:20px;font-size:14px;right:5px;top:5px}.flow-overlay h2{font-size:22px}}

/* Visible room at entry; no duplicate instrument preview above the game. */
.task-guide{grid-template-columns:1fr}.wall-terminal>rect:first-child{fill:#f8f6eee6;stroke:#6f654f;stroke-width:1.4}.wall-terminal .wall-switch{fill:#e7e1d5;stroke:#7c725e;stroke-width:1}.wall-terminal .wall-socket{fill:#e7e1d5;stroke:#7c725e;stroke-width:1}.wall-terminal .socket-pin{fill:#514b40;stroke:none}
.game{grid-template-columns:minmax(0,1fr)}.compact-progress{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.compact-progress strong{color:var(--forest);white-space:nowrap}.compact-progress b{font-size:20px}.task-guide{max-width:900px}.task-guide p:not(.eyebrow){line-height:1.65}.room-caption{font-size:11px}

:scope{display:block;isolation:isolate}
.game-content{max-width:1180px}
.game-back{display:inline-block;margin-bottom:18px;color:var(--forest);font-size:13px;text-underline-offset:4px}
.task-nav{position:static;inset:auto;margin-left:0;width:auto;background:none;border:0;border-radius:0;box-shadow:none}
.signal{width:auto;padding:0;border-radius:0;background:none}
.task-guide p{margin:10px 0}
.game-simulation{margin:18px 0 0;font-size:12px;color:var(--muted)}
.completion{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,350px);gap:24px}
.completion-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0}
.completion-actions>.primary,.completion-actions>.secondary{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0;line-height:1.45;white-space:normal;text-align:center;text-decoration:none}
@media(max-width:900px){.completion{grid-template-columns:minmax(0,1fr);gap:20px}}
.room-column{container-type:inline-size}
/* Keep the room at a comfortable height on landscape iPads, preserving 3:2. */
@media(orientation:landscape) and (min-width:768px) and (max-width:1440px) and (hover:none) and (pointer:coarse){
 .game{width:min(100%,81svh,820px);margin-inline:auto}
 .room{max-height:none}
}
@container(max-width:760px){
 .handheld.nfa{width:78px;height:156px}.handheld.hf{width:100px;height:200px}
 .photo-lcd strong{font-size:8px}.photo-lcd span{font-size:3px}
 .hf .photo-lcd strong{font-size:6px}.hf .photo-lcd span{font-size:2.5px}
 .photo-sim{font-size:4px;bottom:-8px}
}
.room-brand{position:absolute;right:12px;bottom:42px;width:clamp(70px,18%,180px);padding:8px;border:0;border-radius:9px;background:rgba(255,250,242,.38);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);box-shadow:none;pointer-events:none;user-select:none;z-index:2}
.room-brand img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
@media(max-width:760px){.game-content{padding:24px 14px 12px}.game-back{margin-bottom:14px}.game-simulation{font-size:11px}}
}
