:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}body{background:#14110f;color:#f4eee5}.app{position:fixed;inset:0}.canvas-wrap{position:absolute;inset:0;touch-action:none;cursor:grab}.canvas-wrap:active{cursor:grabbing}.canvas-wrap canvas{display:block}.hud-title,.hud-controls,.hud-prompt,.hud-hint{position:absolute;pointer-events:none;z-index:2}.hud-title{top:26px;left:30px;text-shadow:0 2px 14px rgba(0,0,0,.7)}.hud-eyebrow{display:block;font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:#d7b98c;margin-bottom:6px}.hud-title h1{margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(20px,2.4vw,30px);font-weight:500;letter-spacing:.01em}.hud-room-description{margin:7px 0 0;max-width:34ch;font-size:12px;line-height:1.5;color:#d3c9bb;text-shadow:0 1px 8px rgba(0,0,0,.9)}.hud-hint{top:28px;right:30px;max-width:34ch;padding:9px 14px;border:1px solid rgba(215,185,140,.25);border-radius:999px;background:#14110f8c;font-size:11px;line-height:1.5;color:#e6d8c5;text-align:right}.hud-controls{left:30px;bottom:24px;display:flex;flex-wrap:wrap;gap:8px 18px;max-width:70vw;font-size:11px;color:#d3c9bb;text-shadow:0 1px 8px rgba(0,0,0,.9)}.hud-controls span{display:inline-flex;align-items:center;gap:4px}kbd{display:inline-block;min-width:18px;padding:2px 5px;border:1px solid rgba(244,238,229,.4);border-bottom-width:2px;border-radius:4px;background:#14110f8c;color:#f4eee5;font:inherit;font-size:10px;text-align:center}.hud-prompt{left:50%;bottom:72px;transform:translate(-50%);display:flex;align-items:center;gap:7px;padding:10px 18px;border:1px solid rgba(215,185,140,.4);border-radius:999px;background:#14110fd1;box-shadow:0 8px 30px #00000073;font-size:13px;white-space:nowrap}.hud-prompt strong{color:#e8c99a;font-weight:600}.detail-overlay{position:absolute;inset:0;z-index:5;display:flex;justify-content:flex-end;background:linear-gradient(90deg,#0000 30%,#0000008c)}.detail-panel{position:relative;width:min(420px,92vw);height:100%;overflow-y:auto;padding:34px 32px 40px;background:#1c1815;border-left:1px solid rgba(215,185,140,.25);box-shadow:-20px 0 60px #00000080}.detail-close{position:absolute;top:16px;right:18px;width:34px;height:34px;border:1px solid rgba(244,238,229,.25);border-radius:50%;background:transparent;color:#f4eee5;font-size:22px;line-height:1;cursor:pointer}.detail-close:hover{background:#f4eee51a}.detail-image{display:block;width:100%;height:auto;border-radius:3px;box-shadow:0 12px 40px #00000080}.detail-body{padding-top:24px}.detail-category{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#d7b98c}.detail-body h2{margin:8px 0 14px;font-family:Georgia,Times New Roman,serif;font-size:28px;font-weight:500}.detail-description{margin:0 0 26px;font-size:14px;line-height:1.65;color:#d8cec1}.detail-meta{margin:0;border-top:1px solid rgba(244,238,229,.12)}.detail-meta div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid rgba(244,238,229,.12);font-size:12px}.detail-meta dt{color:#9b9186}.detail-meta dd{margin:0;text-align:right}.detail-license{margin-top:24px;font-size:10px;line-height:1.6;color:#8e8479}.detail-license a{color:#d7b98c}.fallback{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:#14110f}.fallback-card{max-width:480px;padding:32px;border:1px solid rgba(215,185,140,.3);border-radius:8px;text-align:center}.fallback-card h1{margin:0 0 14px;font-family:Georgia,Times New Roman,serif;font-weight:500}.fallback-card p{margin:10px 0;line-height:1.6;color:#d3c9bb;font-size:14px}.fallback-reason{color:#e8a98f!important}.fallback-hint{font-size:12px!important;color:#8e8479!important}.virtual-joystick{position:absolute;left:24px;bottom:24px;width:120px;height:120px;z-index:4;border-radius:50%;touch-action:none;user-select:none}.joystick-ring,.joystick-knob{position:absolute;border-radius:50%;pointer-events:none}.joystick-ring{inset:0;border:1px solid rgba(244,238,229,.38);background:#14110f52;box-shadow:0 6px 24px #00000059}.joystick-knob{left:50%;top:50%;width:48px;height:48px;margin:-24px 0 0 -24px;border:1px solid rgba(244,238,229,.65);background:#d7b98c6b;box-shadow:0 3px 12px #0006}@media(pointer:fine)and (min-width:641px){.virtual-joystick{display:none}}@media(max-width:640px){.hud-title{top:16px;left:18px}.hud-room-description{max-width:28ch;font-size:11px}.hud-hint{top:16px;right:18px;max-width:40vw;font-size:10px}.hud-controls{left:156px;right:18px;bottom:20px;max-width:none;gap:6px 10px;font-size:10px}.hud-prompt{bottom:152px;font-size:12px;max-width:calc(100vw - 36px);white-space:normal}}
