
:root{color-scheme:dark;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:#000;color:#efece5}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}
main{position:relative;width:100vw;height:100vh;height:100dvh;overflow:hidden}
.stage{position:absolute;inset:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#000;overflow:hidden;isolation:isolate}
.stage canvas{display:block;flex:none;touch-action:none;outline:none;max-width:none;max-height:none}
header{position:absolute;top:0;left:0;right:0;z-index:12;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:10px 12px;background:linear-gradient(180deg,rgba(4,12,17,.83),rgba(4,12,17,0));pointer-events:none}
header strong{font-size:12px;letter-spacing:.13em;text-shadow:1px 1px #000;white-space:nowrap;line-height:30px}
header strong span{color:#dfb269}.tools{display:flex;gap:7px;align-items:center;pointer-events:auto;flex-wrap:wrap;justify-content:flex-end}
.tools span{font-size:11px;color:#a8c6c8;letter-spacing:0;max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tools button,aside button{background:rgba(13,31,38,.78);border:1px solid #506874;color:#f5f3ef;padding:7px 10px;border-radius:5px;cursor:pointer;font-size:12px}
.tools button:hover,aside button:hover{background:rgba(40,64,76,.96)}
#ime{position:absolute;left:0;bottom:0;width:1px;height:1px;opacity:.01;border:0;font-size:16px;pointer-events:none}
.overlay{position:absolute;inset:0;z-index:7;background:linear-gradient(135deg,rgba(4,12,17,.85),rgba(18,27,29,.76));display:grid;place-items:center}
.overlay[hidden],aside[hidden],.loading-badge[hidden]{display:none}
.box{max-width:min(450px,90vw);padding:24px 28px;text-align:center;background:rgba(2,10,17,.75);border:1px solid #5e523d;border-radius:6px}
.box small{color:#e5bd74;font-size:10px;letter-spacing:.16em;font-weight:700}
.box h1{font:700 clamp(30px,4vw,42px) Georgia,serif;margin:12px}
.box p{line-height:1.6;color:#bed1d0;font-size:14px}
.box button{display:block;margin:23px auto 10px;background:#b38c4e;border:0;color:#111b21;padding:13px 30px;border-radius:4px;font-weight:700;cursor:pointer}
.box button:disabled{opacity:.55}.box .help-keys{font-size:11px;color:#ddd0b9}
aside{position:absolute;right:10px;top:51px;z-index:13;background:rgba(5,16,22,.96);border:1px solid #566973;padding:14px;width:min(440px,96%);max-height:70%;overflow:auto;border-radius:5px}
aside pre{white-space:pre-wrap;word-break:break-all;font-size:11px;color:#d3dbd8}aside p{font-size:12px;line-height:1.5}
.row{display:flex;align-items:center;justify-content:space-between}.row button{margin-left:7px}
.loading-badge{position:absolute;z-index:4;left:12px;bottom:12px;background:rgba(7,18,24,.88);border:1px solid #87774f;color:#f9e6bd;border-radius:4px;padding:8px 11px;font-size:12px;pointer-events:none}
.game-cursor{display:none;position:absolute;left:0;top:0;width:32px;height:38px;pointer-events:none;z-index:5;filter:drop-shadow(1px 2px 2px #000);transform:translate3d(-100px,-100px,0)}
.stage.pc-active canvas{cursor:none}.stage.pc-active.pointer-inside .game-cursor{display:block}
@media(max-width:640px){header{padding:6px}.tools{gap:4px}.tools span{flex:1 1 100%;text-align:right;max-width:200px}.tools button{font-size:11px;padding:5px 7px}.box{padding:18px}aside{top:70px}}
