*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#191325;color:#f5e1bd;font-family:Georgia,serif}body{overscroll-behavior:none}main{height:100dvh;height:100svh;height:100dvh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}[hidden]{display:none!important}header,footer{display:flex;align-items:center;background:#291e36;padding:6px;gap:6px;flex-shrink:0}header{justify-content:space-between}header strong{display:block;font-size:clamp(11px,3.4vw,16px);color:#eac18a}small{font-size:10px;display:block;color:#cead84}header .tools{display:flex;gap:4px}button{color:#f7e3bd;background:#3c2b49;border:1px solid #bd975d;border-radius:6px;min-height:36px;font:inherit;font-size:13px;padding:5px 7px;touch-action:manipulation;cursor:pointer}button.active,button[aria-pressed=true]{color:#2c1f2c;background:#e3b970}#viewport{flex:1;min-height:0;position:relative;background:#21182c;overflow:hidden}#camera{position:absolute;inset:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}#world{position:absolute;left:0;top:0;width:709px;height:445px;transform-origin:0 0;touch-action:none;overflow:hidden}#world .room,.layer{position:absolute;inset:0;width:709px;height:445px;pointer-events:none}#hero{position:absolute;width:50px;height:114px;left:0;top:0;pointer-events:none;transform-origin:50% 100%}#hero img{width:100%;height:100%;object-fit:contain;transform-origin:50% 100%}#hero.walk img{animation:walk .24s ease-in-out infinite alternate}#hero.cast img{filter:drop-shadow(0 0 8px #c6ffff)}@keyframes walk{from{transform:translateY(-2px) rotate(-2deg)}to{transform:translateY(1px) rotate(2deg)}}#light{position:absolute;left:473px;top:226px;width:80px;height:80px;background:radial-gradient(#9ffbff75,transparent 68%);pointer-events:none}#zoom{position:absolute;top:5px;right:5px;display:flex;gap:3px;background:#21182cbb;border-radius:7px;padding:3px}#zoom button{min-width:34px}#dialog{height:90px;flex-shrink:0;overflow:auto;background:linear-gradient(125deg,#f8e0b0,#d5ae79);color:#33251e;padding:8px 11px;font-size:15px;line-height:1.28;border-top:2px solid #b68b53}#speaker{display:block;color:#793a42;margin-bottom:4px}footer{align-items:stretch}#verbs{flex:1.2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}#verbs button{padding:4px;font-size:12px}#inventory{flex:1;border:1px solid #a68a62;border-radius:6px;background:#191426;padding:6px;min-width:0}#items{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px;max-height:112px;overflow:auto}#items button{display:grid;justify-items:center;min-width:52px;font-size:10px;padding:4px}#items button span{font-size:23px}#status{text-align:center;background:#20182e;color:#dbbf8b;font-size:11px;padding:4px;flex-shrink:0}#markers span{position:absolute;transform:translate(-50%,-50%);background:#20182de8;border:1px solid #e6c18a;border-radius:12px;font-size:13px;padding:4px 7px;pointer-events:none;white-space:nowrap}#end{position:absolute;inset:0;background:#21162cdd;display:grid;place-items:center;text-align:center;padding:20px}#end h2{color:#f0cc91}@media(orientation:landscape) and (max-height:550px){header,footer{padding:3px 6px}header button{min-height:29px}#dialog{height:58px;font-size:13px;padding:4px 8px;display:grid;grid-template-columns:60px 1fr;gap:7px}#verbs{grid-template-columns:repeat(5,minmax(0,1fr));flex:1.8}#verbs button{min-height:25px;padding:2px 4px}#items{max-height:60px}#items button{display:flex;gap:3px;align-items:center;min-height:28px}#items button span{font-size:17px}#status{padding:2px}}
