*{box-sizing:border-box;letter-spacing:0}html,body{margin:0;width:100%;height:100%;background:#151412;color:#fff4e4;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:3px solid #FF8A3D;outline-offset:3px}[hidden]{display:none!important}#game{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden;background:#191613}.scene{position:absolute;inset:0;overflow:hidden}#art{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform .35s;user-select:none}.hotspots{position:absolute;inset:0}.hotspot{position:absolute;transform:translate(-50%,-50%);min-width:52px;min-height:48px;border:1px solid #ffcf8f99;border-radius:8px;background:#211b15ba;box-shadow:0 2px 12px #0005;font-size:13px;padding:8px 10px;text-shadow:0 1px 3px #000}.hotspot:active{background:#8d4c27}.tools{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:7px;padding:calc(env(safe-area-inset-top) + 10px) 12px 10px;background:linear-gradient(#100e0dd9,transparent);pointer-events:none}.tools>*{pointer-events:auto}.view-name{flex:1;font-size:13px;text-shadow:0 2px 5px #000}.icon-button{width:44px;height:44px;flex-shrink:0;border:1px solid #ffffff24;border-radius:8px;background:#211b17d9;display:inline-flex;align-items:center;justify-content:center;font-size:22px}.bottom{position:absolute;left:0;right:0;bottom:0;padding:12px 16px calc(env(safe-area-inset-bottom) + 14px);background:linear-gradient(transparent,#171411ed 22%,#171411);max-height:43%;overflow:auto}.narration{padding:10px 0 8px;text-shadow:0 1px 4px #000}.narration>span{font-size:12px;color:#ffaf74}.narration p{font-size:14px;line-height:1.7;margin:6px 0 10px;max-width:650px}.inventory-heading{display:flex;justify-content:space-between;font-size:11px;color:#c9baaa;margin:0 0 9px}.inventory{display:flex;gap:9px;min-height:62px;overflow-x:auto;padding:2px}.item{min-width:64px;min-height:60px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#302b25;border:1px solid #71604a;border-radius:8px;font-size:11px}.item i{font-size:23px;color:#edc28e}.item.selected{border:2px solid #FF8A3D;background:#5a3521}.empty{color:#938a80;font-size:12px;align-self:center}dialog{width:calc(100% - 32px);max-width:420px;max-height:80dvh;overflow:auto;border:1px solid #75634c;border-radius:8px;background:#25221e;color:#fff0df;padding:18px;box-shadow:0 20px 80px #0009}dialog::backdrop{background:#070909b8}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.dialog-top h2{font-size:19px;margin:0}#panelBody{font-size:14px;line-height:1.8}#panelBody p{margin:8px 0 16px}.action{border:0;border-radius:8px;min-height:46px;padding:10px 18px;background:#FF8A3D;color:#25170d;font-weight:600;width:100%;margin-top:10px}.secondary{background:#403b34;color:#eddfcd}.clue{border-bottom:1px solid #ffffff1a;padding:10px 0}.clue strong{color:#ffb780}.code{display:block;width:100%;min-height:52px;font-size:24px;text-align:center;letter-spacing:8px;background:#151412;color:#fff;border:1px solid #8c7658;border-radius:8px;margin:16px 0}.error{color:#ffb492;font-size:13px;min-height:24px}@media(min-width:700px){#game{max-width:560px;margin:auto}.bottom{padding-left:24px;padding-right:24px}body{background:#111210}}

/* Reserve the lower panel's space so it never intercepts a scene target. */
#game{display:flex;flex-direction:column;justify-content:flex-end;isolation:isolate}.scene{position:static}.scene #art{position:absolute;inset:0;z-index:-1;pointer-events:none}.scene{flex:1;min-height:0;display:flex;position:relative;overflow:visible}.scene #art{display:none}#game{background:#191613 url('images/gen/gptimg_1795785722_look.jpg') center/cover no-repeat}.hotspots{inset:env(safe-area-inset-top) 0 0}.bottom{position:relative;bottom:auto;flex:none;background:#191613ed;max-height:45%;border-top:1px solid #ab805b66}.bottom .action{margin-top:0}.pause{background:#302b25;color:#fff4e4;border:1px solid #71604a;border-radius:8px;min-height:44px;padding:0 14px}#items:not([hidden]){display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px}.inventory-heading{grid-column:1/-1}.inventory{align-items:center;font-size:13px;color:#d1c5b6}.item{min-width:84px;font-size:14px}.hotspot{touch-action:manipulation}
