.pattern-editor{position:absolute;top:0;right:0;bottom:0;left:0;z-index:9;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;background:#160e2b;color:#fff4dc;font-family:Trebuchet MS,Arial,sans-serif;font-size:13px;overflow:hidden}.pattern-editor[hidden]{display:none!important}.pattern-editor button,.pattern-editor input,.pattern-editor select{font:inherit}.pattern-editor button{background:#49336c;color:#fff6e8;border:2px solid #8c6dbd;border-radius:6px;padding:7px 10px;cursor:pointer;font-weight:800}.pattern-editor button:hover:not(:disabled),.pattern-editor button:focus-visible:not(:disabled){background:#66498b}.pattern-editor button:disabled{opacity:.42;cursor:not-allowed}.pattern-editor input,.pattern-editor select{width:100%;min-width:0;background:#241735;color:#fff5e1;border:2px solid #735792;border-radius:5px;padding:6px 7px}.pattern-editor label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#dbd1e8}.pe-header{display:flex;align-items:center;gap:10px;padding:8px 12px;flex:0 0 auto;min-height:72px;background:#231438;border-bottom:3px solid #8b6ab4}.pe-title{display:flex;flex-direction:column;flex:0 0 auto;color:#ffd57b}.pe-title strong{font-size:13px}.pe-title span{font-size:10px;color:#e6d3f7}.pe-name{display:flex;gap:7px;min-width:210px;max-width:360px;flex:1 1 300px}.pe-name label{flex:1 1 50%}.pe-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;flex:3 1 530px}.pe-toolbar[hidden]{display:none!important}.pattern-editor .pe-highlight{background:#f7bc49;color:#231436;border-color:#ffeb96}.pattern-editor .pe-highlight:hover{background:#ffe17d}.pattern-editor .pe-exit{background:#623747;border-color:#d18b9c;margin-left:auto}.pe-toolbar label{min-width:155px}.pe-workspace{display:grid;grid-template-columns:194px minmax(0,1fr) 200px;grid-template-rows:minmax(0,1fr);flex:1 1 0;min-width:0;min-height:0;overflow:hidden}.pe-library,.pe-inspector{background:#281a3c;height:100%;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a988d3 #291b40;scrollbar-gutter:stable;padding:11px 11px 26px;border-right:2px solid #6e518d}.pe-library::-webkit-scrollbar,.pe-inspector::-webkit-scrollbar{width:10px}.pe-library::-webkit-scrollbar-track,.pe-inspector::-webkit-scrollbar-track{background:#291b40}.pe-library::-webkit-scrollbar-thumb,.pe-inspector::-webkit-scrollbar-thumb{background:#a988d3;border:2px solid #291b40;border-radius:6px}.pe-inspector{border-right:0;border-left:2px solid #6e518d}.pe-library h2,.pe-inspector h2{font-size:15px;margin:3px 0 9px;color:#ffd88c}.pe-library h2 small{font-size:10px;color:#c7abdd}.pe-library h3,.pe-inspector h3{font-size:11px;margin:16px 0 6px;color:#afebf0}.pe-library p,.pe-inspector p{font-size:11px;color:#d4c6e8;line-height:1.5}.pe-palette{display:grid;gap:5px}.pattern-editor .pe-palette-item{display:grid;grid-template-columns:24px 1fr;gap:4px;text-align:left;align-items:center;min-height:39px;padding:5px 6px}.pe-palette-item span:nth-child(2){font-size:11px}.pe-palette-item small{grid-column:2;color:#e6c579;font-size:9px}.pe-item-icon{grid-row:span 2;color:#ffc966;font-size:19px}.pattern-editor .pe-palette-item.is-armed{background:#816034;border-color:#ffcf74}.pe-scene-panel{min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:#110d25}.pe-scene-toolbar{display:flex;align-items:center;gap:9px;padding:5px 9px;min-height:40px;flex:0 0 auto;background:#291942;font-size:11px;flex-wrap:wrap}.pe-scene-toolbar label{flex-direction:row;align-items:center;white-space:nowrap;font-size:11px}.pe-scene-toolbar input[type=checkbox]{width:auto}.pe-scene-toolbar button{padding:2px 8px}.pe-scene-toolbar strong{color:#ffd57a}#pe-coordinates{color:#a8e5eb;min-width:54px}.pe-canvas-wrap{position:relative;flex:1 1 auto;min-height:0;overflow:hidden}#pe-canvas{width:100%;height:100%;display:block;cursor:crosshair;touch-action:none;image-rendering:pixelated}.pe-scene-hint{position:absolute;left:10px;bottom:10px;pointer-events:none;background:#261635eb;padding:7px 10px;border:1px solid #9978b6;border-radius:5px;color:#f6e8c7;font-size:10px;max-width:90%}.pe-test-outcome{position:absolute;top:10px;left:50%;transform:translate(-50%);background:#27143de8;border:2px solid #b6a1e0;border-radius:6px;padding:8px 15px;font-weight:900;color:#ffe9a2;pointer-events:none;max-width:90%;text-align:center}.pe-scrollbar{display:flex;align-items:center;gap:10px;padding:6px 10px;border-top:2px solid #6b4f8c;background:#26173a;font-size:10px;min-height:35px}.pe-scrollbar input{flex:1;height:10px;accent-color:#f8c65e;padding:0}.pe-inspector-section{display:flex;flex-direction:column;gap:9px;padding:10px 0;border-bottom:1px solid #634c77}.pe-inspector-section h3{margin:3px 0}.pe-inspector-section button{padding:5px 8px}.pe-inspector-section label{gap:5px}.pe-hitbox-controls{border:1px solid #80629b;border-radius:5px;background:#2d1e41;padding:6px;min-width:0}.pe-hitbox-controls summary{cursor:pointer;color:#acecf0;font-weight:800;font-size:11px;padding:3px 0}.pe-hitbox-controls p{font-size:10px;line-height:1.4;margin:5px 0 9px}.pe-hitbox-controls[open]>label{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:11px}.pe-hitbox-controls[open]>label>input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.pe-hitbox-controls #pe-hb-reset{width:100%;margin-top:4px}.pe-warning-panel{border:0}.pe-warning-panel p{margin:3px 0}.pe-warning{color:#ffe2a0!important}.pe-error{color:#ffadad!important}.pe-bottom{flex:0 0 auto;background:#261735;border-top:3px solid #8f6cb9;padding:7px 14px 8px;min-height:94px;display:flex;flex-direction:column;gap:7px}.pe-timeline-heading,.pe-status{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px}.pe-timeline-heading strong{color:#ffdf9a}.pe-timeline{height:25px;position:relative;background:#39274f;border:2px solid #8465a9;border-radius:5px;cursor:pointer;overflow:hidden}.pe-visible-range{position:absolute;top:0;bottom:0;background:#7b8ba955;border-left:2px solid #96eaf2;border-right:2px solid #96eaf2;pointer-events:none}.pattern-editor .pe-timeline-item{position:absolute;top:1px;bottom:1px;min-width:9px;border:1px solid #f1c66f;background:#ab743d;border-radius:2px;padding:0;font-size:12px;line-height:17px}.pattern-editor .pe-timeline-item.is-selected{background:#3db7b7;border-color:#b5fff3;color:#fff}.pe-status{color:#bcb0d4;overflow:hidden}.pe-status span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pattern-editor.is-testing .pe-library,.pattern-editor.is-testing .pe-inspector{opacity:.45;pointer-events:none}.pattern-editor.is-testing #pe-canvas{cursor:default}.pattern-editor.is-testing #pe-canvas.is-controlling-runner{cursor:none}@media(max-width:1130px){.pe-workspace{grid-template-columns:150px minmax(0,1fr) 164px}.pe-library,.pe-inspector{padding:6px}.pe-header{flex-wrap:wrap;gap:6px}.pe-header .pe-toolbar{flex:1 1 100%}.pe-header{min-height:70px}.pe-title{font-size:11px}}@media(max-width:770px){.pe-workspace{grid-template-columns:105px minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(100px,142px)}.pe-library,.pe-scene-panel{grid-row:1}.pe-inspector{grid-column:1 / -1;grid-row:2;display:grid;grid-template-columns:110px 1fr 1fr;gap:6px;max-height:none;min-height:0;border-left:0;border-top:2px solid #6b4f8c}.pe-inspector-section{padding:0;border:0}.pe-library{padding:5px 5px 22px}.pe-library h2{font-size:11px}.pe-palette-item span:nth-child(2){font-size:9px}.pe-title span{display:none}.pe-header{max-height:150px;overflow-y:auto}.pe-name{max-width:240px}.pe-bottom{min-height:80px}}@media(max-height:620px){.pe-header{min-height:45px;padding:4px}.pe-bottom{min-height:67px;padding:4px;gap:3px}.pe-library h3{margin:5px 0 3px}.pe-palette{gap:2px}.pattern-editor .pe-palette-item{min-height:25px;padding:3px}.pe-scene-toolbar{min-height:30px;padding:3px}}.pe-header{position:relative;z-index:12;min-height:64px;padding:6px 12px;gap:12px}.pe-title{min-width:125px}.pe-name{flex:1 1 270px;min-width:155px;max-width:350px}.pe-name label{width:100%;font-size:11px}.pe-name input{padding:7px 9px;font-weight:700}.pe-toolbar{flex:0 1 auto;flex-wrap:nowrap;justify-content:flex-end;gap:7px}.pe-toolbar>button{white-space:nowrap}.pattern-editor .pe-save{background:#466b62;border-color:#95cead;color:#f0fff6}.pattern-editor .pe-save:hover{background:#5b8879}.pe-more{position:relative;flex:0 0 auto}.pe-more>summary{list-style:none;cursor:pointer;-webkit-user-select:none;user-select:none;display:block;padding:9px 13px;background:#3d2a60;border:2px solid #9476c4;border-radius:6px;color:#fff5dd;font-weight:800;white-space:nowrap}.pe-more>summary::-webkit-details-marker{display:none}.pe-more[open]>summary{background:#685091;border-color:#c7abeb}.pe-more-content{position:absolute;right:0;top:calc(100% + 8px);z-index:20;display:flex;flex-direction:column;gap:7px;min-width:240px;max-width:calc(100vw - 24px);max-height:min(68dvh,500px);overflow-y:auto;overscroll-behavior:contain;padding:12px;background:#28193e;border:2px solid #af90d7;border-radius:9px;box-shadow:0 16px 40px #0c061ae0}.pe-more-content>strong{font-size:11px;color:#ffdb91;letter-spacing:.04em}.pe-more-content>button{width:100%;text-align:left}.pe-saved-actions{display:flex;gap:6px}.pe-saved-actions button{flex:1 1 0}.pattern-editor .pe-danger{background:#623747;border-color:#d18b9c}.pattern-editor .pe-danger:hover:not(:disabled){background:#7d475b}.pe-more-content select{width:100%;max-width:100%}.pe-more-separator{height:1px;background:#765c90;margin:5px 0}.pe-more-content .pe-snap-option{flex-direction:row;align-items:center;gap:9px;padding:5px 2px}.pe-more-content .pe-snap-option input{width:auto}.pe-workspace{min-height:0}.pe-library h2,.pe-inspector h2{margin-top:2px}.pe-library>p{margin:7px 0 8px}.pe-library h3{margin:10px 0 5px}.pe-palette{gap:5px}.pattern-editor .pe-palette-item{min-height:34px;grid-template-columns:22px 1fr;grid-template-rows:auto;padding:6px}.pe-palette-item small{display:none}.pe-item-icon{grid-row:auto;font-size:18px}.pe-inspector-section{gap:7px;padding:9px 0}.pe-inspector-section h3{margin:2px 0}.pe-warning-panel{display:block;border-top:1px solid #715788;padding-top:11px}.pe-warning-panel>summary{cursor:pointer;list-style:none;color:#a8e9f1;font-size:11px;font-weight:900;letter-spacing:.04em}.pe-warning-panel>summary::-webkit-details-marker{display:none}.pe-warning-panel>summary:before{content:"▸ ";color:#ffd47c}.pe-warning-panel[open]>summary:before{content:"▾ "}.pe-warning-panel>summary span{color:#ffdd87;font-weight:800}#pe-warnings{padding-top:9px}.pe-scene-toolbar{gap:8px;padding:5px 10px}.pe-scene-hint{font-size:10px;opacity:.92}.pe-bottom{min-height:70px;padding:5px 12px 7px;gap:5px}.pe-timeline-heading{font-size:11px}.pe-timeline-heading small{font-size:9px;font-weight:400;color:#beb0d3}.pe-timeline{height:24px;touch-action:none;-webkit-user-select:none;user-select:none}.pe-status{font-size:10px}.pe-not-live{flex:0 0 auto;padding:3px 7px;border:1px solid #8f77a9;border-radius:5px;color:#e0ceec;font-size:9px;letter-spacing:.03em;white-space:nowrap}.pattern-editor.is-testing #pe-edit-tools[hidden]{display:none!important}@media(max-width:1250px){.pe-header{flex-wrap:wrap;gap:5px;min-height:0;padding:5px 9px}.pe-toolbar{flex:1 1 auto}.pe-name{flex:1 1 190px;max-width:none}.pe-title{min-width:120px}}@media(max-width:770px){.pe-header{max-height:155px;overflow:visible}.pe-title{min-width:86px}.pe-name{max-width:none}.pe-toolbar{flex-wrap:wrap;justify-content:flex-start}.pe-more-content{right:0;min-width:215px;max-height:45dvh}.pe-inspector{overflow-y:auto}.pe-timeline-heading small,.pe-not-live{display:none}}@media(max-height:600px){.pe-header{padding:3px 8px}.pe-bottom{min-height:61px;padding:3px 9px;gap:3px}.pe-scene-hint{display:none}}.pe-approval-info{font-size:11px;color:#cfbddf;line-height:1.4;margin:0}.pattern-editor .pe-more-content #pe-approve:not(:disabled){background:#325e56;color:#e9fff4;border-color:#80c7af}.pattern-editor .pe-not-live.is-live{background:#284e46;color:#b8ffe2;border-color:#69bb9d}*{box-sizing:border-box}:root{color-scheme:dark;font-family:Trebuchet MS,Arial,sans-serif;color:#fff7e7;background:#15102a;font-synthesis:none}body{margin:0;height:100dvh;overflow:hidden;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}img{-webkit-user-drag:none}input,textarea,select{user-select:text;-webkit-user-select:text}.shell{display:flex;flex-direction:column;width:100%;height:100dvh;padding:8px}.game-shell{flex:1 1 auto;min-height:0;width:100%;position:relative;overflow:hidden;border:4px solid #4e3577;border-radius:14px;box-shadow:0 18px 70px #0009,0 0 0 2px #9875d0}.game-shell:fullscreen{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none}#game{width:100%;height:100%;display:block;image-rendering:pixelated}.game-shell.is-controlling-runner,.game-shell.is-controlling-runner #game,.game-shell.is-menu-idle,.game-shell.is-menu-idle *{cursor:none}.game-shell.is-controlling-runner dialog[open],.game-shell.is-controlling-runner dialog[open] *{cursor:auto}[hidden]{display:none!important}.panel{position:absolute;z-index:4;top:50%;left:50%;transform:translate(-50%,-50%);width:min(420px,90%);text-align:center;padding:clamp(18px,3.5dvh,28px) clamp(16px,4vw,28px);border:3px solid #aa8ada;border-radius:14px;background:#24133df2;box-shadow:0 18px 40px #0b061b92,inset 0 1px #e8c4fa55}.panel h2{margin:4px 0 8px;font-size:clamp(1.55rem,4.5vw,2.35rem);color:#ffcf60;text-shadow:2px 3px #6a3b7a}.panel p{line-height:1.4;font-size:clamp(.9rem,1.5vw,1.05rem)}.tag{font-size:clamp(.7rem,1vw,.9rem);font-weight:700;letter-spacing:.08em;color:#8eebff}.primary{cursor:pointer;margin-top:12px;border:3px solid #fff0aa;border-radius:9px;padding:11px 28px;font-size:clamp(1.05rem,2.5vw,1.4rem);font-weight:900;color:#241641;background:linear-gradient(#ffed7b,#ffb52c);box-shadow:none;transition:transform .12s ease,filter .12s ease}.primary:hover,.primary:focus-visible{transform:translateY(-2px);filter:brightness(1.08)}.primary:active{transform:translateY(2px);box-shadow:none}.menu-veil{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;pointer-events:none;background:#180d335e;transition:opacity .12s ease}.menu-ui{position:absolute;top:0;right:0;bottom:0;left:0;z-index:4;display:grid;place-items:center;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));transition:opacity .12s ease}.game-shell.is-menu-idle .menu-veil,.game-shell.is-menu-idle .menu-ui{opacity:0;pointer-events:none;transition:opacity .35s ease}.menu-card{width:min(100%,420px);min-width:0;text-align:center;padding:clamp(16px,4dvh,34px) clamp(14px,4vw,28px) 16px;border:3px solid #aa8ada;border-radius:14px;background:#24133df2;box-shadow:0 6px #140b29,0 18px 40px #0b061b92,inset 0 1px #e8c4fa55}.menu-progress{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin-bottom:clamp(12px,3dvh,20px);color:#e2d7f4;font-size:.8rem;font-weight:700}.menu-progress strong{color:#ffd785}.gold-amount{display:inline-flex;align-items:center;gap:5px}.gold-icon{display:inline-block;width:1.25em;height:1.25em;vertical-align:-.22em;image-rendering:pixelated;flex:0 0 auto}.menu-progress .gold-icon{width:18px;height:18px}.progress-trigger{padding:4px 7px;border:1px solid #8265af;border-radius:6px;background:#35234f;color:inherit;font:inherit;cursor:pointer}.progress-trigger:hover{background:#50376c}.menu-logo{margin:0 0 clamp(16px,4dvh,28px);font-size:clamp(2rem,min(11vw,8dvh),3.55rem);font-weight:900;line-height:.92;letter-spacing:.02em;text-shadow:3px 4px #754595}.menu-logo em{display:block;color:#ffd05b;font-style:normal}.menu-actions{display:grid;gap:12px}.menu-actions>.menu-play,.menu-solo{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;margin:0;padding:10px 16px;border-radius:10px;font-family:inherit;font-size:clamp(1.3rem,4.2vw,1.65rem);font-weight:900;letter-spacing:.06em;cursor:pointer;transition:transform .12s ease,filter .12s ease}.menu-actions small{padding:4px 10px;border-radius:999px;font-size:.74rem;font-weight:800;letter-spacing:.02em;overflow-wrap:anywhere;text-align:right;white-space:nowrap}.menu-actions>.menu-play{border:3px solid #fff2b2;background:linear-gradient(180deg,#fff08a,#ffc83d 55%,#f59f1c);color:#241641;text-shadow:0 2px 0 rgba(255,255,255,.45);box-shadow:inset 0 2px #ffffffa6}.menu-play small{background:#24164124;border:1px solid rgba(36,22,65,.2);color:#241641;text-shadow:none}.menu-actions>.menu-play:hover,.menu-actions>.menu-play:focus-visible{transform:translateY(-2px);filter:brightness(1.05);box-shadow:inset 0 2px #ffffffbf}.menu-actions>.menu-play:active{transform:translateY(1px);box-shadow:none}.menu-solo{border:3px solid #80d9df;background:linear-gradient(180deg,#3c6c8a,#2a4c70 60%,#1f3959);color:#ecfeff;text-shadow:0 2px 0 #16233d;box-shadow:inset 0 2px #c6f6fc47}.menu-solo small{background:#0b162a6b;border:1px solid rgba(128,217,223,.35);color:#c6f6fc;text-shadow:none}.menu-solo:hover,.menu-solo:focus-visible{transform:translateY(-2px);background:linear-gradient(180deg,#477e9e,#315982 60%,#244266);box-shadow:inset 0 2px #c6f6fc66}.menu-solo:active{transform:translateY(1px);box-shadow:none}.menu-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.menu-shortcut{min-height:44px;padding:4px 2px;border:1px solid #8164a8;border-radius:8px;color:#e7d9ff;background:#33214f;font-family:inherit;font-size:clamp(.7rem,3vw,.875rem);font-weight:700;cursor:pointer}.menu-shortcut:disabled{opacity:.7;cursor:default}.menu-shortcut:enabled:hover,.menu-shortcut:focus-visible{background:#533579}.solo-hud small{display:block;font-size:clamp(10px,1vw,12px);color:#ffdfa0;font-weight:800;margin-top:4px}.game-dialog{color:#fff7e7;background:#26163d;border:4px solid #b398f4;border-radius:13px;padding:23px;width:min(440px,94vw);max-height:88dvh;box-shadow:0 15px #140c27,0 28px 80px #090518c9}.game-dialog::backdrop{background:#100b21bf}.game-dialog h2{font-size:29px;color:#ffd66b;margin:0 0 4px;text-shadow:2px 3px #6a3b7a}.dialog-close{float:right}.dialog-close button{color:#fff7e7;background:#463066;border:2px solid #9471bc;border-radius:5px;padding:5px 9px;cursor:pointer}.dialog-toggle{display:flex;align-items:center;gap:10px;padding:14px 0;font-weight:800}.dialog-toggle input{accent-color:#e7b74b;width:20px;height:20px}.dialog-select{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 12px;font-weight:800}.dialog-select select{background:#35234f;color:#fff7e7;border:2px solid #8265af;border-radius:6px;padding:6px 10px;font:inherit}.dialog-button{background:#50376c;border:3px solid #9a75c9;color:#fff4db;border-radius:8px;padding:10px 18px;font-weight:900;font-family:inherit;cursor:pointer}.dialog-button:hover,.dialog-button:focus-visible{background:#67498b}.settings-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.keybindings-section{margin-top:14px;padding-top:12px;border-top:1px solid #594382}.keybindings-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.keybindings-head h3{margin:0;font-size:.95rem;color:#ffd66b}.keybindings-reset{padding:5px 10px;font-size:.75rem;border-width:2px}.keybindings-list{display:flex;flex-direction:column;gap:6px}.keybinding-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;border-radius:8px;background:#32214b;border:1px solid #6b5295;font-size:.88rem;font-weight:800}.keybinding-key{min-width:78px;padding:5px 10px;border-radius:6px;background:#463066;border:2px solid #9a75c9;color:#fff7e7;font:inherit;font-weight:900;text-align:center;cursor:pointer}.keybinding-key:hover,.keybinding-key:focus-visible{background:#5a4080}.keybinding-key.is-listening{background:#6b4c1c;border-color:#ffd66b;color:#ffd66b}.dev-trigger[hidden]{display:none}.dev-trigger{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:6;padding:7px 12px;border-radius:8px;border:1px solid #ffd66b99;background:#26163de0;color:#ffd66b;font:inherit;font-size:.75rem;font-weight:900;letter-spacing:.08em;cursor:pointer}.dev-trigger:hover,.dev-trigger:focus-visible{background:#3b235c;border-color:#ffd66b}.dev-bot-tool[hidden]{display:none}.dev-bot-tool{display:flex;flex-direction:column;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid #594382}.dev-bot-tool .dialog-select{padding:0}.dialog-notice{color:#ffd66b;font-size:12px}.dialog-notice:empty{margin:0}.wardrobe-dialog{width:min(720px,94vw);overflow-y:auto}.wardrobe-grid{clear:both;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(5px,1.4vw,12px);padding-top:12px}.wardrobe-card{display:flex;flex-direction:column;align-items:center;min-width:0;gap:7px;padding:clamp(4px,1.2vw,10px);border:1px solid #8265af;border-radius:8px;background:#32214b;text-align:center}.wardrobe-portrait{position:relative;width:min(100%,clamp(48px,16dvh,100px));aspect-ratio:1;overflow:hidden;border-radius:6px;background:#50416d}.wardrobe-portrait img{position:absolute;inset:0 auto auto 0;width:400%;image-rendering:pixelated}.wardrobe-card h3{margin:0 0 auto;font-size:clamp(.72rem,2.6vw,1rem);overflow-wrap:anywhere}.wardrobe-equip{width:100%;min-height:40px;padding:5px 2px;border-width:1px;font-size:clamp(.72rem,2.6vw,.9rem)}.wardrobe-equip[aria-pressed=true]{background:#295c65;border-color:#78e5e4}.wardrobe-locked{display:grid;align-items:center;min-height:40px;margin:0;color:#e5d6ff;font-size:clamp(.67rem,2.2vw,.82rem)}.rarity-tag{display:inline-block;padding:2px 7px;border-radius:999px;border:1px solid currentColor;font-size:.64rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:1.25}[data-rarity=commun]{--rarity-color: #b7aed6;--rarity-border: #766c99;--rarity-bg: rgba(183, 174, 214, .09)}[data-rarity=rare]{--rarity-color: #70d6ff;--rarity-border: #4496bd;--rarity-bg: rgba(112, 214, 255, .11)}[data-rarity=epique]{--rarity-color: #c98cff;--rarity-border: #8d55c7;--rarity-bg: rgba(201, 140, 255, .12)}[data-rarity=legendaire]{--rarity-color: #ffd466;--rarity-border: #c58a24;--rarity-bg: rgba(255, 212, 102, .13)}[data-rarity]{border-color:var(--rarity-border)}.shop-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:2px}.shop-head h3{margin:0}.level-reward[data-rarity]{border-color:var(--rarity-border)}[data-rarity] .wardrobe-portrait{background:linear-gradient(180deg,#50416deb,#32214bf5);box-shadow:inset 0 0 0 1px var(--rarity-bg)}[data-rarity] .rarity-tag{color:var(--rarity-color);background:var(--rarity-bg)}.solo-map-dialog{width:min(480px,94vw)}.solo-map-list{display:flex;flex-direction:column;gap:10px;margin:14px 0 10px}.solo-map-card{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;border:1px solid #8265af;border-radius:8px;background:#32214b;color:#fff;font:inherit;text-align:left;cursor:pointer}.solo-map-card:hover,.solo-map-card:focus-visible{border-color:#78e5e4;background:#3e295d}.solo-map-card strong{display:block;font-size:1rem;color:#fff}.solo-map-card small{display:block;margin-top:3px;color:#c6f6fc;font-size:.8rem}.solo-map-card .dialog-button{flex:0 0 auto;pointer-events:none}.lobby-hud{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lobby-hud small{color:#c6f6fc;font-size:12px}.lobby-hud .dialog-button{padding:5px 10px;font-size:12px}.leaderboard-dialog{width:min(470px,94vw)}.leaderboard-tabs{display:flex;gap:8px;margin:12px 0}.leaderboard-tab{flex:1;padding:8px 12px;border:1px solid #6b5096;border-radius:8px;background:#2c1d45;color:#dcd0f2;font-weight:700;text-align:center}.leaderboard-tab[aria-selected=true]{background:#295c65;border-color:#78e5e4;color:#fff}.leaderboard-local{display:flex;flex-direction:column;gap:12px}.leaderboard-personal{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #8265af;border-radius:10px;background:#32214b}.leaderboard-personal .wardrobe-portrait{flex:0 0 48px}.leaderboard-personal-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.leaderboard-personal-meta small{color:#c6f6fc;font-size:.78rem}.leaderboard-personal-meta strong{color:#fff;font-size:.96rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leaderboard-score{flex:0 0 auto;padding:6px 12px;border-radius:8px;background:#25173b;border:1px solid #c58a24;color:#ffd466;font-size:1.08rem;font-weight:800;letter-spacing:.02em}.leaderboard-board{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid #594382;border-radius:10px;background:#26193c}.leaderboard-rows{display:flex;flex-direction:column;gap:5px;max-height:clamp(160px,34vh,250px);overflow-y:auto;padding-right:4px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#7c5eb2 #1d1230}.leaderboard-rows::-webkit-scrollbar{width:7px}.leaderboard-rows::-webkit-scrollbar-track{background:#1d1230;border-radius:999px}.leaderboard-rows::-webkit-scrollbar-thumb{background:#7c5eb2;border-radius:999px}.leaderboard-head,.leaderboard-row{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:10px}.leaderboard-head{padding:0 6px 4px;border-bottom:1px solid rgba(130,101,175,.35);color:#b7aed6;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.leaderboard-row{padding:7px 8px;border-radius:7px;border:1px dashed rgba(130,101,175,.35);background:#32214b73;font-size:.86rem}.leaderboard-rank{font-weight:800;color:#dcd0f2}.leaderboard-row[data-medal=or] .leaderboard-rank{color:#ffd466}.leaderboard-row[data-medal=argent] .leaderboard-rank{color:#d8e2ee}.leaderboard-row[data-medal=bronze] .leaderboard-rank{color:#e69d6c}.leaderboard-name{color:#b7aed6;font-style:italic}.leaderboard-distance{color:#9c91b8;font-weight:700}#leaderboard-status{margin-bottom:0}.menu-top-left{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));display:flex;align-items:center;gap:8px;z-index:2}.menu-help,.menu-updates,.menu-feedback{height:42px;border-radius:999px;border:2px solid #9a75c9;background:#26163de8;color:#ffd66b;font-family:Trebuchet MS,Arial,sans-serif;font-weight:900;cursor:pointer;transition:transform .12s ease,border-color .12s ease,background .12s ease}.menu-help{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:42px;font-size:1.15rem;line-height:1;z-index:2}.menu-updates,.menu-feedback{padding:0 14px;font-size:.82rem;letter-spacing:.04em}.menu-feedback{color:#a9fff8}.menu-help:hover,.menu-help:focus-visible,.menu-updates:hover,.menu-updates:focus-visible,.menu-feedback:hover,.menu-feedback:focus-visible{transform:translateY(-1px);border-color:#78e5e4;background:#372159}.feedback-dialog{width:min(460px,94vw)}.feedback-form{display:flex;flex-direction:column;gap:10px;margin-top:12px}.feedback-form .dialog-select{padding:0}.feedback-textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:92px;padding:10px;border-radius:8px;border:2px solid #8265af;background:#35234f;color:#fff7e7;font:inherit;font-size:.88rem;line-height:1.4}.feedback-textarea::placeholder{color:#b9a7da}.feedback-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.feedback-meta{color:#c4b5e3;font-size:.74rem;font-weight:700}.updates-dialog{width:min(540px,94vw)}.updates-list{display:flex;flex-direction:column;gap:10px;max-height:58dvh;overflow-y:auto;margin-top:12px;padding-right:4px}.update-entry{padding:10px 12px;border-radius:9px;border:1px solid #6b5295;background:#32214b}.update-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-bottom:6px}.update-kind{padding:2px 7px;border-radius:999px;font-size:.68rem;font-weight:900;letter-spacing:.05em;background:#4e3474;color:#ffd66b;border:1px solid #9a75c9}.update-entry[data-kind=MAJ] .update-kind{background:#23585e;color:#a9fff8;border-color:#78e5e4}.update-version{color:#ffd66b;font-size:.82rem;font-weight:900}.update-date{margin-left:auto;color:#cbbbe8;font-size:.76rem;font-weight:700}.update-entry h3{margin:0 0 6px;font-size:.95rem;color:#fff7e7}.update-entry ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:3px;color:#e5d6ff;font-size:.82rem;line-height:1.38}.tutorial-dialog{width:min(500px,94vw)}.tutorial-image{display:block;width:100%;height:auto;aspect-ratio:16 / 9;object-fit:cover;margin:10px 0 8px;border-radius:9px;border:2px solid #6f539e;background:#1b102f}.tutorial-stage h3{margin:4px 0 6px;font-size:1.05rem;color:#ffd66b}.tutorial-points{margin:0 0 12px;padding-left:18px;display:grid;gap:6px;font-size:.87rem;line-height:1.4;color:#efe4ff}.tutorial-points strong{color:#ffd66b}.tutorial-nav{display:flex;align-items:center;justify-content:space-between;gap:10px}.tutorial-nav .dialog-button{padding:8px 12px;font-size:.85rem}.tutorial-nav .dialog-button:disabled{opacity:.45;cursor:default}.tutorial-step{color:#c6f6fc;font-weight:800;font-size:.9rem}@media(max-height:620px){.tutorial-image{max-height:30dvh}}.xp-summary{display:flex;justify-content:space-between;gap:8px;margin-top:10px}.xp-bar{display:block;width:100%;height:12px;margin:6px 0 12px;accent-color:#ffd785}.level-reward{display:flex;align-items:center;gap:12px;padding:8px;border:1px solid #8265af;border-radius:8px;background:#32214b}.level-reward .wardrobe-portrait{flex:0 0 56px}.level-reward h3{margin:2px 0;font-size:1rem}.level-reward small,#reward-state{color:#e5d6ff;font-size:.8rem}.level-reward.is-unlocked #reward-state{color:#a5ffce}.shop-balance{margin:8px 0;color:#e5d6ff}.shop-balance strong,#shop-price{color:#ffd785}.shop-item{flex:1;min-width:0}.shop-skin .dialog-button{padding:7px 10px}.shop-skin .dialog-button:disabled{opacity:.65;cursor:default}#shop-status{margin-bottom:0}@media(max-width:440px)and (min-height:376px){.wardrobe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.dialog-controls{border-top:1px solid #624b7e;margin-top:12px;padding-top:14px}.dialog-controls p{margin:0 0 6px;font-size:13px;color:#e8daff}.dialog-controls p:last-child{margin-bottom:0}.pause-dialog{text-align:center}.pause-dialog .primary{display:block;width:100%;margin:20px 0 12px}.pause-dialog .dialog-button{width:100%}.result-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:4px}.result-actions .primary{margin-top:0;width:100%}.result-secondary{display:flex;gap:8px}.result-secondary .dialog-button{flex:1 1 0;min-width:0;padding:10px 12px;font-size:clamp(.78rem,2.5vw,.92rem)}#results:focus{outline:none}.results h2{margin:6px 0 8px;line-height:1.05}.results-distance{display:block;font-size:clamp(1.8rem,min(7vw,10dvh),3.5rem);color:#fff4db;font-variant-numeric:tabular-nums}.results p{margin:4px 0 12px;color:#e8daff}.results-rewards{display:flex;justify-content:center;gap:12px;margin:0 0 12px}.results-rewards div{min-width:84px;padding:7px 14px;border:1px solid #8265af;border-radius:8px;background:#32214b}.results-rewards dt{color:#e5d6ff;font-size:.8rem;display:flex;align-items:center;justify-content:center;min-height:18px}.results-rewards dd{margin:2px 0 0;color:#ffd785;font-weight:900}.results .results-unlock{color:#a5ffce;font-weight:800}.results .results-retry-hint{margin:2px 0 0;font-size:.78rem;color:#cdbdf0}.results-retry-hint kbd{display:inline-block;padding:1px 6px;border:1px solid #9a75c9;border-radius:4px;background:#35234f;color:#ffd664;font:800 .72rem/1.2 monospace}@media(any-pointer:coarse){.results-retry-hint{display:none}}.spectator-results{position:absolute;z-index:3;bottom:14px;left:50%;transform:translate(-50%)}.solo-hud strong{font-variant-numeric:tabular-nums}:focus-visible{outline:3px solid #74f2f5;outline-offset:4px}@media(max-height:440px){.menu-card{padding:8px 12px}.menu-progress{margin-bottom:8px}.menu-logo{font-size:clamp(1.35rem,min(7vw,9dvh),2.1rem);margin-bottom:8px}.menu-logo em{display:inline}.menu-actions{gap:6px}.menu-actions>.menu-play,.menu-solo{min-height:44px;padding:6px 12px;align-items:center}.game-dialog{max-height:calc(100dvh - 24px);padding:12px 16px}.game-dialog h2{font-size:24px}.wardrobe-grid{padding-top:8px}.settings-actions{flex-wrap:nowrap}.settings-actions .dialog-button{min-width:0;padding:8px 6px;font-size:.75rem}.dialog-toggle{padding-block:8px}.dialog-controls{margin-top:6px;padding-top:6px}.dialog-controls p{font-size:12px}.results{padding-block:12px}.results.royale-results h2{font-size:clamp(1.15rem,6dvh,1.65rem)}.result-actions{gap:6px}.result-actions .primary,.result-secondary .dialog-button{padding:8px 10px}.results.royale-results p,.results-rewards{margin-bottom:6px}}@media(prefers-reduced-motion:reduce){.primary,.menu-veil,.menu-ui{transition:none}}.hud{pointer-events:none;z-index:2;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px}.hud-item{min-width:110px;border:3px solid #8e73d7;border-radius:9px;padding:8px 12px;background:#24133de8;text-align:center}.hud-item span{display:block;font-size:clamp(8px,1vw,12px);color:#dbcdfa;letter-spacing:.06em;font-weight:700}.hud-item strong{display:block;font-size:clamp(14px,2vw,26px)}.world-speed strong{color:#ffd664}.runner-speed{position:absolute;right:16px;bottom:12px;width:clamp(112px,17vw,166px);padding:7px 9px;border:1px solid #8265af;border-radius:7px;background:#24133de8;font-size:.75rem}.runner-speed-label{display:flex;align-items:center;justify-content:space-between;gap:6px}.runner-speed-label strong{color:#c2fffb;font-variant-numeric:tabular-nums;white-space:nowrap}.runner-speed-track{height:5px;margin-top:5px;border-radius:3px;background:#4a3666;overflow:hidden}#runner-speed-fill{height:100%;border-radius:inherit;background:#75e2e4}.controls-legend{position:absolute;left:16px;bottom:12px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:6px 10px;border:1px solid #8265af;border-radius:7px;background:#24133de0;color:#e7d9ff;font-size:.72rem;line-height:1.35}.controls-legend kbd{display:inline-block;padding:1px 5px;margin:0 2px 0 0;border:1px solid #9a75c9;border-radius:4px;background:#35234f;color:#ffd664;font:800 .68rem/1.15 monospace}@media(any-pointer:coarse),(max-width:650px){.controls-legend{display:none}}.death-note{position:absolute;top:72px;left:50%;transform:translate(-50%);max-width:calc(100% - 24px);padding:7px 14px;border-radius:8px;background:#45223df0;border:2px solid #f7a6b5;font-weight:900;text-align:center;font-size:clamp(11px,1.4vw,15px)}@media(max-width:650px){.shell{padding:4px}.game-shell{border-width:2px;border-radius:5px}.hud{padding:5px;gap:3px}.hud-item{min-width:0;padding:4px;border-width:1px;border-radius:3px}.world-speed{display:none}.runner-speed{right:5px;bottom:5px;padding:5px 7px}.panel{padding:14px 12px;border-width:2px}.primary{padding:9px 18px;margin-top:4px;border-width:2px}}.touch-controls{display:none}@media(any-pointer:coarse){.touch-controls:not([hidden]){position:absolute;z-index:3;left:0;right:0;bottom:calc(8px + env(safe-area-inset-bottom,0px));display:flex;justify-content:space-between;align-items:flex-end;gap:clamp(4px,1vw,12px);padding:0 clamp(6px,2vw,22px);pointer-events:none}.touch-group{display:flex;gap:clamp(5px,1vw,13px);min-width:0}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:clamp(49px,12vw,92px);min-height:clamp(55px,12vh,88px);padding:5px 9px;border:3px solid #eddfa7;border-radius:13px;background:#2b2052d9;color:#fff9e8;font:bold clamp(24px,4vw,37px) "Trebuchet MS",Arial,sans-serif;box-shadow:0 3px #1b1235}.touch-controls button small{font-size:clamp(8px,1.25vw,11px);letter-spacing:.02em;line-height:1.2}.touch-controls button[aria-pressed=true]{background:#268585ec;border-color:#72f9ed;transform:translateY(2px);box-shadow:none}.touch-controls .touch-pause{min-width:clamp(37px,7vw,58px);min-height:clamp(41px,8vh,59px);font-size:clamp(16px,3vw,23px);border-color:#a89ec9;color:#efe4ff}.solo-hud{max-width:42vw}.runner-speed{bottom:calc(clamp(55px,12vh,88px) + 17px + env(safe-area-inset-bottom,0px))}}@media(any-pointer:coarse)and (max-width:480px){.touch-controls:not([hidden]){padding:0 3px;gap:3px}.touch-group{gap:3px}.touch-controls button{min-width:53px;min-height:58px;padding:4px 3px;border-width:2px;font-size:25px}.touch-controls button small{font-size:8px}.touch-controls .touch-pause{min-width:38px;min-height:47px;font-size:17px}.runner-speed{bottom:calc(75px + env(safe-area-inset-bottom,0px))}.hud-item{max-width:45vw}}
