/* VisszaVilág v0.4: single pixel-calibrated canvas, same coordinate space as original artwork. */
.room-scroller{perspective:1500px;position:relative;touch-action:pan-x pan-y}
.room-canvas{--camera-x:0deg;--camera-y:0deg;transform-origin:center center;transform:rotateY(var(--camera-x)) rotateX(var(--camera-y));transition:transform .32s ease-out;will-change:transform}
.eg-pixel-layer{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;object-fit:fill}
.hotspots{z-index:5;pointer-events:none}
.hotspots .hotspot{pointer-events:auto}
.room-canvas.eg-details .hotspot{box-shadow:0 0 0 2px #f8deaa,0 0 30px 11px #ffd99288;animation:eg-breathe 2.4s ease-in-out infinite}
.room-canvas:not(.eg-motion-on){transform:none!important;transition:none!important}
@keyframes eg-breathe{50%{box-shadow:0 0 0 2px #f8deaa,0 0 12px 4px #ffd99266}}
.eg-scene-console{background:linear-gradient(125deg,#20392e,#111c1a);color:#e9dfc8;border:1px solid #536a54;margin:0;padding:16px 21px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,3fr) auto;align-items:center;gap:15px;box-shadow:inset 0 0 0 1px #ffffff0b}
.eg-console-caption{display:flex;flex-direction:column;gap:5px}.eg-console-caption strong{font:600 12px Georgia,serif;color:#e5c28a}.eg-console-caption small{font-size:10px;color:#bac6b5;line-height:1.35}.eg-console-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.eg-console-actions button{background:#334a3a;border:1px solid #6b826a;color:#fff1d8;padding:11px 12px;font-size:11px;font-weight:650;min-height:44px;border-radius:4px;transition:background .2s,transform .15s}.eg-console-actions button:hover,.eg-console-actions button:focus-visible{background:#786349;transform:translateY(-1px)}.eg-console-actions button[aria-pressed=true]{border-color:#d9b786;background:#544e35}.eg-console-actions button:disabled{opacity:.5;cursor:not-allowed}.eg-clock-readout{font:600 17px 'Courier New',monospace;color:#f1d09f;white-space:nowrap}.eg-clock-readout span{display:block;color:#a8b7a9;font:500 9px sans-serif;letter-spacing:1px;margin-bottom:5px}.eg-scene-notice{display:block;min-height:24px;color:#d4be99;background:#12201a;padding:6px 18px;font-size:11px;opacity:.64;transition:opacity .2s}.eg-scene-notice.visible{opacity:1;color:#ffe5b6}
/* Concrete visual controls inside existing object dialogues. */
.eg-tvcabinet{margin:12px auto 16px;max-width:320px;padding:14px;background:linear-gradient(130deg,#3b322b,#161c1d 40%,#4a4031);border:7px solid #4d3e2e;border-radius:16px 15px 19px 15px;box-shadow:0 15px 18px #0004, inset 0 2px 7px #ffffff22;transform:perspective(450px) rotateY(-5deg);transition:transform .3s}.eg-tvcabinet:hover{transform:perspective(450px) rotateY(3deg)}.eg-tvcabinet .eg-tvs{height:170px;border:7px solid #242927;border-radius:50% / 8%;position:relative;overflow:hidden;background:radial-gradient(circle,#316b7b,#0d1d25);display:grid;place-items:center;color:#fff1d7;box-shadow:inset 0 0 34px #000b}.eg-tvs:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(transparent 0 2px,#0006 3px 4px);pointer-events:none;z-index:3}.eg-tvs strong{font:700 29px Georgia,serif;text-shadow:0 2px 10px #000;z-index:2;text-align:center;line-height:1.1}.eg-tvs.eg-blackout{background:#06090b}.eg-tvs.eg-blackout strong{opacity:0}
.eg-vhs-model{perspective:480px;max-width:250px;margin:20px auto}.eg-vhs-shell{height:105px;background:linear-gradient(155deg,#292a2b,#4e4b46);border:7px solid #1b2021;border-radius:8px;box-shadow:12px 20px 19px #0004;transform:rotateX(12deg) rotateY(-14deg);position:relative;display:grid;place-items:center;transition:transform 1s}.eg-vhs-shell:before,.eg-vhs-shell:after{content:'';width:35px;height:35px;border:7px dotted #aea79a;position:absolute;top:24px;border-radius:50%;animation-play-state:paused;animation-name:eg-vhs-spool;animation-duration:1.3s;animation-iteration-count:infinite;animation-timing-function:linear}.eg-vhs-shell:before{left:37px}.eg-vhs-shell:after{right:37px}.eg-vhs-model.eg-playing .eg-vhs-shell{transform:rotateX(5deg) rotateY(7deg)}.eg-vhs-model.eg-playing .eg-vhs-shell:before,.eg-vhs-model.eg-playing .eg-vhs-shell:after{animation-play-state:running}
.eg-radio-visual{height:72px;margin:12px 0;background:#53402c;border:6px solid #866e49;display:flex;gap:4px;align-items:end;justify-content:center;padding:9px 13px}.eg-radio-visual i{width:7px;height:25%;background:#e8bc78;border-radius:4px;box-shadow:0 0 10px #f7cf8b}.eg-radio-visual.eg-active i{animation:eg-bar .6s ease-in-out infinite alternate}.eg-radio-visual i:nth-child(2n){animation-delay:-.22s}.eg-radio-visual i:nth-child(3n){animation-delay:-.39s}
.eg-clock-widget{margin:8px auto 18px;border:1px solid #9a8b71;background:#f4ede0;padding:17px;text-align:center;max-width:240px;font:700 38px 'Courier New',monospace;color:#4e4133}
@keyframes eg-vhs-spool{to{transform:rotate(360deg)}}@keyframes eg-bar{to{height:85%}}
@media (max-width:1100px){.eg-scene-console{grid-template-columns:1fr;gap:12px}.eg-console-actions{gap:7px}.eg-clock-readout span{display:inline;margin-right:8px}}
@media (max-width:720px){.eg-scene-console{padding:12px 11px}.eg-console-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.eg-console-actions button{min-width:0;font-size:11px;padding:10px 6px}.eg-clock-readout{font-size:14px}}
@media (prefers-reduced-motion:reduce){.room-canvas{transform:none!important;transition:none!important}.hotspot:before,.room-canvas.eg-details .hotspot{animation:none!important}}
.eg-live-detail{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:4/3;border:7px solid #574c3d;box-shadow:0 12px 35px #18181542;margin:14px auto;border-radius:6px;object-fit:contain;background:#161c20}
.eg-clock-focus{max-width:270px;aspect-ratio:1/1;border-radius:12px}
/* Make the photographic objects visible: markers are beside them, not placed over their moving parts. */
.hotspot{width:32px;height:32px;background:#1b2926cf;box-shadow:0 0 0 1px #fff3da99,0 0 12px #111a1666}
.hotspot b{font-size:10px}
.hotspot:before{inset:-5px}
@media (max-width:720px){.hotspot{width:43px;height:43px}.hotspot b{font-size:13px}}
.eg-flipbook{width:min(100%,550px);min-height:228px;perspective:900px;margin:12px auto 16px;display:grid;grid-template-columns:1fr 1fr;border:8px solid #6c4a31;box-shadow:0 12px 30px #0004;border-radius:4px;background:#d6bd93;overflow:hidden}
.eg-book-left,.eg-book-right{padding:18px 14px;min-width:0;background:#f1ddba;color:#54412b;position:relative;display:flex;flex-direction:column;justify-content:center;gap:12px}.eg-book-left{border-right:4px solid #8a6746;background:repeating-linear-gradient(45deg,#f3e5cd,#f3e5cd 12px,#f0dec3 12px,#f0dec3 13px)}.eg-book-left>strong{font:normal clamp(18px,2.4vw,27px)/1.12 Georgia,serif}.eg-book-left>p,.eg-book-desc{font-size:11px;line-height:1.55}.eg-book-stamp{font:bold 12px/1 monospace;color:#936e4d}.eg-book-right{transform-origin:left center;transform-style:preserve-3d;transition:transform .39s ease-in-out;box-shadow:inset 5px 0 12px #a88a6566}.eg-page-turn .eg-book-right{transform:rotateY(-34deg)}.eg-book-photo{width:100%;height:94px;box-shadow:0 3px 8px #0003;border:5px solid white;position:relative;overflow:hidden}.eg-book-photo::before{content:'';position:absolute;inset:23% 0 0;background:linear-gradient(145deg,#71916c 0 36%,#2d4d52 36% 69%,#475c3b 69%)}.eg-photo-forest{background:linear-gradient(#e9c993,#819ba3)}.eg-photo-lake{background:linear-gradient(#f2c7a2,#759aa6)}.eg-photo-lake:before{background:linear-gradient(#7eabc6 0 32%,#dbb58a 33% 42%,#688e9d 43% 100%)}.eg-photo-warm{background:linear-gradient(#ce8b59,#694939)}.eg-photo-warm:before{background:linear-gradient(40deg,#945738 0 40%,#ba8157 40% 55%,#543f37 55%)}.eg-book-date{font:700 9px monospace;letter-spacing:1.4px}.eg-book-title{font:normal 18px Georgia,serif}.eg-book-desc{margin:0}
@media (max-width:560px){.eg-flipbook{min-height:190px}.eg-book-left,.eg-book-right{padding:12px 8px;gap:6px}.eg-book-left>strong{font-size:18px}.eg-book-photo{height:64px}.eg-book-title{font-size:14px}.eg-book-desc{font-size:9px}}
@media (prefers-reduced-motion:reduce){.eg-book-right{transition:none!important}}
