:root{font-family:"Segoe UI",system-ui,-apple-system,sans-serif;color:#314331;background:#f7f3eb;font-synthesis:none;--ink:#314331;--muted:#85917c;--green:#496b4b;--coral:#da8d7e;--line:#e3e6d9}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 0 0,#e5ecda80,transparent 50%),radial-gradient(ellipse at 100% 100%,#f6ddcb50,transparent 50%);min-height:100dvh}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s,transform .15s,box-shadow .15s}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,#pad:focus-visible{outline:3px solid #d5ad61;outline-offset:4px}button:disabled{cursor:default;opacity:.45}button,canvas,#pad{touch-action:none}h1,h2,h3,p{margin:0}.shell{max-width:1240px;margin:0 auto;padding:26px 36px 18px}.topbar{display:flex;align-items:center;gap:12px;margin-bottom:18px}.brand{display:flex;align-items:center;gap:12px;flex:1}.brand-mark{width:48px;height:48px;display:grid;place-items:center;background:var(--coral);border-radius:16px;transform:rotate(-7deg);box-shadow:inset 0 -3px #be74663d,0 5px 12px #aa8d7a17}.brand-mark svg{width:30px;height:30px;fill:#fff8ed;stroke:#fff8ed;stroke-width:3;stroke-linecap:round}.eyebrow{display:block;font-size:10px;letter-spacing:1.8px;font-weight:750;color:var(--muted)}h1{font-size:26px;letter-spacing:-1.2px;line-height:1.25}h1 span{color:var(--coral)}.levels-button{display:flex;align-items:center;gap:8px;border:1px solid #dde3d2;background:#edf1e5;border-radius:14px;height:43px;padding:0 14px;color:var(--green);font-size:12px;font-weight:700}.levels-button svg{height:16px;width:16px;fill:currentColor}.icon-button{width:42px;height:42px;background:#ffffff60;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:var(--ink);flex-shrink:0}.icon-button svg{width:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.icon-button.muted{opacity:.5}
.journey{display:flex;align-items:center;justify-content:space-between;position:relative;padding-bottom:12px;margin-bottom:18px;font-size:11px;color:#8a927f}.journey>span:first-child{display:flex;gap:7px;align-items:center;font-weight:650;color:#667c59}.journey i{width:7px;height:7px;border-radius:50%;background:#bdcba1}.journey-track{position:absolute;left:0;bottom:0;width:100%;height:3px;border-radius:5px;overflow:hidden;background:#e7e9db}.journey-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,#9fb888,#d2ae77);border-radius:5px;transition:width .4s}
.play-area{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.stage-wrap{position:relative;background:#edf1e4;border:1px solid #dfe5d5;border-radius:30px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 10px 28px #58644a0b}.stage-heading{position:absolute;left:26px;right:26px;top:22px;display:flex;justify-content:space-between;align-items:center;z-index:2;pointer-events:none}.stage-heading h2{font-size:23px;letter-spacing:-.7px;margin-top:5px}.safe-tag{font-size:10px;font-weight:650;color:#688160;background:#f7fbedc9;padding:8px 11px;border:1px solid #d5dfc880;border-radius:20px}.safe-tag:before{content:'•';margin-right:5px;color:#82a66d}.safe-tag.risky{color:#a56e57;background:#fff0ddcc;border-color:#e6cdae}.safe-tag.risky:before{color:#d49c56}#stage{height:clamp(430px,64vh,610px);width:100%;min-height:400px;position:relative}#stage canvas{display:block;width:100%;height:100%}.toast{position:absolute;bottom:63px;left:50%;transform:translateX(-50%);padding:10px 16px;font-size:11px;font-weight:600;color:#617854;background:#fffff4ed;border:1px solid #e2e6d2;border-radius:30px;max-width:92%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;pointer-events:none;box-shadow:0 3px 10px #4453320c}.toast.good{color:#3c7048;background:#eff7e8}.toast.warn{color:#a5665b;background:#fff0e9}.stage-footer{padding:14px 23px;border-top:1px solid #d9dfce;display:flex;align-items:center;gap:8px;font-size:11px;color:#7c8971;min-height:49px;background:#f4f6eccc}.tiny-dot{width:5px;height:5px;border-radius:50%;background:#97ae80;flex-shrink:0}.stage-footer #subtitle{line-height:1.4}.stage-footer button{margin-left:auto;border:0;background:none;font-size:11px;color:var(--green);white-space:nowrap;padding:5px}.stage-footer button span{font-weight:800;margin-right:4px}
.dashboard{padding:22px;background:#fffdf6;border:1px solid #e7e6d9;border-radius:26px;display:flex;flex-direction:column;box-shadow:0 7px 24px #5f64420a}.order-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.order-heading #progress{font-size:12px;color:var(--green);font-weight:700;background:#edf1e5;padding:3px 9px;border-radius:12px}.orders{display:flex;gap:8px}.order-card{flex:1;border:1px solid var(--line);border-radius:17px;min-width:0;padding:13px 4px 11px;text-align:center;background:#faf9f1;position:relative;color:var(--ink)}.order-card svg{width:31px;height:31px;display:block;margin:0 auto 7px}.order-card .order-name{display:block;font-size:11px;font-weight:700}.order-card .order-state{display:block;font-size:9px;color:#8b947e;margin-top:5px;min-height:12px}.order-card.clamped{border-color:#c5a966;background:#fff1ce;box-shadow:inset 0 0 0 1px #dfc78f44}.order-card.clamped:before{content:'⌁';position:absolute;top:4px;right:6px;color:#a38a49;font-size:16px}.order-card.delivered{background:#edf4e5;border-color:#c9dabd}.order-card.delivered .order-state{color:#577d49}.order-card.delivered:before{content:'✓';position:absolute;top:4px;right:6px;color:#689153;font-size:13px}
.control-section{margin-top:23px}.control-heading{display:flex;align-items:center;justify-content:space-between}.control-heading h3{font-size:19px;letter-spacing:-.6px}.help-button{width:30px;height:30px;border:1px solid #dce3d2;background:#fafbf5;border-radius:50%;font-size:13px;color:#7c8a6e}.control-caption{font-size:11px;line-height:1.55;color:#7e8c72;margin-top:5px;max-width:220px}.tip{font-size:10px;line-height:1.5;color:#a08f72;margin-top:8px}.control-pad{height:151px;position:relative;overflow:hidden;margin-top:14px;background:radial-gradient(circle at center,#f8f9ee,#edf1e2);border:1px solid #dce4cf;border-radius:22px;cursor:grab;user-select:none;box-shadow:inset 0 -3px #dae3ce40}.control-pad.dragging{cursor:grabbing;background:#e8eddb}.pad-axis{position:absolute;background:#d9e0cb}.horizontal{left:22px;right:22px;top:50%;height:1px}.vertical{top:20px;bottom:20px;left:50%;width:1px}.pad-ring{position:absolute;left:50%;top:50%;width:87px;height:87px;border:1px dashed #cad6ba;border-radius:50%;transform:translate(-50%,-50%)}.pad-arrow{position:absolute;color:#a6b794;font-size:17px}.arrow-top{top:6px;left:calc(50% - 5px)}.arrow-bottom{bottom:6px;left:calc(50% - 5px)}.arrow-left{left:10px;top:calc(50% - 12px)}.arrow-right{right:10px;top:calc(50% - 12px)}.support-dot{position:absolute;left:50%;top:50%;width:36px;height:36px;border-radius:50%;background:linear-gradient(145deg,#6d8d5f,#496b4b);box-shadow:0 4px 9px #576b4930,0 0 0 7px #57724c12;transform:translate(-50%,-50%);display:grid;place-items:center;pointer-events:none}.support-dot span{height:8px;width:8px;border-radius:50%;background:#f0f4dc}
.clamp-status{display:flex;align-items:center;gap:11px;margin-top:16px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.clamp-symbol{width:31px;height:31px;border-radius:10px;background:#f5eddb;display:grid;place-items:center;color:#b29758}.clamp-symbol svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.clamp-status .eyebrow{font-size:8px;letter-spacing:1.3px}.clamp-status strong{display:block;font-weight:650;font-size:12px;margin-top:3px}.clamp-status button{margin-left:auto;font-size:11px;padding:8px 12px;background:#f6ecd5;border:1px solid #e3d3ac;border-radius:11px;color:#a0864c}.action-row{display:flex;gap:8px;margin-top:auto;padding-top:17px}.action-row button{flex:1;min-height:42px;padding:9px 7px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:13px;font-weight:650;font-size:11px}.action-row svg{width:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.balance-button{color:#f7f9ed;border:1px solid #496b4b;background:#55764f;box-shadow:0 3px 0 #405f3d}.reset-button{color:#78846b;border:1px solid #dfe4d5;background:#f6f7ee}.page-footer{display:flex;justify-content:space-between;font-size:10px;color:#a0a18d;margin-top:16px;gap:12px}
.modal-layer{position:fixed;inset:0;z-index:20;background:#333f2b55;backdrop-filter:blur(9px);display:grid;place-items:center;padding:20px;overflow-y:auto}.modal-layer[hidden]{display:none}.modal-card{width:390px;max-width:100%;max-height:calc(100dvh - 40px);overflow-y:auto;padding:28px 31px 24px;border:1px solid #ffffffa6;border-radius:30px;background:linear-gradient(160deg,#fffdf5,#f6f3e7);box-shadow:0 24px 70px #27351f28;text-align:center}.modal-kicker{font-size:9px;letter-spacing:2.4px;font-weight:750;color:#9ba186}.modal-illustration{height:80px;position:relative;width:130px;margin:18px auto 12px}.illustration-tray{position:absolute;width:130px;height:13px;left:0;bottom:8px;background:#aec092;border-radius:2px 2px 10px 10px;transform:rotate(-5deg)}.illustration-tray:after{content:'';position:absolute;left:64px;top:12px;width:8px;height:12px;background:#839b70;border-radius:3px}.illustration-olive{position:absolute;left:8px;bottom:21px;width:28px;height:30px;background:#6a965d;border-radius:50%;box-shadow:inset -6px -4px #57814c}.illustration-cheese{position:absolute;left:44px;bottom:23px;width:32px;height:30px;background:#edc059;clip-path:polygon(0 100%,0 45%,100% 0,100% 100%)}.illustration-cup{position:absolute;left:84px;bottom:28px;width:28px;height:32px;background:#df9b96;border-radius:4px 4px 11px 11px}.illustration-cup:after{content:'';position:absolute;width:12px;height:14px;border:4px solid #df9b96;border-radius:50%;right:-10px;top:3px}.modal-card h2{font-size:31px;line-height:1.13;letter-spacing:-1.2px;margin-bottom:16px}.modal-card p{font-size:12px;color:#7c8770;line-height:1.65}.modal-card ol{text-align:left;padding:0;list-style:none;margin:19px 0;counter-reset:steps}.modal-card li{font-size:11px;line-height:1.65;color:#818a74;margin:12px 0;padding-left:28px;position:relative}.modal-card li:before{counter-increment:steps;content:counter(steps);position:absolute;left:0;top:1px;width:20px;height:20px;display:grid;place-items:center;border-radius:7px;background:#e7ecd9;color:#778b64;font-size:10px;font-weight:700}.modal-card b{color:#4e6244;font-weight:700}.modal-card .modal-note{font-size:10px;color:#9c9e8b}.primary-button{background:#536f4d;color:#faffed;border:0;border-radius:15px;min-height:48px;width:100%;font-weight:700;font-size:13px;margin-top:21px;display:flex;align-items:center;justify-content:center;gap:19px;box-shadow:0 4px 0 #415c3e}.secondary-button{border:0;background:transparent;color:#899276;font-size:12px;margin-top:17px}.secondary-button[hidden]{display:none}
.level-layer{z-index:25}.level-sheet{width:550px;max-width:100%;max-height:calc(100dvh - 40px);overflow-y:auto;border-radius:29px;padding:28px;background:#fffdf5;box-shadow:0 24px 70px #27351f28}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.sheet-heading h2{font-size:29px;letter-spacing:-1px;margin-top:5px}.sheet-caption{font-size:11px;line-height:1.6;color:#909781;margin:12px 0 21px;max-width:390px}.chapter-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 0 10px;font-size:12px;color:#667e56;font-weight:700}.chapter-heading span{font-size:9px;font-weight:500;color:#9da28c}.chapter-heading:before{content:'';width:7px;height:7px;background:#becba3;border-radius:50%;margin-right:7px}.chapter-heading b{margin-right:auto}.chapter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.level-card{position:relative;min-height:90px;border:1px solid #e3e6d6;background:#f4f5eb;border-radius:16px;padding:11px 7px;color:#667b57;text-align:left}.level-card strong{display:block;font-size:20px;letter-spacing:-.7px;font-weight:600;line-height:1}.level-card .level-name{display:block;font-size:10px;line-height:1.25;margin-top:9px;font-weight:650}.level-card .level-indicator{position:absolute;right:10px;top:10px;font-size:12px;color:#91a676}.level-card.active{background:#fff0d6;border-color:#cbb176;color:#95713d}.level-card.complete{background:#e8f0dd;border-color:#ccdcc0}.level-card.complete .level-indicator{color:#577f49}.sheet-footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e6e8d9;margin-top:24px;padding-top:16px;color:#9b9f89;font-size:10px}.sheet-footer span:first-child{color:#68865a;font-weight:650}.result-count{display:block;font-size:38px;font-weight:650;color:#5b804e;letter-spacing:-2px;margin:12px 0 3px}.fatal{position:absolute;inset:90px 20px 30px;text-align:center;display:grid;place-content:center;color:#b56f65;line-height:1.7;font-size:14px}.confetti{position:fixed;pointer-events:none;top:30%;left:50%;width:7px;height:11px;border-radius:2px;z-index:22;animation:confetti 1.5s ease-out forwards}@keyframes confetti{to{transform:translate(var(--dx),var(--dy)) rotate(480deg);opacity:0}}
@media(min-width:1450px){.shell{padding-top:40px}}
@media(max-width:900px){.shell{padding:18px 18px 12px}.play-area{grid-template-columns:minmax(0,1fr) 275px;gap:16px}.dashboard{padding:17px}.stage-heading{left:19px;right:19px}.stage-heading h2{font-size:21px}.safe-tag{font-size:9px;padding:6px 8px}.stage-footer{padding:12px 16px;font-size:10px}.stage-footer #subtitle{max-width:72%}.journey{margin-bottom:13px}#stage{min-height:410px}}
@media(max-width:620px){.shell{padding:13px 13px 12px}.topbar{margin-bottom:12px;gap:8px}.brand{gap:9px}.brand-mark{width:36px;height:36px;border-radius:12px}.brand-mark svg{width:24px}h1{font-size:22px}.brand .eyebrow{font-size:7px;letter-spacing:1.6px}.levels-button{height:36px;padding:0 10px;font-size:10px;gap:6px;border-radius:12px}.levels-button svg{height:13px;width:13px}.icon-button{width:35px;height:35px}.icon-button svg{width:16px}.journey{font-size:9px;padding-bottom:9px;margin-bottom:11px}.play-area{display:flex;flex-direction:column;gap:13px}.stage-wrap{border-radius:24px}.stage-heading{top:16px;left:18px;right:18px}.stage-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.stage-heading h2{font-size:19px;margin-top:4px}.safe-tag{font-size:8px;padding:6px 8px}#stage{height:clamp(260px,36svh,360px);min-height:260px}.toast{bottom:45px;font-size:10px;padding:7px 12px}.stage-footer{min-height:36px;padding:8px 14px;font-size:9px}.stage-footer button{font-size:10px;padding:2px}.dashboard{padding:15px 15px 13px;border-radius:22px}.order-heading{margin-bottom:9px}.order-heading .eyebrow{font-size:8px;letter-spacing:1.6px}.order-heading #progress{font-size:10px}.orders{gap:8px}.order-card{display:grid;grid-template-columns:30px 1fr;grid-template-rows:1fr 1fr;align-items:center;padding:9px 7px;text-align:left;border-radius:13px;min-height:59px}.order-card svg{grid-row:1 / span 2;width:27px;height:27px;margin:0}.order-card .order-name{font-size:10px;align-self:end;line-height:1.3}.order-card .order-state{font-size:8px;margin-top:2px;line-height:1.3;align-self:start}.order-card.clamped:before,.order-card.delivered:before{font-size:11px;top:1px;right:3px}.control-section{display:grid;grid-template-columns:1fr 1.12fr;gap:14px;margin-top:16px;align-items:center}.control-heading h3{font-size:17px;letter-spacing:-.6px}.help-button{width:24px;height:24px;font-size:12px}.control-caption{font-size:10px;line-height:1.5;margin-top:5px}.tip{font-size:9px;line-height:1.45;margin-top:6px}.control-pad{height:116px;margin:0;border-radius:19px}.pad-ring{width:66px;height:66px}.support-dot{width:30px;height:30px;box-shadow:0 3px 7px #576b4930,0 0 0 5px #57724c12}.pad-arrow{font-size:15px}.clamp-status{padding:9px 0;margin-top:12px;gap:9px}.clamp-status strong{font-size:11px}.clamp-status .eyebrow{font-size:7px}.clamp-symbol{width:28px;height:28px;border-radius:9px}.clamp-status button{padding:6px 10px;font-size:10px}.action-row{padding-top:11px;gap:9px}.action-row button{min-height:39px;font-size:11px}.page-footer{font-size:8px;margin-top:12px}.modal-card{padding:23px 25px 21px}.modal-card h2{font-size:29px}.level-sheet{padding:22px 20px;border-radius:24px}.sheet-heading h2{font-size:26px}.sheet-caption{font-size:10px;margin-bottom:16px}.chapter-grid{gap:7px}.level-card{min-height:84px;border-radius:13px;padding:10px 6px}.level-card strong{font-size:19px}.level-card .level-name{font-size:9px}.level-card .level-indicator{right:6px;top:8px;font-size:10px}.chapter-heading{margin-top:18px;font-size:11px}.chapter-heading span{font-size:8px}.sheet-footer{font-size:9px}.level-sheet,.modal-card{max-height:calc(100dvh - 28px)}.modal-layer{padding:14px}}
@media(max-width:360px){.brand .eyebrow{font-size:6px}h1{font-size:20px}.levels-button{padding:0 8px}.dashboard{padding:12px}.order-card{grid-template-columns:24px 1fr;padding:8px 4px}.order-card svg{width:22px}.control-section{gap:10px}.control-heading h3{font-size:15px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:620px) and (max-height:700px){
  .shell{padding-top:10px;padding-bottom:9px}.topbar{margin-bottom:9px}.journey{margin-bottom:9px;padding-bottom:8px}#stage{height:34svh;min-height:180px;max-height:235px}.stage-heading{top:12px;left:14px;right:14px}.stage-heading h2{font-size:16px}.stage-heading .eyebrow{font-size:7px}.safe-tag{font-size:7px;padding:5px 7px}.stage-footer{min-height:32px;font-size:8px;padding:7px 12px}.toast{bottom:39px;font-size:9px;padding:6px 10px}.play-area{gap:10px}
  .dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);gap:9px 11px;padding:12px}.order-section{grid-column:1}.order-heading{margin-bottom:6px}.order-heading .eyebrow{font-size:6px;letter-spacing:1px}.order-heading #progress{font-size:8px;padding:2px 5px}.orders{gap:4px}.order-card{display:block;text-align:center;padding:7px 2px;min-height:63px;border-radius:10px}.order-card svg{width:22px;height:22px;margin:0 auto 4px}.order-card .order-name{font-size:8px}.order-card .order-state{font-size:7px;min-height:9px}.control-section{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0}.control-heading h3{font-size:14px}.help-button{width:23px;height:23px}.control-caption{font-size:8px;margin-top:2px}.control-caption br{display:none}.tip{display:none}.control-pad{height:92px;min-height:92px;border-radius:15px}.pad-ring{width:55px;height:55px}.clamp-status{grid-column:1;margin:0;padding:5px 0;border-bottom:0;gap:6px}.clamp-symbol{width:21px;height:25px;background:none}.clamp-status .eyebrow{font-size:6px;letter-spacing:.8px}.clamp-status strong{font-size:8px}.clamp-status button{padding:6px;font-size:8px}.action-row{grid-column:1 / -1;padding:0;gap:9px}.action-row button{min-height:35px;font-size:10px}.page-footer{display:none}
}
.modal-layer{grid-template-columns:minmax(0,1fr)}.modal-card,.level-sheet{min-width:0}.result-count small{font-size:17px;letter-spacing:0;color:#9ba68d}
.shell{padding-top:max(26px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom));padding-left:max(36px,env(safe-area-inset-left));padding-right:max(36px,env(safe-area-inset-right))}
@media(max-width:900px){.shell{padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}}
@media(max-width:620px){.shell{padding-top:max(13px,env(safe-area-inset-top));padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right))}}
.joystick-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:16px}
.joystick-pad{width:164px;height:164px;min-height:0;margin:0;border-radius:50%;flex-shrink:0;box-shadow:inset 0 3px 8px #b2c29b24,inset 0 -4px 0 #d5dfc64d,0 5px 14px #627e4110;overscroll-behavior:contain}
.joystick-pad .pad-ring{width:112px;height:112px;border-style:solid;border-color:#d5dfc5;background:#e9efdb66}
.joystick-pad .support-dot{width:44px;height:44px;left:50%;top:50%;z-index:2;background:radial-gradient(circle at 35% 25%,#7e9d6a,#4f7247);border:1px solid #486840;box-shadow:0 5px 9px #576b4930,0 0 0 7px #57724c12;will-change:transform}
.joystick-pad .support-dot span{width:10px;height:10px;background:#f0f4dc;box-shadow:0 1px 2px #30422433}
.joystick-pad.dragging .support-dot{box-shadow:0 3px 6px #576b4940,0 0 0 9px #57724c18}
.joystick-pad.is-disabled{opacity:.55;cursor:default}.joystick-pad .arrow-top{top:5px}.joystick-pad .arrow-bottom{bottom:5px}.joystick-pad .arrow-left{left:8px}.joystick-pad .arrow-right{right:8px}
.control-strength{font-size:9px;font-weight:650;letter-spacing:.35px;color:#8c9b7a;min-height:12px}.clamp-status[hidden]{display:none}
@media(max-width:620px){.control-section{grid-template-columns:minmax(0,1fr) 142px;gap:12px}.joystick-wrap{margin:0;gap:5px}.joystick-pad{width:138px;height:138px}.joystick-pad .pad-ring{width:92px;height:92px}.joystick-pad .support-dot{width:40px;height:40px}.control-strength{font-size:8px}.joystick-pad .pad-arrow{font-size:14px}.order-card:only-child{max-width:180px}.control-heading h3{font-size:16px}}
@media(max-width:360px){.control-section{grid-template-columns:minmax(0,1fr) 122px;gap:8px}.joystick-pad{width:120px;height:120px}.joystick-pad .pad-ring{width:77px;height:77px}}
@media(max-width:620px) and (max-height:700px){.control-section{grid-column:2;display:flex;gap:4px}.joystick-pad{width:108px;height:108px;min-height:0}.joystick-pad .pad-ring{width:66px;height:66px}.joystick-pad .support-dot{width:34px;height:34px}.joystick-wrap{gap:3px}.control-strength{font-size:7px;min-height:9px}.joystick-pad .pad-arrow{font-size:12px}.joystick-pad .arrow-top{top:3px}.joystick-pad .arrow-bottom{bottom:3px}.joystick-pad .arrow-left{left:5px}.joystick-pad .arrow-right{right:5px}.order-card:only-child{max-width:110px}}
@media(min-width:621px) and (max-width:1100px) and (max-height:500px){
  .shell{padding:8px max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}.topbar{margin-bottom:7px;gap:8px}.brand-mark{width:30px;height:30px;border-radius:10px}.brand-mark svg{width:21px}.brand{gap:8px}.brand .eyebrow{font-size:6px}h1{font-size:19px}.levels-button{height:31px;font-size:10px;padding:0 10px}.icon-button{width:31px;height:31px}.journey{font-size:8px;margin-bottom:8px;padding-bottom:7px}.play-area{grid-template-columns:minmax(0,1fr) 262px;gap:12px}.stage-wrap{border-radius:20px}.stage-heading{top:12px;left:14px;right:14px}.stage-heading h2{font-size:16px;margin-top:3px}.stage-heading .eyebrow{font-size:7px}.safe-tag{font-size:7px;padding:5px 7px}#stage{height:calc(100svh - 128px);min-height:160px}.stage-footer{min-height:31px;font-size:8px;padding:7px 10px}.stage-footer button{font-size:9px}.toast{bottom:38px;font-size:8px;padding:6px 9px}.dashboard{padding:10px;display:grid;grid-template-columns:minmax(0,1fr) 116px;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;border-radius:20px}.order-section{grid-column:1;grid-row:1}.order-heading{margin-bottom:6px}.order-heading .eyebrow{font-size:6px;letter-spacing:.7px}.order-heading #progress{font-size:8px;padding:2px 5px}.orders{gap:4px}.order-card{padding:7px 2px;border-radius:10px}.order-card svg{width:22px;height:22px;margin-bottom:4px}.order-card .order-name{font-size:8px}.order-card .order-state{font-size:7px;margin-top:2px}.control-section{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;justify-content:center;gap:6px;margin:0}.control-heading h3{font-size:13px}.help-button{width:22px;height:22px;font-size:10px}.control-caption{font-size:8px;margin-top:3px}.control-caption br{display:none}.tip{display:none}.joystick-wrap{margin:0;gap:4px}.joystick-pad{width:112px;height:112px;min-height:0}.joystick-pad .pad-ring{width:72px;height:72px}.joystick-pad .support-dot{width:34px;height:34px}.joystick-pad .pad-arrow{font-size:12px}.control-strength{font-size:7px}.clamp-status{grid-column:1;grid-row:2;align-self:start;flex-wrap:wrap;margin:0;padding:6px 0;gap:5px;border-bottom:0}.clamp-symbol{width:22px;height:22px}.clamp-status .eyebrow{font-size:6px;letter-spacing:.6px}.clamp-status strong{font-size:8px}.clamp-status button{padding:5px 7px;font-size:8px}.action-row{grid-column:1 / -1;grid-row:3;padding:0;gap:7px}.action-row button{font-size:9px;min-height:32px;padding:6px}.page-footer{display:none}
}
