@import"https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;450;500;550;600;650;700;750;800&family=DM+Sans:wght@400;500;600;650;700;750&family=Dela+Gothic+One&display=swap";:root{font-family:DM Sans,Noto Sans JP,sans-serif;color:#263246;background:#f7f8fa;font-synthesis:none;font-size:13px;--accent:#ed7959;--border:#e6e9ef;--muted:#8b94a3;--ink:#263246}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);background:#fff;border-radius:7px;transition:background .15s,border-color .15s,opacity .15s}button:hover:not(:disabled){background:#f4f5f8;border-color:#ccd3df}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #ed795966;outline-offset:3px}svg{width:17px;height:17px;stroke-width:1.7;flex-shrink:0}select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23818b9b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;border:1px solid var(--border);border-radius:7px;padding:10px 30px 10px 12px;color:#3f4b5f}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;margin:0}.header{height:86px;max-width:1560px;padding:0 42px;margin:auto;display:flex;align-items:center;border-bottom:1px solid var(--border);gap:55px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:24px;font-weight:800;letter-spacing:-1px;line-height:1.3}.brand small{display:block;font-size:8px;font-weight:650;letter-spacing:2px;margin-top:4px;color:#8e97a6}.header nav{display:flex;gap:32px;height:100%;align-items:center;font-weight:550;font-size:12px}.header .plain{color:#768196}.plain{border:0;background:transparent;padding:7px 3px;font-size:11px}.layout{max-width:1450px;margin:0 auto;padding:32px 42px 20px;display:grid;grid-template-columns:minmax(0,1fr) 348px;gap:28px;align-items:start}.version{font-size:8px;letter-spacing:1px;color:#8791a1;white-space:nowrap}.version span{display:inline-block;border:1px solid #dce2eb;border-radius:4px;padding:2px 5px;margin-left:5px;font-size:11px}.stage-card{background:#fff;border:1px solid #e2e6ed;border-radius:12px;overflow:hidden;box-shadow:0 4px 16px #27324703}.stage-toolbar{height:54px;padding:0 19px;display:flex;align-items:center;justify-content:space-between}.view-switch{display:flex;background:#f3f5f8;padding:3px;border-radius:6px;gap:2px}.view-switch button{border:0;background:transparent;border-radius:4px;font-size:10px;padding:5px 9px;gap:4px;color:#8590a1}.view-switch button svg{width:13px;height:13px}.view-switch button.active{background:#fff;color:#3c4960;box-shadow:0 1px 4px #1d273015}#viewport{height:510px;position:relative;background:#e9edf2;overflow:hidden}#viewport canvas{display:block;width:100%;height:100%;touch-action:none}.stage-top,.stage-bottom{position:absolute;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center;z-index:2;pointer-events:none}.stage-top{top:18px}.phase-pill{font-size:10px;background:#ffffffc9;border:1px solid #ffffffc9;padding:7px 11px;border-radius:5px;color:#6d7b8e;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.phase-pill:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#81a493;margin-right:7px;vertical-align:2px}.phase-pill.running:before{background:var(--accent)}.play-pill{font-size:8px;color:#8090a3;font-weight:600;letter-spacing:2px;display:flex;align-items:center;gap:9px}.play-pill b{font-size:18px;letter-spacing:1px;color:#44556d;font-weight:500}.stage-bottom{bottom:14px}.stage-bottom>span{display:flex;align-items:center;gap:6px;font-size:9px;color:#7e8b9d}.icon-btn{width:29px;height:29px;padding:0;pointer-events:auto;background:#fffb;border-color:#ffffffa8}.orientation{position:absolute;bottom:56px;right:28px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:8px;color:#8e9cad;z-index:2;pointer-events:none}.orientation span:nth-child(2){font-size:9px;letter-spacing:1px}#loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#edf0f4;color:#6f7c90;z-index:6}.spinner{border:2px solid #d0d8e4;border-top-color:var(--accent);width:24px;height:24px;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#won-banner{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:12px;white-space:nowrap;padding:28px 38px;background:#fffffff0;border:1px solid #fff;border-radius:16px;box-shadow:0 12px 40px #33445b22;z-index:4;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:none}#won-banner>span{color:var(--accent);font-size:27px;letter-spacing:4px;font-weight:800}#won-banner strong{font-size:15px}#won-banner small{color:#8993a3;font-size:10px}.primary{background:var(--accent);border:1px solid var(--accent);color:#fff;font-weight:550}.primary:hover:not(:disabled){background:#df6c4e;border-color:#df6c4e}.primary:disabled{background:#ed7959;opacity:.4}.speed-label{display:flex;gap:7px;align-items:center;font-size:9px;color:#8d98a9}.speed-label select{font-size:10px;padding:4px 24px 4px 8px;border-color:#e5e9f0;background-color:#f7f8fa;background-position:right 5px center}.check-label{display:flex;align-items:center;gap:5px;font-size:9px;color:#8390a2;cursor:pointer}.check-label input{accent-color:var(--accent);width:11px;height:11px;margin:0}.com-dot{width:5px;height:5px;background:var(--accent);border-radius:50%;margin-left:0}.settings-card{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-top:1px;box-shadow:0 4px 16px #27324703}.settings-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 22px 19px}.settings-heading h2{font-size:17px;font-weight:650;letter-spacing:.5px;margin:7px 0 0}.settings-heading>svg{width:19px;height:19px;color:#adb5c3}.minor-label{display:block;font-size:9px;color:#8a95a5;margin-bottom:8px}.settings-tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:0 15px;border-bottom:1px solid var(--border);background:#fcfcfd}.settings-tabs button{display:flex;flex-direction:column;gap:7px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#8f9aaa;padding:14px 0 12px;font-size:9px;white-space:nowrap}.settings-tabs svg{width:17px;height:17px}.settings-tabs button.active{border-color:var(--accent);color:#dd7256;background:#fdf8f5}#settings-panels{padding:0 23px;max-height:625px;min-height:470px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d8dfe8 transparent}.field{padding-bottom:19px}.field-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:8px}.field-heading>label{font-size:10px;color:#576479;line-height:1.5}.field-number{display:flex;align-items:center;height:25px;background:#f6f7fa;border:1px solid #edf0f4;border-radius:4px;gap:5px;padding:0 6px;flex-shrink:0}.field-number input{border:0;width:37px;background:transparent;text-align:right;font-size:11px;color:#4b596f;font-weight:550;padding:0;min-width:0}.field-number span{font-size:8px;color:#9da6b3;white-space:nowrap}input[type=range]{width:100%;appearance:none;-webkit-appearance:none;height:3px;border-radius:2px;background:#e8ebf1;cursor:pointer;vertical-align:middle;margin:6px 0 0}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;background:var(--accent);border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #ed795940,0 1px 3px #26324626}input[type=range]::-moz-range-thumb{width:8px;height:8px;background:var(--accent);border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #ed795940}.range-labels{display:flex;justify-content:space-between;font-size:8px;color:#b1b9c5;margin-top:7px}.toggle-field{display:flex;justify-content:space-between;align-items:center;padding:0 0 20px;font-size:10px;color:#576479}.switch{position:relative;width:29px;height:16px;cursor:pointer}.switch input{position:absolute;inset:0;opacity:0;width:100%;margin:0}.switch span{position:absolute;inset:0;border-radius:10px;background:#dfe4eb;pointer-events:none;transition:background .15s}.switch span:after{content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;top:2px;left:2px;box-shadow:0 1px 3px #26324620;transition:transform .15s}.switch input:checked+span{background:var(--accent)}.switch input:checked+span:after{transform:translate(13px)}.switch input:focus-visible+span{outline:3px solid #ed795966}.apply-footer{padding:17px 22px 18px;border-top:1px solid var(--border);background:#fcfcfd}#dirty-note{font-size:9px;color:#9ba5b3;display:flex;align-items:center;gap:5px;margin-bottom:12px}#dirty-note svg{width:12px;height:12px}#dirty-note.dirty{color:#da7559}.apply-footer>.primary{width:100%;height:39px;font-size:11px}.apply-footer>.primary svg{width:14px;height:14px}.footer{max-width:1450px;margin:0 auto;padding:20px 42px 30px;display:flex;justify-content:space-between;color:#a6aeba;font-size:8px}.footer span span{margin:0 8px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);padding:13px 20px;background:#27354bef;color:#fff;border-radius:8px;box-shadow:0 5px 25px #26324622;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;font-size:11px;z-index:20;max-width:90vw;line-height:1.6}#toast.visible{opacity:1;transform:translate(-50%)}dialog{border:1px solid var(--border);border-radius:14px;padding:26px;width:500px;max-width:calc(100vw - 32px);color:var(--ink);box-shadow:0 20px 80px #15294230}dialog::backdrop{background:#1b2e4966;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-header h2{font-size:17px;margin:0}.dialog-header .icon-btn{background:#f6f7fa;border:0}dialog>p{font-size:11px;color:#8c96a6;line-height:1.8}.dialog-input{width:100%;padding:11px;border:1px solid var(--border);border-radius:7px;margin-bottom:16px;color:#41516a}@media(min-width:1450px){#viewport{height:550px}.layout{gap:32px;grid-template-columns:minmax(0,1fr) 365px}}@media(max-width:1150px){.header{padding:0 25px;gap:30px}.layout{padding:26px 25px 20px;grid-template-columns:minmax(0,1fr) 320px;gap:20px}.version{display:none}#viewport{height:470px}.footer{padding-left:25px;padding-right:25px}}@media(max-width:900px){.layout{grid-template-columns:minmax(0,1fr) 290px;gap:16px;padding-left:18px;padding-right:18px}.header{padding:0 18px;gap:25px}.header nav{margin-left:auto;gap:20px}.stage-toolbar{padding:0 12px}.view-switch button{padding:5px 6px}#viewport{height:420px}.settings-heading,#settings-panels,.apply-footer{padding-left:18px;padding-right:18px}}@media(max-width:720px){.header{height:72px}.brand{font-size:21px}.header nav{gap:12px;font-size:10px}.header .plain{font-size:10px}.layout{display:flex;flex-direction:column;padding:24px 16px 12px;gap:22px}.workspace,.settings-card{width:100%}#viewport{height:470px}.stage-toolbar{padding:0 14px}.view-switch button{padding:5px 9px}#settings-panels{max-height:500px;min-height:0;padding:0 24px}.settings-tabs{padding:0 20px}.settings-tabs button{font-size:11px}.settings-heading{padding:21px 24px 17px}.apply-footer{padding:18px 24px}.field-heading>label{font-size:12px}.field-number input{font-size:12px}.field-number{height:29px}.range-labels{font-size:9px}.field{padding-bottom:22px}.settings-tabs svg{width:20px;height:20px}.footer{padding:15px 17px 25px}.footer>span:last-child{display:none}}@media(max-width:420px){.header{gap:10px}.brand small{font-size:7px;letter-spacing:1.5px}.header nav{gap:10px}.header .plain{font-size:9px;gap:4px}#viewport{height:400px}.stage-toolbar{padding:0 10px}.view-switch button{padding:5px 6px}.stage-bottom>span{font-size:8px}}.field-hint{font-size:9px;color:#a0a9b5;line-height:1.8;margin:7px 0 0}.arm-preview{padding:9px 8px 12px;background:#f8fafc;border:1px solid #ebeff4;border-radius:7px;margin-bottom:18px}.arm-preview svg{width:100%;height:145px;stroke-width:1}.arm-preview svg text{fill:#8794a5;font-size:10px;font-family:inherit}.arm-preview small{display:block;text-align:center;font-size:8px;color:#9aa5b5}.descent-summary{display:flex;flex-direction:column;gap:9px;padding:14px;background:#fcf5f1;border:1px solid #f5e5dc;border-radius:7px;font-size:10px;color:#8c8078;margin-bottom:20px}.descent-summary>span{display:flex;justify-content:space-between;gap:6px}.descent-summary b{color:#c56a4b;font-variant-numeric:tabular-nums;font-weight:550}.descent-summary small{font-size:8px;line-height:1.7;color:#aa9a90}.research-note{font-size:9px;line-height:1.8;margin-bottom:20px;color:#9aa4b2;background:#f7f9fc;border-radius:6px;padding:8px 10px}.research-note summary{cursor:pointer;color:#8894a5}.research-note p{margin:7px 0 0}.research-note a{color:#c07862;text-underline-offset:2px}.shape-presets{display:flex;gap:5px;margin-bottom:18px}.shape-presets button{flex:1;flex-direction:column;gap:3px;padding:8px 3px;font-size:9px;color:#77869b;background:#fff}.shape-presets button small{font-size:8px;color:#a6afbb}.shape-presets button.active{border-color:#ecaa94;background:#fff7f2;color:#cc755a}.field-heading>label{font-size:11px}.toggle-field{font-size:11px}@media(max-width:420px){.field-heading>label{font-size:11px}}.arm-preview .research-note{margin:10px 0 0}.arm-preview .shape-presets{margin:12px 0 0}.shape-presets button{cursor:pointer}:root{--app-header-height: 56px;--workspace-height: calc(100dvh - var(--app-header-height) - 24px)}.header{height:var(--app-header-height);padding:0 24px;gap:32px}.brand{font-size:21px;gap:9px}.brand small{font-size:7px;margin-top:2px}.layout{padding:12px 24px 20px;gap:20px;grid-template-columns:minmax(0,1fr) 330px}.play-area{height:var(--workspace-height);display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}.sound-controls{display:inline-flex;align-items:center;gap:6px}#sound-toggle{min-height:28px;padding:4px 7px;font-size:10px;white-space:nowrap;background:#f7f8fa}#sound-toggle[aria-pressed=true]{color:#c26c50;background:#fff5ee;border-color:#f0d6c8}#sound-toggle svg{width:14px;height:14px}#sound-volume{width:65px;height:28px;margin:0;background:transparent;accent-color:#ed7959;cursor:pointer}#sound-volume::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:#e4e8ef}#sound-volume::-webkit-slider-thumb{margin-top:-5px}#sound-volume::-moz-range-track{height:3px;border-radius:3px;background:#e4e8ef}#position-save-confirm{width:100%;padding:12px}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.dialog-actions button{min-height:44px;padding:10px}#position-save-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}.stage-card{display:flex;flex-direction:column;min-height:0}.stage-toolbar{height:42px;flex-shrink:0;padding:0 14px;justify-content:space-between;gap:8px}#move-box{padding:5px 9px;font-size:10px;background:#f7f8fa;color:#6b7a91}#move-box[aria-pressed=true]{background:#fff1e8;border-color:#efb38d;color:#bc6934}#move-box svg{width:13px;height:13px}#box-move-panel{position:absolute;z-index:5;left:12px;top:12px;width:min(280px,calc(100% - 24px));max-height:calc(100% - 24px);overflow-y:auto;padding:12px;border:1px solid #ecc5ac;border-radius:8px;background:#fffffff2;box-shadow:0 4px 20px #31425720}#box-edit-fields>summary{cursor:pointer;font-size:12px;font-weight:700;color:#576a7c}#box-edit-fields>summary>small{font-size:9px;font-weight:400;color:#9aabb9;margin-left:5px}.box-move-coordinates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.box-move-coordinates label{min-width:0;font-size:10px;color:#8a9aab}.box-move-coordinates small{font-size:8px}.box-edit-modes{display:flex;gap:5px;margin-top:10px}.box-edit-modes button{flex:1;min-height:28px;font-size:10px;padding:4px}.box-edit-modes button[aria-pressed=true]{background:#fff1e8;border-color:#efb38d;color:#bc6934}.box-move-coordinates input{display:block;width:100%;margin-top:5px;padding:6px;border:1px solid var(--border);border-radius:5px;background:#f8fafc;color:#4e6279;font-size:12px}#box-edit-hint{margin:10px 0 0;font-size:9px;line-height:1.6;color:#90a0af}#box-move-panel>div:last-child{display:flex;gap:8px;margin-top:10px}#box-move-panel>div:last-child button{flex:1;min-height:30px;padding:6px;font-size:10px}.moving-box .stage-bottom>span,.moving-box .orientation{visibility:hidden}.won-actions{display:flex;gap:8px;align-self:stretch;margin-top:4px;pointer-events:auto}#won-undo,#won-reset{flex:1;min-height:40px;padding:9px 12px;font-size:12px;white-space:nowrap}#viewport{height:auto;flex:1;min-height:0}.settings-card{position:sticky;top:12px;height:var(--workspace-height);margin-top:0;display:flex;flex-direction:column}.settings-heading{padding:14px 18px 12px;flex-shrink:0}.settings-heading h2{font-size:16px;margin-top:4px}.settings-tabs{flex-shrink:0;grid-template-columns:repeat(5,minmax(0,1fr));padding:0 10px}.settings-tabs button{padding:10px 0 9px;gap:5px;font-size:9px}#settings-panels{flex:1;min-height:0;max-height:none;padding:0 18px;overscroll-behavior-y:contain}.settings-section{border:1px solid var(--border);border-radius:8px;margin-bottom:10px;background:#fff}.settings-section>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;padding:12px;cursor:pointer;background:#f7f9fc;border-radius:8px}.settings-section>summary::-webkit-details-marker{display:none}.settings-section>summary:hover{background:#f0f4f8}.settings-section>summary:focus-visible{outline:3px solid #ed795966;outline-offset:2px}.settings-section>summary>span{min-width:0}.settings-section>summary strong{display:block;font-size:12px;font-weight:650;color:#43536b}.settings-section>summary small{display:block;font-size:9px;line-height:1.6;color:#939eb0;margin-top:3px}.settings-section>summary>svg{width:15px;height:15px;color:#8b99ad;transition:transform .15s}.settings-section[open]>summary{border-radius:8px 8px 0 0;border-bottom:1px solid var(--border)}.settings-section[open]>summary>svg{transform:rotate(90deg)}.settings-section-body>.field:last-child{padding-bottom:0}.box-corner-preview{margin-bottom:18px;padding:10px 6px;background:#f7fafb;border:1px solid #e6edf0;border-radius:7px}.box-corner-preview svg{width:100%;height:auto}.box-corner-preview text{font-size:10px;fill:#758698;font-family:inherit}.box-corner-preview small{display:block;text-align:center;font-size:9px;line-height:1.7;color:#8c9aab}.box-corner-preview>b{display:block;font-size:11px;color:#536b7b}.box-corner-preview>p{font-size:10px;line-height:1.7;color:#8191a2;margin:8px 0 4px}.corner-result{color:#ac7058}.apply-footer{flex-shrink:0;padding:12px 18px}#dirty-note{margin-bottom:7px}.footer{padding:12px 24px 20px}@media(min-width:1600px){.layout{grid-template-columns:minmax(0,1fr) 360px}}@media(min-width:980px)and (max-width:1150px){.layout{grid-template-columns:minmax(0,1fr) 300px;gap:16px;padding-left:18px;padding-right:18px}}@media(max-width:979px){.layout{display:flex;flex-direction:column;padding:12px 16px 20px;gap:18px}.workspace{width:100%}.settings-card{position:static;width:100%;height:auto}#settings-panels{flex:auto;max-height:60dvh}.settings-heading{padding:18px 20px 14px}}@media(max-width:600px){#box-move-panel{top:auto;bottom:12px}.header{padding:0 14px;gap:12px}.header nav{gap:10px}.layout{padding-left:12px;padding-right:12px}.play-area{gap:8px}.stage-toolbar{height:38px;padding:0 9px}.view-switch button{padding:5px 6px}.stage-top,.stage-bottom{left:12px;right:12px}.stage-top{top:12px}.stage-bottom>span{font-size:8px}.orientation{right:16px;bottom:48px}#won-banner{padding:18px 22px;gap:8px}#won-banner>span{font-size:23px}}@media(max-height:550px){:root{--app-header-height: 44px;--workspace-height: calc(100dvh - var(--app-header-height) - 16px)}.layout{padding-top:8px}.play-area{gap:8px}.stage-toolbar{height:34px}.orientation{display:none}.settings-heading{padding-top:9px;padding-bottom:9px}}.stage-top .play-pill{margin-left:auto}.library-dialog{width:820px;padding:24px;max-height:calc(100dvh - 24px);overflow-y:auto}.library-dialog[open]{display:flex;flex-direction:column}.library-dialog>.dialog-header,.library-dialog>p,.library-dialog>.save-shortcuts,.library-save-footer{flex-shrink:0}.library-dialog .dialog-header{margin-bottom:10px}.library-dialog>p{margin:0 0 16px;color:#768398}.save-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}.save-shortcuts button{padding:7px 11px;font-size:11px;color:#6c7b8e;min-height:32px}.save-shortcuts button[aria-pressed=true]{background:#fff1e8;border-color:#eaa586;color:#b85e3c}.save-selection-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;min-height:0;overflow-y:auto}.scope-options{padding:0;border:0;margin:0;min-width:0}.scope-options legend{color:#56677e;font-size:11px;font-weight:650;margin-bottom:10px}.scope-option{display:flex;gap:9px;align-items:flex-start;border:1px solid #e4e9ef;padding:9px 10px;border-radius:7px;margin-bottom:7px;cursor:pointer}.scope-option:has(input:checked){border-color:#efbea9;background:#fff9f5}.scope-option:hover{border-color:#e1ad94}.scope-option input{accent-color:var(--accent);width:15px;height:15px;margin:1px 0 0;flex-shrink:0}.scope-option>span{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:6px;row-gap:4px;min-width:0}.scope-option svg{color:#b68066;width:15px;height:15px}.scope-option strong{font-size:11px;color:#4c5d74}.scope-option small{grid-column:1 / -1;font-size:9px;color:#8290a2;line-height:1.6}.library-dialog .library-effect{color:#866b5b;background:#fff7f0;border:1px solid #f4ddcc;border-radius:7px;font-size:11px;padding:10px 12px;line-height:1.7;margin:14px 0}.library-save-footer{border-top:1px solid var(--border);padding-top:16px}.library-save-footer .minor-label{font-size:11px;color:#6a788c}.library-save-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.library-save-heading .minor-label{margin:0}.library-save-footer .dialog-input{margin-bottom:10px}.library-overwrite{color:#b66a40;background:#fff5e9;padding:9px 12px;border-radius:7px;font-size:11px;line-height:1.7;margin:0 0 10px}@media(max-width:600px){.library-dialog{padding:18px;max-width:calc(100vw - 20px)}.library-dialog .dialog-header h2{font-size:15px}.save-selection-layout{grid-template-columns:1fr;gap:12px}.save-selection-layout>div{order:2}.save-selection-layout .scope-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.save-selection-layout .scope-options legend{padding-bottom:4px}.scope-option{padding:9px 8px;gap:6px;margin:0 0 7px}.save-selection-layout .scope-option{margin:0}.scope-option>span{display:block}.scope-option svg{display:none}.scope-option strong{font-size:10px}.scope-option small{display:block;margin-top:3px;font-size:8px}.save-shortcuts button{padding:6px 9px;font-size:10px}}@media(max-height:550px){.library-dialog{padding:12px 18px}.library-dialog .dialog-header{margin-bottom:8px}.library-dialog .dialog-header h2{font-size:15px}.library-dialog>p:not(.library-effect){display:none}.save-shortcuts{margin-bottom:10px}.library-dialog .library-effect{padding:7px 9px;font-size:10px;margin:8px 0}.library-save-footer{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:4px 10px;padding-top:10px}.library-save-footer .minor-label{grid-column:1;margin:0}.library-save-heading{grid-column:1;margin-bottom:0}.library-save-footer .dialog-input{grid-column:1;margin:0;padding:8px}.library-save-footer #position-save-confirm{grid-column:2;grid-row:1 / 3;padding:8px;min-height:38px}.library-overwrite{grid-column:1 / -1;margin:0;padding:5px 8px}.scope-option{padding:7px 9px}.scope-option small{font-size:8px}}.share-result{flex-shrink:0;margin-top:12px;padding:12px;border:1px solid #f0c9b6;border-radius:8px;background:#fff8f3}.share-result textarea{width:100%;margin:6px 0 10px;font-size:11px;line-height:1.4;word-break:break-all;resize:none}.share-actions{display:flex;flex-wrap:wrap;gap:8px}.share-actions button{flex:1;min-height:44px;font-size:13px;white-space:nowrap}.share-result .field-hint{margin:8px 0 0}#share-dialog{width:540px;max-height:calc(100dvh - 24px);overflow-y:auto}#share-dialog>.minor-label{margin:4px 0 6px}#share-dialog #share-name{margin-bottom:0}.share-scopes{flex-shrink:0}.share-scopes>summary{min-height:32px;font-size:12px;color:#6c7b8e;cursor:pointer}.share-scopes .scope-options{margin-top:6px}#share-dialog .share-actions button:disabled{opacity:.5}.share-edit{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 4px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#fbfcfe}.share-edit label{display:flex;flex-direction:column;gap:3px;cursor:pointer}.share-edit strong{font-size:13px}.share-edit small{font-size:11px;line-height:1.5;color:#6b778a}.share-edit .switch{flex:none}.parts-advanced{flex-shrink:0;margin:0 0 12px;border:1px dashed #d5dbe5;border-radius:8px}.parts-advanced>summary{padding:8px 12px;font-size:11px;color:#6c7b8e;cursor:pointer}.parts-advanced[open]>summary{border-bottom:1px dashed #d5dbe5;margin-bottom:10px}.parts-advanced>:not(summary){margin-left:12px;margin-right:12px}.parts-advanced>.scope-options{margin-bottom:12px}:root{--game-ink: #1d2140;--game-red: #ff5146;--game-yellow: #ffd23c;--game-orange: #ff8a3d;--game-blue: #1f6fe6;--game-purple: #8d5bff;--game-sky: #e3f2ff;--game-green: #22b866;--game-pink: #ff4f81;--game-blue-ink: #1c5fd1;--game-blue-tint: #eaf2ff;--game-display: "Dela Gothic One", "Noto Sans JP", sans-serif;--game-line: 3px solid var(--game-ink);--game-line-thin: 2px solid var(--game-ink);--game-shadow: 0 4px 0 var(--game-ink);--game-shadow-small: 0 2px 0 var(--game-ink);--game-shadow-large: 0 6px 0 var(--game-ink);--game-radius: 12px;--game-radius-large: 20px;--role-save: var(--game-green);--role-share: var(--game-blue);--role-play: var(--game-yellow);--role-action: var(--game-orange);--role-danger: var(--game-red);--role-like: var(--game-pink);--role-selected: var(--game-blue);--accent: var(--role-selected);--ink: #243247;--muted: #526176;--border: #d6dee8;--app-header-height: 64px;--workspace-height: calc(100dvh - 88px) ;font-size:14px}body{color:var(--ink);word-break:auto-phrase;text-wrap:pretty}p a,small a{white-space:nowrap}button,input,select,summary{-webkit-tap-highlight-color:transparent}button,select,summary{touch-action:manipulation}button{min-height:44px;padding:8px 12px;font-size:13px;line-height:1.45}button svg{width:18px;height:18px;flex:none}button:disabled{opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--role-selected);outline-offset:3px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover:not(:disabled){background:var(--game-blue-ink);border-color:var(--game-blue-ink)}.primary:disabled{background:var(--accent)}select,.dialog-input{min-height:44px;font-size:14px}.header{height:var(--app-header-height);padding:0 24px;gap:16px}.brand{font-size:21px;gap:8px;white-space:nowrap}.header nav.global-actions{margin-left:auto;gap:8px;font-size:13px}.header .plain{color:#43536b;font-size:13px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:20px;padding:12px 24px 24px}.workspace{min-width:0}.play-area{height:auto;min-height:var(--workspace-height);display:flex;flex-direction:column;gap:12px}.stage-card{display:flex;flex-direction:column;flex:1;min-height:0;overflow:visible}.stage-toolbar{height:auto;min-height:54px;padding:5px 12px;gap:8px;border-radius:12px 12px 0 0}#move-box{font-size:13px;padding:8px 10px;min-height:44px;color:#43536b}#move-box svg{width:17px;height:17px}#move-box[aria-pressed=true]{color:var(--game-blue-ink);background:var(--game-blue-tint)}#open-settings{display:none}.observation-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:5px 12px;border-top:1px solid #e3e8ef;border-bottom:1px solid #e3e8ef}.view-switch{background:#f2f5f9;border-radius:6px;display:flex;padding:2px}.view-switch button{padding:8px 10px;min-height:44px;font-size:12px;color:#43536b}.view-switch button.active{color:var(--game-blue-ink);background:#fff;box-shadow:0 0 0 1px #d6dee8}.view-switch button svg{width:16px;height:16px}.playback-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.speed-label{color:#43536b;font-size:12px;display:flex;gap:6px;align-items:center}.speed-label select{min-width:72px;min-height:40px;font-size:12px;color:var(--ink);padding:6px 22px 6px 8px}#pause{font-size:12px;min-height:40px;padding:7px 9px}.display-options{margin-left:auto;position:relative}.display-options>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px 10px;color:#43536b;font-size:12px;border:1px solid var(--border);border-radius:6px;list-style:none}.display-options>summary:after{content:"⌄";margin-left:8px}.display-options>div{z-index:10;position:absolute;right:0;top:100%;width:230px;padding:14px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 6px 24px #24324722}.check-label{color:#43536b;font-size:13px;min-height:44px}.check-label input{width:20px;height:20px}.sound-controls{display:flex;flex-wrap:wrap;gap:8px}#sound-toggle{color:#43536b;min-height:44px;padding:8px 12px;font-size:13px}#sound-toggle[aria-pressed=true]{color:var(--game-blue-ink)}.sound-controls label{width:100%;display:flex;align-items:center;gap:8px;color:#43536b;font-size:12px}#sound-volume{width:140px;height:32px;background:transparent;accent-color:var(--accent)}#viewport{flex:1;min-height:280px;height:clamp(280px,calc(100dvh - 362px),700px)}.stage-top,.stage-bottom{left:14px;right:14px}.stage-top{top:12px;gap:10px;align-items:flex-start}.phase-pill{color:#43536b;font-size:12px;background:#fffffff0;max-width:75%;line-height:1.5}.play-pill{color:#43536b;font-size:11px;background:#fffffff0;border-radius:5px;padding:7px;white-space:nowrap}.play-pill b{font-size:17px}.stage-bottom{bottom:12px}.stage-bottom>span{font-size:12px;color:#43536b;background:#ffffffeb;padding:6px 9px;border-radius:5px}.orientation{right:16px;bottom:67px;width:86px;height:86px;opacity:1}.orientation svg{width:100%;height:100%;font-family:inherit}.moving-box .orientation{visibility:visible}#won-banner{width:min(340px,calc(100% - 24px));max-width:none;padding:20px;white-space:normal;text-align:center}#won-banner strong{font-size:18px}#won-banner small{font-size:12px;color:#526176;line-height:1.6}#won-banner small span{display:inline-block}.remote{position:fixed;left:12px;bottom:12px;z-index:30;width:204px;display:flex;flex-direction:column;gap:6px;padding:2px 8px 8px;background:#fffffff2;border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #1d2a3c26;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.remote.dragging{cursor:grabbing;box-shadow:0 12px 32px #1d2a3c40}.remote-grip{display:flex;align-items:center;gap:6px;min-height:22px;color:#8592a5}.remote-grip svg{width:16px;height:16px}#history-cursor{margin-left:auto;font-size:11px;color:#526176;white-space:nowrap}.remote button{cursor:pointer}.remote .play-button{width:100%;height:44px;border-radius:7px;gap:8px}.remote .play-button>svg{width:15px;height:15px;fill:#fff;stroke-width:0}.remote .play-button>span{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;text-align:left}.remote .play-button small{display:block;font-size:10px;font-weight:400;margin-top:1px}.remote-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.remote-keys button{flex-direction:column;gap:1px;min-height:44px;padding:3px 2px;font-size:11px;line-height:1.2;color:#43536b;background:#f3f6fa;white-space:nowrap}.remote-keys button>span{display:flex;align-items:center;gap:1px;font-size:10px;color:#6b7a90}.remote-keys svg{width:14px;height:14px}.remote .reset-button{background:#fdecec;border-color:#f3c4c0;color:#9b2c22}.remote .reset-button:hover:not(:disabled){background:#fadadb;border-color:#eba9a3}.remote .reset-button>span{color:inherit}#box-move-panel{position:static;width:auto;max-height:none;overflow:visible;margin:0;border:0;border-top:2px solid #c7805c;border-radius:0;padding:14px;background:#fff8f2;box-shadow:none;flex:none}#box-edit-fields>summary{font-size:14px;min-height:34px;color:#43536b}#box-edit-fields>summary>small{font-size:12px;color:#526176}.box-edit-modes button{min-height:44px;font-size:13px}.box-move-coordinates label{font-size:12px;color:#43536b}.box-move-coordinates small{font-size:11px;color:#526176}.box-move-coordinates input{min-height:44px;font-size:14px;padding:8px}#box-edit-hint{font-size:12px;color:#526176}#box-move-panel>div:last-child button{font-size:13px;min-height:44px;padding:8px}.stage-instructions{padding:9px 14px;display:flex;flex-wrap:wrap;gap:4px 16px;color:#526176;font-size:12px;border-top:1px solid #e3e8ef;border-radius:0 0 12px 12px;background:#f9fafc}.stage-instructions small{font-size:11px}.footer{font-size:12px;color:#526176;line-height:1.7}.settings-card{position:sticky;top:calc(var(--app-header-height) + 12px);height:var(--workspace-height);min-height:560px;display:flex;flex-direction:column}.settings-heading{padding:14px 16px}.settings-heading h2{font-size:18px;margin:0}#close-settings{display:none}.minor-label{color:#526176;font-size:12px}.settings-tabs{padding:0 4px;grid-template-columns:repeat(5,minmax(0,1fr))}.settings-tabs button{font-size:11px;padding:10px 2px;color:#43536b;white-space:normal;min-width:0}.settings-tabs button span{word-break:keep-all}.settings-tabs button.active{color:var(--game-blue-ink);background:var(--game-blue-tint);border-color:var(--accent)}.settings-tabs svg{width:18px;height:18px}.settings-state{margin:0;padding:9px 16px;color:#526176;font-size:12px;line-height:1.6;border-bottom:1px solid var(--border)}#settings-panels{padding:8px 16px 0;flex:1;min-height:0;max-height:none;overflow-y:auto}.settings-section>summary{padding:12px}.settings-section-title{display:flex;align-items:center;gap:6px}.settings-section>summary strong{font-size:14px;color:#43536b}.settings-section>summary small{font-size:12px;color:#526176;overflow-wrap:anywhere}.settings-section>summary>svg{color:#43536b}.settings-section.section-selected{border-color:var(--accent)}.settings-section.section-selected>summary{background:#fff0e2}.settings-section.section-selected>summary strong,.settings-section.section-selected>summary>svg{color:var(--game-blue-ink)}.settings-section-body{padding:14px 12px}.nested-settings-section{margin-bottom:0}.nested-settings-section>summary{min-height:44px;padding:8px}.nested-settings-section>summary strong{font-size:13px}.nested-settings-section>summary small{display:none}.nested-settings-section>.settings-section-body{padding:12px 8px}.bar-individual-fields,.corner-individual-fields{border-top:1px solid var(--border);padding-top:10px}.bar-individual-fields>.field-hint{margin:0 0 12px}.bar-face-fields h3{margin:0 0 12px;color:#43536b;font-size:13px}.bar-face-fields+.bar-face-fields{border-top:1px solid var(--border);padding-top:12px}.bar-option-group h3{margin:0 0 12px;color:#43536b;font-size:13px}.bar-option-group+.bar-option-group{border-top:1px solid var(--border);padding-top:16px}.bar-material-options{border-top:1px solid var(--border);padding-top:8px}.bar-material-options>summary{min-height:44px;padding:8px;border-radius:6px;background:#f3f6fa;color:#43536b;font-size:12px;cursor:pointer}.bar-material-options>summary small{display:block;margin-top:4px;color:#526176;font-size:11px;line-height:1.6}.bar-material-options>div{padding-top:12px}.section-modified>summary strong:after{content:"調整済み";margin-left:7px;color:var(--game-blue-ink);font-size:10px;font-weight:500}.field{padding-bottom:20px}.field-heading{gap:8px;flex-wrap:wrap}.field-label{display:flex;align-items:center;gap:5px;flex:1 0 auto;max-width:100%;min-width:0}.field-heading>.field-number{margin-left:auto}.field-label>label,.toggle-field{font-size:13px;color:#43536b}.field-label>label{min-width:0;overflow-wrap:anywhere}.advanced-marker{flex:none;padding:1px 4px;border:1px solid #ddcfea;border-radius:3px;background:#f4effb;color:#5c3f85;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap}.reset-marker{flex:none;padding:1px 4px;border:1px solid #efc3c3;border-radius:3px;background:#fff1f1;color:#b42318;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.toggle-field{min-height:44px;padding:0;gap:10px}.field-number{flex:none;height:40.5px;min-height:40.5px;padding:2px 8px}.field-number input{font-size:14px;width:52px;color:var(--ink);height:33px;min-height:33px}.field-number span{font-size:11px;color:#526176}input[type=range]{height:44px;background:transparent;margin:2px 0 0;accent-color:var(--accent)}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:#b9c7d8}input[type=range]::-webkit-slider-thumb{width:22px;height:22px;background:var(--accent);margin-top:-9px;border:2px solid white;box-shadow:0 0 0 1px var(--game-blue-ink)}input[type=range]::-moz-range-track{height:4px;border-radius:4px;background:#b9c7d8}input[type=range]::-moz-range-thumb{width:18px;height:18px;background:var(--accent);border:2px solid white}.range-labels{font-size:11px;color:#526176;margin-top:0}[data-field=gripForce][data-mixed=true] input[type=range]::-webkit-slider-thumb{opacity:0}[data-field=gripForce][data-mixed=true] input[type=range]::-moz-range-thumb{opacity:0}.field-hint{font-size:12px;color:#526176;line-height:1.7;margin:6px 0 0}.corner-result{color:var(--game-blue-ink)}.switch{width:48px;height:44px;flex:none}.switch input{cursor:pointer}.switch span{top:6px;bottom:6px;border-radius:20px;background:#69798d}.switch span:after{width:26px;height:26px;top:3px;left:3px}.switch input:checked+span:after{transform:translate(16px)}.switch input:focus-visible+span{outline:3px solid var(--accent);outline-offset:3px}.dependent-fields{margin-top:8px}.dependent-fields>summary{min-height:44px;padding:8px;font-size:12px;cursor:pointer;color:#43536b;background:#f0f3f7;border-radius:6px}.dependent-fields>summary small{display:block;font-size:11px;color:#526176}.dependent-fields.inactive-options{background:#f5f7fa;border-radius:6px}.dependent-fields.inactive-options>.field,.dependent-fields.inactive-options>.box-corner-preview{margin:12px 8px}.dependent-fields>summary[hidden]{display:none}.apply-footer{padding:10px 16px}#dirty-note{color:#43536b;font-size:12px}.arm-preview svg text,.box-corner-preview text{fill:#526176;font-size:12px}.arm-preview small,.box-corner-preview small{font-size:12px;color:#526176}.box-corner-preview>p,.research-note,.research-note summary,.shape-presets button,.shape-presets button small,.descent-summary,.descent-summary small{font-size:12px;color:#526176}.descent-summary b,.research-note a{color:var(--game-blue-ink)}.research-note summary{min-height:32px;padding:6px 0}dialog{max-height:calc(100dvh - 24px);overflow:auto;padding:24px}.dialog-header{margin-bottom:14px;gap:12px}.dialog-header h2{font-size:18px;line-height:1.5}.dialog-header .icon-btn{min-width:44px;width:44px;height:44px;padding:10px}dialog>p{font-size:13px;color:#526176;line-height:1.8}#toast{font-size:13px;line-height:1.7;width:max-content;max-width:calc(100vw - 32px);text-align:center}#update-notice{position:fixed;top:calc(var(--app-header-height) + 12px);left:50%;transform:translate(-50%);z-index:21;display:flex;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 32px);padding:8px 8px 8px 18px;background:#27354bef;color:#fff;border-radius:8px;box-shadow:0 5px 25px #26324622;font-size:13px}#update-notice>span{margin-right:6px;white-space:nowrap}#update-notice [data-update-later]{background:transparent;border-color:#fff6;color:#fff}#update-notice[hidden]{display:none}.dialog-actions{display:flex;flex-wrap:wrap}.dialog-actions button{flex:1 1 0;min-width:max-content;white-space:nowrap}@media(max-width:360px){dialog{padding:20px}.dialog-header h2{font-size:15px}}#settings-dialog{width:560px;padding:0;height:calc(100dvh - 24px);max-width:calc(100vw - 24px);overflow:hidden}#settings-dialog .settings-card{position:static;height:100%;min-height:0;width:100%;border:0;margin:0}#settings-dialog #close-settings{display:inline-flex}.library-dialog{width:900px;height:min(820px,calc(100dvh - 24px));padding:20px;max-height:calc(100dvh - 24px);overflow:hidden}#position-save-dialog{width:640px;height:fit-content}#position-save-dialog{overflow:hidden}.library-dialog>p{font-size:13px;color:#526176;margin-bottom:12px}.save-shortcuts{gap:8px;margin-bottom:12px}.save-shortcuts button{min-height:44px;font-size:12px;padding:8px 12px;color:#43536b}.save-shortcuts button[aria-pressed=true]{color:var(--game-blue-ink);background:var(--game-blue-tint);border-color:#8fb6f5}.save-selection-layout{display:block;flex:1;min-height:0;overflow-y:auto;padding:3px}.save-selection-layout .scope-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.scope-options legend{font-size:13px;color:#43536b}.scope-option{min-height:56px;padding:12px;gap:10px;margin-bottom:8px}.scope-option input{width:20px;height:20px;accent-color:var(--accent)}.scope-option strong{font-size:13px;color:#43536b}.scope-option small{font-size:12px;color:#526176}.scope-option svg{color:var(--game-blue-ink)}.scope-option:has(input:checked){background:#fff7f0;border-color:#8fb6f5}.library-dialog .library-effect{color:#763e27;font-size:12px;line-height:1.7;padding:9px 12px;margin:12px 0}.library-save-footer{padding-top:12px;flex-shrink:0}.library-save-footer .minor-label{font-size:13px;color:#43536b}.library-save-heading{gap:10px}.library-save-footer .dialog-input{font-size:14px;min-height:44px;padding:10px}#save-destination-note{margin:0 0 10px}.library-overwrite{color:#763e27;font-size:12px;line-height:1.7}#position-save-confirm{min-height:44px;font-size:14px}[hidden]{display:none!important}@media(min-width:1600px){.layout{grid-template-columns:minmax(0,1fr) 400px}}@media(min-width:980px)and (max-width:1199px){.layout{grid-template-columns:minmax(0,1fr) 340px;padding-left:16px;padding-right:16px;gap:16px}}@media(max-width:979px){.layout{display:flex;flex-direction:column;padding:12px 16px 24px;gap:20px}.workspace{width:100%}.layout>.settings-card{display:none}#open-settings{display:inline-flex}.play-area{min-height:0;height:auto}#viewport{height:clamp(280px,calc(100dvh - 377px),700px);min-height:280px;flex:none}.settings-card{min-height:0}#settings-dialog #settings-panels{max-height:none}}@media(max-width:600px){:root{--app-header-height: 60px}.header{padding:0 12px;gap:8px}.brand{font-size:18px;gap:6px}.header nav.global-actions{gap:4px}.global-actions button{font-size:12px;padding:8px;gap:4px}.global-actions button svg{width:16px;height:16px}.layout{padding:10px 12px 20px}.stage-toolbar{min-height:54px;padding:5px 10px}#move-box,#open-settings{font-size:12px}.observation-bar{padding:6px 8px;gap:8px}.view-switch{width:100%;justify-content:space-between}.view-switch button{flex:1;min-height:44px;font-size:13px}.speed-label select,#pause{min-height:44px}.playback-controls{gap:8px}.display-options{margin-left:auto}.display-options>summary{padding:8px}#viewport{height:clamp(280px,calc(100dvh - 301px),600px);min-height:280px}.phase-pill{font-size:11px;max-width:74%;padding:6px 8px}.orientation{width:72px;height:72px;right:12px;bottom:63px}.stage-instructions{font-size:11px;padding:8px 12px;gap:4px 12px}.stage-instructions small{width:100%;font-size:11px}#box-edit-fields>summary>small{display:block;margin:4px 0 0}#box-move-panel>div:last-child{margin-top:8px}.settings-tabs button{font-size:11px}input[type=range],.switch{height:44px}.switch span{top:6px;bottom:6px}#settings-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.library-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:14px}.library-dialog .dialog-header{gap:6px;margin-bottom:8px}.library-dialog .dialog-header h2{font-size:16px}.library-dialog>p{margin-bottom:8px;font-size:12px}.save-shortcuts{gap:6px;margin-bottom:10px}.save-shortcuts button{font-size:12px;padding:8px;min-height:44px}.save-selection-layout .scope-options{grid-template-columns:1fr;display:grid;gap:8px}.scope-option{padding:10px;gap:8px}.scope-option strong{font-size:13px}.scope-option small{font-size:12px}.scope-option>span{display:grid}.scope-option svg{display:block}.library-dialog .library-effect{font-size:12px;margin:8px 0}.library-save-footer{display:block;padding-top:8px}.library-save-heading{flex-wrap:wrap;gap:6px}.library-save-footer .dialog-input{padding:8px;margin-bottom:6px}#save-destination-note{font-size:11px;margin-bottom:6px}}@media(max-width:359px){.brand{font-size:16px}.playback-controls{flex-wrap:wrap;gap:6px}.display-options{margin-left:0}.library-dialog .dialog-header h2{font-size:14px}.library-save-footer{padding-top:6px}#save-destination-note{display:none}}@media(max-height:550px)and (min-width:601px){:root{--app-header-height: 56px}.layout{display:grid;grid-template-columns:minmax(0,1fr)}#viewport{min-height:280px;height:280px}.layout>.settings-card{display:none}#open-settings{display:inline-flex}.library-dialog>p{display:block}.library-dialog .library-save-footer{display:block}}@media(max-height:550px){#settings-dialog{overflow-y:auto}#settings-dialog .settings-card{height:auto;min-height:100%}#settings-dialog #settings-panels{flex:none;overflow:visible}#position-save-dialog[open]{display:block;overflow-y:auto}.library-dialog .save-selection-layout{flex:none;overflow:visible}}@media(prefers-reduced-motion:reduce){button,#toast,.settings-section>summary>svg{transition:none}}@media(min-width:980px)and (min-height:551px){.layout{height:calc(100dvh - var(--app-header-height));padding-bottom:12px;align-items:stretch}.workspace{display:flex;flex-direction:column;min-height:0}.play-area{height:100%;min-height:0;flex:1}#viewport{height:auto;flex:1;min-height:0}.settings-card{position:relative;top:auto;height:100%;min-height:0}#settings-panels{min-height:0;max-height:none;overflow-y:auto}.footer{display:none}.stage-card:has(#box-move-panel:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto auto minmax(0,1fr) auto}.stage-card:has(#box-move-panel:not([hidden]))>.stage-toolbar,.stage-card:has(#box-move-panel:not([hidden]))>.observation-bar,.stage-card:has(#box-move-panel:not([hidden]))>.stage-instructions{grid-column:1 / -1}.stage-card:has(#box-move-panel:not([hidden]))>#viewport{grid-column:1;grid-row:3}#box-move-panel{grid-column:2;grid-row:3;display:flex;flex-direction:column;min-height:0;max-height:100%;padding:10px;border-top:0;border-left:1px solid #ecc5ac;overflow:hidden}#box-edit-fields{min-height:0;flex:1;overflow-y:auto}#box-move-panel>.box-edit-actions{flex:none}}@media(min-width:980px)and (min-height:551px)and (max-height:700px){:root{--app-header-height: 56px}.layout{padding-top:8px;padding-bottom:8px}.stage-toolbar{min-height:44px;padding:0 10px}.observation-bar{padding-top:2px;padding-bottom:2px}.stage-instructions{display:none}#viewport{border-radius:0 0 12px 12px}}body:not([data-mode=course]) .course-only,body[data-mode=course] .practice-only:not(.check-show),body[data-mode=course]:not([data-check]) .check-show{display:none!important}body[data-remote=click] .drive-only,body[data-remote=machine] .click-only{display:none!important}body[data-mode=course] .settings-state{color:#8a4b12;background:#fff6e0}body[data-mode=course] .settings-card :is(input,button[data-shape]):disabled{cursor:not-allowed}body[data-mode=course] [data-reset-marker]{display:none}body[data-mode=course]:not([data-check]) .remote-keys{grid-template-columns:minmax(0,1fr)}#replay-bar{position:absolute;top:58px;left:50%;transform:translate(-50%);z-index:4;display:flex;align-items:center;gap:10px;max-width:calc(100% - 24px);padding:5px 5px 5px 14px;color:#fff;background:#27354bef;border-radius:999px;font-size:13px;white-space:nowrap;pointer-events:auto}#replay-bar[hidden]{display:none}#replay-bar>span{display:inline-flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis}#replay-bar svg{width:16px;height:16px;flex:none}#replay-bar button{min-height:34px;padding:4px 14px;color:var(--ink);background:#fff;border:0;border-radius:999px}.course-heading{margin:0;display:flex;align-items:baseline;gap:10px;min-width:0}.course-heading strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.course-heading small{font-size:12px;color:var(--muted);white-space:nowrap}.course-clear-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;pointer-events:auto}@media(max-width:600px){.course-heading{flex-direction:column;gap:0}body[data-mode=course] .stage-toolbar{flex-wrap:nowrap;padding-top:6px;padding-bottom:6px}body[data-mode=course] .course-heading{flex:1 1 auto;min-width:0}body[data-mode=course] .stage-toolbar>button:not([hidden]){flex:1 1 0;min-width:0;white-space:nowrap}}.top-screen,.free-screen,.create-screen{min-height:100vh;min-height:100dvh;padding:36px 24px 56px;color:var(--game-ink);background:#fff}.top-screen>*,.free-screen>*,.create-screen>*{max-width:960px;margin-left:auto;margin-right:auto}body:not([data-screen=game]){background:#fff}body:not([data-screen=game]) .header,body:not([data-screen=game]) .layout,body:not([data-screen=game]) .footer{display:none!important}body:not([data-screen=top]) .top-screen,body:not([data-screen=free]) .free-screen,body:not([data-screen=create]) .create-screen{display:none}.soon-tape{display:inline-block;padding:3px 12px;border:3px solid var(--game-ink);border-radius:6px;font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--game-ink);background:var(--game-yellow)}.arcade{position:relative;max-width:760px;padding:0 18px 18px;background:var(--game-red);border:4px solid var(--game-ink);border-radius:34px 34px 24px 24px;box-shadow:0 10px 0 var(--game-ink)}.arcade-marquee{position:relative;margin:-4px -26px 16px;padding:20px 24px 22px;text-align:center;background:var(--game-yellow);border:4px solid var(--game-ink);border-radius:28px;box-shadow:0 6px 0 var(--game-ink)}.arcade-marquee:before{content:"";position:absolute;inset:7px;border:6px dotted #fff8d6;border-radius:20px;animation:bulbs 1.1s steps(2,jump-none) infinite;pointer-events:none}@keyframes bulbs{0%{border-color:#fff8d6}to{border-color:#ff9d1c}}.arcade-logo{position:relative;margin:0;font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:54px;line-height:1.2;letter-spacing:.02em;color:#fff;-webkit-text-stroke:10px var(--game-ink);paint-order:stroke fill;text-shadow:0 6px 0 var(--game-ink)}.arcade-window{position:relative;height:calc(400px + var(--extra));overflow:hidden;border:4px solid var(--game-ink);border-radius:18px;background:radial-gradient(circle,#ffffffb3 0 3px,transparent 3.5px) 0 0 / 30px 30px,var(--game-sky)}.arcade-window:after{content:"";position:absolute;left:0;right:0;bottom:0;height:26px;background:#c4cfe3;border-top:4px solid var(--game-ink)}.arcade-rail{position:absolute;top:14px;left:12px;right:12px;height:14px;border:3px solid var(--game-ink);border-radius:8px;background:#ccd6e8;z-index:3}.crane{--cable: 12px;position:absolute;top:8px;left:var(--crane-x, 50%);z-index:4;width:86px;transform:translate(-50%);transition:left .4s cubic-bezier(.45,0,.25,1);pointer-events:none}.crane-carriage{display:block;width:48px;height:24px;margin:0 auto;border:3px solid var(--game-ink);border-radius:7px;background:var(--game-yellow)}.crane-cable{display:block;width:5px;height:var(--cable);margin:0 auto;background:var(--game-ink);transition:height .48s ease-in-out}.crane-claw{display:block;width:100%;height:auto;margin-top:-3px;overflow:visible;transform-origin:50% 0}.arcade:not(.busy) .crane-claw{animation:claw-idle 2.6s ease-in-out infinite}@keyframes claw-idle{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}.crane-head{fill:var(--game-yellow);stroke:var(--game-ink);stroke-width:4}.crane-lamp{fill:#fff;stroke:var(--game-ink);stroke-width:3}.arcade.busy .crane-lamp{fill:var(--game-red)}.arm-ink,.arm-fill{fill:none;stroke-linecap:round;stroke-linejoin:round}.arm-ink{stroke:var(--game-ink);stroke-width:13}.arm-fill{stroke:#e3e8f3;stroke-width:6}.crane-arm{transition:transform .15s cubic-bezier(.3,1.6,.5,1)}.crane-arm-left{transform-origin:36px 24px;transform:rotate(-5deg)}.crane-arm-right{transform-origin:64px 24px;transform:rotate(5deg)}.crane.open .crane-arm-left{transform:rotate(24deg)}.crane.open .crane-arm-right{transform:rotate(-24deg)}.arcade-window.clunk{animation:clunk .28s ease-out}@keyframes clunk{0%{transform:translate(0)}20%{transform:translate(-3px,2px)}45%{transform:translate(3px,-1px)}70%{transform:translate(-2px,1px)}to{transform:translate(0)}}.prize-row{position:absolute;left:0;right:0;bottom:26px;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:0 26px}.prize{position:relative;display:block;padding:0 0 22px;border:0;border-radius:0;color:var(--game-ink);text-decoration:none;background:none;font:inherit;cursor:pointer}button.prize:hover:not(:disabled){background:none}.prize:focus-visible{outline:none}.prize:focus-visible .prize-box{outline:4px solid var(--game-blue);outline-offset:4px}.prize-box{--box: var(--game-orange);position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 8px 12px;border:4px solid var(--game-ink);border-radius:14px;background:var(--box);box-shadow:inset 0 -10px #0000001f;transition:transform .2s cubic-bezier(.3,1.5,.5,1)}.prize-box:before{content:"";position:absolute;left:0;right:0;top:0;height:14px;border-radius:10px 10px 0 0;background:#ffffff4d;border-bottom:3px solid var(--game-ink)}.arcade:not(.busy) .prize:hover .prize-box,.arcade:not(.busy) .prize:focus-visible .prize-box{transform:translateY(-5px) rotate(-2deg)}.arcade.busy .prize-box{transition:transform .48s ease-in-out}.prize-box.slipping{transition:transform .26s cubic-bezier(.55,0,1,.45)!important}.prize-box.landed{animation:landed .38s ease-out}@keyframes landed{0%{transform:scale(1.06,.9)}50%{transform:translateY(-8px) scale(.98,1.03)}to{transform:none}}.arcade.resetting *,.arcade.resetting{transition:none!important}.prize-sticker{display:grid;place-items:center;width:52px;height:52px;border:4px solid var(--game-ink);border-radius:50%;background:#fff}.prize-sticker svg{width:26px;height:26px;stroke-width:2.4;color:var(--game-ink)}.prize-box strong{font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:21px;line-height:1.25;letter-spacing:.02em;color:#fff;white-space:nowrap;-webkit-text-stroke:6px var(--game-ink);paint-order:stroke fill}.prize-box small{padding:2px 10px;border:3px solid var(--game-ink);border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap;color:var(--game-ink);background:#fff}.prize-free .prize-box{--box: var(--game-blue)}.prize-ranked .prize-box{--box: var(--game-purple)}.prize-ranked .soon-tape,.prize-soon .soon-tape{position:absolute;z-index:2;left:-12px;right:-12px;top:8px;text-align:center;transform:rotate(-9deg);box-shadow:0 3px 0 var(--game-ink);pointer-events:none}.prize-ranked.prize .prize-box,.prize-soon.prize .prize-box{filter:saturate(.75)}.prize-bars:before,.prize-bars:after{content:"";position:absolute;bottom:0;width:24px;height:24px;border:4px solid var(--game-ink);border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff 0 3px,#cfd8e8 4px)}.prize-bars:before{left:18%}.prize-bars:after{right:18%}.arcade-glare{position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(112deg,transparent 0 14%,#ffffff8c 14% 17%,transparent 17% 20%,#ffffff66 20% 21.5%,transparent 21.5%)}.arcade-get{position:absolute;z-index:6;left:clamp(32%,var(--get-x, 50%),68%);top:34%;font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-size:66px;line-height:1;color:var(--game-yellow);-webkit-text-stroke:12px var(--game-ink);paint-order:stroke fill;text-shadow:0 7px 0 var(--game-ink);transform:translate(-50%,-50%) scale(0) rotate(-12deg);pointer-events:none}.arcade-get.show{animation:get-pop .55s cubic-bezier(.2,1.7,.4,1) forwards}.arcade-confetti{position:absolute;z-index:6;left:var(--get-x, 50%);top:34%;pointer-events:none}.arcade-confetti i{position:absolute;width:10px;height:14px;border:2px solid var(--game-ink);border-radius:2px;opacity:0;background:var(--game-yellow)}.arcade-confetti i:nth-child(3n+1){background:var(--game-red)}.arcade-confetti i:nth-child(3n+2){background:var(--game-blue);width:12px;height:9px}.arcade-confetti.show i{animation:confetti .9s cubic-bezier(.15,.7,.4,1) forwards}@keyframes confetti{0%{opacity:1;transform:translate(0) rotate(0)}80%{opacity:1}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--turn))}}.prize-box.held,.crane.lifting .crane-claw{animation:held-sway .55s ease-in-out}@keyframes held-sway{0%,to{rotate:0deg}30%{rotate:-3deg}65%{rotate:2deg}}@keyframes get-pop{to{transform:translate(-50%,-50%) scale(1) rotate(-8deg)}}.arcade-panel{display:flex;align-items:center;justify-content:center;gap:34px;margin-top:16px;padding:14px 18px;border:4px solid var(--game-ink);border-radius:18px;background:#fff}.arcade-stick{position:relative;width:22px;height:40px}.arcade-stick:before{content:"";position:absolute;left:7px;bottom:0;width:8px;height:26px;border:3px solid var(--game-ink);border-radius:4px;background:#ccd6e8}.arcade-stick:after{content:"";position:absolute;left:-4px;top:-4px;width:30px;height:30px;border:4px solid var(--game-ink);border-radius:50%;background:var(--game-red)}.arcade-button{width:46px;height:46px;border:4px solid var(--game-ink);border-radius:50%;background:var(--game-yellow);box-shadow:inset 0 -6px #00000026,0 4px 0 var(--game-ink)}.arcade-coin{padding:6px 12px;border:4px solid var(--game-ink);border-radius:10px;font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-size:16px;color:#fff;background:var(--game-ink)}.arcade-coin:after{content:"円";font-size:11px;margin-left:2px}@media(prefers-reduced-motion:reduce){.arcade-marquee:before,.arcade:not(.busy) .crane-claw{animation:none}}.menu-head{display:flex;align-items:center;gap:16px;margin-bottom:22px}.menu-title{margin:0;font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:32px;letter-spacing:.03em;line-height:1.3;background:linear-gradient(transparent 60%,var(--game-yellow) 60% 92%,transparent 92%)}.menu-lead{margin-top:-6px;margin-bottom:22px;font-size:14px;line-height:1.7;color:#5d6481}.create-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.create-choice{display:flex;align-items:center;justify-content:flex-start;gap:16px;padding:20px 22px;border:4px solid var(--game-ink);border-radius:20px;color:var(--game-ink);text-align:left;text-decoration:none;font:inherit;background:var(--game-yellow);box-shadow:0 6px 0 var(--game-ink);cursor:pointer;transition:transform .15s cubic-bezier(.3,1.5,.5,1),box-shadow .15s}.create-choice:hover:not(:disabled){border-color:var(--game-ink);background:var(--game-yellow);transform:translateY(-3px);box-shadow:0 9px 0 var(--game-ink)}.create-choice:active{transform:translateY(4px);box-shadow:0 2px 0 var(--game-ink)}.create-new,.create-new:hover:not(:disabled){color:#fff;background:var(--game-orange)}.create-load,.create-load:hover:not(:disabled){background:#fff}.create-publish,.create-publish:hover:not(:disabled){color:#fff;background:var(--game-blue)}.create-publish strong{color:#fff;-webkit-text-stroke:6px var(--game-ink);paint-order:stroke fill}.create-publish small{color:#fff}.create-load:disabled{opacity:.6;cursor:wait}.create-choice-icon{display:grid;flex:none;place-items:center;width:64px;height:64px;border:4px solid var(--game-ink);border-radius:50%;color:var(--game-ink);background:#fff}.create-choice-icon svg{width:32px;height:32px;stroke-width:2.8}.create-choice-text{display:flex;flex-direction:column;gap:4px;min-width:0}.create-choice strong{font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:24px;line-height:1.25}.create-new strong{color:#fff;-webkit-text-stroke:6px var(--game-ink);paint-order:stroke fill}.create-choice small{font-size:13px;font-weight:800}.create-new small{color:#fff}.course-cards>li{position:relative}.course-card.with-action{padding-bottom:48px}.course-copy,.course-copy:hover:not(:disabled){position:absolute;left:14px;right:14px;bottom:16px;justify-content:center;gap:6px;padding:5px 10px;border:3px solid var(--game-ink);border-radius:10px;font-size:12px;font-weight:800;color:var(--game-ink);background:var(--game-yellow);box-shadow:0 3px 0 var(--game-ink)}.course-copy:active{transform:translateY(2px);box-shadow:0 1px 0 var(--game-ink)}.course-copy svg{width:14px;height:14px;stroke-width:2.6}.course-play{display:inline-flex;align-items:center;text-decoration:none}.free-tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:26px}.owned-course-actions{display:flex;flex-wrap:wrap;gap:8px;padding:14px;margin-top:auto}.owned-course-actions button{flex:1;justify-content:center}.owned-course-actions button,.owned-course-actions button:hover:not(:disabled),.edit-course-actions button,.edit-course-actions button:hover:not(:disabled){border:3px solid var(--game-ink);border-radius:10px;color:var(--game-ink);background:var(--game-yellow);box-shadow:0 3px 0 var(--game-ink);font-weight:800}.owned-course-actions button:active:not(:disabled),.edit-course-actions button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--game-ink)}.edit-course-actions [data-publish],.edit-course-actions [data-publish]:hover:not(:disabled){color:#fff;background:var(--game-blue)}.edit-course-actions{position:absolute;left:12px;right:12px;bottom:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.edit-course-actions button{justify-content:center;gap:4px;min-width:0;padding:8px 4px;font-size:12px}.edit-course-actions svg{width:14px;height:14px}#edit-course-list .course-card.with-action{padding-bottom:72px}@media(max-width:600px){.free-tabs{grid-template-columns:1fr 1fr;gap:10px}.free-tabs a{padding:10px 6px;font-size:13px}#edit-course-list,#own-shared-course-list{grid-template-columns:1fr}}.free-tabs a{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px;border:4px solid var(--game-ink);border-radius:16px;color:var(--game-ink);font-size:16px;font-weight:800;text-decoration:none;background:#fff;box-shadow:0 5px 0 var(--game-ink)}.free-tabs a svg{stroke-width:2.4}.free-tabs a[aria-current=page]{color:#fff;background:var(--game-blue);transform:translateY(3px);box-shadow:0 2px 0 var(--game-ink)}.course-cards{list-style:none;margin-top:0;margin-bottom:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}.course-card{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;border:4px solid var(--game-ink);border-radius:18px;color:var(--game-ink);text-decoration:none;background:#fff;box-shadow:0 6px 0 var(--game-ink);transition:transform .15s cubic-bezier(.3,1.5,.5,1),box-shadow .15s;animation:card-in .35s cubic-bezier(.3,1.4,.5,1) both}.course-card:hover{transform:translateY(-4px) rotate(-.6deg);box-shadow:0 10px 0 var(--game-ink)}.course-card:active{transform:translateY(4px);box-shadow:0 2px 0 var(--game-ink)}@keyframes card-in{0%{opacity:0;transform:translateY(14px) scale(.96)}}.course-cards li:nth-child(2) .course-card{animation-delay:.05s}.course-cards li:nth-child(3) .course-card{animation-delay:.1s}.course-cards li:nth-child(n+4) .course-card{animation-delay:.15s}.course-card.fresh:after{content:"NEW!";position:absolute;top:10px;right:10px;padding:4px 11px;border:3px solid var(--game-ink);border-radius:999px;font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-size:13px;background:var(--game-yellow);box-shadow:0 3px 0 var(--game-ink);transform:rotate(8deg)}.course-thumb{position:relative;display:grid;place-items:center;aspect-ratio:16 / 10;overflow:hidden;border-bottom:4px solid var(--game-ink);color:var(--game-ink);background:radial-gradient(circle,#ffffffb3 0 3px,transparent 3.5px) 0 0 / 22px 22px,var(--game-sky)}.course-thumb img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}.course-thumb svg{width:44px;height:44px;stroke-width:2}.course-card-body{display:flex;flex-direction:column;gap:3px;min-width:0;padding:12px 14px 2px}.course-card-body strong{overflow:hidden;font-size:16px;font-weight:800;white-space:nowrap;text-overflow:ellipsis}.course-card-body small{font-size:12px;color:#6b7290}.course-official{align-self:flex-start;padding:2px 8px;border-radius:6px;background:#d9f5ec;color:#17694e;font-size:11px;font-weight:800}.course-best{align-self:flex-start;margin:8px 14px 14px;padding:2px 10px;border:3px dashed #b8bfd4;border-radius:10px;font-size:12px;font-weight:800;color:#8a91aa}.course-best.cleared{border:3px solid var(--game-red);color:var(--game-red);background:#fff4f2;transform:rotate(-4deg)}.course-empty{padding:34px 20px;border:4px dashed #c3c9dc;border-radius:22px;text-align:center}.course-empty-icon{display:inline-grid;place-items:center;width:64px;height:64px;margin-bottom:12px;border:4px solid var(--game-ink);border-radius:50%;background:var(--game-sky)}.course-empty-icon svg{width:30px;height:30px;stroke-width:2.2}.course-empty strong{display:block;margin-bottom:8px;font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:20px}.course-empty p{max-width:440px;margin:0 auto 20px;line-height:1.7;color:#5d6481}.menu-button{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border:4px solid var(--game-ink);border-radius:16px;color:#fff;font-weight:800;text-decoration:none;background:var(--game-orange);box-shadow:0 5px 0 var(--game-ink)}.menu-button svg{stroke-width:2.4}.menu-button:active{transform:translateY(3px);box-shadow:0 2px 0 var(--game-ink)}.free-note{margin:18px auto 0;font-size:12px;line-height:1.7;color:#6b7290}.course-search{padding:18px;border:4px solid var(--game-ink);border-radius:20px;background:#fff;box-shadow:0 6px 0 var(--game-ink)}.course-search label{display:block;margin-bottom:10px;font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:19px}.course-search label small{margin-left:8px;font-family:DM Sans,Noto Sans JP,sans-serif;font-size:12px;font-weight:600;color:#6b7290}.course-code-row{display:flex;gap:10px}.course-code-row input{flex:1;min-width:0;padding:11px 14px;border:3px solid var(--game-ink);border-radius:12px;font-size:16px;font-weight:700;color:var(--game-ink);background:#fff}.course-code-row input:focus-visible{outline:4px solid #2f80ff66;outline-offset:1px}.course-code-row button,.course-code-row button:hover:not(:disabled){flex:none;padding:0 18px;border:3px solid var(--game-ink);border-radius:12px;font-weight:800;color:#fff;background:var(--game-orange);box-shadow:0 4px 0 var(--game-ink)}.course-code-row button:active{transform:translateY(3px);box-shadow:0 1px 0 var(--game-ink)}.course-code-row button svg{stroke-width:2.6}.course-code-note:empty{display:none}.course-code-note{margin:10px 0 0;font-size:13px;font-weight:700;color:#d6362c}.free-section-title{margin-top:30px;margin-bottom:14px;font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:20px}@media(prefers-reduced-motion:reduce){.course-card{animation:none}}@media(max-width:640px){.top-screen,.free-screen,.create-screen{padding:20px 16px 40px}.arcade{padding:0 10px 12px;border-radius:26px 26px 18px 18px;box-shadow:0 7px 0 var(--game-ink)}.arcade-marquee{margin:-4px -14px 12px;padding:14px 12px 16px;border-radius:22px}.arcade-marquee:before{inset:5px;border-width:4px;border-radius:16px}.arcade-logo{font-size:32px;-webkit-text-stroke-width:7px;text-shadow:0 4px 0 var(--game-ink)}.arcade-window{height:calc(290px + var(--extra-phone, 0px))}.crane{--cable: 10px;width:64px}.crane-carriage{width:36px;height:20px}.prize-row{gap:8px;padding:0 8px}.prize{padding-bottom:18px}.prize-box{gap:5px;padding:18px 4px 10px;border-width:3px;border-radius:12px}.prize-box:before{height:11px;border-radius:8px 8px 0 0}.prize-sticker{width:40px;height:40px;border-width:3px}.prize-sticker svg{width:20px;height:20px}.prize-box strong{display:flex;flex-direction:column;justify-content:center;min-height:35px;font-size:14px;text-align:center;-webkit-text-stroke-width:4px}.prize-management{display:block}.prize-box small{display:none}.prize-bars:before,.prize-bars:after{width:19px;height:19px;border-width:3px}.prize-ranked .soon-tape,.prize-soon .soon-tape{top:6px;font-size:11px;padding:2px 6px}.arcade-get{font-size:46px;-webkit-text-stroke-width:9px}.arcade-panel{gap:24px;margin-top:12px;padding:10px}.menu-title{font-size:25px}.create-choices{grid-template-columns:minmax(0,1fr);gap:14px}.create-choice{gap:14px;padding:16px}.create-choice-icon{width:52px;height:52px}.create-choice-icon svg{width:26px;height:26px}.create-choice strong{font-size:20px}.free-tabs a{font-size:15px;padding:11px 8px}.course-cards{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px}.course-card-body strong{font-size:14px}}@media(max-width:360px){.arcade-logo{font-size:28px}.prize-box strong{font-size:11px}.course-code-row button{padding:0 12px}}.game-logo{position:relative;display:inline-flex;flex:none;align-items:center;gap:0;padding:6px 15px 8px;border:3px solid var(--game-ink);border-radius:14px;text-decoration:none;white-space:nowrap;letter-spacing:normal;background:#ffd23c;box-shadow:0 4px 0 var(--game-ink)}.game-logo:before{content:"";position:absolute;inset:3px;border:3px dotted #fff8d6;border-radius:10px;pointer-events:none}.game-logo .logo-word{position:relative;font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:20px;line-height:1.25;letter-spacing:.02em;color:#fff;-webkit-text-stroke:5px var(--game-ink);paint-order:stroke fill;text-shadow:0 3px 0 var(--game-ink)}.game-logo:active{transform:translateY(3px);box-shadow:0 1px 0 var(--game-ink)}@media(max-width:600px){.game-logo{padding:5px 11px 7px;border-radius:12px}.game-logo .logo-word{font-size:16px;-webkit-text-stroke-width:4px;text-shadow:0 2px 0 var(--game-ink)}}@media(max-width:400px){.header .game-logo{padding:4px 8px 6px}.header .game-logo:before{inset:2px;border-width:2px}.header .game-logo .logo-word{font-size:13px;-webkit-text-stroke-width:3px}}.beta-patch{position:absolute;z-index:2;right:-22px;bottom:-30px;display:grid;place-items:center;width:96px;height:92px;border:2px solid var(--game-ink);border-radius:5px 8px 4px 7px;background-color:#9be2c0;background-image:repeating-linear-gradient(90deg,transparent 0 3px,#1d21400b 3px 4px),repeating-linear-gradient(0deg,transparent 0 3px,#ffffff26 3px 4px);box-shadow:3px 5px 0 var(--game-ink);transform:rotate(8deg);color:var(--game-ink);font:900 68px/1 Georgia,serif;letter-spacing:0;-webkit-text-stroke:0;text-shadow:none}.beta-patch:after{content:"";position:absolute;inset:5px;border:2px dashed #fff;border-radius:3px 5px 2px 4px;pointer-events:none}.game-logo .beta-patch{right:-34px;bottom:-26px;width:50px;height:54px;font-size:42px;box-shadow:2px 3px 0 var(--game-ink)}.menu-head .menu-logo{margin-right:22px}.game-logo .beta-patch:after{inset:3px;border-width:1.5px}@media(max-width:600px){.arcade-logo .beta-patch{right:-18px;bottom:-30px;width:66px;height:68px;font-size:52px}.game-logo .beta-patch{right:-30px;bottom:-24px;width:42px;height:46px;font-size:36px}.menu-head .menu-logo{margin-right:6px}}.course-clear-actions button{min-height:40px;padding:9px 12px;font-size:12px;white-space:nowrap}#settings-dialog[open]{display:flex;flex-direction:column}#settings-dialog .settings-preview{flex:0 0 25dvh;min-height:0;position:relative;overflow:hidden;border-bottom:1px solid var(--border)}#settings-dialog .settings-card{flex:1 1 auto;height:auto}#settings-dialog #viewport{height:100%;min-height:0;border-radius:0}#settings-dialog #remote,#settings-dialog #won-banner,#settings-dialog #replay-bar,#settings-dialog .stage-bottom,#settings-dialog .orientation{display:none!important}@media(max-height:550px){#settings-dialog .settings-preview{display:none}}.settings-title{display:flex;align-items:center;gap:14px;min-width:0}.advanced-toggle{display:inline-flex;align-items:center;gap:2px;color:#43536b;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}.settings-card:not(.show-advanced) .field[data-basic=false],.settings-card:not(.show-advanced) .settings-section[data-advanced=true]{display:none}.apply-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.apply-footer #dirty-note{margin-bottom:0;min-width:0}.restore-defaults{flex:none;min-height:36px;padding:6px 12px;border-radius:8px;color:#43536b;font-size:12px;font-weight:600;white-space:nowrap}.restore-defaults svg{width:14px;height:14px}.advanced-eye{display:inline-flex;margin-right:3px}.advanced-eye svg{width:18px;height:18px}.advanced-eye .eye-hidden{color:#8a91aa;display:inline-flex}.advanced-eye .eye-shown{color:var(--role-selected);display:none}.settings-card.show-advanced .advanced-eye .eye-hidden{display:none}.settings-card.show-advanced .advanced-eye .eye-shown{display:inline-flex}.advanced-toggle .switch span{background:#b8bfcc}.advanced-toggle .switch input:checked+span{background:var(--role-selected)}.settings-heading .settings-title{flex:1 1 auto}.settings-heading #close-settings{flex:none}@media(max-width:360px){.settings-heading h2{font-size:15px}.settings-title{gap:6px}.advanced-toggle{font-size:12px}}#won-banner{z-index:16}.save-cta,.save-cta:hover:not(:disabled){gap:8px;padding:6px 18px 7px 7px;border:3px solid var(--game-ink);border-radius:16px;color:#fff;background:#22b866;box-shadow:0 5px 0 var(--game-ink);font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:18px;letter-spacing:.03em;transition:transform .12s,box-shadow .12s}.save-cta>span:last-child{-webkit-text-stroke:5px var(--game-ink);paint-order:stroke fill}.save-cta:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 7px 0 var(--game-ink)}.save-cta:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px 0 var(--game-ink)}.save-cta-icon{display:grid;place-items:center;width:34px;height:34px;border:3px solid var(--game-ink);border-radius:50%;color:var(--game-ink);background:#fff}.save-cta-icon svg{width:18px;height:18px;stroke-width:2.4}@media(max-width:600px){.save-cta,.save-cta:hover:not(:disabled){padding:4px 12px 5px 5px;font-size:15px;border-radius:13px;box-shadow:0 4px 0 var(--game-ink)}.save-cta>span:last-child{-webkit-text-stroke-width:3px}.save-cta-icon{width:28px;height:28px}.save-cta-icon svg{width:15px;height:15px}}.save-cta-pair>span:last-child{font-size:.8em;line-height:1.05;text-align:left;-webkit-text-stroke-width:4px}.save-cta-pair .save-cta-icon .lucide-lock{display:none}@media(max-width:600px){.save-cta-pair>span:last-child{-webkit-text-stroke-width:2.5px}}#course-copy[aria-disabled=true],#course-copy[aria-disabled=true]:hover,#course-copy[aria-disabled=true]:active{border-color:#8a909c;color:#f3f4f7;background:#c3c7cf;box-shadow:0 5px #8a909c;transform:none;cursor:not-allowed}#course-copy[aria-disabled=true]>span:last-child{-webkit-text-stroke-color:#8a909c}#course-copy[aria-disabled=true] .save-cta-icon{border-color:#8a909c;color:#8a909c}#course-copy[aria-disabled=true] .save-cta-icon .lucide-copy{display:none}#course-copy[aria-disabled=true] .save-cta-icon .lucide-lock{display:block}.saved-panel{position:absolute;z-index:17;top:14px;left:50%;translate:-50% 0;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 24px);padding:12px 12px 12px 14px;border:3px solid var(--game-ink);border-radius:18px;color:var(--game-ink);background:#fff;box-shadow:0 6px 0 var(--game-ink);animation:saved-in .35s cubic-bezier(.3,1.5,.5,1)}@keyframes saved-in{0%{opacity:0;transform:translateY(-12px) scale(.96)}}.saved-star{display:grid;flex:none;place-items:center;width:42px;height:42px;border:3px solid var(--game-ink);border-radius:50%;background:#ffd23c}.saved-star svg{width:22px;height:22px;stroke-width:2.4;fill:#fff}.saved-text{display:flex;flex-direction:column;gap:2px;min-width:0}.saved-text strong{font-family:Dela Gothic One,Noto Sans JP,sans-serif;font-weight:400;font-size:16px}.saved-text small{overflow:hidden;font-size:12px;color:#5d6481;text-overflow:ellipsis;white-space:nowrap}.saved-actions{display:flex;gap:8px}.saved-actions button,.saved-actions button:hover:not(:disabled){padding:7px 12px;border:3px solid var(--game-ink);border-radius:12px;font-weight:800;white-space:nowrap;box-shadow:0 3px 0 var(--game-ink)}.saved-actions button:active{transform:translateY(2px);box-shadow:0 1px 0 var(--game-ink)}#saved-close{flex:none;align-self:flex-start}@media(max-width:600px){.saved-panel{left:12px;right:12px;translate:none;width:auto;flex-wrap:wrap;max-width:none}.saved-text{flex:1}.saved-actions{order:3;flex:1 0 100%}.saved-actions button{flex:1;justify-content:center}}.for-touch{display:none!important}@media(hover:none)and (pointer:coarse){.for-touch:not([hidden]){display:revert!important}.for-mouse{display:none!important}}.drive-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.drive-button,.drive-button:hover:not(:disabled){position:relative;flex-direction:column;gap:0;min-height:64px;padding:6px 4px 8px;border:3px solid var(--game-ink);border-radius:16px;color:#fff;font-weight:800;font-size:13px;background:#ff8a3d;box-shadow:0 5px 0 var(--game-ink);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.drive-z,.drive-z:hover:not(:disabled){background:var(--game-blue)}.drive-button svg{width:26px;height:26px;stroke-width:3}.drive-button.pressed{transform:translateY(4px);box-shadow:0 1px 0 var(--game-ink);filter:brightness(.92)}.drive-button:disabled{opacity:1;color:#c6cbd8;background:#eef1f6;border-color:#c6cbd8;box-shadow:0 5px #c6cbd8}.drive-step{position:absolute;top:-9px;left:-7px;display:grid;place-items:center;width:22px;height:22px;border:3px solid var(--game-ink);border-radius:50%;font-size:12px;color:var(--game-ink);background:#ffd23c}.drive-button:disabled .drive-step{border-color:#c6cbd8;color:#c6cbd8;background:#fff}.publish-dialog{width:520px}.publish-dialog[data-step=intro] .publish-pick,.publish-dialog[data-step=pick] .publish-intro{display:none}.publish-steps{margin:0 0 14px;padding:0;list-style:none;counter-reset:step;display:grid;gap:10px}.publish-steps li{position:relative;display:flex;flex-direction:column;gap:3px;padding:10px 12px 10px 48px;border:2px solid var(--game-ink);border-radius:14px;counter-increment:step}.publish-steps li:before{content:counter(step);position:absolute;left:10px;top:10px;display:grid;place-items:center;width:28px;height:28px;border:3px solid var(--game-ink);border-radius:50%;font-family:Dela Gothic One,Noto Sans JP,sans-serif;background:#ffd23c}.publish-steps strong{font-size:15px}.publish-steps small{font-size:12px;line-height:1.6;color:#5d6481}.publish-note{margin:0 0 14px;font-size:12px;line-height:1.7;color:#5d6481}#publish-next{width:100%;min-height:44px;font-weight:800}.publish-course-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;max-height:50vh;overflow-y:auto}.publish-course{display:flex;align-items:center;gap:12px;padding:8px 12px 8px 8px;border:2px solid var(--game-ink);border-radius:14px;color:var(--game-ink);text-decoration:none;font-weight:800;background:#fff}.publish-course:hover{background:#f4f8ff}.publish-course strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.publish-thumb{display:grid;flex:none;place-items:center;width:72px;height:45px;overflow:hidden;border-radius:8px;background:#e3f2ff}.publish-thumb img{width:100%;height:100%;object-fit:cover}.course-delete,.course-delete:hover:not(:disabled){position:absolute;top:-9px;right:-9px;z-index:3;width:38px;height:38px;min-height:0;min-width:0;flex:none;padding:0;border:3px solid var(--game-ink);border-radius:50%;color:#fff;background:#ff5146;box-shadow:0 3px 0 var(--game-ink)}.course-delete:active{transform:translateY(2px);box-shadow:0 1px 0 var(--game-ink)}.course-delete svg{width:18px;height:18px;stroke-width:3.2}.remote-mode-toggle{display:flex;gap:4px;padding:4px;border-radius:12px;background:#e9edf4}.remote-mode-toggle button{flex:1;min-height:36px;padding:6px 8px;border:0;background:transparent;font-size:12px}.remote-mode-toggle button[aria-pressed=true]{color:#fff;background:#27354b;box-shadow:0 2px 4px #1d214022}.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.catalog-toolbar>span{display:inline-flex;align-items:center;gap:6px;font-weight:700}.catalog-toolbar>label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700}.catalog-toolbar select{min-width:140px;padding:10px 28px 10px 12px;font-size:14px}.catalog-toolbar svg{width:18px;height:18px}#share-create-link,#share-catalog-publish{width:100%;margin-top:12px}.save-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.save-actions button{width:100%;min-height:44px}.course-footer{display:flex;gap:10px;padding:10px 12px;border-top:1px solid #e3e8ef;background:#f9fafc}.course-footer button,.course-footer button:hover:not(:disabled){flex:1 1 0;min-height:44px;gap:6px;border:3px solid var(--game-ink);border-radius:14px;font-weight:800;color:var(--game-ink);background:#fff;box-shadow:0 4px 0 var(--game-ink)}.course-footer .course-example,.course-footer .course-example:hover:not(:disabled){background:#ffd23c}.course-footer button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--game-ink)}.course-footer button:disabled{opacity:.5}.course-footer svg{stroke-width:2.4}@media(max-width:979px)and (min-height:551px){.layout{height:auto;min-height:calc(100dvh - var(--app-header-height));padding-bottom:10px;gap:0}.workspace,.play-area,.stage-card{display:flex;flex:1;flex-direction:column}#viewport{height:auto;flex:1 1 0;min-height:200px}}.menu-head{position:sticky;top:0;z-index:20;margin-top:-10px;padding:10px 0;background:#fff;box-shadow:-100vmax 0 #fff,100vmax 0 #fff;clip-path:inset(0 -100vmax -80px)}.header{position:sticky;top:0;z-index:25;background:#f7f8fa;box-shadow:-100vmax 0 #f7f8fa,100vmax 0 #f7f8fa;clip-path:inset(0 -100vmax -80px)}:root:has(body[data-screen=game]){scroll-padding-top:calc(var(--app-header-height) + 8px)}:root:has(body:is([data-screen=free],[data-screen=create])){scroll-padding-top:96px}#shared-course-list{--thumb: 150px;grid-template-columns:minmax(0,1fr);gap:16px}@media(min-width:600px){#shared-course-list{--thumb: 260px}}#shared-course-list .course-card{display:grid;grid-template-columns:var(--thumb) minmax(0,1fr);grid-template-rows:auto auto 1fr;align-content:start}#shared-course-list .course-card.with-action{padding-bottom:0}#shared-course-list .course-thumb{grid-row:1 / -1;aspect-ratio:auto;min-height:calc(var(--thumb) * .625);border-bottom:0;border-right:4px solid var(--game-ink)}#shared-course-list .course-card-body{padding-top:12px}#shared-course-list .course-card-body strong{white-space:normal;overflow-wrap:anywhere;line-height:1.35}#shared-course-list .course-best{margin:6px 14px 62px}#shared-course-list .course-copy{left:calc(var(--thumb) + 18px)}#shared-course-list .course-best{justify-self:start}.course-like,.course-like:hover:not(:disabled){color:#fff;border-color:#e0245e;background:#ff4f81}.course-like:disabled{opacity:.7}.course-like svg{fill:currentColor}.course-like-count{display:inline-flex;align-items:center;gap:4px;color:#d0285c!important;font-weight:800}.course-like-count svg{width:13px;height:13px;fill:currentColor;stroke-width:2}#my-course-list .course-card.with-action{padding-bottom:72px}.course-action-pair{position:absolute;left:12px;right:12px;bottom:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.course-action-pair>a,.course-action-pair>button,.course-action-pair>button:hover:not(:disabled){display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:40px;padding:8px 4px;border:3px solid var(--game-ink);border-radius:10px;color:var(--game-ink);background:var(--game-yellow);box-shadow:0 3px 0 var(--game-ink);font-size:13px;font-weight:800;text-decoration:none}.course-action-pair>[data-publish],.course-action-pair>[data-publish]:hover:not(:disabled){color:#fff;background:var(--game-blue)}.course-action-pair>:active{transform:translateY(2px);box-shadow:0 1px 0 var(--game-ink)}.course-action-pair svg{width:14px;height:14px;stroke-width:2.6}@media(max-width:640px){#my-course-list{--thumb: 120px;grid-template-columns:minmax(0,1fr);gap:16px}#my-course-list .course-card{display:grid;grid-template-columns:var(--thumb) minmax(0,1fr);grid-template-rows:auto auto 1fr;align-content:start}#my-course-list .course-card.with-action{padding-bottom:0}#my-course-list .course-thumb{grid-row:1 / -1;aspect-ratio:auto;min-height:calc(var(--thumb) * .625);border-bottom:0;border-right:4px solid var(--game-ink)}#my-course-list .course-card-body{gap:4px;padding:10px 12px 0}#my-course-list .course-card-body strong{white-space:normal;overflow-wrap:anywhere;line-height:1.35}#my-course-list .course-best{justify-self:start;margin:6px 12px 58px;padding:1px 8px;font-size:11px}#my-course-list .course-action-pair{left:calc(var(--thumb) + 18px);right:12px;bottom:12px}}@media(max-width:369px){#my-course-list .course-best{margin-bottom:106px}#my-course-list .course-action-pair{grid-template-columns:minmax(0,1fr)}}.owned-course-actions .republish,.owned-course-actions .republish:hover:not(:disabled){color:#fff;background:var(--game-blue)}.catalog-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin:22px 0 6px}.catalog-pager[hidden]{display:none}.catalog-pager button,.catalog-pager button:hover:not(:disabled){min-width:108px;gap:6px;border:3px solid var(--game-ink);border-radius:12px;color:var(--game-ink);background:#fff;box-shadow:0 4px 0 var(--game-ink);font-weight:800}.catalog-pager button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--game-ink)}.catalog-pager button:disabled{opacity:.35;box-shadow:none}#public-courses-page{min-width:92px;font-weight:800;text-align:center}.game-btn,.game-btn:hover:not(:disabled){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 14px;border:var(--game-line);border-radius:var(--game-radius);color:var(--game-ink);background:#fff;box-shadow:var(--game-shadow);font-weight:800;line-height:1.3;text-decoration:none;transition:transform .12s,box-shadow .12s}.game-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 0 var(--game-ink)}.game-btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--game-ink)}.game-btn:disabled{opacity:.45;box-shadow:none;transform:none}.game-btn svg{stroke-width:2.4}.game-btn.is-save,.game-btn.is-save:hover:not(:disabled){color:#fff;background:var(--role-save)}.game-btn.is-share,.game-btn.is-share:hover:not(:disabled){color:#fff;background:var(--role-share)}.game-btn.is-play,.game-btn.is-play:hover:not(:disabled){color:var(--game-ink);background:var(--role-play)}.game-btn.is-action,.game-btn.is-action:hover:not(:disabled){color:#fff;background:var(--role-action)}.game-btn.is-danger,.game-btn.is-danger:hover:not(:disabled){color:#fff;background:var(--role-danger)}.game-btn.is-like,.game-btn.is-like:hover:not(:disabled){color:#fff;background:var(--role-like)}.game-btn.is-like svg{fill:currentColor}.save-cta.is-share,.save-cta.is-share:hover:not(:disabled){background:var(--role-share)}.save-cta.is-action,.save-cta.is-action:hover:not(:disabled){background:var(--role-action)}#share-button:disabled{opacity:.5}.saved-actions .game-btn{padding:7px 12px;box-shadow:0 3px 0 var(--game-ink)}dialog{border:var(--game-line);border-radius:var(--game-radius-large);color:var(--game-ink);box-shadow:0 8px 0 var(--game-ink),0 24px 60px #1d214033}dialog::backdrop{background:#1d214080;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-header h2,.settings-heading h2{font-family:var(--game-display);font-weight:400;letter-spacing:.02em;color:var(--game-ink)}.dialog-header h2{font-size:21px;line-height:1.4}dialog>p{color:#4b5470}.dialog-actions{gap:12px}.dialog-input,.dialog-input:hover{border:var(--game-line-thin);border-radius:var(--game-radius)}dialog .icon-btn,dialog .icon-btn:hover:not(:disabled),#close-settings,#close-settings:hover:not(:disabled),#saved-close,#saved-close:hover:not(:disabled){width:44px;min-width:44px;height:44px;padding:0;border:var(--game-line-thin);border-radius:var(--game-radius);color:var(--game-ink);background:#fff;box-shadow:0 3px 0 var(--game-ink)}dialog .icon-btn:active,#close-settings:active,#saved-close:active{transform:translateY(2px);box-shadow:0 1px 0 var(--game-ink)}dialog .icon-btn svg,#close-settings svg,#saved-close svg{width:20px;height:20px;stroke-width:2.6}#settings-dialog .settings-card{box-shadow:none}@media(max-width:600px){.dialog-header h2{font-size:18px}}.stage-card,.settings-card{border:var(--game-line);border-radius:var(--game-radius-large);box-shadow:var(--game-shadow-large)}.stage-toolbar{border-radius:17px 17px 0 0}.stage-instructions{border-radius:0 0 17px 17px}.course-heading strong{font-family:var(--game-display);font-weight:400;letter-spacing:.02em}.settings-heading h2{font-size:20px}#move-box,#pause,#open-settings,#speed,.display-options>summary{border:var(--game-line-thin);border-radius:10px;color:var(--game-ink);background:#fff;box-shadow:var(--game-shadow-small);font-weight:700}#move-box[aria-pressed=true],#pause[aria-pressed=true]{color:#fff;background:var(--role-selected)}.view-switch{padding:3px;border:var(--game-line-thin);border-radius:var(--game-radius);background:#fff;box-shadow:var(--game-shadow-small)}.view-switch button{border-radius:8px;color:var(--game-ink);font-weight:700}.view-switch button.active{color:#fff;background:var(--role-selected);box-shadow:none}.phase-pill,.play-pill{border:var(--game-line-thin);border-radius:10px;color:var(--game-ink);background:#fff;box-shadow:var(--game-shadow-small);font-weight:700;-webkit-backdrop-filter:none;backdrop-filter:none}.play-pill b{font-family:var(--game-display);font-weight:400}.remote{border:var(--game-line);border-radius:18px;background:#fff;box-shadow:var(--game-shadow)}.remote-mode-toggle{padding:3px;border:var(--game-line-thin);background:#fff}.remote-mode-toggle button{color:var(--game-ink);font-weight:700}.remote-mode-toggle button[aria-pressed=true]{color:#fff;background:var(--role-selected);box-shadow:none}.remote .play-button,.remote .play-button:hover:not(:disabled){height:auto;min-height:52px;border:var(--game-line);border-radius:14px;color:#fff;background:var(--role-action);box-shadow:var(--game-shadow);font-weight:800}.remote .play-button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--game-ink)}.remote .play-button:disabled{opacity:1;color:#c6cbd8;background:#eef1f6;border-color:#c6cbd8;box-shadow:0 4px #c6cbd8}.remote .play-button:disabled>svg{fill:#c6cbd8}.remote-keys button,.remote-keys button:hover:not(:disabled){border:var(--game-line-thin);border-radius:10px;color:var(--game-ink);background:#fff;box-shadow:var(--game-shadow-small)}.remote-keys button:active:not(:disabled){transform:translateY(2px);box-shadow:none}.remote-keys button:disabled{opacity:.4;box-shadow:none}.remote .reset-button,.remote .reset-button:hover:not(:disabled){color:#c42f25;background:#fff0ee;border-color:var(--game-ink)}#won-banner{border:var(--game-line);border-radius:22px;background:#fff;box-shadow:0 6px 0 var(--game-ink),0 18px 40px #1d214026;-webkit-backdrop-filter:none;backdrop-filter:none}#won-banner strong{font-family:var(--game-display);font-weight:400;font-size:28px;letter-spacing:.03em;color:var(--game-ink);background:linear-gradient(transparent 60%,var(--game-yellow) 60% 92%,transparent 92%);padding:0 6px}#won-banner small{color:#4b5470}.course-clear-actions .game-btn,.won-actions .game-btn{min-height:42px;padding:8px 14px;font-size:13px}#replay-bar{border:var(--game-line-thin);background:#fff;color:var(--game-ink);box-shadow:var(--game-shadow-small)}#replay-bar .game-btn{min-height:34px;padding:4px 14px;box-shadow:var(--game-shadow-small)}#update-notice{border:var(--game-line);border-radius:16px;color:var(--game-ink);background:#fff;box-shadow:var(--game-shadow)}#update-notice [data-update-later],#update-notice [data-update-later]:hover:not(:disabled){color:var(--game-ink);background:#fff;border-color:var(--game-ink)}#toast{border:var(--game-line-thin);border-radius:var(--game-radius);background:var(--game-ink);box-shadow:var(--game-shadow-small)}#shared-course-list .course-card.fresh:after{right:auto;left:10px;top:10px}.settings-section.section-selected>summary{background:var(--game-blue-tint)}.scope-option:has(input:checked){background:var(--game-blue-tint);border-color:#8fb6f5}.save-shortcuts button[aria-pressed=true],.box-edit-modes button[aria-pressed=true],#sound-toggle[aria-pressed=true]{color:var(--game-blue-ink);background:var(--game-blue-tint);border-color:#8fb6f5}.library-dialog .library-effect,.share-result{color:#3d4a66;background:var(--game-sky);border-color:#b9d8f7}#box-move-panel{border-top-color:var(--game-ink)}.restore-defaults,.restore-defaults:hover:not(:disabled){border:var(--game-line-thin);border-radius:10px;color:var(--game-ink);background:#fff;box-shadow:var(--game-shadow-small);font-weight:700}@media(max-width:360px){.header nav.global-actions{gap:4px}.save-cta,.save-cta:hover:not(:disabled){padding:3px 9px 4px 4px;gap:5px}.save-cta-icon{width:24px;height:24px}}@media(max-width:600px){#won-banner strong{font-size:22px}}.contact-corner{max-width:760px;margin:28px auto 0;padding:18px 20px 20px;display:grid;justify-items:center;gap:8px;text-align:center;border:var(--game-line);border-radius:var(--game-radius-large);background:#fff;box-shadow:var(--game-shadow)}.contact-title{margin:0;font-family:var(--game-display);font-weight:400;font-size:20px;letter-spacing:.03em}.contact-corner p{margin:0;font-size:13px;line-height:1.7;color:#4b5470}.contact-link{margin-top:4px}.contact-corner .nowrap{white-space:nowrap}@media(min-width:761px){.top-screen{padding-top:24px;padding-bottom:16px}.arcade-window{height:clamp(calc(330px + var(--extra)),calc(100dvh - 392px),calc(400px + var(--extra)))}.contact-corner{margin-top:20px;padding:8px 20px;grid-template-columns:auto 1fr auto;align-items:center;justify-items:start;column-gap:18px;row-gap:2px;text-align:left}.contact-title{grid-row:1 / span 2;font-size:17px}.contact-link{grid-row:1 / span 2;grid-column:3;margin-top:0}.legal-links{grid-column:2;justify-self:start;margin:0}}@media(min-width:761px)and (max-height:760px){.top-screen{padding-top:12px;padding-bottom:10px}.arcade-marquee{margin-bottom:12px;padding:10px 24px 12px}.arcade-logo{font-size:42px;-webkit-text-stroke-width:8px;text-shadow:0 5px 0 var(--game-ink)}.arcade-marquee .beta-patch{width:76px;height:72px;font-size:52px;bottom:-22px}.arcade-window{height:clamp(calc(330px + var(--extra)),calc(100dvh - 300px),calc(400px + var(--extra)))}.arcade-panel{margin-top:10px;padding:6px 18px}.arcade-button{width:40px;height:40px}.contact-corner{margin-top:16px}}@media(max-width:979px)and (min-height:551px){.layout{padding-top:6px;padding-bottom:4px}}.settings-heading .settings-title{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-width:0}@media(max-width:400px){.settings-heading h2{font-size:17px}}.part-cards{list-style:none;margin-top:0;margin-bottom:0;padding:0;display:grid;gap:14px}.part-card{position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);gap:4px 14px;padding:14px 52px 14px 14px;border:var(--game-line);border-radius:18px;background:#fff;box-shadow:var(--game-shadow)}.part-card-icon{grid-row:1 / span 2;display:grid;place-items:center;width:52px;height:52px;border:var(--game-line-thin);border-radius:14px;background:var(--game-sky)}.part-card-icon svg{width:26px;height:26px;stroke-width:2.2}.part-card-body{display:flex;flex-direction:column;gap:2px;min-width:0}.part-card-body strong{font-size:16px;font-weight:800;overflow-wrap:anywhere}.part-card-body small{font-size:12px;color:#4b5470;line-height:1.6}.part-card-body .part-card-type{color:var(--game-blue-ink);font-weight:800}.part-card .course-delete,.part-card .course-delete:hover:not(:disabled){top:10px;right:10px}.part-card-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.part-card-actions .game-btn{min-height:38px;padding:6px 12px;font-size:12px;box-shadow:0 3px 0 var(--game-ink)}@media(max-width:600px){.part-card{grid-template-columns:44px minmax(0,1fr);padding-right:48px}.part-card-icon{width:44px;height:44px}.part-card-actions{grid-column:1 / -1}.part-card-actions .game-btn{flex:1 1 auto}}.part-save-row{padding:10px 2px 2px}.part-save-button,.part-save-button:hover:not(:disabled){width:100%;min-height:40px;padding:6px 10px;font-size:13px;box-shadow:0 3px 0 var(--game-ink)}.parts-dialog{width:min(820px,calc(100vw - 24px))}.parts-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}.parts-preview{position:relative;display:grid;place-items:center;aspect-ratio:16 / 10;overflow:hidden;border:var(--game-line);border-radius:16px;background:var(--game-sky)}.parts-preview-picture{position:absolute;inset:0;display:grid;place-items:center}.parts-preview-picture img{width:100%;height:100%;object-fit:cover}.parts-preview-picture svg{width:40px;height:40px}.parts-warning{margin:10px 0 0;padding:10px 12px;border:var(--game-line-thin);border-radius:12px;color:#8a2a1c;background:#fff0ee;font-size:13px;font-weight:700;line-height:1.6}.parts-slots{display:grid;gap:10px}.parts-slot{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start}.parts-slot-icon{display:grid;place-items:center;width:40px;height:40px;border:var(--game-line-thin);border-radius:12px;background:#fff}.parts-slot-icon svg{width:20px;height:20px;stroke-width:2.2}.parts-slot-body{display:grid;gap:4px;min-width:0}.parts-slot-body strong{font-size:13px;font-weight:800}.parts-slot-body select{width:100%;min-height:42px;border:var(--game-line-thin);border-radius:10px;color:var(--game-ink);background-color:#fff;font-weight:700}.parts-slot-body small{font-size:11px;line-height:1.5;color:#4b5470}.parts-import{margin-top:14px}.parts-import summary{min-height:40px;display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#43536b;cursor:pointer}.parts-import>div{display:flex;gap:8px;margin-top:6px}.parts-import textarea{flex:1;min-width:0}.parts-name-note{margin:14px 0 0;font-size:13px;color:#4b5470}.parts-name-note strong{color:var(--game-ink)}@media(max-width:700px){.parts-layout{grid-template-columns:minmax(0,1fr)}}.parts-slot-list{display:grid;gap:10px}.parts-base{padding-bottom:12px;border-bottom:2px dashed #c9d1e0}.parts-base .parts-slot-icon{background:var(--game-yellow)}@media(max-width:420px){.playback-controls{gap:6px}.speed-label{gap:4px;font-size:12px}.speed-label .speed-word{display:none}#speed{width:60px;min-width:0;padding:6px 18px 6px 8px;font-size:13px;background-position:right 4px center}#pause{padding:6px 9px;gap:4px;font-size:12px}#pause svg{width:15px;height:15px}.display-options>summary{padding:6px 8px;font-size:12px}.display-options>summary:after{margin-left:4px}}.course-card-body strong,.course-heading strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:anywhere}#shared-course-list .course-card-body{gap:4px;padding:10px 12px 0}#shared-course-list .course-meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px}#shared-course-list .course-meta small{font-size:11px}#shared-course-list .course-meta .course-official{padding:1px 6px;font-size:10px}#shared-course-list .course-best{margin:6px 12px 58px;padding:1px 8px;font-size:11px}#shared-course-list .course-copy{bottom:12px}@media(max-width:600px){#shared-course-list{--thumb: 120px}}.game-btn.is-save,.game-btn.is-save:hover:not(:disabled),.game-btn.is-action,.game-btn.is-action:hover:not(:disabled),.game-btn.is-danger,.game-btn.is-danger:hover:not(:disabled),.game-btn.is-like,.game-btn.is-like:hover:not(:disabled),.course-code-row button,.course-code-row button:hover:not(:disabled),.drive-button,.drive-button:hover:not(:disabled),.course-like,.course-like:hover:not(:disabled),.remote .play-button,.remote .play-button:hover:not(:disabled),.menu-button,.create-new small{color:var(--game-ink)}.drive-button.drive-z,.drive-button.drive-z:hover:not(:disabled){color:#fff}.legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;margin:6px 0 0;font-size:12px}.legal-links a,#share-terms a{color:var(--game-blue-ink)}.prize-row{grid-template-columns:repeat(6,minmax(0,1fr));row-gap:10px}.prize-row>.prize{grid-column:span 2;padding-bottom:16px}#top-contest{grid-column:2 / span 2}#top-skins{grid-column:4 / span 2}.prize-contest .prize-box{--box: var(--game-pink)}.prize-skins .prize-box{--box: var(--game-green)}.prize-box small{display:none}.prize-ranked .soon-tape,.prize-soon .soon-tape{border-width:2px}@media(min-width:641px){.prize-box{gap:4px;padding:16px 6px 8px}.prize-sticker{width:38px;height:38px;border-width:3px}.prize-sticker svg{width:19px;height:19px}.prize-box strong{font-size:16px;-webkit-text-stroke-width:5px}.prize-bars:before,.prize-bars:after{width:18px;height:18px;border-width:3px}.prize-ranked .soon-tape,.prize-soon .soon-tape{top:5px;font-size:10px;padding:1px 6px}}@media(max-width:640px){.prize-box{container-type:inline-size}.prize-box strong{font-size:min(14px,calc((100cqi - 4px) / 6.3));-webkit-text-stroke-width:.3em}}.arcade-window{--extra: 54px;--extra-phone: 100px}@media(max-width:640px){.arcade-panel{display:none}}@media(min-width:761px)and (max-height:700px){.top-screen{padding-top:8px;padding-bottom:6px}.arcade-window{height:clamp(calc(330px + var(--extra)),calc(100dvh - 226px),calc(400px + var(--extra)))}.arcade-panel{display:none}}
