:root{color-scheme:light;--ink:#172025;--muted:#607079;--paper:#f3e8d4;--panel:rgba(255, 250, 239, 0.78);--line:rgba(93, 76, 55, 0.18);--shadow:0 18px 45px rgba(43, 33, 22, 0.18);--top-action-width:72px;--sound-action-width:86px;--top-action-gutter:12px}*{box-sizing:border-box}body,html{margin:0;width:100%;min-width:320px;min-height:100%;color:var(--ink);background:linear-gradient(rgba(48,122,155,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(48,122,155,.06) 1px,transparent 1px),#eadfc9;background-size:30px 30px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-x:hidden;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}.controls,.crash-overlay,.game-shell,.hud,.menu-modal,.orientation-hint,.stage,.topbar{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.game-shell{touch-action:manipulation}input,select,textarea{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}button{min-height:38px;border:1px solid rgba(88,70,48,.28);border-radius:8px;padding:0 13px;color:var(--ink);background:rgba(255,250,239,.82);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 2px 0 rgba(159,128,86,.45);font:inherit;font-weight:750;cursor:pointer;touch-action:manipulation}button.is-active,button:active{transform:translateY(1px);box-shadow:inset 0 1px 2px rgba(54,39,26,.18),0 1px 0 rgba(159,128,86,.3)}button:disabled{cursor:default;opacity:.54}.game-shell{width:min(1180px,calc(100vw - 24px),calc((100dvh - 74px) * 16 / 9));margin:10px auto}.game-shell:fullscreen{width:100vw;height:100dvh;margin:0;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#eadfc9}.game-shell:-webkit-full-screen{width:100vw;height:100dvh;margin:0;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#eadfc9}.game-shell:fullscreen .topbar{min-height:44px;margin-bottom:6px}.game-shell:-webkit-full-screen .topbar{min-height:44px;margin-bottom:6px}.game-shell:fullscreen .stage{height:calc(100dvh - 58px);min-height:0;aspect-ratio:auto}.game-shell:-webkit-full-screen .stage{height:calc(100dvh - 58px);min-height:0;aspect-ratio:auto}.topbar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;margin-bottom:8px;padding-right:calc(var(--top-action-width) + var(--top-action-gutter))}.brand{display:flex;align-items:baseline;gap:7px;min-width:0;padding-left:8px;text-shadow:0 1px 2px rgba(255,250,239,.72)}h1{margin:0;overflow:hidden;color:#2b2924;font-size:clamp(1.18rem, 2vw, 1.46rem);line-height:1.12;text-overflow:ellipsis;white-space:nowrap}.version{color:var(--muted);font-size:.62rem;font-weight:800}.readouts{flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}.fuel-gauge{display:flex;align-items:center;gap:7px;flex:0 1 170px;min-width:128px}.fuel-gauge span{color:var(--muted);font-size:.62rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.fuel-gauge meter{width:clamp(54px,7vw,92px);height:14px;overflow:hidden;border:1px solid rgba(89,71,48,.22);border-radius:999px;background:rgba(255,250,239,.72)}.fuel-gauge meter::-webkit-meter-bar{border:0;border-radius:999px;background:rgba(255,250,239,.72)}.fuel-gauge meter::-webkit-meter-optimum-value{border-radius:999px;background:linear-gradient(90deg,#d94a35,#f0a447,#f6d771)}.fuel-gauge strong{min-width:38px;font-size:.78rem;text-align:right}.level-picker{display:flex;align-items:center;gap:7px;min-width:0;flex:0 1 220px}.level-picker span{color:var(--muted);font-size:.68rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.level-picker select{min-width:0;width:100%;height:38px;border:1px solid rgba(88,70,48,.24);border-radius:8px;padding:0 9px;color:var(--ink);background:rgba(255,250,239,.82);box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 2px 0 rgba(159,128,86,.28);font:inherit;font-weight:750}.menu-card .level-picker{width:100%;flex:1 1 auto}.level-menu{display:grid;gap:7px}.level-menu>span{color:var(--muted);font-size:.68rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.level-button-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.level-button{justify-content:center;min-height:40px;padding:0 10px}.level-button.is-active{border-color:rgba(46,92,113,.34);background:rgba(213,239,247,.86)}.menu-sound-controls{display:grid;gap:8px;padding:9px;border:1px solid rgba(93,76,55,.12);border-radius:8px;background:rgba(255,250,239,.32)}.menu-sound-controls label{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:10px}.menu-sound-controls span{color:var(--muted);font-size:.72rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.menu-sound-controls input[type=range]{min-width:0;accent-color:#3d8d75}.top-actions{position:absolute;top:0;right:0;z-index:9;display:flex;flex-direction:column;gap:8px}.top-actions button{width:var(--sound-action-width);min-width:var(--sound-action-width)}.top-actions .sound-actions{display:flex;justify-content:flex-end;gap:6px}.top-actions .sound-button{width:40px;min-width:40px;padding:0;font-size:1.05rem}.top-actions .sound-fx-button{font-size:.68rem;font-weight:900}.sound-button.is-active{color:#17321f;background:rgba(207,236,193,.86)}.sound-button.is-muted{color:rgba(47,42,36,.56);background:rgba(255,252,244,.48)}.sound-button.is-unavailable{color:rgba(47,42,36,.48);background:rgba(235,230,219,.76)}.icon-button{width:40px;min-width:40px;padding:0;font-size:1.2rem;line-height:1}.icon-button svg{display:block;width:23px;height:23px;margin:auto}.icon-button svg path{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.stage{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:var(--shadow);aspect-ratio:16/9;min-height:min(62vh,675px);touch-action:none}canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.canvas-credit{position:absolute;left:50%;bottom:max(10px,env(safe-area-inset-bottom));z-index:5;width:max-content;max-width:calc(100% - 28px);margin:0;color:rgba(48,38,28,.58);font-size:.78rem;font-weight:700;line-height:1.2;text-align:center;white-space:nowrap;text-shadow:0 1px 0 rgba(255,250,239,.72);pointer-events:none;transform:translateX(-50%)}.canvas-credit a{color:rgba(48,38,28,.76);text-decoration:underline;text-underline-offset:2px;pointer-events:auto}.canvas-credit a:hover{color:var(--ink)}.stage-notice{position:absolute;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));z-index:7;max-width:min(320px,calc(100% - 40px));transform:translateX(-50%);padding:10px 14px;border:1px solid rgba(70,52,38,.22);border-radius:9px;background:rgba(255,249,235,.9);color:#34302a;font-weight:800;text-align:center;box-shadow:0 10px 24px rgba(62,40,24,.2)}.stage-notice[hidden]{display:none}.debug-perf-readout{position:absolute;top:10px;left:10px;z-index:5;padding:5px 7px;border:1px solid rgba(62,47,31,.18);border-radius:7px;background:rgba(255,250,239,.52);color:rgba(43,41,36,.86);font-size:.66rem;font-weight:850;font-variant-numeric:tabular-nums;line-height:1;pointer-events:none;text-shadow:0 1px 1px rgba(255,250,239,.72);white-space:nowrap;backdrop-filter:blur(7px)}.debug-perf-readout[hidden]{display:none}.debug-physics-rate-control{position:absolute;top:34px;left:10px;z-index:6;display:inline-flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid rgba(62,47,31,.18);border-radius:7px;background:rgba(255,250,239,.58);color:rgba(43,41,36,.86);font-size:.66rem;font-weight:850;line-height:1;text-shadow:0 1px 1px rgba(255,250,239,.72);white-space:nowrap;backdrop-filter:blur(7px)}.debug-physics-rate-control select{min-height:22px;border:1px solid rgba(62,47,31,.22);border-radius:6px;background:rgba(255,252,244,.84);color:#2f2a24;font:inherit;font-size:.68rem}.debug-physics-rate-control[hidden]{display:none}.debug-panel{position:absolute;top:max(176px,env(safe-area-inset-top));left:auto;right:max(455px,calc(env(safe-area-inset-right) + 455px));z-index:10;display:grid;width:min(245px,calc(100% - 20px));max-height:calc(100% - 20px);overflow:auto;padding:9px;border:1px solid rgba(62,47,31,.18);border-radius:8px;background:rgba(255,250,239,.58);color:rgba(43,41,36,.9);font-size:.68rem;font-weight:800;line-height:1.15;text-shadow:0 1px 1px rgba(255,250,239,.72);backdrop-filter:blur(8px)}.debug-panel[hidden]{display:none}.debug-panel.is-collapsed{width:auto;min-width:92px;overflow:visible}.debug-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:grab;touch-action:none;user-select:none}.debug-panel-header:active{cursor:grabbing}.debug-panel-header strong{font-size:.76rem}.debug-panel-body{display:grid;gap:8px;margin-top:8px}.debug-panel-body[hidden]{display:none}.debug-section{display:grid;gap:7px;min-width:0;border:1px solid rgba(62,47,31,.12);border-radius:7px;background:rgba(255,252,244,.36)}.debug-section summary{display:flex;align-items:center;gap:7px;min-height:27px;padding:5px 7px;color:rgba(43,41,36,.82);cursor:pointer;list-style:none;user-select:none}.debug-section summary::-webkit-details-marker{display:none}.debug-section summary::before{content:"+";display:grid;place-items:center;width:14px;height:14px;border:1px solid rgba(62,47,31,.18);border-radius:4px;background:rgba(255,252,244,.52);color:rgba(43,41,36,.72);font-size:.66rem;line-height:1}.debug-section[open]{padding-bottom:7px}.debug-section[open] summary::before{content:"-"}.debug-section-legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.debug-section>:not(summary){margin-right:7px;margin-left:7px}.debug-radio-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0;margin:0;padding:0;border:0}.debug-radio-group legend{grid-column:1/-1;margin-bottom:2px;padding:0;color:rgba(43,41,36,.74);font-size:.62rem;font-weight:850}.debug-radio-group label{display:flex;align-items:center;gap:5px;min-width:0;padding:4px 5px;border:1px solid rgba(62,47,31,.12);border-radius:7px;background:rgba(255,252,244,.44)}.debug-radio-group input{flex:0 0 auto}.debug-radio-group span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.debug-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.debug-checks label{display:flex;align-items:center;gap:5px;min-width:0;padding:4px 5px;border:1px solid rgba(62,47,31,.12);border-radius:7px;background:rgba(255,252,244,.44)}.debug-checks input{flex:0 0 auto}.debug-checks span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.debug-action-button{grid-column:1/-1;min-height:26px;border:1px solid rgba(62,47,31,.18);border-radius:7px;background:rgba(255,252,244,.52);color:rgba(43,41,36,.88);font:inherit;font-size:.62rem;font-weight:850}.debug-admin-actions{display:grid;gap:6px}.debug-admin-check{display:flex;align-items:center;gap:5px;min-width:0;padding:4px 5px;border:1px solid rgba(62,47,31,.12);border-radius:7px;background:rgba(255,252,244,.44)}.debug-wallet-control{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:6px}.debug-wallet-control span{color:rgba(43,41,36,.74);font-size:.62rem;font-weight:850}.debug-wallet-control input{min-width:0;height:24px;border:1px solid rgba(62,47,31,.2);border-radius:6px;background:rgba(255,252,244,.86);color:rgba(43,41,36,.88);font:inherit;font-size:.68rem;font-weight:850;text-align:right}.debug-wallet-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.debug-wallet-actions .debug-action-button{grid-column:auto}.debug-section-title{margin-top:2px;color:rgba(43,41,36,.74);font-size:.62rem;font-weight:850;text-transform:uppercase}.debug-tuning-list{display:grid;gap:7px}.debug-sound-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.debug-sound-previews button{min-width:0;min-height:25px;border:1px solid rgba(62,47,31,.18);border-radius:7px;background:rgba(255,252,244,.5);color:rgba(43,41,36,.88);font:inherit;font-size:.62rem;font-weight:850}.debug-tuning-control{display:grid;grid-template-columns:74px minmax(0,1fr) 48px;align-items:center;gap:6px}.debug-tuning-control span{overflow:hidden;color:rgba(43,41,36,.74);font-size:.62rem;text-overflow:ellipsis;white-space:nowrap}.debug-tuning-control input[type=range]{min-width:0;accent-color:#2d8eff}.debug-tuning-control input[type=number]{width:48px;min-width:0;height:24px;border:1px solid rgba(62,47,31,.2);border-radius:6px;padding:0 4px;background:rgba(255,252,244,.84);color:#2f2a24;font:inherit;font-size:.64rem;font-variant-numeric:tabular-nums}.debug-tuning-control select{grid-column:span 2;min-width:0;height:24px;border:1px solid rgba(62,47,31,.2);border-radius:6px;padding:0 5px;background:rgba(255,252,244,.84);color:#2f2a24;font:inherit;font-size:.64rem}.hud{position:static;z-index:4;flex:0 1 auto;display:flex;flex-wrap:wrap;gap:6px;min-width:0;pointer-events:none}.stat-air{display:none}.crash-overlay,.editor-panel,.menu-card{border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:0 10px 25px rgba(43,33,22,.12);backdrop-filter:blur(9px)}.hud>div{flex:0 1 max-content;min-width:66px;padding:5px 7px;border:1px solid rgba(93,76,55,.1);border-radius:7px;background:rgba(255,250,239,.42);box-shadow:0 5px 16px rgba(43,33,22,.07);backdrop-filter:blur(7px)}.hud-label{display:block;color:var(--muted);font-size:.58rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}.hud strong{display:block;margin-top:1px;font-size:clamp(.76rem, 1.2vw, .88rem);font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}.menu-modal{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:14px;background:rgba(45,33,23,.18);backdrop-filter:blur(4px)}.menu-modal[hidden]{display:none}.menu-card{display:grid;gap:12px;width:min(520px,100%);max-height:100%;overflow:auto;overflow-x:hidden;padding:14px}.shop-card{width:min(460px,100%)}.menu-header,.store-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.menu-header strong,.store-header strong{font-size:1.05rem}.menu-actions{display:flex;flex-wrap:wrap;gap:8px}.reset-game-card p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.35}.welcome-modal{z-index:12}.welcome-card{display:flex;flex-direction:column;width:min(430px,100%);height:min(360px,calc(90dvh - 28px));max-height:calc(90dvh - 28px);overflow:hidden}.tutorial-carousel{display:grid;grid-template-rows:auto 16px;gap:11px;flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:2px}.tutorial-card{display:none;gap:8px;min-height:150px;min-width:0;align-content:center;justify-items:center;overflow:visible;padding:10px;border:1px solid rgba(104,81,52,.18);border-radius:8px;background:linear-gradient(180deg,rgba(255,252,244,.84),rgba(243,229,203,.7));box-shadow:inset 0 1px 0 rgba(255,255,255,.42);text-align:center}.tutorial-card.is-active{display:grid}.tutorial-icon{display:inline-grid;place-items:center;justify-self:center;min-width:54px;min-height:38px;padding:0 10px;border:1px solid rgba(62,47,31,.14);border-radius:7px;background:rgba(255,250,239,.74);color:rgba(30,42,45,.9);font-size:.92rem;font-weight:950;letter-spacing:0}.tutorial-pickup-icon{width:64px;min-width:64px;height:64px;min-height:64px;padding:0;border:0;border-radius:0;background:0 0;box-shadow:none}.tutorial-pickup-icon[data-tutorial-pickup=coin]{width:44px;min-width:44px;height:44px;min-height:44px}.tutorial-finish-icon{width:64px;min-width:64px;height:64px;min-height:64px;padding:0;border:0;border-radius:0;background:0 0;box-shadow:none}.tutorial-card h2{margin:0;color:#20282a;font-size:1.18rem;line-height:1.08}.tutorial-card p{margin:0;color:rgba(45,52,51,.74);font-size:.92rem;font-weight:720;line-height:1.35;max-width:34ch}.tutorial-dots{display:flex;justify-content:center;gap:8px}.tutorial-dot{width:11px;min-width:11px;height:11px;min-height:11px;padding:0;border:1px solid rgba(62,47,31,.24);border-radius:999px;background:rgba(255,250,239,.66);box-shadow:none}.tutorial-dot.is-active{width:24px;background:#3b8fab;border-color:rgba(35,113,140,.45)}.welcome-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:0 0 auto;gap:8px}.welcome-actions button{min-width:0}.welcome-actions button[hidden]{display:none}.danger-link-button{color:#84392f}.danger-button{border-color:rgba(147,53,41,.45);color:#fff7f0;background:linear-gradient(#d86352,#ad4234);box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 2px 0 rgba(112,44,35,.42)}.store-panel{display:grid;gap:9px;padding-top:2px}.store-panel.is-highlighted{animation:shopPulse 620ms ease-out}@keyframes shopPulse{0%{filter:drop-shadow(0 0 0 rgba(78, 156, 89, 0))}35%{filter:drop-shadow(0 0 16px rgba(78, 156, 89, .32))}100%{filter:drop-shadow(0 0 0 rgba(78, 156, 89, 0))}}.store-header span,.upgrade-meta{color:var(--muted);font-size:.76rem;font-weight:800}.upgrade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.upgrade-button{display:grid;gap:7px;min-height:64px;padding:9px;border-color:rgba(104,81,52,.24);background:linear-gradient(180deg,rgba(255,252,244,.88),rgba(243,229,203,.78));text-align:left}.upgrade-button.is-affordable{border-color:rgba(60,129,82,.32)}.upgrade-button.is-unaffordable{opacity:.68}.upgrade-button.is-maxed{border-color:rgba(36,115,72,.38);background:linear-gradient(180deg,rgba(236,255,233,.9),rgba(206,239,204,.78))}.upgrade-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%}.upgrade-title{align-self:center;color:#27312c;font-size:.92rem;font-weight:900;line-height:1.05}.upgrade-meta{justify-self:end;align-self:center;white-space:nowrap}.upgrade-meter{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;width:100%;padding:4px;border:1px solid rgba(77,60,39,.2);border-radius:8px;background:rgba(84,65,42,.12);box-shadow:inset 0 1px 2px rgba(61,45,28,.16)}.upgrade-segment{display:block;height:13px;border:1px solid rgba(73,57,38,.18);border-radius:5px;background:rgba(255,250,239,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.upgrade-segment.is-filled{border-color:rgba(37,119,71,.38);background:linear-gradient(180deg,rgba(107,208,112,.94),rgba(47,146,79,.88));box-shadow:inset 0 1px 0 rgba(238,255,224,.66),0 3px 8px rgba(52,124,67,.18)}.upgrade-button.is-editor-testing .upgrade-meter{cursor:pointer}.upgrade-button.is-editor-testing .upgrade-segment:hover{border-color:rgba(49,88,142,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 0 0 2px rgba(88,139,207,.18)}#storeStatus{min-height:18px;color:var(--muted);font-size:.78rem;font-weight:750}.crash-overlay{position:absolute;top:50%;left:50%;z-index:7;display:grid;justify-items:center;gap:7px;width:min(250px,calc(100% - 32px));padding:16px;text-align:center;transform:translate(-50%,-50%)}.crash-overlay[hidden]{display:none}.crash-overlay strong{font-size:1.35rem}.crash-overlay span{color:var(--muted);font-size:.86rem}.run-overlay-actions{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:8px}.run-overlay-actions button{min-width:92px}.run-overlay-actions button[hidden]{display:none}.crash-overlay.is-complete{border-color:rgba(71,122,82,.32);background:rgba(247,255,236,.88)}.crash-overlay.is-complete strong{color:#356942}.orientation-hint{position:absolute;inset:auto 18px max(94px,env(safe-area-inset-bottom)) 18px;z-index:6;display:none;padding:12px 14px;border:1px solid rgba(93,76,55,.16);border-radius:8px;background:rgba(255,250,239,.76);box-shadow:0 14px 32px rgba(43,33,22,.14);text-align:center;backdrop-filter:blur(9px)}.orientation-hint span,.orientation-hint strong{display:block}.orientation-hint span{margin-top:2px;color:var(--muted);font-size:.82rem}.editor-panel{position:absolute;top:max(176px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));z-index:6;display:grid;gap:9px;width:min(430px,calc(100% - 20px));max-height:calc(100% - 114px);overflow:auto;padding:12px}.editor-panel[hidden]{display:none}.editor-panel.is-collapsed{width:auto;min-width:210px}.editor-panel.is-notice{width:min(300px,calc(100% - 20px))}.editor-panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}.editor-panel-header:active{cursor:grabbing}.editor-panel-header strong{font-size:.95rem}.editor-panel-title{display:flex;align-items:center;gap:8px;min-width:0}.editor-panel-title-stack{display:grid;gap:1px;min-width:0}.editor-cursor-distance{color:rgba(53,44,34,.66);display:grid;font-size:.78rem;font-weight:850;gap:1px;line-height:1.02;white-space:nowrap}.editor-coordinate-line{display:grid;font-variant-numeric:tabular-nums;grid-template-columns:16px 5ch 12px;justify-content:end}.editor-coordinate-label{text-align:left}.editor-coordinate-value{text-align:right}.editor-coordinate-unit{text-align:left}.editor-cursor-distance[hidden]{display:none}.editor-tool-note{display:block;color:rgba(53,44,34,.7);font-size:.68rem;font-weight:850;line-height:1;white-space:nowrap}.editor-panel-actions{display:flex;align-items:center;gap:6px}.editor-body[hidden]{display:none}.editor-content{display:grid;gap:8px}.editor-desktop-notice{display:grid;gap:5px;max-width:280px}.editor-desktop-notice[hidden]{display:none}.editor-desktop-notice span{color:var(--muted);font-size:.86rem;line-height:1.35}.editor-copy{display:grid;gap:2px}.editor-section{display:grid;gap:7px;padding-top:2px}.editor-section+.editor-section{border-top:1px solid rgba(93,76,55,.13);padding-top:9px}.editor-advanced summary,.editor-section-title{color:var(--muted);font-size:.68rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.editor-advanced summary{cursor:pointer;list-style-position:outside}.editor-advanced:not([open])>:not(summary){display:none}.editor-advanced textarea{margin-top:7px}.editor-selection-status{min-height:26px;border:1px solid rgba(88,70,48,.12);border-radius:7px;padding:6px 8px;color:var(--muted);background:rgba(255,252,246,.42);font-size:.78rem;font-weight:750}.editor-field{display:grid;gap:4px}.editor-field label{color:var(--muted);font-size:.68rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.editor-field input,.editor-field select,.editor-panel textarea{width:100%;border:1px solid rgba(88,70,48,.22);border-radius:7px;color:var(--ink);background:rgba(255,252,246,.72);font:inherit;font-weight:650}.editor-field input,.editor-field select{min-height:36px;padding:0 10px}.editor-panel textarea{min-height:82px;resize:vertical;padding:9px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:.74rem;line-height:1.35}.editor-spawn-row{display:grid;grid-template-columns:1fr;gap:4px}.editor-spawn-slider{width:100%;min-width:0;accent-color:#327f9d}.editor-spawn-readout{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.editor-tools{display:flex;flex-wrap:wrap;gap:7px}.editor-tools button{position:relative;display:grid;place-items:center;width:40px;min-width:40px;min-height:36px;padding:0;font-size:1.08rem;line-height:1}.editor-tools button::after{content:attr(data-shortcut);position:absolute;top:3px;right:4px;color:rgba(96,112,121,.78);font-size:.55rem;font-weight:850}.editor-tools button.is-active{border-color:rgba(27,114,153,.55);background:rgba(221,244,255,.84)}.editor-tool-actions{padding-top:2px}.editor-wide-action{min-width:128px;min-height:34px;padding:0 14px;justify-content:center}.editor-copy span,.editor-panel output{color:var(--muted);font-size:.78rem}.editor-actions{display:flex;flex-wrap:wrap;gap:7px}.controls{position:absolute;left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:5;display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none}.controls button{pointer-events:auto;user-select:none;-webkit-user-select:none;touch-action:none}.pedal{display:flex;align-items:center;justify-content:center;width:clamp(82px,16vw,130px);height:clamp(62px,13vw,96px);padding:0;border-color:rgba(69,51,35,.24);border-radius:14px;background:rgba(255,250,239,.34);color:rgba(54,41,29,.82);font-size:clamp(2rem, 5vw, 3.4rem);letter-spacing:0;line-height:1;text-transform:uppercase;text-shadow:0 1px 0 rgba(255,255,255,.52);backdrop-filter:blur(8px) saturate(1.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.48),inset 0 -12px 22px rgba(31,24,18,.08),0 9px 20px rgba(64,50,36,.12)}.pedal.is-active{transform:translateY(2px);background:rgba(255,238,202,.5);box-shadow:inset 0 2px 8px rgba(87,62,37,.22),0 5px 12px rgba(64,50,36,.18)}@media (orientation:portrait) and (max-width:760px){body,html{height:100%;overflow:hidden}.game-shell{position:fixed;top:0;left:100vw;width:100dvh;height:100vw;margin:0;overflow:hidden;background:#eadfc9;transform:rotate(90deg);transform-origin:top left}.topbar{position:absolute;top:max(6px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-bottom));z-index:8;min-height:44px;margin:0;padding:0 calc(var(--sound-action-width) + var(--top-action-gutter) + 8px) 0 0;gap:4px;pointer-events:none}.topbar button,.topbar select{pointer-events:auto}.brand{flex:0 0 188px;padding:6px 0 6px 10px}.brand h1{max-width:none;font-size:1rem}.version{font-size:.52rem}.readouts{justify-content:center;gap:12px}.fuel-gauge{flex:0 0 auto;gap:3px;min-width:0}.fuel-gauge strong{width:34px;min-width:34px;text-align:left}.top-actions{flex-direction:column;gap:4px}#fullscreenButton{display:none}.level-picker{flex:0 1 158px}.level-picker span{display:none}.stage{width:100dvh;height:100vw;min-height:0;border:0;border-radius:0;box-shadow:none;aspect-ratio:auto}.orientation-hint{display:none}.controls{top:auto;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));flex-direction:row;align-items:flex-end}.pedal{width:clamp(78px,14dvh,86px);height:clamp(68px,15dvh,100px)}.hud{flex:0 1 auto;flex-wrap:nowrap;gap:4px;min-width:0}.hud>div{flex-basis:max-content;min-width:50px;padding:4px 5px}.hud>div:first-child,.hud>div:nth-child(2){min-width:64px}.hud-label{font-size:.52rem}.hud strong{font-size:.76rem}.editor-panel{top:104px;width:min(430px,calc(100% - 20px));max-height:calc(100% - 114px)}}@media (orientation:landscape) and (max-height:520px) and (max-width:980px){body,html{height:100%;overflow:hidden}.game-shell,.game-shell:-webkit-full-screen,.game-shell:fullscreen{width:100vw;height:100dvh;margin:0;padding:0;overflow:hidden;background:#eadfc9}.topbar{position:absolute;top:max(6px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));left:max(8px,env(safe-area-inset-left));z-index:8;min-height:44px;margin:0;padding:0 calc(var(--sound-action-width) + var(--top-action-gutter) + 8px) 0 0;gap:6px;pointer-events:none}.topbar button,.topbar select{pointer-events:auto}.brand{flex:0 0 188px;padding:6px 0 6px 10px}.brand h1{max-width:none;font-size:1rem}.version{font-size:.52rem}.readouts{justify-content:center;gap:12px}.fuel-gauge{flex:0 0 auto;gap:3px;min-width:0}.fuel-gauge strong{width:34px;min-width:34px;text-align:left}.top-actions{flex-direction:column;gap:6px}#fullscreenButton{display:none}.level-picker{flex:0 1 158px}.level-picker span{display:none}.game-shell:-webkit-full-screen .stage,.game-shell:fullscreen .stage,.stage{width:100vw;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none;aspect-ratio:auto}.pedal{width:clamp(78px,15vw,118px);height:clamp(58px,12vw,88px)}.hud{flex:0 1 auto;flex-wrap:nowrap;gap:4px;min-width:0}.hud>div{flex-basis:max-content;min-width:50px;padding:4px 5px}.hud>div:first-child,.hud>div:nth-child(2){min-width:64px}.hud-label{font-size:.52rem}.hud strong{font-size:.76rem}.editor-panel{top:104px;width:min(430px,calc(100% - 20px));max-height:calc(100% - 114px)}}