.prototype-main{padding:20px 0 35px}.prototype-intro{max-width:720px;margin-bottom:30px}.prototype-intro h1{font:clamp(36px,5vw,58px)/1.15 var(--serif);color:var(--gold);margin:15px 0 20px}.prototype-intro .device-note{font-size:12px;margin-top:15px;color:#c7cda5}.game-shell{position:relative;aspect-ratio:16/9;background:#151317;border:1px solid var(--line);max-width:960px;margin:auto;overflow:hidden}.game-shell canvas{display:block;width:100%;height:100%;outline-offset:-4px}.game-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:24px;text-align:center;background:radial-gradient(ellipse at center,#58433566,transparent 75%)}.game-cover h2{font-size:clamp(24px,4vw,40px);line-height:1.2;color:var(--gold);margin:20px 0 10px}.game-cover .button{cursor:pointer;margin-top:25px;max-width:300px}.game-loading{position:absolute;inset:0;background:#151317ed;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:25px;text-align:center}.game-loading p{max-width:560px;overflow-wrap:anywhere}.game-loading progress{width:min(320px,90%);accent-color:var(--gold)}.game-toolbar{max-width:960px;margin:14px auto 30px;display:flex;align-items:center;justify-content:space-between;gap:20px}.game-toolbar p{font-size:12px}.game-toolbar button{flex-shrink:0;border:1px solid var(--line);padding:9px 14px;background:#36302c;color:var(--text);cursor:pointer}.prototype-controls{border-top:1px solid var(--line);padding-top:25px;max-width:960px;margin:auto}.prototype-controls h2{font-size:30px;color:var(--gold)}.prototype-controls dl{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 25px;margin:22px 0}.prototype-controls dt{font-weight:600;font-size:13px}.prototype-controls dd{margin:4px 0 0;font-size:12px;color:var(--muted)}.prototype-controls>p{font-size:12px}.prototype-back{max-width:960px;margin:15px auto 0}.game-shell:fullscreen{max-width:none;width:100%;height:100%;border:0;background:#000;display:flex;justify-content:center;align-items:center}.game-shell:fullscreen canvas{width:min(100vw,177.777vh);height:min(100vh,56.25vw)}@media(max-width:600px){.prototype-main{padding-top:5px}.prototype-intro h1{font-size:38px}.game-toolbar{flex-wrap:wrap;gap:12px}.prototype-controls dl{grid-template-columns:1fr 1fr}.game-cover{padding:14px}.game-cover h2{margin:12px 0 5px}.game-cover .button{margin-top:14px;font-size:12px;padding:10px 15px}.game-cover .small-label{font-size:7px;letter-spacing:1px}}

.game-shell{aspect-ratio:auto}.game-viewport{position:relative;aspect-ratio:16/9;width:100%;background:#000}.game-viewport canvas{position:absolute;inset:0}.prototype-context{border-left:2px solid var(--gold);padding-left:16px;color:var(--muted);font-size:13px}.control-mode{max-width:960px;margin:0 auto 12px;display:flex;align-items:center;gap:12px;font-size:13px}.control-mode select{background:#36302c;color:var(--text);border:1px solid var(--line);padding:8px}.game-viewport,.touch-controls{touch-action:none;user-select:none;-webkit-user-select:none}.touch-controls{position:absolute;inset:0;pointer-events:none}.touch-controls button,.touch-stick{pointer-events:auto;touch-action:none}.stick-group{position:absolute;left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom))}.touch-stick{position:relative;width:86px;height:86px;border-radius:50%;border:2px solid #e5c68bb0;background:#332d3eb0;display:grid;place-items:center}.stick-knob{width:42px;height:42px;border-radius:50%;background:#c9ab79c9;z-index:1;pointer-events:none}.stick-arrows{position:absolute;color:#ede2ce;pointer-events:none;font-size:20px}.touch-controls button{border:1px solid #b79970aa;color:#fff4e0;background:#322b3cbb;min-height:40px;font-size:12px;padding:6px 10px}.touch-controls .touch-jump{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));width:76px;height:76px;border-radius:50%;font-weight:600;font-size:14px}.touch-actions{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));display:flex;align-items:center;gap:6px}.touch-status{font-size:12px;color:#fff0d0;padding:5px;background:#201c21bb;border-radius:4px;white-space:nowrap;max-width:145px;overflow:hidden;text-overflow:ellipsis}.touch-controls button:disabled,.touch-stick[aria-disabled="true"]{opacity:.45}.game-fullscreen{position:absolute;right:max(10px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));border:1px solid #b79970aa;background:#322b3ccc;color:#fff4e0;padding:8px 10px;min-height:40px;cursor:pointer;z-index:4;font-size:12px}.prototype-gameplay{margin-top:25px}.prototype-gameplay h3{color:var(--gold);font-family:var(--serif);font-size:22px}.prototype-gameplay ul{padding-left:20px;display:grid;gap:8px;font-size:13px}.prototype-gameplay p{font-size:12px}.game-shell:fullscreen,.game-shell.is-expanded{max-width:none;width:100%;height:100%;border:0;background:#000;display:flex;justify-content:center;align-items:center}.game-shell.is-expanded{position:fixed;inset:0;height:100dvh;z-index:1000}.game-shell:fullscreen .game-viewport,.game-shell.is-expanded .game-viewport{width:min(100vw,177.777dvh);height:min(100dvh,56.25vw);flex:none;aspect-ratio:16/9}.game-shell:fullscreen canvas,.game-shell.is-expanded canvas{position:absolute;width:100%;height:100%;inset:0}.game-shell:fullscreen .touch-controls,.game-shell.is-expanded .touch-controls{inset:auto;width:min(100vw,177.777dvh);height:min(100dvh,56.25vw)}body.game-expanded{overflow:hidden}@media(max-width:600px){.prototype-context{font-size:12px}.game-shell[data-touch="true"]{margin-left:calc(-1 * max(0px,(100vw - 100%)/2));width:100vw;max-width:none}.touch-stick{width:64px;height:64px}.stick-knob{width:32px;height:32px}.touch-controls .touch-jump{width:62px;height:62px}.stick-group,.touch-controls .touch-jump{bottom:8px}.touch-actions{left:6px;top:6px;gap:3px}.touch-status{font-size:10px;max-width:86px;padding:3px}.touch-controls button{font-size:10px;min-height:32px;padding:5px}.game-fullscreen{right:6px;top:6px;min-height:32px;font-size:10px;padding:5px}.prototype-gameplay ul{font-size:12px}}

.game-shell:fullscreen,.game-shell.is-expanded{margin:0}.game-shell:fullscreen .touch-controls,.game-shell.is-expanded .touch-controls{left:50%;top:50%;transform:translate(-50%,-50%)}

.prototype-gameplay ul{font-size:15px;line-height:1.6}.prototype-gameplay p{font-size:13px}@media(max-width:600px){.prototype-gameplay ul{font-size:14px}}

.touch-stick{background:#332d3e;box-shadow:0 0 0 6px #332d3e}

/* Use the visible viewport after mobile browser bars or native fullscreen change. */
.game-shell.is-expanded{inset:auto!important;left:var(--expanded-left,0px)!important;top:var(--expanded-top,0px)!important;width:var(--expanded-width,100vw)!important;height:var(--expanded-height,100dvh)!important;margin:0!important}.game-shell.is-expanded .game-viewport,.game-shell.is-expanded .touch-controls{width:var(--expanded-game-width,100vw)!important;height:var(--expanded-game-height,56.25vw)!important}.game-shell:fullscreen canvas,.game-shell.is-expanded canvas{width:100%!important;height:100%!important}

/* Keep the native top-center radar clear of the brush action strip. */
.touch-status{position:absolute;top:calc(100% + 4px);left:0}
/* Bleed to the content viewport, excluding the scrollbar, in either direction. */
@media(max-width:600px){.prototype-main .game-shell[data-touch="true"]:not(:fullscreen):not(.is-expanded){width:calc(100% + 30px);margin:0 -15px;max-width:none}}
