@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-mark{background:#fcede7;border:1px solid #f9d9cc;width:43px;height:45px;border-radius:12px;display:grid;place-items:center;color:var(--accent)}.brand-mark svg{width:27px;height:27px;stroke-width:1.6}.brand-lab{font-size:21px;letter-spacing:1px;margin-left:7px;font-weight:750}.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}.nav-active{height:100%;display:flex;align-items:center;gap:8px;border-bottom:2px solid var(--accent);color:#d66a4c;padding:2px 0 0}.header .plain{color:#768196}.plain{border:0;background:transparent;padding:7px 3px;font-size:11px}.local-badge{margin-left:auto;font-size:10px;color:#8994a3;display:flex;align-items:center;gap:7px}.local-badge>span,.live-label>span:first-child{background:#79a88f;width:6px;height:6px;border-radius:50%}.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}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 25px}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#97a0ad;font-weight:650}.page-heading h1{font-size:25px;font-weight:700;letter-spacing:1px;margin:9px 0 8px;line-height:1.6}.page-heading p{color:#8a93a2;font-size:11px;letter-spacing:.3px;margin:0}.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}.live-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600}.setup-label{font-size:9px;color:#99a1ae;font-weight:400;padding-left:9px;border-left:1px solid var(--border);margin-left:3px}.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}.utility-bar{display:flex;justify-content:space-between;align-items:center;padding:14px 2px;gap:8px}.utility-bar>div{display:flex;align-items:center;gap:17px}.utility-bar .plain{font-size:10px;color:#7d889a;gap:5px}.utility-bar svg{width:13px;height:13px}.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}.table-label{color:#9da6b3;font-size:8px;padding:4px 0 8px}.success{color:#4d9474;font-weight:600}.model-note{font-size:8px;color:#a0a9b5;line-height:1.9;margin:15px 2px 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}.save-buttons{display:flex;gap:7px;margin-top:11px}.save-buttons button{height:31px;font-size:10px;background:#fff;color:#7f8ca0}.save-buttons button:nth-child(-n+2){flex:1}.save-buttons button:nth-child(n+3){width:33px}.save-buttons svg{width:13px;height:13px}.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}#save-confirm{width:100%;padding:12px}.saved-item{width:100%;padding:14px;margin-bottom:8px;text-align:left;justify-content:flex-start}.saved-item>span{flex:1}.saved-item small{display:block;margin-top:5px;font-size:9px;color:#929dad}.saved-empty{font-size:11px;line-height:1.9;color:#8b97aa;text-align:center;padding:20px}@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}.page-heading h1{font-size:21px}.version{display:none}.utility-bar>div{gap:9px}.utility-bar .plain{font-size:9px}.setup-label{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}.local-badge{display:none}.header nav{margin-left:auto;gap:20px}.page-heading h1{font-size:18px;letter-spacing:.5px}.page-heading p{font-size:10px}.stage-toolbar{padding:0 12px}.view-switch button{padding:5px 6px}.live-label{font-size:10px}.utility-bar{flex-wrap:wrap;gap:3px}#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}.brand-lab{font-size:18px}.brand-mark{width:36px;height:38px}.brand-mark svg{width:23px;height:23px}.header nav{gap:12px;font-size:10px}.nav-active svg{display:none}.header .plain{font-size:10px}.layout{display:flex;flex-direction:column;padding:24px 16px 12px;gap:22px}.workspace{width:100%}.page-heading{margin-bottom:20px}.page-heading h1{font-size:22px}.settings-card{width:100%}#viewport{height:470px}.stage-toolbar{padding:0 14px}.view-switch button{padding:5px 9px}.utility-bar{padding-top:12px;padding-bottom:12px;gap:8px}.utility-bar>div{gap:13px}#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}.model-note{font-size:9px}}@media(max-width:420px){.header{gap:10px}.brand small{font-size:7px;letter-spacing:1.5px}.header nav{gap:10px}.nav-active{font-size:9px}.header .plain{font-size:9px;gap:4px}.page-heading h1{font-size:19px}#viewport{height:400px}.stage-toolbar{padding:0 10px}.view-switch button{padding:5px 6px}.live-label{font-size:9px}.utility-bar>div{gap:10px}.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}.bar-legend{display:flex;gap:20px;font-size:9px;color:#939dad;padding:0 0 15px}.bar-legend>span{display:flex;align-items:center;gap:5px}.bar-legend i{display:inline-block;width:20px;height:5px;background:#c5a9b3;border-radius:2px}.bar-legend>span+span i{background:#c6d0dc}.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}.live-settings-note{font-size:9px;color:#98a2b1;line-height:1.8;margin:0 0 12px}: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-mark{width:35px;height:37px;border-radius:10px}.brand-mark svg{width:23px;height:23px}.brand-lab{font-size:18px}.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}.utility-bar{padding:7px 0 0;margin-top:8px;border-top:1px solid #f0f2f6;gap:8px}.utility-bar>div{gap:13px}.utility-bar{flex-wrap:wrap}.utility-options{margin-left:auto;flex-wrap:wrap}.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-buttons button{font-size:10px;min-height:28px;padding:4px 8px;background:#f7f8fa;color:#6b7a91}.position-buttons svg{width:13px;height:13px}.position-item{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:7px;margin-bottom:8px}.position-item .saved-item{margin:0}.position-delete{background:#f6f7fa;border:0}#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-list{max-height:55dvh;overflow-y:auto;overscroll-behavior-y:contain}#position-save-dialog,#position-load-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}#position-save-preview{display:block;width:100%;height:190px;object-fit:contain;background:#e9edf2;border:1px solid var(--border);border-radius:8px;margin:16px 0}.position-thumbnail{width:128px;height:86px;object-fit:contain;background:#e9edf2;border-radius:6px;flex:none!important}.position-no-preview{display:grid;place-items:center;font-size:9px;color:#8b97aa}.position-item .saved-item{padding:9px;gap:12px}.position-item .saved-item>span:not(.position-thumbnail){min-width:0;overflow-wrap:anywhere}.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}.history-card{margin-top:18px}.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,.live-settings-note{margin-bottom:7px}.save-buttons{margin-top: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}.utility-bar>div{gap:9px}}@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}.utility-bar{flex-wrap:wrap}}@media(max-width:600px){#box-move-panel{top:auto;bottom:12px}.position-thumbnail{width:96px;height:70px}#position-save-preview{height:160px}.header{padding:0 14px;gap:12px}.header nav{gap:10px}.nav-active{font-size:9px}.layout{padding-left:12px;padding-right:12px}.play-area{gap:8px}.utility-bar{gap:3px}.utility-bar>div{gap:10px}.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}.utility-bar{padding-top:4px;margin-top:5px}.stage-toolbar{height:34px}.orientation{display:none}.settings-heading{padding-top:9px;padding-bottom:9px}.live-settings-note{display:none}}.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-search-row,.library-filters,.library-save-footer,.library-load-footer{flex-shrink:0}#position-load-dialog{height:min(760px,calc(100dvh - 24px));overflow:hidden}.library-dialog .dialog-header{margin-bottom:10px}.library-dialog>p{margin:0 0 16px;color:#768398}.save-shortcuts,.library-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}.save-shortcuts button,.library-filters button{padding:7px 11px;font-size:11px;color:#6c7b8e;min-height:32px}.save-shortcuts button[aria-pressed=true],.library-filters 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}.library-dialog #position-save-preview{height:218px;margin:7px 0 0}.library-caption{color:#8995a6;font-size:10px;line-height:1.6;margin:7px 0 10px}.save-selection-layout .library-caption{text-align:center}.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,.library-load-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-destination{display:flex;align-items:center;gap:7px;color:#7f8da0;font-size:10px}.library-destination select{font-size:11px;padding:6px 28px 6px 9px}.library-header-actions{display:flex;align-items:center;gap:8px}#library-file{font-size:11px;padding:6px 9px;min-height:30px}#library-file svg{width:14px;height:14px}.file-badge{display:inline-block;margin-left:5px;font-size:9px;color:#638398;background:#e9f2f7;border-radius:4px;padding:3px 5px}.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}.library-search-row{display:flex;gap:10px;margin-bottom:12px}.library-search-row .dialog-input{flex:1;min-width:0;margin:0}.library-search-row select{font-size:11px}.library-content{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:20px;min-height:0;flex:1}.library-content>div{min-width:0;min-height:0;display:flex;flex-direction:column}.library-dialog #position-list{max-height:none;min-height:0;flex:1;padding:2px}.library-dialog .position-item{grid-template-columns:minmax(0,1fr) 26px;gap:5px}.library-dialog .position-item .saved-item{padding:9px;gap:9px;align-items:flex-start}.library-dialog .saved-item[aria-pressed=true]{border-color:#ed9872;background:#fff5ed;box-shadow:0 0 0 1px #ed987244}.library-dialog .saved-item strong{display:block;font-size:12px;line-height:1.6;color:#485b74}.library-dialog .saved-item small{font-size:9px;line-height:1.6;margin-top:5px}.library-dialog .saved-item .library-date{font-size:8px;color:#a1a9b4}.library-dialog .position-thumbnail{width:76px;height:68px}.scope-badge{display:inline-block;font-size:9px;background:#f4e9df;color:#a47354;border-radius:4px;padding:3px 5px;line-height:1.5;margin-top:5px}#load-selection{overflow-y:auto;overscroll-behavior-y:contain;padding-right:4px;min-height:0}#load-selection h3{font-size:14px;margin:4px 0 10px;color:#4c6078;overflow-wrap:anywhere}.library-detail-image{width:100%;height:155px;object-fit:contain;background:#e9edf2;border:1px solid var(--border);border-radius:8px;display:block;margin-bottom:15px}div.library-detail-image{display:grid}.library-placeholder{border:1px dashed #dbe2eb;background:#f9fbfd;border-radius:8px;padding:32px 18px;color:#96a1b2;font-size:11px;line-height:1.8;text-align:center}.library-load-footer{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}.library-load-footer .library-effect{margin:0;font-size:10px}#position-load-confirm{min-height:42px;padding:10px 14px;font-size:11px}.library-delete-confirm{grid-column:1 / -1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;background:#fff4ed;border:1px solid #efd6c6;padding:10px;border-radius:7px}.library-delete-confirm span{width:100%;overflow-wrap:anywhere;font-size:11px;color:#9e674d;line-height:1.6}.library-delete-confirm button{font-size:10px;padding:6px 8px;min-height:30px}.library-delete-confirm [data-delete-confirm]{color:#b56241}@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}.library-dialog #position-save-preview{height:145px;margin-top:0}.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,.library-filters button{padding:6px 9px;font-size:10px}.library-content{display:block;overflow-y:auto;overscroll-behavior-y:contain}.library-dialog #position-list{max-height:25dvh;flex:none}#load-selection{max-height:none;overflow-y:visible;margin-top:12px}.library-detail-image{height:120px;margin-bottom:10px}.library-load-footer{grid-template-columns:1fr;gap:10px;padding-top:12px;margin-top:12px}#position-load-confirm{width:100%}.library-search-row{gap:6px}.library-search-row .dialog-input{padding:9px;font-size:12px}.library-search-row select{font-size:10px;padding:8px 25px 8px 9px}}@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,.library-filters{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-destination select{padding-top:3px;padding-bottom:3px;font-size:10px}.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}.library-dialog #position-save-preview{height:110px}.scope-option{padding:7px 9px}.scope-option small{font-size:8px}.library-detail-image{height:80px}.library-load-footer{margin-top:8px;padding-top:8px}.library-load-footer .library-effect{margin:0}}.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}.library-paste{flex-shrink:0;margin:-8px 0 14px}.library-paste>summary{display:inline-flex;align-items:center;gap:6px;min-height:32px;font-size:12px;color:#6c7b8e;cursor:pointer}.library-paste>summary svg{width:14px;height:14px}.library-paste>div{display:flex;gap:8px;margin-top:6px}.library-paste textarea{flex:1;min-width:0;margin:0;font-size:12px;word-break:break-all;resize:none}.library-paste button{min-width:88px;min-height:44px}#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{--accent: #ad4328;--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 #ad4328;outline-offset:3px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover:not(:disabled){background:#8e321c;border-color:#8e321c}.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}.brand-lab{color:var(--ink)}.header nav.global-actions{margin-left:auto;gap:8px;font-size:13px}.header .plain{color:#43536b;font-size:13px}.brand-mark{color:var(--accent);background:#fff3ed;border-color:#efc4b4}.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:#85351e;background:#fff1e8}#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:#85351e;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:#85351e}.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:15;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}.model-note,.footer{font-size:12px;color:#526176;line-height:1.7}.settings-card{position:sticky;top: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:#85351e;background:#fff4ec;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:#85351e}.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-source-summary{display:grid;gap:5px;margin-bottom:16px;padding:10px 12px;border-radius:6px;background:#fff3e8;color:#43536b;font-size:12px;line-height:1.6}.bar-source-summary strong{color:#85351e}.bar-source-summary small{font-size:11px}.bar-override-fields{border-top:1px solid var(--border);padding-top:16px}.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:#85351e;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 #85351e}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:#85351e}.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,.bar-legend,.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:#85351e}.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,#position-load-dialog{overflow:hidden}.library-dialog>p{font-size:13px;color:#526176;margin-bottom:12px}.save-shortcuts,.library-filters{gap:8px;margin-bottom:12px}.save-shortcuts button,.library-filters button{min-height:44px;font-size:12px;padding:8px 12px;color:#43536b}.save-shortcuts button[aria-pressed=true],.library-filters button[aria-pressed=true]{color:#85351e;background:#fff2e9;border-color:#c47c60}.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:#85351e}.scope-option:has(input:checked){background:#fff7f0;border-color:#c47c60}.save-preview,.load-preview{margin:12px 0 0}.save-preview summary,.load-preview summary,#load-differences summary{min-height:44px;font-size:13px;padding:10px 0;color:#43536b;cursor:pointer}.library-dialog #position-save-preview{height:180px;margin-top:4px}.library-dialog .library-effect{color:#763e27;font-size:12px;line-height:1.7;padding:9px 12px;margin:12px 0}.library-save-footer,.library-load-footer{padding-top:12px;flex-shrink:0}.library-save-footer .minor-label{font-size:13px;color:#43536b}.library-save-heading{gap:10px}.library-destination{font-size:12px;color:#43536b}.library-destination select{font-size:13px;min-height:44px}.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,#position-load-confirm{min-height:44px;font-size:14px}.library-title{display:flex;gap:8px;align-items:center}#library-back{display:none}.library-header-actions{gap:8px}#library-file{font-size:12px;min-height:44px;padding:8px 10px}.library-search-row select{min-height:44px;color:#43536b;font-size:12px}.library-content{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:20px;min-height:0;flex:1;overflow-y:auto;overscroll-behavior-y:contain;padding:3px}.library-content>div{display:block;min-height:auto}.library-dialog #position-list{min-height:auto;max-height:none;overflow:visible;padding:0}#load-selection{min-height:auto;overflow:visible;padding-right:4px}#load-selection h3{font-size:16px;color:#43536b;margin:0 0 14px}.library-placeholder,.saved-empty{font-size:13px;color:#526176}.library-dialog .position-item{grid-template-columns:minmax(0,1fr) 44px;gap:8px}.library-dialog .position-item .saved-item{padding:10px;gap:10px}.library-dialog .saved-item strong{font-size:14px;color:#43536b}.library-dialog .saved-item small{font-size:12px;color:#526176}.library-dialog .saved-item .library-date{font-size:11px;color:#526176}.library-dialog .saved-item[aria-pressed=true]{border-color:#ad4328;background:#fff5ec;box-shadow:0 0 0 1px #ad432833}.library-dialog .position-thumbnail{width:72px;height:72px}.library-dialog .position-delete{min-height:44px;width:44px;padding:10px;color:#85351e}.scope-badge,.file-badge{font-size:11px;color:#763e27;background:#fff1e2}.library-caption{font-size:12px;color:#526176}.library-detail-image{height:140px}.position-no-preview{font-size:12px;color:#526176}.library-load-footer{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:12px}.library-load-footer .library-effect{flex:1;min-width:180px;margin:0;font-size:12px}.library-delete-confirm span{font-size:13px;color:#763e27}.library-delete-confirm button{font-size:12px;min-height:44px}.library-delete-confirm [data-delete-confirm]{color:#85351e}#load-differences{padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:#f5f7fa;font-size:12px;color:#43536b}#load-differences p{margin:0;line-height:1.7}#load-differences ul{list-style:none;margin:0;padding:0}#load-differences li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 8px;padding:7px 0;border-bottom:1px solid var(--border)}#load-differences li:last-child{border-bottom:0}#load-differences strong{font-weight:600}[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}.brand-lab{font-size:15px}.brand-mark{width:30px;height:34px}.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-header-actions{gap:4px}#library-file{font-size:11px;padding:6px}.library-dialog>p{margin-bottom:8px;font-size:12px}.save-shortcuts,.library-filters{gap:6px;margin-bottom:10px}.save-shortcuts button,.library-filters 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-destination{margin-left:auto}.library-save-footer .dialog-input{padding:8px;margin-bottom:6px}#save-destination-note{font-size:11px;margin-bottom:6px}.library-content{display:block;overflow-y:auto}.library-dialog #position-list{overflow:visible;max-height:none}#load-selection{margin:0}.library-load-footer{display:block;margin-top:8px;padding-top:8px}.library-load-footer .library-effect{margin:0 0 8px}#position-load-confirm{width:100%}#position-load-dialog[data-step=list] #load-selection,#position-load-dialog[data-step=list] .library-load-footer,#position-load-dialog[data-step=detail] .library-search-row,#position-load-dialog[data-step=detail] .library-filters,#position-load-dialog[data-step=detail] .library-list-pane{display:none}#position-load-dialog[data-step=detail]>p,#position-load-dialog[data-step=detail] .library-paste{display:none}#position-load-dialog[data-step=detail] #library-back{display:inline-flex;font-size:12px;padding:8px}#position-load-dialog[data-step=detail] #library-file{display:none}}@media(max-width:359px){.brand-mark{display:none}.brand{font-size:16px}.brand-lab{font-size:12px}.playback-controls{flex-wrap:wrap;gap:6px}.display-options{margin-left:0}.library-title{gap:4px}.library-dialog .dialog-header h2{font-size:14px}.library-destination{margin-left:0}.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}.library-dialog .library-detail-image{height:140px}}@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],#position-load-dialog[open]{display:block;overflow-y:auto}.library-dialog .save-selection-layout,.library-dialog .library-content{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}.model-note,.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}.course-dialog{width:min(560px,calc(100vw - 32px))}.course-list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px}.course-item{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;justify-items:start;text-align:left;padding:10px 14px;background:#fff}.course-item .course-level{color:#b06f0f;font-size:12px;letter-spacing:1px}.course-item strong{font-size:14px}.course-item small{grid-column:1;font-size:12px;color:var(--muted)}.course-item .course-record{grid-column:2;grid-row:1 / span 3;align-self:center;font-size:12px;color:var(--accent);white-space:nowrap}.course-item[aria-current=true]{border-color:var(--accent);background:#fff7f2}@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{--game-ink: #1d2140;--game-red: #ff5146;--game-yellow: #ffd23c;--game-orange: #ff8a3d;--game-blue: #2f80ff;--game-purple: #8d5bff;--game-sky: #e3f2ff;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:400px;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{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{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}.top-tagline{margin-top:26px;margin-bottom:0;text-align:center;font-size:15px;font-weight:800;letter-spacing:.04em}@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-edit{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;margin:8px 14px 14px;padding:2px 10px;border:3px solid var(--game-blue);border-radius:10px;font-size:12px;font-weight:800;color:var(--game-blue);background:#eef5ff}.course-edit svg{width:14px;height:14px;stroke-width:2.6}.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,.course-lock svg{width:14px;height:14px;stroke-width:2.6}.course-share,.course-share:hover:not(:disabled){color:#fff;background:var(--game-blue)}.course-play{display:inline-flex;align-items:center;text-decoration:none}.course-lock{position:absolute;left:16px;bottom:22px;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:800;color:#8a91aa;pointer-events: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 0 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}.course-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px}.course-filters>span:not(.soon-tape){display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:3px dashed #c3c9dc;border-radius:999px;font-size:13px;font-weight:800;color:#9aa1b8}.course-filters svg{width:15px;height:15px}.course-filters .soon-tape{transform:rotate(-4deg)}.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:290px}.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{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}.top-tagline{font-size:13px}.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 #1d2140;border-radius:14px;text-decoration:none;white-space:nowrap;letter-spacing:normal;background:#ffd23c;box-shadow:0 4px #1d2140}.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 #1d2140;paint-order:stroke fill;text-shadow:0 3px 0 #1d2140}.game-logo:active{transform:translateY(3px);box-shadow:0 1px #1d2140}@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 #1d2140}}@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:-9px;bottom:-14px;display:grid;place-items:center;width:48px;height:46px;border:2px solid #1d2140;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:2px 3px #1d2140;transform:rotate(8deg);color:#1d2140;font:900 34px/1 Georgia,serif;letter-spacing:0;-webkit-text-stroke:0;text-shadow:none}.beta-patch:after{content:"";position:absolute;inset:3px;border:1.5px dashed #fff;border-radius:3px 5px 2px 4px;pointer-events:none}.game-logo .beta-patch{right:-7px;bottom:-7px;width:25px;height:27px;font-size:21px;box-shadow:1px 2px #1d2140}.game-logo .beta-patch:after{inset:2px;border-width:1px}@media(max-width:600px){.arcade-logo .beta-patch{right:-8px;bottom:-14px;width:33px;height:34px;font-size:26px}.game-logo .beta-patch{width:21px;height:23px;font-size:18px}}.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:#d63c3c;display:inline-flex}.advanced-eye .eye-shown{color:#2f6fd6;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:#d63c3c}.advanced-toggle .switch input:checked+span{background:#2e9e57}.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 #1d2140;border-radius:16px;color:#fff;background:#22b866;box-shadow:0 5px #1d2140;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 #1d2140;paint-order:stroke fill}.save-cta:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 7px #1d2140}.save-cta:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px #1d2140}.save-cta-icon{display:grid;place-items:center;width:34px;height:34px;border:3px solid #1d2140;border-radius:50%;color:#1d2140;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 #1d2140}.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 #1d2140;border-radius:18px;color:#1d2140;background:#fff;box-shadow:0 6px #1d2140;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 #1d2140;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 #1d2140;border-radius:12px;font-weight:800;white-space:nowrap;box-shadow:0 3px #1d2140}#saved-play,#saved-play:hover:not(:disabled){color:#fff;background:#ff8a3d}#saved-share,#saved-share:hover:not(:disabled){color:#1d2140;background:#fff}.saved-actions button:active{transform:translateY(2px);box-shadow:0 1px #1d2140}#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 #1d2140;border-radius:16px;color:#fff;font-weight:800;font-size:13px;background:#ff8a3d;box-shadow:0 5px #1d2140;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.drive-z,.drive-z:hover:not(:disabled){background:#2f80ff}.drive-button svg{width:26px;height:26px;stroke-width:3}.drive-button.pressed{transform:translateY(4px);box-shadow:0 1px #1d2140;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 #1d2140;border-radius:50%;font-size:12px;color:#1d2140;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 #1d2140;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 #1d2140;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 #1d2140;border-radius:14px;color:#1d2140;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}.share-quick{min-height:40px;padding:8px 14px;border:2px solid #1d2140;border-radius:12px;font-weight:800;color:#1d2140;background:#fff}@media(max-width:600px){.share-quick{min-height:36px;padding:6px 10px}}.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 #1d2140;border-radius:50%;color:#fff;background:#ff5146;box-shadow:0 3px #1d2140}.course-delete:active{transform:translateY(2px);box-shadow:0 1px #1d2140}.course-delete svg{width:18px;height:18px;stroke-width:3.2}#received-course-list .course-card.fresh:after{right:auto;left:10px}.delete-confirm,.delete-confirm:hover:not(:disabled){font-weight:700;color:#fff;background:#d63c3c;border-color:#d63c3c}.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}#public-courses-more{display:block;margin:16px auto}#public-courses-more[hidden]{display:none}#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 #1d2140;border-radius:14px;font-weight:800;color:#1d2140;background:#fff;box-shadow:0 4px #1d2140}.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 #1d2140}.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}}
