*{box-sizing:border-box}html,body{margin:0;height:100%;background:#070605;color:#f4f1ea;font-family:Courier New,ui-monospace,monospace;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;overscroll-behavior:none}button,input{font-family:inherit}#app{height:100%;display:block}#top,#panel{display:none!important}#top{grid-column:1 / -1;display:none!important;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:8px 12px;background:#1a120e;color:#fc6;letter-spacing:.06em;font-size:13px}#top span{min-width:0}#stage{position:relative;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#000}canvas{width:auto;height:auto;max-width:100%;max-height:100%;image-rendering:pixelated;image-rendering:crisp-edges;background:#000;touch-action:none}#stage.crt:after{content:"";pointer-events:none;position:absolute;inset:0;background:repeating-linear-gradient(to bottom,rgba(0,0,0,.18) 0 1px,transparent 1px 3px);mix-blend-mode:multiply}#panel{grid-row:2 / span 2;min-width:0;overflow:auto;overflow-wrap:anywhere;background:#16130f;border-left:4px solid #3a2a1c;padding:12px;-webkit-overflow-scrolling:touch}#panel h2{margin:0 0 8px;font-size:18px;color:#fc6}#panel p,#panel li{font-size:14px;line-height:1.35}#panel .dim,#panel .stat{color:#c8b89a}#panel button,#touch button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;margin:4px;padding:8px 10px;background:#2a2118;color:#f4f1ea;border:3px solid #6b5332;border-bottom-color:#1a120c;border-right-color:#1a120c;cursor:pointer}#panel button:disabled{opacity:.4}#panel button:active,#touch button:active{transform:translate(1px,1px)}#panel .grid,#panel .row{display:flex;flex-wrap:wrap}#panel article{border-top:1px solid #3a2a1c;padding:8px 0}#panel input[type=text],#panel input:not([type]){min-height:44px;background:#0e0c0a;color:#fc6;border:2px solid #6b5332;padding:8px;width:100%}#panel input[type=range]{width:100%;min-height:44px}#panel .debug{margin-top:8px;border:1px dashed #ffcc66;padding:4px}#rotate{grid-column:1 / -1;background:#fc6;color:#1a120e;text-align:center;padding:8px 12px;font-weight:700}#touch{display:none;position:fixed;left:0;right:0;bottom:0;z-index:3;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px;background:#100e0ce0}#touch button{width:calc(100% - 8px);font-size:16px}body.show-touch.driving #touch{display:grid}@media(max-width:860px),(orientation:portrait){#app{grid-template-columns:1fr;grid-template-rows:auto minmax(120px,36vh) minmax(0,1fr) auto auto}#panel{grid-column:1;grid-row:3;max-height:none;min-height:0;border-left:0;border-top:4px solid #3a2a1c}#rotate{grid-row:4}#touch{grid-row:5}}@media(orientation:landscape)and (max-height:500px){#panel{max-height:none}}
