/* A warm, illustrated CD-ROM-style play space. Game state and physics stay in their engines. */
body.adventure-playing{color:#344e4b;font-family:'Trebuchet MS','Segoe UI',sans-serif;background:linear-gradient(#fff0ceec,#d4eadbe8),url('./art/room-v1.png') center/cover fixed;--mint:#398c80;--yellow:#b17635;--muted:#586d64;--panel:#fff3d4;--line:#b69c71}
.adventure-playing .shell{max-width:1920px}.adventure-playing .topbar{background:#fff2d9ed;border:2px solid #c09c63;border-radius:20px;padding:10px 16px;box-shadow:0 4px 0 #a57b4233;margin-bottom:14px}
.adventure-playing .brand strong{color:#386c69;font-size:27px;text-shadow:1px 2px #fff8df}.adventure-playing .brand strong span{color:#b57b39}.adventure-playing .symbol{background:#e7b85a;color:#49776c;box-shadow:inset 0 0 0 3px #f9d993;border-radius:13px}.adventure-playing .brand .dedication{color:#795333;font-size:14px}.adventure-playing .brand small,.adventure-playing .status{color:#596d64}.adventure-playing .top-actions{gap:8px}.adventure-playing .top-actions .btn{font-size:16px;padding:10px 13px}
.adventure-playing .btn{color:#3b5750;background:linear-gradient(#fff7df,#eddbb3);border:2px solid #bda072;box-shadow:0 3px 0 #95734440;border-radius:12px;font-weight:800;transition:filter .12s,box-shadow .12s}.adventure-playing .btn.subtle{background:linear-gradient(#fff8e5,#efdfba)}.adventure-playing .btn.primary{background:linear-gradient(#76b9a3,#529281);border-color:#3e7a6b;color:#fffef2;text-shadow:0 1px #315e54}.adventure-playing .btn:hover{filter:brightness(1.04);box-shadow:0 4px 0 #95734455}.adventure-playing .btn:active{box-shadow:0 1px 0 #95734455}.adventure-playing .btn:disabled{filter:grayscale(.5);opacity:.5}.adventure-playing .btn:focus-visible{outline:3px dashed #386f80;outline-offset:4px}.adventure-playing .room-entry{background:#efd18e;border-color:#a38148;color:#4c633e}
.adventure-playing .main-panel,.adventure-playing .robot-panel{background:linear-gradient(135deg,#fff8e8,#f6e9c8);border:3px solid #af8956;box-shadow:0 7px 0 #8b653528,0 18px 45px #68533420;border-radius:23px}.adventure-playing .main-panel{position:relative}.adventure-playing .robot-panel{padding:16px}
.adventure-playing .question-heading{gap:10px}.adventure-playing .question-counter{font-size:22px;color:#5c6750}.adventure-playing .question-navigation .btn{font-size:15px;min-height:43px;padding:7px 11px}.adventure-playing .question-progress{height:8px;accent-color:#62937b;border-radius:8px;margin:16px 0 18px}.journey-badge{display:inline-block;font-size:14px;font-weight:800;color:var(--region-color);border:1px dashed currentColor;border-radius:30px;padding:6px 10px;white-space:nowrap}
.adventure-playing #stageTitle{font-family:Georgia,'Times New Roman',serif;color:#695032;font-weight:800;font-size:32px}.adventure-playing .question-description{color:#586c60;font-size:20px}.adventure-playing .story{color:#3f6258;background:#e3ead2;border:1px solid #bccaa5;border-left:6px solid #6f9e7e;box-shadow:inset 0 1px #fbffed;font-size:25px}.adventure-playing .feedback{color:#52644e;background:#e8ead6;border:1px solid #cbd0b2}.adventure-playing .feedback.good{color:#305d48;background:#d3e6ca;border-color:#92b28a}.adventure-playing .skip-question{color:#775c3b;background:#f4dfb7;border-color:#b8935c}
.room-peek{position:relative;display:block;width:100%;padding:0;margin:0 0 13px;overflow:hidden;border:3px solid #af8550;border-radius:16px;cursor:pointer;box-shadow:0 4px 0 #9e774133;background:#eec571;touch-action:manipulation}.room-peek img{display:block;width:100%;height:153px;object-fit:cover;object-position:center 46%}.room-peek>span{display:block;padding:9px 6px;color:#fff9e9;background:#4c8378;font:800 18px 'Trebuchet MS',sans-serif}.room-peek:hover img{filter:brightness(1.06)}.room-peek:focus-visible{outline:4px dashed #386f80;outline-offset:4px}
.adventure-playing .illustrated-orbit{border:2px solid #a9b893;border-radius:16px}.adventure-playing .speech{background:#fff7df;border:2px solid #d0ba90;border-radius:17px;min-height:0;padding:14px;margin-top:12px}.adventure-playing .bubble-kicker{color:#6d8e71}.adventure-playing .speech p{color:#4f624f;font-size:18px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.adventure-playing .repeat-question{margin-top:12px;font-size:17px;min-height:48px}
.adventure-playing .tile,.adventure-playing .answer,.adventure-playing .switch,.adventure-playing .number-key{color:#3a5551;background:#fff3d6;border-color:#b7a27b;box-shadow:inset 0 1px #fffdf0}.adventure-playing .tile:hover,.adventure-playing .answer:hover{background:#f8ebc6;filter:none}.adventure-playing .tile.selected,.adventure-playing .answer.selected{background:#e5d79e;border-color:#ad8646;color:#455c48}.adventure-playing .zone{background:#fff9e8;border-color:#b2b79a;color:#5e7158}.adventure-playing .zone-label{color:#58745d}.adventure-playing .zone-empty,.adventure-playing .bin-empty{color:#8a8f75}.adventure-playing .tile.placed{background:#e4ead1;border-color:#b8c29e}.adventure-playing .tray-title,.adventure-playing .pilot-note{color:#65745f}
.adventure-playing .memory-card{background:repeating-linear-gradient(45deg,#d9e4ba,#d9e4ba 12px,#d0deb1 12px,#d0deb1 24px);border-color:#99af85;color:#5a765d;box-shadow:0 3px 0 #8b9b6c33;border-radius:16px}.adventure-playing .memory-card.face-up{background:#fff7df;color:#4c6458;border-color:#b8bd95}.adventure-playing .memory-card.matched{background:#e5eed1;border-color:#7fa57a}.adventure-playing .card-back{color:#84a17a}.adventure-playing .card-name{color:#3b5f55}.adventure-playing .pair-found{color:#577c54}
.adventure-playing .balance-pan{background:#edf0da;color:#46645b;border-color:#91aaa2}.adventure-playing .empty-pan{color:#819285}.adventure-playing .balance-post{background:#71988f}.adventure-playing .balance-post:after{background:#71988f}.adventure-playing .balance-beam{background:#a8c5ab}.adventure-playing .balance-equation{color:#78613f}.adventure-playing .weight-piece{background:#faf1d8;color:#486356;border-color:#b5ac8b;box-shadow:0 3px #ac956133}.adventure-playing .weight-piece.selected{background:#e4d7aa;border-color:#b68b44}.adventure-playing .weight-sum{color:#53684f}.adventure-playing .toy-weight-note{color:#8a8d74}
.adventure-playing .resource-meter{color:#4c6652;background:#eaf0d8;border-color:#acba90}.adventure-playing .resource-meter.over-budget{background:#f2d9bf;border-color:#be946d;color:#806249}.adventure-playing .resource-world{box-shadow:0 6px 0 #7e986b33;background:#bcd8b5;border-color:#8baf8b}.adventure-playing .resource-card.selected{background:#dfebca;border-color:#8ca66a}.adventure-playing .resource-price{color:#75846a}.adventure-playing .card-check{background:#d7bc6e;color:#46614e}
.adventure-playing .package-card{background:#fff3d5;color:#53634d;border-color:#b3a27d}.adventure-playing .package-card.selected{background:#e4e8c9;border-color:#9ca66b}.adventure-playing .package-attribute{color:#5e735d}.adventure-playing .deduction-clue{background:#e6ead1;color:#4c6756;border:1px solid #b6c2a1}.adventure-playing .deduction-clue>span{border-color:#9aa986}.adventure-playing .clue{background:#f3ecd2;border-color:#b9b794;color:#536951}.adventure-playing .portrait-answers .selected{background:#e6e5bc;border-color:#a9a566}.adventure-playing .candidate-attribute{color:#6b7e67}
.adventure-playing .program-board{position:relative;background:linear-gradient(#f5e9bfdd,#e5d4a4ee),url('./art/journey-v1.png') center/cover;padding:9px;border:3px solid #ad8b52;border-radius:13px;box-shadow:0 4px #92724233}.adventure-playing .program-cell{background:#f8efce;border-color:#b7ad83;color:#776c50}.adventure-playing .program-cell.wall{background:repeating-linear-gradient(0deg,#d6c398,#d6c398 10px,#c9b58a 10px,#c9b58a 12px);color:#958460;border-color:#b6a075}.adventure-playing .program-cell.travelled{background:#d2e2bb}.adventure-playing .program-cell.robot-here{border-color:#b29345}.adventure-playing .start-mark,.adventure-playing .trail-mark{color:#77967b}.adventure-playing .wall-mark{color:#a18f69}.adventure-playing .direction-key{color:#456c65;background:#e9e5c8;border-color:#b7ae83;box-shadow:0 3px #a7996633}.adventure-playing .program-sequence{background:#fbf3d8;border-color:#b7ae8b}.adventure-playing .command-chip{background:#e7e2bd;color:#527166;border-color:#b2ac85}.adventure-playing .command-chip.executed{background:#cbdcaa}.adventure-playing .sequence-heading{color:#7d633b}.adventure-playing .goal-mark{color:#997f41}
.adventure-playing .magnet-experiment{background:#f0e1bd;border-color:#baa071;box-shadow:0 3px #aa8c5433}.adventure-playing .experiment-instruction{color:#5f674b}.adventure-playing .experiment-actions .btn{font-size:14px}.adventure-playing .code-slots{color:#8c633a;background:#fff1c6;border-color:#b7a177}.adventure-playing .vault-treasure{background:#40594e}.adventure-playing .switch.active{background:#dce8c6;border-color:#8fa875;color:#49634f}.adventure-playing .switch-label{color:#6f7f60}.adventure-playing .switch-lever{background:#c8cfb4;border-color:#9aa780}.adventure-playing .switch-lever:after{background:#f9edc6}.adventure-playing .active .switch-lever{background:#80a883}
.adventure-playing .pattern-track{background:#efe3bf;border-color:#b9a378}.adventure-playing .pattern-carriage{background:#b7d0bd;border-color:#7f9f89;color:#38594c}.adventure-playing .pattern-carriage.missing{background:#f4e2a9;border-color:#bda160}.adventure-playing .pattern-carriage:before,.adventure-playing .pattern-carriage:after{background:#799b8c;border-color:#f6ebc9}.adventure-playing .pattern-connector{color:#a89366}.adventure-playing .pattern-options .answer{color:#5f7357}.adventure-playing .round-finish h2{color:#7c603c}.adventure-playing .round-finish p{color:#6f7e62}
.adventure-playing .voice-panel{background:#fff3d7;color:#465d52;border:3px solid #b79762}.adventure-playing .voice-panel-intro,.adventure-playing .voice-options small,.adventure-playing .voice-license-note,.adventure-playing .voice-retention-note{color:#6e7a63}.adventure-playing .voice-options label{border-color:#c1b18a}.adventure-playing .voice-options label:has(input:checked){background:#e1e9cd;border-color:#98ad83}.adventure-playing .voice-panel-message{color:#6e674b}.adventure-playing .voice-remove{background:#f0dfc7;color:#946049;border-color:#c49a7b}.adventure-playing .voice-license-link{color:#527a70}.adventure-playing .voice-setup{background:#dde6cb;color:#45624e;border-color:#9eaf8b}.adventure-playing .voice-setup p{color:#617459}
.adventure-dialog{width:min(1250px,96vw);max-height:94vh;padding:16px 20px 18px;border:5px solid #a78047;border-radius:21px;background:#fff0ca;color:#425d4e;box-shadow:0 20px 80px #3e3e2f88;overflow:auto;font-family:'Trebuchet MS','Segoe UI',sans-serif}.adventure-dialog::backdrop{background:#233e39a6;backdrop-filter:blur(3px)}.adventure-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.adventure-dialog h2{font-family:Georgia,serif;font-size:28px;color:#7c5932;margin:0}.adventure-dialog .btn{color:#48604c;background:linear-gradient(#fff8e0,#eedaaa);border:2px solid #b69861;box-shadow:0 3px #9a794433;border-radius:12px;font:800 16px 'Trebuchet MS',sans-serif;padding:10px 15px;min-height:46px;cursor:pointer;touch-action:manipulation}.adventure-dialog .btn.primary{background:linear-gradient(#77b49e,#518f80);color:#fff9e9;border-color:#3d7a6a}.adventure-dialog .adventure-close{min-width:48px;padding:8px}.adventure-dialog .btn:focus-visible,.room-object:focus-visible,.room-window:focus-visible,.room-train:focus-visible{outline:3px dashed #457b82;outline-offset:4px}
.room-canvas,.journey-canvas{position:relative;width:100%;aspect-ratio:16/9;border:3px solid #b18b52;border-radius:13px;overflow:hidden;background:#9dbdb2}.room-background,.journey-background{display:block;width:100%;height:100%;object-fit:cover}.room-track,.journey-route{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.room-object,.room-train{position:absolute;display:block;transform:translate(-50%,-50%);padding:0;background:none;border:0;cursor:pointer;touch-action:manipulation;filter:drop-shadow(0 4px 2px #674c3266)}.room-object:hover,.room-train:hover{filter:drop-shadow(0 0 8px #fff8b2)}.room-prop-art{display:block;width:100%;height:auto;aspect-ratio:1;pointer-events:none}.room-object-label{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:13px;font-weight:800;color:#fef7de;background:#577b67e8;padding:4px 8px;border:1px solid #eee0b5;border-radius:7px;box-shadow:0 2px #826e3b55}
.room-monitor-preview{position:absolute;top:18%;left:15%;width:64%;height:49%;overflow:hidden;border-radius:9px;background:#153748;pointer-events:none}.room-monitor-preview .story-art{border-radius:6px;width:100%;height:100%;object-fit:cover}.room-window{position:absolute;left:9%;top:7%;width:27%;height:34%;background:transparent;border:0;border-radius:14px;cursor:pointer;touch-action:manipulation}.room-window .room-object-label{top:auto;bottom:0}.room-train{width:10%;z-index:2}.room-object{z-index:3}.room-message{background:#fff8e4;border:1px solid #d3be8e;border-radius:12px;padding:11px 15px;line-height:1.45;font-size:19px;margin:12px 0}.adventure-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.room-shortcuts{display:none}
.journey-summary{font-size:20px;line-height:1.4;margin:12px 0}.journey-regions{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}.journey-region{font-size:14px;font-weight:800;color:var(--region-color);background:#fff6da;border:1px solid currentColor;border-radius:30px;padding:5px 10px}.journey-traveler{filter:drop-shadow(0 3px 2px #684e3d88)}.journey-route .current circle{stroke:#2e766a;stroke-width:4}.journey-route .visited circle{stroke:#9e7541}
#postcardDialog{max-width:650px;background:#f7e4b3}.personal-postcard{font-family:Georgia,serif;line-height:1.75;font-size:23px;padding:24px;background:#fff4d9;border:2px dashed #c6a771;margin-bottom:18px;border-radius:8px}.postcard-to{color:#8d6440;font-weight:800}.postcard-signature{font-style:italic;text-align:right;color:#477565}.discovery-spark,.room-leaf{position:fixed;left:0;top:0;width:27px;height:27px;pointer-events:none;z-index:2147483640;will-change:transform;filter:drop-shadow(0 3px 2px #8e713844)}.discovery-spark svg,.room-leaf svg{width:100%;height:100%}
@media(max-width:1400px){.journey-badge{display:none}.adventure-playing .top-actions .status{font-size:11px}.adventure-playing .top-actions .btn{font-size:15px;padding:9px 10px}.room-peek img{height:130px}}
@media(max-width:1100px){.adventure-playing .robot-panel{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:12px}.adventure-playing .room-peek{grid-row:1/3;margin:0}.room-peek img{height:110px}.room-peek>span{font-size:15px;padding:6px}.adventure-playing .illustrated-orbit{display:none}.adventure-playing .repeat-question{grid-column:2;margin:0}.adventure-playing .speech{margin:0}.adventure-playing .speech p{font-size:18px;-webkit-line-clamp:3}.adventure-dialog{padding:12px}.adventure-dialog h2{font-size:25px}}
@media(max-width:700px){.adventure-playing .topbar{padding:9px 10px}.adventure-playing .top-actions{justify-content:center;width:100%}.adventure-playing .top-actions .status{width:100%;text-align:center}.adventure-playing .robot-panel{grid-template-columns:130px minmax(0,1fr);gap:9px;padding:10px}.room-peek img{height:85px}.room-peek>span{font-size:12px}.adventure-playing .speech{padding:10px}.adventure-playing .speech p{font-size:16px}.adventure-playing .repeat-question{font-size:15px;padding:7px;min-height:43px}.adventure-playing .question-counter{font-size:19px}.adventure-playing .main-panel{border-width:2px}.adventure-playing #stageTitle{font-size:28px}.adventure-playing .story{font-size:21px}.adventure-dialog{width:97vw;max-height:95vh;border-width:3px;padding:10px}.adventure-dialog-heading{gap:8px}.adventure-dialog h2{font-size:21px}.adventure-dialog .btn{font-size:14px;min-height:44px;padding:8px 10px}.room-object-label{display:none}.room-message{font-size:17px;padding:9px 11px}.room-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.journey-summary{font-size:17px}.journey-region{font-size:11px;padding:4px 7px}.journey-regions{gap:5px}.personal-postcard{font-size:20px;padding:15px}}
.room-window .room-object-label{top:6px;bottom:auto}
@media(prefers-reduced-motion:reduce){.room-object:hover,.room-train:hover{filter:none}.discovery-spark,.room-leaf{display:none}}

/* Güneş's adventure: preserve the painted room, add owned overlays and local toy Foley. */
.adventure-dialog button,.room-peek,.adventure-playing .btn{-webkit-tap-highlight-color:transparent}
.room-canvas{width:min(100%,calc(167vh - 525px));min-width:250px;margin-inline:auto}
.journey-canvas{width:min(100%,calc(167vh - 430px));margin-inline:auto}
.room-chest,.room-chest>.chest-art,.treasure-reward>.chest-art{overflow:visible}
.room-monitor-preview{left:19%;top:24%;width:63%;height:39%;border-radius:4px;background:#a6d7ca}
.room-monitor-preview .story-art{border-radius:2px}
.room-hotspot{position:absolute;display:block;border:0;background:transparent;cursor:pointer;padding:0;border-radius:10px;touch-action:manipulation;z-index:3}
.room-hotspot:hover,.room-hotspot:focus-visible{box-shadow:inset 0 0 0 3px #fbe9a88c;outline:none}
.room-hotspot .room-object-label{top:auto;bottom:-6px}
.room-window .room-object-label{top:6px;bottom:auto}
.room-hotspot:focus-visible{outline:3px dashed #f9efb9;outline-offset:3px}
.room-hotspot:active{background:#ffe2a32b}
.room-object:disabled{cursor:default;opacity:1;filter:grayscale(.35) drop-shadow(0 3px 2px #674c3266)}
.room-season .room-object-label{top:auto;bottom:105%;font-size:11px}
.room-object.discovered{filter:drop-shadow(0 0 10px #fff8b2) drop-shadow(0 0 4px #fff1aa)}
.room-lamp{z-index:7}.room-lamp.lit .room-prop-art{filter:drop-shadow(0 0 8px #ffdc79)}
.room-mouse .room-object-label,.room-mug .room-object-label,.room-chocolate .room-object-label,.room-lamp .room-object-label{visibility:hidden}
.room-mouse:hover .room-object-label,.room-mug:hover .room-object-label,.room-chocolate:hover .room-object-label,.room-lamp:hover .room-object-label,.room-object:focus-visible .room-object-label{visibility:visible}
.room-outside{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;--hills:#8cbd8d;--field:#b3ca83;--leaves:#9fc582}
.season-hills{fill:var(--hills)}.season-field{fill:var(--field)}.season-leaves{fill:var(--leaves)}
.room-canvas[data-season="1"] .room-outside{--hills:#79af75;--field:#b9cd83;--leaves:#79a96c}
.room-canvas[data-season="2"] .room-outside{--hills:#bba16d;--field:#d8bc86;--leaves:#ca954e}
.room-canvas[data-season="3"] .room-outside{--hills:#dce4da;--field:#f0efdc;--leaves:#dde7dd}
.winter-snow,.autumn-leaves,.spring-blossoms{display:none}
.room-canvas[data-season="0"] .spring-blossoms,.room-canvas[data-season="2"] .autumn-leaves,.room-canvas[data-season="3"] .winter-snow{display:block}
.room-night-shade{position:absolute;inset:0;background:#111a35;pointer-events:none;z-index:5;opacity:0}
.room-lamp-beam{position:absolute;inset:0;pointer-events:none;z-index:6;opacity:0;background:radial-gradient(ellipse at 60% 51%,#ffdc874d 0,#ffe4a733 14%,#ffe4a710 28%,transparent 39%);mix-blend-mode:screen}
.room-coffee-steam{position:absolute;left:32.6%;top:40.3%;width:3%;height:7%;z-index:7;pointer-events:none}
.room-coffee-steam i{position:absolute;bottom:0;width:20%;height:70%;border-left:2px solid #fff7dcbb;border-radius:50%;opacity:0}
.room-coffee-steam i:nth-child(2){left:35%;animation-delay:.7s!important}.room-coffee-steam i:nth-child(3){left:70%;animation-delay:1.4s!important}
.room-active[data-season="3"] .room-coffee-steam i{animation:coffee-steam 2.3s ease-out infinite}
@keyframes coffee-steam{0%{transform:translateY(6px) scaleX(.6);opacity:0}30%{opacity:.9}100%{transform:translateY(-24px) scaleX(1.5);opacity:0}}
.room-inventory{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.inventory-token{font-size:14px;color:#8b7653;background:#f4e6bc;border:1px dashed #c1a371;border-radius:20px;padding:5px 10px}
.inventory-token.found{background:#dce7c5;border:1px solid #9daf7a;color:#4f704e}.room-time{margin-left:auto;color:#715a3c;font-size:16px;font-weight:800}
.room-message{margin:9px 0;font-size:18px;min-height:48px}
.room-audio-tools{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px;font-size:12px;color:#817455}
.room-settings-link{color:#52796c;background:none;border:0;text-decoration:underline;font:inherit;cursor:pointer;padding:5px}
.roomDialog .adventure-footer{gap:8px}
.journey-treasure{position:absolute;left:23%;top:66%;width:12%;background:none;border:0;cursor:pointer;filter:drop-shadow(0 0 8px #fff3b0);touch-action:manipulation}
.journey-treasure:focus-visible{outline:3px dashed #376c63;outline-offset:5px}.journey-treasure .room-prop-art{width:100%}
#treasureDialog{max-width:750px}.treasure-reward{height:230px;display:flex;align-items:flex-end;justify-content:center;padding-top:45px;gap:20px}.treasure-reward>.chest-art{width:180px;height:180px}.treasure-reward>.picture-art{width:90px;height:90px}.treasure-story{font-family:Georgia,serif;line-height:1.7;font-size:23px;padding:10px}
.treasure-reward>.chest-art{flex:0 0 180px}.treasure-reward>.game-art{width:90px;height:90px;flex:0 0 90px;min-width:0}
.personal-postcard{font-size:21px;padding:18px;line-height:1.6}.personal-postcard p{margin:10px 0}.postcard-signature{margin-top:16px!important}
@media(max-width:1400px){.adventure-playing .top-actions .btn{font-size:14px;padding:9px 10px}}
@media(max-width:700px){.room-canvas{width:100%;min-width:0}.journey-canvas{width:100%}.room-inventory{gap:5px}.inventory-token{font-size:11px;padding:4px 7px}.room-time{width:100%;margin-left:0;font-size:14px}.room-message{font-size:16px}.room-audio-tools{font-size:11px}.room-shortcuts{gap:6px;margin-top:9px}.personal-postcard{font-size:18px;padding:12px}.room-object-label{display:none}.treasure-story{font-size:19px}.treasure-reward{height:190px}.adventure-playing .top-actions .btn{font-size:13px;padding:8px}.adventure-dialog .adventure-footer{gap:7px}}
@media(prefers-reduced-motion:reduce){.room-coffee-steam i{animation:none!important;opacity:.7}}

/* Painted room v2: static objects belong to the painting; only their real moving parts sit above it. */
.room-night-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0}
.room-background{pointer-events:none}
.room-object>.room-prop-art{width:100%;height:100%}
.room-painted-hit,.room-painted-hit:hover,.room-painted-hit:active,.room-painted-hit:disabled{background:none;border:0;box-shadow:none;filter:none;opacity:1}
.room-painted-hit::after{content:'';position:absolute;inset:-8%;border-radius:50%;background:radial-gradient(ellipse,#fff2be42 0,#fff0b326 37%,transparent 72%);opacity:0;transition:opacity .22s ease;pointer-events:none;mix-blend-mode:screen}
.room-painted-hit:hover:not(:disabled)::after,.room-painted-hit:focus-visible::after{opacity:1}
.room-painted-hit.discovered::after{opacity:.4}
.room-painted-hit:focus-visible{outline:2px dashed #f9edba;outline-offset:4px}
.room-object:disabled{cursor:default}
.room-lamp.lit{filter:none}.room-lamp.lit::after{opacity:.22}
.room-train{width:12%;aspect-ratio:3/2;filter:drop-shadow(0 3px 2px #4f4c323b);transition:filter .2s}
.room-train-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.room-train:hover,.room-chest:hover{filter:drop-shadow(0 0 5px #ffe6a57d)}
.room-chest{filter:drop-shadow(0 3px 2px #4f4c323b);transition:filter .2s}
.room-lamp-beam{background:radial-gradient(ellipse at 61% 54%,#ffe1a34d 0,#ffe4a72c 13%,#ffe4a712 25%,transparent 36%)}
.room-coffee-steam{left:30.9%;top:34.5%;width:6.6%;height:12%;filter:blur(.2px);mix-blend-mode:screen}
.journey-treasure{filter:drop-shadow(0 0 5px #ffe6a57d)}
.treasure-reward>.chest-art{width:240px;height:240px;flex-basis:240px}
@media(prefers-reduced-motion:reduce){.room-painted-hit::after,.room-train,.room-chest{transition:none}}
.voice-repair{display:block;width:100%;margin-top:12px;font-size:17px;min-height:48px}
.room-lamp-beam{background:none;mix-blend-mode:normal}
.room-lamp-lit-painting{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:sepia(.18) saturate(1.18) brightness(1.14);mask-image:radial-gradient(ellipse 18% 10% at 60% 52%,#000 0,#000 38%,#000b 60%,transparent 100%),radial-gradient(ellipse 5% 8% at 64% 44%,#000 0,#0009 48%,transparent 100%)}
.room-lamp-bulb{position:absolute;left:61.5%;top:40.5%;width:4.1%;height:1.8%;transform:rotate(24deg);border-radius:50%;background:radial-gradient(ellipse,#fffef0 0,#fff8ba 38%,#ffdf83 72%,#eebc4f99 100%);box-shadow:0 0 7px 3px #ffecabca,0 0 22px 9px #ffc96655}
.room-coffee-steam{left:30.65%;top:32.5%;width:7.3%;height:14%;filter:blur(.25px);mix-blend-mode:normal}
.fresh-start-dialog{max-width:620px}.fresh-start-dialog p{font-size:20px;line-height:1.6;margin:20px 0}

/* Short landscape screens give the painting a full-height stage. Controls stay
   beside it; the original information and shortcuts remain in the info dialog. */
.adventure-heading-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.scene-controls,.scene-info-button,.scene-fullscreen{display:none}
.scene-info{max-width:620px}
.scene-fullscreen-icon{vertical-align:middle;flex:0 0 18px}
.scene-info>.btn{margin:6px 6px 0 0}
.scene-info .room-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
#roomDialog[data-compact="true"],#journeyDialog[data-compact="true"]{width:100vw;height:100dvh;max-width:none;max-height:100dvh;margin:0;inset:0;border-width:2px;border-radius:0;padding:6px;padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right));padding-top:max(6px,env(safe-area-inset-top));padding-bottom:max(6px,env(safe-area-inset-bottom));grid-template-columns:minmax(0,1fr) 156px;gap:8px;overflow:hidden}
#roomDialog[data-compact="true"][open],#journeyDialog[data-compact="true"][open]{display:grid}
[data-compact="true"]>.room-canvas,[data-compact="true"]>.journey-canvas{grid-column:1;grid-row:1;min-width:0;align-self:center;justify-self:center;margin:0}
[data-compact="true"]>.scene-controls{display:flex;grid-column:2;grid-row:1;flex-direction:column;gap:6px;min-height:0;height:100%;overflow:auto;overscroll-behavior:contain}
[data-compact="true"]>.scene-controls>.adventure-dialog-heading{flex-direction:column;align-items:stretch;gap:6px;margin:0}
[data-compact="true"]>.scene-controls h2{font-size:17px;line-height:1.2;margin:0}
[data-compact="true"]>.scene-controls .adventure-heading-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}
[data-compact="true"]>.scene-controls .scene-fullscreen{grid-column:1/-1}
[data-compact="true"]>.scene-controls .scene-info-button{display:block}
[data-compact="true"]>.scene-controls .btn{min-height:44px;font-size:13px;line-height:1.2;padding:7px 5px}
[data-compact="true"]>.scene-controls>.adventure-footer{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:5px;margin:0}
[data-compact="true"]>.room-inventory,[data-compact="true"]>.room-message,[data-compact="true"]>.room-audio-tools,[data-compact="true"]>.room-shortcuts,[data-compact="true"]>.journey-regions,[data-compact="true"]>.journey-summary{display:none}

/* Phone controls keep their labels and 44px touch targets. Tablet and desktop
   rules above remain unchanged, including their illustrated Piko panel. */
@media (pointer:coarse) and (max-width:600px), (pointer:coarse) and (orientation:landscape) and (max-width:1000px) and (max-height:500px){
  .adventure-playing .shell{padding:8px}
  .adventure-playing .topbar{padding:8px;gap:6px;margin-bottom:8px;border-radius:15px}
  .adventure-playing .brand{gap:8px;flex-wrap:nowrap}
  .adventure-playing .brand .symbol{width:36px;height:36px;font-size:24px;flex:0 0 36px}
  .adventure-playing .brand strong{font-size:23px;letter-spacing:0}
  .adventure-playing .brand small{font-size:11px;line-height:1.25}
  .adventure-playing .brand .dedication{font-size:12px;margin:2px 0}
  .adventure-playing .top-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%}
  .adventure-playing .top-actions .status{grid-column:1/-1;font-size:10px;line-height:1.2;text-align:left}
  .adventure-playing .btn{min-height:44px;font-size:12px;line-height:1.2;padding:6px}
  .adventure-playing #fullBtn{grid-column:3;grid-row:2}
  .adventure-playing #voiceBtn{grid-column:1/3}
  .adventure-playing #voiceSettingsBtn{grid-column:3}
  .adventure-playing .hero{gap:8px}
  .adventure-playing .robot-panel{display:grid;grid-template-columns:minmax(0,1fr) 84px;padding:7px;gap:6px;border-width:2px;border-radius:15px}
  .adventure-playing .robot-panel .room-peek,.adventure-playing .robot-panel .illustrated-orbit{display:none}
  .adventure-playing .robot-panel .speech{grid-column:1;grid-row:1;margin:0;padding:7px;border-radius:12px}
  .adventure-playing .robot-panel .speech p{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:15px;line-height:1.3;margin-top:3px}
  .adventure-playing .robot-panel .bubble-kicker{font-size:10px}
  .adventure-playing .robot-panel .repeat-question{grid-column:2;grid-row:1;margin:0;align-self:stretch;min-height:44px;font-size:12px;padding:6px}
  .adventure-playing .main-panel{padding:10px;min-height:0;border-radius:15px}
  .adventure-playing .question-heading{gap:6px}
  .adventure-playing .question-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:5px}
  .adventure-playing .question-counter{font-size:16px}
  .adventure-playing .question-progress{margin:8px 0 10px;height:6px}
  .adventure-playing #stageTitle{font-size:23px;margin:0 0 6px}
  .adventure-playing .question-description{font-size:15px;line-height:1.35;margin-bottom:8px}
  .adventure-playing .story{font-size:16px;line-height:1.4;padding:8px;margin:8px 0}
  .adventure-playing .play-area{padding:8px 0;min-height:180px}
  .adventure-playing .feedback{font-size:16px;line-height:1.35;min-height:44px;padding:8px}
  .adventure-playing .game-actions{gap:6px;padding-top:8px}
  #roomDialog,#journeyDialog{max-height:96dvh}
  #roomDialog>.room-audio-tools,#roomDialog>.room-shortcuts{display:none}
  #roomDialog>.room-message{min-height:0;font-size:16px;line-height:1.35;padding:8px;margin:8px 0}
  #roomDialog>.adventure-footer,#journeyDialog>.adventure-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  #roomDialog .adventure-footer>.btn:not(.primary):not(#roomMapBtn){display:none}
  #roomDialog>.adventure-footer .btn,#journeyDialog>.adventure-footer .btn{font-size:13px;min-height:44px;padding:7px}
  #journeyDialog>.adventure-footer .primary{grid-column:1/-1}
  .adventure-dialog .scene-info-button{display:block}
  .adventure-dialog .scene-fullscreen{display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;padding:5px}
  .adventure-dialog .scene-fullscreen-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .adventure-dialog .adventure-heading-actions{flex-wrap:nowrap;gap:5px}
  .adventure-dialog .adventure-close{min-width:44px;min-height:44px;width:44px;padding:5px}
  .adventure-dialog h2{font-size:20px}
}
@media (pointer:coarse) and (orientation:landscape) and (max-width:1000px) and (max-height:500px){
  [data-compact="true"] .scene-fullscreen{display:inline-flex;width:auto}
  [data-compact="true"] .scene-fullscreen-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;margin-left:5px}
  [data-compact="true"] .adventure-footer>.primary{order:-1}
  .adventure-playing .topbar{flex-wrap:nowrap;gap:8px;padding:6px 8px}
  .adventure-playing .brand{flex:0 1 200px}
  .adventure-playing .brand strong{font-size:21px}
  .adventure-playing .top-actions{flex:1;grid-template-columns:repeat(5,minmax(0,1fr));width:auto;gap:4px}
  .adventure-playing .top-actions .btn{font-size:11px;padding:5px}
  .adventure-playing #fullBtn,.adventure-playing #voiceBtn,.adventure-playing #voiceSettingsBtn{grid-column:auto;grid-row:auto}
  .adventure-playing .hero{grid-template-columns:150px minmax(0,1fr)}
  .adventure-playing .robot-panel{display:flex;flex-direction:column;align-items:stretch}
  .adventure-playing .robot-panel .speech p{font-size:14px}
  .adventure-playing .question-navigation{grid-template-columns:repeat(4,minmax(0,1fr))}
  .adventure-playing .question-navigation .btn{font-size:11px;padding:5px}
  .adventure-playing .question-progress{margin:5px 0 7px}
  .adventure-playing #stageTitle{font-size:21px}
  .adventure-playing .question-description{font-size:14px;margin-bottom:6px}
  .adventure-playing .story{font-size:15px;margin:6px 0;padding:6px}
}

/* A mouse-operated PC with a short content viewport uses spacing and board
   bounds, never a page-wide zoom. Larger screens and touch tablets keep theirs. */
@media (pointer:fine) and (min-width:1000px) and (max-height:800px){
  .adventure-playing .shell{padding:8px 12px}
  .adventure-playing .topbar{padding:6px 10px;gap:8px;margin-bottom:8px;flex-wrap:nowrap}
  .adventure-playing .brand{gap:8px;flex:0 1 320px;min-width:0;flex-wrap:nowrap}
  .adventure-playing .brand>div{min-width:0}
  .adventure-playing .brand strong{font-size:22px}
  .adventure-playing .brand .symbol{width:36px;height:36px;font-size:24px}
  .adventure-playing .brand small{font-size:10px;line-height:1.2}
  .adventure-playing .brand .dedication{font-size:12px}
  .adventure-playing .top-actions{gap:6px;flex:1;min-width:0}
  .adventure-playing .top-actions .status{order:1;flex-basis:100%;font-size:10px;line-height:1.2;text-align:right}
  .adventure-playing .top-actions .btn{font-size:13px;min-height:44px;padding:7px 9px}
  .adventure-playing .hero{grid-template-columns:190px minmax(0,1fr);gap:12px}
  .adventure-playing .robot-panel{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px;top:8px}
  .adventure-playing .room-peek{margin:0}
  .adventure-playing .room-peek img{height:80px}
  .adventure-playing .room-peek>span{font-size:12px;padding:5px}
  .adventure-playing .robot-panel .illustrated-orbit{display:none}
  .adventure-playing .robot-panel .speech{margin:0;padding:8px}
  .adventure-playing .robot-panel .speech p{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:15px;line-height:1.3}
  .adventure-playing .repeat-question{margin:0;font-size:13px;min-height:44px;padding:6px}
  .adventure-playing .main-panel{padding:12px;min-height:0;--compact-board-size:clamp(220px,calc(100dvh - 420px),430px)}
  .adventure-playing .question-heading{gap:8px}
  .adventure-playing .question-navigation{gap:5px}
  .adventure-playing .question-navigation .btn{font-size:13px;min-height:40px;padding:6px 8px}
  .adventure-playing .question-counter{font-size:17px}
  .adventure-playing .question-progress{margin:8px 0 10px;height:6px}
  .adventure-playing #stageTitle{font-size:24px;margin:0 0 5px}
  .adventure-playing .question-description{font-size:15px;line-height:1.3;margin-bottom:6px}
  .adventure-playing .story{font-size:17px;line-height:1.35;padding:8px;margin:6px 0}
  .adventure-playing .play-area{padding:6px 0;min-height:0}
  .adventure-playing .route-landscape{width:min(100%,var(--compact-board-size));padding:8px}
  .adventure-playing .route-cell{min-height:40px}
  .adventure-playing .memory-board{max-width:min(100%,calc(var(--compact-board-size)*1.6));gap:8px}
  .adventure-playing .memory-card{min-height:104px;padding:6px;font-size:14px}
  .adventure-playing .memory-card .card-back{font-size:56px;line-height:1}
  .adventure-playing .memory-card .pilot-art{width:64px;height:64px}
  .adventure-playing .memory-card .card-name{font-size:13px;line-height:1.2}
  .adventure-playing .memory-card .pair-found{font-size:11px}
  .adventure-playing .pilot-toolbar .pilot-note{font-size:14px}
  .adventure-playing .play-area .tray-title{font-size:14px;margin:3px 0}
  .adventure-playing .program-layout{grid-template-columns:minmax(0,1.1fr) 160px minmax(0,.9fr);gap:10px}
  .adventure-playing .program-board{max-width:var(--compact-board-size)}
  .adventure-playing .program-tools{display:flex;flex-direction:column;gap:6px}
  .adventure-playing .program-tools .btn{min-height:40px;font-size:13px;padding:6px}
  .adventure-playing .program-tools .pilot-note,.adventure-playing .program-plan .pilot-note{font-size:13px;line-height:1.3}
  .adventure-playing .direction-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:5px}
  .adventure-playing .direction-key{font-size:26px}
  .adventure-playing .program-plan .sequence-heading{font-size:18px;margin:0 0 6px}
  .adventure-playing .program-sequence{min-height:90px;padding:6px;gap:5px}
  .adventure-playing .feedback{font-size:15px;line-height:1.25;min-height:34px;padding:7px 9px}
  .adventure-playing .game-actions{padding:6px 0 0;gap:8px}
  .adventure-playing .game-actions .btn{font-size:13px;min-height:44px;padding:7px 10px}
}
@media (pointer:fine) and (min-width:1000px) and (max-height:650px){
  .adventure-playing .topbar{padding:4px 8px}
  .adventure-playing .main-panel{padding:10px}
  .adventure-playing .question-navigation .btn{min-height:36px;font-size:12px;padding:5px 7px}
  .adventure-playing .question-progress{margin:5px 0 6px}
  .adventure-playing #stageTitle{font-size:22px;margin-bottom:3px}
  .adventure-playing .story{font-size:16px;padding:6px}
  .adventure-playing .play-area .tray-title{font-size:13px;margin:3px 0}
  .adventure-playing .route-cell{min-height:36px}
}

/* v0.3.4 performans ve tablet: tren kendi compositor katmaninda transform ile yurur
   (adventure.js placeTrain); boyali oda her karede yeniden cizilmez. Mektup dialogu
   tasarsa alt dugmeler gorunur alanda kalir; sigdiginda yerlesim degismez
   (sticky + esit negatif margin: normal akista net kayma 0). */
.room-train{left:0;top:0;will-change:transform}
#postcardDialog>.adventure-footer{position:sticky;bottom:-18px;z-index:1;background:inherit;padding-bottom:18px;margin-bottom:-18px}
/* Buyuk oda/harita pencereleri ekrani neredeyse kaplar; arkalarindaki tam ekran bulaniklik
   her animasyon karesinde GPU'da yeniden hesaplaniyordu (olcum: tren 35->59 kare/sn). Karartma
   rengi ayni; kucuk pencerelerin (mektup, bilgi) bulanik arka plani korunur. */
#roomDialog::backdrop,#journeyDialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
/* Dikey tablet (TCL NXTPAPER 10s gibi ~533-600 px): telefon duzeni korunur, yalniz soru
   gezinme dugmeleri 2x2 yerine tek sira; oyun alani bir sira yukari gelir. Telefonlar (<500 px)
   ve diger tum boyutlar degismez. */
@media (pointer:coarse) and (orientation:portrait) and (min-width:500px) and (max-width:600px){
  .adventure-playing .question-navigation{grid-template-columns:repeat(4,minmax(0,1fr))}
  .adventure-playing .question-navigation .btn{font-size:14px;padding:6px 4px}
}
/* v0.3.5: baslikta surum (tek kaynak src/app-version.js; main.js yazar). */
.brand-version{white-space:nowrap;font-variant-numeric:tabular-nums}
