body.game-page{padding:0;margin:0;height:100vh;height:100dvh;min-height:0;overflow:hidden}
.title-screen.game-screen{width:100%;height:100%;border:0;border-radius:0;box-shadow:none;background:#08162f}
.title-screen.game-screen::after{display:none}
.scene-viewport{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.scene-stage{position:relative;flex:none}
.scene-artwork{position:relative;transform-origin:top left;overflow:hidden}
.scene-background{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.scene-artwork.is-complete{filter:grayscale(1);opacity:.5}
.scene-entity{position:absolute;display:block;border:0;margin:0;padding:0;background:transparent;cursor:pointer;line-height:0;border-radius:8px}
.scene-entity img{display:block;max-width:none;user-select:none;-webkit-user-drag:none}
.scene-entity.is-found img{filter:grayscale(1)}
.scene-entity:focus-visible{outline:5px solid #ffe6a0;outline-offset:3px}
.friend-zone{z-index:2}
.ava-entity{z-index:3}
.prop-entity{z-index:4}
.game-control,.dialog-actions button,.speech-close{min-height:50px;border:2px solid #ffe6a0;border-radius:17px;padding:12px 22px;background:linear-gradient(#a58ade,#7254b4);color:#fff8df;font:800 20px/1.2 "Trebuchet MS","Segoe UI",sans-serif;cursor:pointer;box-shadow:0 4px 0 #332b61,0 6px 20px #0004;transition:transform .16s,background .16s}
.game-control:hover,.dialog-actions button:hover,.speech-close:hover{transform:scale(1.04);background:#c18b37}
.game-control:focus-visible,.dialog-actions button:focus-visible,.speech-close:focus-visible{outline:4px solid white;outline-offset:4px}
.game-control{position:absolute;z-index:5;bottom:24px}.home-control{left:24px}.save-control{right:24px;background:linear-gradient(#3cbfba,#157b91)}
.object-console{position:absolute;right:24px;top:24px;z-index:5;padding:14px 22px;border:2px solid #ffe6a0;border-radius:18px;background:#123652e8;color:#fff4c9;font-size:clamp(17px,2vw,24px);font-weight:bold;box-shadow:0 5px 18px #0004}
.game-status{position:absolute;z-index:5;bottom:88px;right:24px;max-width:min(440px,85%);margin:0;font-size:16px;background:#08162fe8;border-radius:12px}.game-status:not(:empty){padding:12px 16px}
.ava-dialog{max-width:560px;width:calc(100vw - 40px);max-height:85svh;overflow:auto;padding:28px;border:3px solid #ffe6a0;border-radius:25px;background:linear-gradient(145deg,#153d59f5,#49316cf5);color:#fff8df;text-align:center;box-shadow:0 18px 70px #0008;font:20px/1.5 "Trebuchet MS","Segoe UI",sans-serif}
.ava-dialog::backdrop{background:#08162f55}.ava-dialog h2{margin:0 0 16px;color:#ffe6a0;font-size:30px}.ava-dialog p{white-space:pre-line}.dialog-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-top:24px}
.speech-bubble{position:fixed;z-index:20;inset:auto;margin:0;max-width:none;width:min(350px,calc(100vw - 32px));padding:20px;border:3px solid #e6ba64;border-radius:24px;background:#fff5db;color:#29304c;box-shadow:0 8px 30px #08162f66;font:20px/1.45 "Trebuchet MS","Segoe UI",sans-serif}
.speech-bubble{max-height:calc(100svh - 32px);overflow:auto}
.speech-bubble::backdrop{background:transparent}.speech-bubble p{margin:8px 0 20px;white-space:pre-line}.speech-bubble strong{color:#674894}.speech-close{display:block;width:100%;font-size:22px}.speech-bubble:focus{outline:none}
.adventure-list small{display:block;margin-top:6px;font-size:15px;font-weight:normal}
@media(max-width:600px){.game-control{bottom:18px;padding:10px 16px;font-size:18px}.home-control{left:18px}.save-control{right:18px}.object-console{top:18px;right:18px;padding:10px 14px}.ava-dialog{padding:22px;font-size:18px}.speech-bubble{font-size:18px}}
@media(prefers-reduced-motion:reduce){.game-control,.dialog-actions button,.speech-close{transition:none}.game-control:hover,.dialog-actions button:hover,.speech-close:hover{transform:none}}


/* Ava uses 35% of her native dimensions; the engine anchors her above the screen bottom. */
.ava-entity{transform:scale(.35);transform-origin:top left}

