:root{--ink:#2e435a;--muted:#7a91a3;--line:#e2edf3;--coral:#ff7167;--cyan:#29b7c1;--blue-pale:#f1f9fd;--font:'Hiragino Maru Gothic ProN','Arial Rounded MT Bold','Hiragino Kaku Gothic ProN',sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}html{background:#fff}body{margin:0;color:var(--ink);background:#fff;font-family:var(--font);-webkit-font-smoothing:antialiased}button,select,input{font-family:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #38b7c4;outline-offset:3px}button svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}h1,h2,h3,p{margin:0}button,summary{-webkit-user-select:none;user-select:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.garage-view{min-height:100dvh;padding-bottom:110px}.garage-header{max-width:1060px;min-height:80px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf3f6}.brand{display:flex;align-items:center;gap:11px}.brand h1{font-size:19px;letter-spacing:-.5px;font-weight:800}.brand-mark{position:relative;display:block;width:27px;height:31px}.brand-mark i{position:absolute;left:10px;bottom:0;width:5px;height:29px;background:#edc37e;border-radius:3px;transform:rotate(26deg)}.brand-mark i:before{content:'';position:absolute;top:-2px;left:-1px;width:7px;height:10px;border-radius:50%;background:var(--coral)}.brand-mark i:last-child{transform:rotate(-26deg)}.brand-mark i:last-child:before{background:var(--cyan)}.garage-label{font-size:12px;color:#91a6b6;background:#f3f8fb;padding:8px 12px;border-radius:20px}.garage-main{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:27px;max-width:1060px;margin:auto;padding:28px}.garage-preview-card{min-width:0;align-self:start;background:#f5fbff;border:1px solid #e1eef5;border-radius:24px;padding:21px}.garage-machine-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.field-label{font-size:11px;font-weight:600;color:#8ba1b2;line-height:1.6}.garage-machine-heading h2{font-size:25px;font-weight:800;letter-spacing:-.6px;margin-top:4px}.machine-count{font-size:12px;color:#6da2b5;background:#e9f5f9;border:1px solid #daedf3;padding:7px 11px;border-radius:13px;white-space:nowrap}.garage-preview-viewport{position:relative;height:clamp(330px,53dvh,600px);min-width:0;margin:10px -12px 5px;overflow:hidden}.garage-preview-viewport canvas{width:100%;height:100%;display:block;outline:none;touch-action:none;cursor:grab}.garage-preview-viewport canvas:active{cursor:grabbing}.preview-hint{position:absolute;bottom:9px;left:0;right:0;text-align:center;font-size:10px;color:#9cb0be;pointer-events:none}.build-machine-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:48px;padding:10px 15px;background:#fff;border:2px solid #b5e5e9;border-radius:14px;color:#249daa;font-size:13px;font-weight:800;box-shadow:0 3px 0 #d9eef330}.build-machine-button>span{font-size:20px;line-height:1}.build-machine-button:hover{background:#edfafa}.garage-settings{display:flex;flex-direction:column;gap:17px;min-width:0}.settings-details{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.settings-details>summary{min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;list-style:none;cursor:pointer;font-size:13px;font-weight:700;line-height:1.6}.settings-details>summary::-webkit-details-marker{display:none}.details-chevron{color:#97afbf;font-family:Arial,sans-serif;font-size:20px;line-height:1;transition:transform .15s}.settings-details[open]>summary .details-chevron{transform:rotate(180deg)}.settings-details[open]>summary{border-bottom:1px solid #edf3f7}.details-body{padding:13px}.preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.preset-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:108px;padding:7px 4px 10px;border:2px solid #e8f0f6;border-radius:13px;background:#f8fbfe}.preset-card svg{width:100%;max-width:120px;height:71px;overflow:visible;fill:none;stroke:none}.preset-card strong{font-size:11px;font-weight:700;line-height:1.5;white-space:nowrap}.preset-card.is-selected{background:#fff1ed;border-color:#ff9c8e}.preset-card .selection-mark{position:absolute;top:7px;right:7px;width:14px;height:14px;line-height:12px;border:1px solid #d7e4ed;background:#fff;border-radius:50%;color:white;font-size:8px}.preset-card.is-selected .selection-mark{background:var(--coral);border-color:var(--coral)}.preset-card.custom-preset{grid-column:1/-1;flex-direction:row;gap:12px;min-height:65px;padding:4px 12px}.preset-card.custom-preset svg{height:56px;width:90px}.opponent-settings .preset-card.is-selected{background:#eafafa;border-color:#62c9cf}.opponent-settings .preset-card.is-selected .selection-mark{background:var(--cyan);border-color:var(--cyan)}.machine-description{font-size:11px;line-height:1.8;color:#8da1b1;margin-top:12px}.strategy-panel{padding:0 2px}.strategy-panel h2{font-size:14px;font-weight:800;margin:1px 0 12px}.strategy-options{display:flex;gap:7px;min-width:0}.strategy-button{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;min-width:0;min-height:46px;padding:9px 3px;background:#f7fbfe;border:2px solid #e1edf5;border-radius:12px;color:#7994a8;font-size:12px;font-weight:700;white-space:nowrap}.strategy-icon{font-size:17px;line-height:1;color:#93adbc}.strategy-button.is-selected{background:#2db4bf;border-color:#2db4bf;color:white;box-shadow:0 3px 0 #1f9eaa}.strategy-button.is-selected .strategy-icon{color:#fff5c2}.strategy-description{font-size:11px;color:#8da3b4;line-height:1.8;margin:10px 2px 0;min-height:20px}.opponent-settings summary strong{font-weight:600;color:#6b879b;margin-left:4px}.opponent-strategy-label{margin:17px 0 9px}.history-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.history-heading h2{font-size:12px}.history-count{font-size:10px;color:#9aafbd}.history-list{max-height:230px;overflow:auto}.history-empty{font-size:11px;color:#91a6b6;text-align:center;padding:18px 4px;line-height:1.8}.history-row{display:grid;grid-template-columns:35px 1fr auto;gap:7px;align-items:center;min-height:44px;padding:8px 0;border-bottom:1px solid #edf3f7}.history-result{font-size:9px;font-weight:700;color:#e98773}.history-result.loss{color:#4eafb8}.history-result.draw{color:#baa466}.history-match{font-size:10px;line-height:1.7;display:flex;gap:5px;align-items:center;flex-wrap:wrap}.history-match>span{font-size:8px;color:#a7b9c6}.history-time{font-size:9px;color:#8aa2b4;font-variant-numeric:tabular-nums}.local-note{font-size:10px;line-height:1.8;color:#a1b2bf;margin-top:9px}.help-rules{border-top:1px solid #eaf1f6;margin-top:15px;padding-top:13px}.help-rules h3{font-size:12px;margin-bottom:8px}.help-rules p{font-size:11px;color:#8da3b4;line-height:1.9}.help-rules p+p{margin-top:8px}.help-rules p>span{display:block}.garage-launch{position:fixed;bottom:0;left:0;right:0;z-index:10;background:#ffffffef;border-top:1px solid #e3edf4;backdrop-filter:blur(14px);padding:15px 28px calc(15px + env(safe-area-inset-bottom))}.garage-launch-inner{display:flex;align-items:center;justify-content:flex-end;gap:27px;max-width:1004px;margin:auto}.garage-setup-summary{font-size:12px;color:#8aa0b2}.primary-button{min-height:48px;padding:12px 24px;background:var(--coral);border:0;border-radius:14px;color:#fff;font-size:14px;font-weight:800;box-shadow:0 3px 0 #e85d55}.primary-button:hover{background:#f6665e}.garage-start-button{display:flex;align-items:center;justify-content:center;gap:40px;width:330px;max-width:100%}.garage-start-button>span{font-size:18px;line-height:1}
/* Battle occupies the entire viewport; garage controls stay behind the view boundary. */
.battle-view{position:fixed;inset:0;z-index:30;background:#526571;overflow:hidden}.arena-card{position:relative;width:100%;height:100dvh;overflow:hidden;background:#526571;isolation:isolate}.arena-viewport{position:absolute;inset:0}.arena-viewport canvas{display:block;width:100%;height:100%;outline:none;touch-action:none;cursor:grab}.arena-viewport canvas:active{cursor:grabbing}.battle-topbar{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 23px;z-index:3;pointer-events:none}.battle-small-button{pointer-events:auto;min-width:80px;min-height:44px;padding:9px 15px;border:1px solid #ffffff24;border-radius:13px;background:#31485578;color:#edf5f7;font-size:12px;font-weight:600;backdrop-filter:blur(8px)}.arena-status{display:flex;align-items:center;gap:7px;font-size:11px;color:#d8e5e9;text-shadow:0 1px 3px #20374450}.live-dot{width:5px;height:5px;border-radius:50%;background:#a4cbd0}.live-dot.running{background:#ffbe7b}.scoreboard{position:absolute;top:82px;left:28px;right:28px;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;pointer-events:none}.fighter-score{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:140px}.right-score{text-align:right;align-items:flex-end}.team-label{font-size:10px;color:#c9dce4;display:flex;align-items:center;gap:6px}.team-label i{display:inline-block;width:6px;height:6px;background:#ff9d86;border-radius:50%}.right-score .team-label i{background:#73e0df}.fighter-score>strong{font-size:22px;font-weight:800;line-height:1.5;color:#fff;text-shadow:0 2px 5px #20374438}.fighter-tactic{font-size:11px;color:#c1d3dc}.fighter-action{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:3px 9px;border-radius:12px;border:1px solid #ffffff24;background:#344e5e78;color:#e4f2f4;font-size:10px;font-weight:600;white-space:nowrap}.left-score .fighter-action[data-phase=dash],.left-score .fighter-action[data-phase=push]{background:#754e416b;color:#ffceb5;border-color:#e8a08445}.right-score .fighter-action[data-phase=dash],.right-score .fighter-action[data-phase=push]{background:#285e626e;color:#a7f1e9;border-color:#82d5d535}.fighter-action[data-phase=retreat],.fighter-action[data-phase=recover]{color:#e9dfb9}.timer{position:absolute;left:50%;top:3px;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;gap:3px}.timer>span{color:#fff;font-size:39px;font-weight:800;line-height:1.1;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;text-shadow:0 2px 5px #20374430}.timer small{font-size:9px;color:#c4d7e0}.arena-caption{position:absolute;bottom:22px;left:25px;right:25px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:15px;pointer-events:none}.arena-caption>span{font-size:10px;color:#bfd2dd;text-shadow:0 1px 3px #263e4d35}.view-switch{display:flex;gap:3px;border:1px solid #ffffff24;background:#31485578;padding:4px;border-radius:15px;backdrop-filter:blur(8px);pointer-events:auto}.view-switch button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:0;border-radius:10px;background:transparent;color:#abc5d4}.view-switch button.is-active{background:#e3f5f7;color:#389ba7}.webgl-error{position:absolute;inset:25% 20px 20%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center;color:#edf6f9;max-width:410px;margin:auto;padding:20px}.webgl-error strong{font-size:16px}.webgl-error p{font-size:12px;line-height:1.9}.result-overlay{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px;background:#263b4b80;backdrop-filter:blur(5px)}.result-ticket{width:350px;max-width:100%;max-height:calc(100dvh - 48px);overflow:auto;background:#fff;border:1px solid #dfebf3;border-radius:24px;padding:28px;text-align:center;box-shadow:0 20px 80px #193d5530}.result-ticket h2{font-size:29px;font-weight:800;letter-spacing:-1px}.result-ticket>p{font-size:12px;line-height:1.9;color:#8aa0b2;margin-top:12px}.result-stats{display:flex;align-items:center;justify-content:center;gap:20px;background:#f1f9fc;border-radius:14px;padding:15px 8px;margin:21px 0}.result-stats>div{display:flex;flex-direction:column;gap:4px;color:#8aa3b5;font-size:9px}.result-stats strong{font-size:25px;font-weight:700;line-height:1.3;color:#587d96}.result-ticket>.primary-button{width:100%}.result-secondary{display:flex;gap:9px;margin-top:13px}.result-secondary button{flex:1;min-height:44px;padding:9px;border:1px solid #dcebf3;border-radius:12px;background:#f8fbfd;color:#7295ac;font-size:12px;font-weight:600}.result-more{border-top:1px solid #e9f1f5;margin-top:19px;padding-top:5px}.result-more summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;color:#99aebd;font-size:11px;cursor:pointer;list-style:none}.result-more summary:after{content:'⌄';font-size:15px}.result-more[open] summary:after{transform:rotate(180deg)}.result-more>div{display:flex;gap:7px}.result-more button{min-height:44px;padding:8px 11px;border:1px solid #e1edf4;border-radius:10px;background:#fff;color:#88a0b2;font-size:10px}.result-more #result-replay{flex:1}.result-more #speed-button{min-width:55px;font-size:12px;font-weight:700}.result-more #speed-button>span{font-size:9px;font-weight:400}
/* Editor: fixed model preview and an independently scrolling tool area. */
.machine-editor{width:min(1120px,calc(100vw - 40px));height:min(900px,calc(100dvh - 40px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #d8eaf3;border-radius:23px;color:var(--ink);background:white;overflow:hidden;box-shadow:0 25px 100px #294d6a38}.machine-editor::backdrop{background:#344f6580;backdrop-filter:blur(5px)}.editor-shell{display:flex;flex-direction:column;height:100%;min-height:0}.editor-header{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:75px;padding:15px 23px;border-bottom:1px solid #e6eff5;flex-shrink:0}.editor-header h2{font-size:21px;font-weight:800;letter-spacing:-.4px}.editor-close{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:0;border-radius:50%;background:#f0f7fb;color:#839db0;font-size:19px}.editor-content{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 330px;overflow:hidden}.editor-scene{min-width:0;min-height:0;display:flex;flex-direction:column;gap:0;background:#f3faff;padding:16px}.editor-viewport{position:relative;min-height:250px;flex:1;border:1px solid #dfedf4;background:#eef9ff;border-radius:17px;overflow:hidden;isolation:isolate}.editor-viewport canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.editor-front-badge{position:absolute;top:13px;left:13px;padding:7px 10px;border:1px solid #f1e6bc;border-radius:11px;background:#fffdf0e8;color:#a99254;font-size:10px;pointer-events:none}.editor-camera{position:absolute;bottom:11px;right:11px;display:flex;gap:3px;padding:3px;border:1px solid #d3e8f1;border-radius:12px;background:#fffffff0}.editor-camera button{min-width:44px;min-height:44px;padding:8px 12px;background:transparent;border:0;border-radius:9px;color:#819eaf;font-size:11px}.editor-camera button.is-active,.editor-camera button[aria-pressed=true]{color:#269eaa;background:#e1f7f6}.editor-canvas-hint{font-size:9px;line-height:1.8;text-align:center;color:#96adbd;margin-top:9px}.editor-selection-hint{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:10px;padding:10px;background:#ffffffb8;border-radius:12px}.editor-selection-hint>span{color:#ffb76b;font-size:15px}.editor-selection-hint p{font-size:10px;line-height:1.8;color:#8aa3b6}.editor-tools{min-height:0;overflow:auto;padding:18px 20px 24px;overscroll-behavior:contain}.editor-progress{display:flex;flex-direction:column;gap:7px;padding:12px 14px;border:1px solid #dfedf4;border-radius:14px;background:#f3faff}.editor-progress strong{font-size:21px;font-weight:800;color:#34a6b3;letter-spacing:-.6px}.editor-progress p{font-size:11px;color:#849fb2;line-height:1.8;min-height:1.8em}.editor-control-group{margin-top:20px}.editor-control-group h3{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;margin-bottom:11px}.editor-control-group h3>span{display:grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#fff1c8;color:#aa914b;font-size:10px}.editor-directions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.editor-directions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:7px 3px;background:#f9fcff;border:2px solid #e3edf5;border-radius:11px;color:#819cae;font-size:12px;font-weight:600}.editor-directions button>span{font-size:18px;line-height:1}.editor-directions button.is-active,.editor-directions button[aria-pressed=true]{background:#e4f8f7;border-color:#6bccd0;color:#269ca8}.editor-angle-options{margin-top:8px}.editor-angle-options summary,.editor-starter-options summary{display:flex;align-items:center;gap:7px;min-height:44px;font-size:11px;color:#91a7b8;cursor:pointer;list-style:none;line-height:1.7}.editor-angle-options summary:before,.editor-starter-options summary:before{content:'＋';font-size:13px}.editor-angle-options[open] summary:before,.editor-starter-options[open] summary:before{content:'−'}.editor-angle-options label{display:flex;justify-content:space-between;align-items:center;margin-top:4px;font-size:10px;color:#8da4b6}.editor-angle-options output{color:#559fb2;font-variant-numeric:tabular-nums}.editor-angle-options input{display:block;width:100%;min-height:44px;margin:0;accent-color:#2ab4bf;cursor:pointer}.editor-add{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;width:100%;padding:10px 5px;border:0;border-radius:12px;background:#2fb4bf;color:white;box-shadow:0 3px 0 #249eab;font-size:12px;font-weight:700}.editor-add>span{font-size:19px;line-height:1}.editor-correction-group{border-top:1px solid #e8f0f5;padding-top:17px}.editor-edit-actions{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:6px}.editor-edit-actions button{min-height:44px;padding:7px 4px;border:1px solid #deebf3;border-radius:10px;background:#f8fbfe;color:#839db1;font-size:10px;line-height:1.6}#editor-delete{background:#fff6f3;border-color:#f2e2da;color:#c68e7c}.editor-note{font-size:10px;color:#a1b1bf;line-height:1.8;margin-top:7px}.editor-front-controls{display:flex;align-items:center;gap:6px;margin-top:12px}.editor-front-controls>span{flex:1;font-size:10px;color:#90a6b7}.editor-front-controls button{min-height:44px;padding:7px 8px;border:1px solid #e0eaf2;border-radius:10px;background:white;color:#8ba3b5;font-size:10px}.editor-starter-options{border-top:1px solid #e9f1f6;margin-top:16px;padding-top:5px}.editor-starter-options summary{font-size:10px}.editor-starter-row{display:flex;gap:7px}.editor-starter-row select{width:0;flex:1;min-height:44px;padding:8px;border:1px solid #dfebf3;border-radius:10px;background:#f8fcff;color:#819caf;font-size:11px}.editor-starter-row button{min-height:44px;padding:8px 10px;border:1px solid #d5e9f2;border-radius:10px;background:#f0fafe;color:#78a3b7;font-size:11px}.editor-clear{width:100%;min-height:44px;padding:9px;background:none;border:0;color:#a2afbd;font-size:10px;margin-top:6px}.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 22px;border-top:1px solid #e0edf4;background:#fff;flex-shrink:0}.editor-footer p{font-size:11px;color:#93a9b9;line-height:1.8}.editor-save{min-width:245px;min-height:47px;padding:11px 22px;background:var(--coral);border:0;border-radius:13px;color:#fff;font-size:13px;font-weight:700;box-shadow:0 3px 0 #e75f56}.editor-save:disabled{opacity:1;background:#e9eff4;box-shadow:0 3px 0 #dfe7ed;color:#a5b3c0}
@media(min-width:1400px){.garage-header,.garage-main{max-width:1180px}.garage-main{grid-template-columns:minmax(0,1fr) 360px;gap:35px}.garage-launch-inner{max-width:1124px}.garage-start-button{width:360px}.garage-preview-viewport{height:58dvh;max-height:650px}}
@media(max-width:850px){.garage-header{padding:0 21px;min-height:72px}.garage-main{padding:22px 21px;gap:21px;grid-template-columns:minmax(0,1fr) 295px}.garage-preview-card{padding:17px}.garage-preview-viewport{height:46dvh;min-height:310px}.garage-machine-heading h2{font-size:22px}.garage-settings{gap:14px}.garage-launch{padding-left:21px;padding-right:21px}.garage-start-button{width:295px}.garage-setup-summary{font-size:10px}.machine-editor{width:calc(100vw - 24px);height:calc(100dvh - 24px)}.editor-content{grid-template-columns:minmax(0,1fr) 295px}.editor-tools{padding:15px}.editor-header{padding:13px 18px;min-height:68px}.editor-scene{padding:12px}.editor-selection-hint p{font-size:9px}.editor-canvas-hint{font-size:8px}.editor-footer{padding:13px 18px}.editor-save{min-width:220px}}
@media(max-width:680px){.garage-view{padding-bottom:105px}.garage-header{min-height:62px;padding:0 17px}.brand{gap:9px}.brand h1{font-size:16px}.brand-mark{width:23px;transform:scale(.85)}.garage-label{font-size:10px;padding:7px 10px}.garage-main{display:flex;flex-direction:column;gap:21px;padding:17px 16px 25px}.garage-preview-card{width:100%;padding:16px;border-radius:21px}.garage-machine-heading h2{font-size:23px;margin-top:3px}.field-label{font-size:10px}.machine-count{font-size:11px;padding:6px 9px}.garage-preview-viewport{height:31dvh;min-height:230px;max-height:300px;margin:4px -10px 6px}.preview-hint{font-size:9px;bottom:8px}.build-machine-button{min-height:47px;border-radius:13px;font-size:12px}.garage-settings{gap:14px}.settings-details>summary{min-height:51px;font-size:12px;padding:12px 15px}.strategy-panel{padding:0 3px}.strategy-panel h2{font-size:13px;margin-bottom:11px}.strategy-options{gap:8px}.strategy-button{min-height:47px;font-size:12px;border-radius:12px}.strategy-description{font-size:11px;margin-top:9px}.details-body{padding:12px}.preset-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.preset-card{min-height:91px;padding:5px 1px 7px;border-radius:11px}.preset-card svg{height:59px}.preset-card strong{font-size:9px;letter-spacing:-.2px}.preset-card .selection-mark{top:4px;right:4px;width:12px;height:12px;line-height:10px;font-size:7px}.preset-card.custom-preset{min-height:61px}.preset-card.custom-preset svg{height:51px}.preset-card.custom-preset strong{font-size:11px}.machine-description{font-size:10px;margin-top:9px}.opponent-settings summary strong{font-size:11px}.opponent-strategy-label{margin-top:14px}.history-match{font-size:11px}.history-count{font-size:10px}.history-result{font-size:9px}.history-time{font-size:10px}.local-note{font-size:10px}.help-rules p{font-size:11px}.garage-launch{padding:10px 16px calc(12px + env(safe-area-inset-bottom))}.garage-launch-inner{display:block}.garage-setup-summary{display:block;font-size:10px;text-align:center;margin-bottom:7px;min-height:15px;line-height:1.5}.garage-start-button{width:100%;min-height:47px;justify-content:center;font-size:14px;gap:24px}.battle-topbar{padding:11px 14px;gap:8px}.battle-small-button{min-width:70px;min-height:44px;padding:9px 12px;font-size:11px;border-radius:12px}.arena-status{font-size:9px;gap:5px}.live-dot{width:4px;height:4px}.scoreboard{top:76px;left:19px;right:19px;gap:9px}.fighter-score{min-width:100px;max-width:calc((100vw - 96px)/2);gap:4px}.fighter-score>strong{font-size:16px;letter-spacing:-.3px}.team-label{font-size:9px}.fighter-tactic{font-size:10px}.fighter-action{min-height:21px;padding:3px 8px;font-size:10px}.timer{top:3px}.timer>span{font-size:34px}.timer small{font-size:8px}.arena-caption{bottom:calc(16px + env(safe-area-inset-bottom));left:17px;right:17px;gap:12px}.arena-caption>span{font-size:8px;max-width:190px;line-height:1.8}.view-switch{padding:3px;border-radius:14px}.view-switch button{min-width:44px;min-height:44px}.result-overlay{padding:20px}.result-ticket{width:330px;padding:25px 22px;border-radius:23px}.result-ticket h2{font-size:28px}.result-ticket>p{font-size:12px}.result-stats{margin:19px 0;gap:18px}.result-stats strong{font-size:24px}.result-secondary button{font-size:12px}.machine-editor{width:100vw;height:100dvh;margin:0;border:0;border-radius:0}.editor-header{min-height:63px;padding:10px 15px}.editor-header h2{font-size:19px}.editor-content{display:flex;flex-direction:column;overflow:hidden}.editor-scene{height:38dvh;min-height:220px;max-height:360px;flex-shrink:0;padding:10px 13px 8px}.editor-viewport{min-height:0;border-radius:15px;flex:1}.editor-front-badge{top:10px;left:10px;font-size:9px;padding:6px 9px}.editor-camera{bottom:9px;right:9px}.editor-camera button{min-width:44px;min-height:44px;padding:7px 10px;font-size:10px}.editor-canvas-hint{font-size:8px;line-height:1.6;margin-top:6px}.editor-selection-hint{display:none}.editor-tools{flex:1;min-height:0;overflow:auto;padding:10px 16px 18px}.editor-progress{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:9px 12px;border-radius:12px}.editor-progress strong{font-size:19px;white-space:nowrap}.editor-progress p{min-height:0;font-size:10px;line-height:1.7}.editor-control-group{margin-top:14px}.editor-control-group h3{font-size:11px;margin-bottom:8px;gap:7px}.editor-control-group h3>span{width:20px;height:20px;font-size:9px}.editor-directions{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.editor-directions button{flex-direction:column;gap:3px;min-height:52px;padding:5px 1px;font-size:10px;border-radius:9px}.editor-directions button>span{font-size:18px}.editor-angle-options{margin-top:3px}.editor-angle-options summary{font-size:10px;min-height:44px}.editor-angle-options label{font-size:11px}.editor-add{min-height:46px;font-size:12px}.editor-correction-group{padding-top:14px}.editor-edit-actions{gap:7px}.editor-edit-actions button{font-size:11px}.editor-note{font-size:10px}.editor-front-controls{gap:7px}.editor-front-controls>span{font-size:11px}.editor-front-controls button{font-size:11px;padding:7px 10px}.editor-starter-options summary{font-size:11px}.editor-starter-row select,.editor-starter-row button{font-size:12px}.editor-clear{font-size:11px}.editor-footer{display:block;padding:8px 15px calc(11px + env(safe-area-inset-bottom))}.editor-footer p{text-align:center;font-size:9px;line-height:1.6;margin-bottom:7px}.editor-save{width:100%;min-width:0;min-height:46px;font-size:13px}}
@media(max-width:370px){.brand h1{font-size:14px}.garage-header{padding:0 15px}.garage-label{font-size:9px}.garage-main{padding-left:13px;padding-right:13px}.garage-preview-card{padding:14px}.garage-preview-viewport{min-height:220px;height:30dvh}.garage-machine-heading h2{font-size:21px}.garage-launch{padding-left:13px;padding-right:13px}.preset-card strong{font-size:8px}.strategy-button{font-size:11px;gap:4px}.strategy-icon{font-size:16px}.scoreboard{left:16px;right:16px}.fighter-score{min-width:87px}.fighter-score>strong{font-size:14px}.timer>span{font-size:31px}.arena-status{font-size:8px}.battle-topbar{padding-left:11px;padding-right:11px}.editor-scene{height:35dvh;min-height:210px}.editor-header h2{font-size:18px}.editor-tools{padding-left:13px;padding-right:13px}.editor-directions{gap:4px}.editor-directions button{font-size:9px}.editor-front-controls>span{font-size:10px}.editor-front-controls button{font-size:10px;padding:7px 8px}.editor-progress strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

body.in-battle{overflow:hidden}.garage-preview-viewport[data-error]::after{content:attr(data-error);position:absolute;inset:0;display:grid;place-items:center;padding:25px;text-align:center;font-size:12px;color:#607c8e;background:#f5fbff}.garage-preview-viewport[data-error] .preview-hint{display:none}

.garage-edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.garage-edit-actions .build-machine-button{min-width:0;padding:9px 5px;font-size:12px;line-height:1.6}.garage-edit-actions .edit-current-button{border-color:#dce8f0;color:#6d8c9f}.resume-machine-button{display:block;min-height:44px;margin:6px auto -5px;padding:8px 20px;border:0;background:transparent;color:#6b899d;font-size:12px;text-decoration:underline;text-underline-offset:4px}@media(max-width:370px){.garage-edit-actions .build-machine-button{font-size:11px;gap:4px}}

.editor-name-field{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;font-size:11px;font-weight:600;margin-bottom:12px}.editor-name-field>span{font-size:10px;font-weight:400;color:#8da3b4}.editor-name-field input{width:100%;min-width:0;min-height:44px;padding:9px 11px;border:1px solid #d7e7ef;border-radius:11px;background:white;color:var(--ink);font-size:16px}.garage-machine-heading>div{min-width:0}.garage-machine-heading h2,.fighter-score>strong,.history-match,.result-ticket>p{overflow-wrap:anywhere}.garage-machine-heading h2{font-size:clamp(18px,4.8vw,25px)}.fighter-score>strong{max-width:100%;line-height:1.3}.preset-card.custom-preset strong{white-space:normal;overflow-wrap:anywhere}.garage-setup-summary{overflow-wrap:anywhere}

/* Online matchmaking shares the garage and its renderer. */
.play-settings{display:flex;flex-direction:column;gap:12px}.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;background:#f0f6f9;border-radius:15px}.mode-switch button{min-height:44px;border:0;border-radius:11px;background:transparent;color:#8298a7;font-size:13px;font-weight:700}.mode-switch button.is-selected{background:#fff;color:#e2655b;box-shadow:0 2px 7px #405e7010}.player-name-label{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;font-size:11px;font-weight:700}.player-name-label>span{font-size:10px;font-weight:400;color:#91a4b2}.player-name-label input{width:100%;min-width:0;min-height:46px;padding:10px 13px;font-size:16px;border:1px solid #dce9f0;border-radius:12px;color:var(--ink);background:white}.player-record{display:flex;gap:18px;color:#8097a8;font-size:11px}.player-record strong{font-size:20px;color:#e97668;margin:0 3px;font-variant-numeric:tabular-nums}.online-message{font-size:11px;color:#7992a5;line-height:1.8;overflow-wrap:anywhere;min-height:20px}.rankings-list{list-style:none;padding:0;margin:0}.ranking-heading{display:flex;justify-content:space-between;padding:0 9px 10px 30px;color:#93a5b1;font-size:10px}.ranking-row{display:flex;align-items:center;gap:9px;padding:13px 8px;border-top:1px solid #edf3f6;min-height:50px;font-size:12px}.ranking-row.is-self{background:#fff5f1;border-radius:8px}.ranking-rank{width:20px;flex-shrink:0;color:#a0aeb9;font-size:13px;font-weight:700}.ranking-name{flex:1;min-width:0;overflow-wrap:anywhere}.ranking-name small{display:block;margin-top:3px;color:#de8a78;font-size:9px}.ranking-record{white-space:nowrap;flex-shrink:0;color:#b0bdc6;font-size:10px}.ranking-record strong{font-variant-numeric:tabular-nums;font-size:17px;color:#638698}.ranking-record strong:last-child{color:#d5806e}.rankings-refresh{display:block;min-height:44px;padding:8px 16px;border:1px solid #dfeaf0;border-radius:10px;background:#fff;color:#6c91a5;font-size:11px;margin:10px auto 0}.online-view{position:fixed;inset:0;z-index:20;background:#fff;overflow:hidden}.queue-screen{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center}.queue-screen h2{font-size:21px;letter-spacing:-.5px;margin-top:30px}.queue-screen>p{font-size:12px;color:#8aa0b1;line-height:1.9;margin-top:13px}.queue-elapsed{font-size:32px;color:#7391a4;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:2px;margin-top:26px}.queue-screen .queue-message{max-width:360px;min-height:24px;margin-top:13px;font-size:11px}.queue-cancel{min-height:48px;border:1px solid #dae7ef;background:#fff;border-radius:13px;color:#7491a5;padding:12px 23px;margin-top:20px;font-size:12px}.queue-loader{position:relative;width:84px;height:84px}.queue-loader i{position:absolute;top:18px;width:15px;height:52px;background:#e9c78f;border-radius:7px;transform:rotate(30deg);left:23px;animation:queue-pulse 1.5s ease-in-out infinite}.queue-loader i:before{content:'';position:absolute;top:-4px;left:-1px;width:17px;height:22px;background:var(--coral);border-radius:50%}.queue-loader i:last-child{left:47px;transform:rotate(-30deg);animation-delay:.75s}.queue-loader i:last-child:before{background:var(--cyan)}@keyframes queue-pulse{50%{translate:0 -7px}}.versus-screen{position:relative;height:100%;max-width:1100px;margin:auto;isolation:isolate;overflow:hidden}.versus-surface{position:absolute;inset:0;background:#fff6f2}.versus-surface:before{content:'';position:absolute;inset:0;background:#eefcfc;clip-path:polygon(0 0,100% 0,100% 43%,0 57%)}.versus-surface:after{content:'';position:absolute;inset:0;background:#fff;clip-path:polygon(0 56.5%,100% 42.5%,100% 43%,0 57%)}.versus-preview{position:absolute;inset:0;z-index:1;pointer-events:none}.versus-preview canvas{display:block;width:100%;height:100%;position:absolute;inset:0;pointer-events:none}.versus-player{position:absolute;z-index:2;max-width:75%;pointer-events:none}.versus-opponent{right:8%;top:max(24px,5dvh);text-align:right;color:#219ba6}.versus-self{left:8%;bottom:max(66px,9dvh);color:#e26d62}.versus-role{display:block;font-size:11px;font-weight:700;letter-spacing:1px;opacity:.65;margin-bottom:5px}.versus-player h2{font-size:clamp(24px,5vw,40px);font-weight:800;line-height:1.35;letter-spacing:-.5px;overflow-wrap:anywhere;text-shadow:0 1px 14px #ffffffc9}.versus-player p{font-size:13px;margin-top:6px}.versus-player p strong{font-size:29px;font-variant-numeric:tabular-nums}.versus-machine-name{display:block;font-size:11px;margin-top:7px;opacity:.75;overflow-wrap:anywhere}.versus-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-9deg);z-index:3;font-size:clamp(66px,13vw,110px);font-style:italic;font-weight:900;letter-spacing:-5px;line-height:1;color:#3f5968;text-shadow:4px 4px 0 #ffffff}.versus-countdown{position:absolute;left:0;right:0;bottom:max(19px,env(safe-area-inset-bottom));text-align:center;z-index:4;color:#8b9da6;font-size:11px}.versus-countdown>span{padding:7px 13px;border-radius:20px;background:#ffffffd9}.versus-countdown p{font-size:10px;margin:8px 16px 0;line-height:1.6}.battle-topbar:has(#back-to-garage[hidden]){justify-content:center}.fighter-tactic{max-width:100%;overflow-wrap:anywhere}.in-battle .online-view{touch-action:pan-y}@media(max-width:680px){.play-settings{gap:11px;padding:0 2px}.queue-screen h2{font-size:19px}.queue-screen>p{font-size:11px}.versus-opponent{right:7%;top:5dvh}.versus-self{left:7%;bottom:10dvh}.versus-player h2{font-size:28px}.versus-player{max-width:82%}.versus-role{font-size:10px}.versus-machine-name{font-size:10px;max-width:250px}.versus-player p{margin-top:3px;font-size:11px}.versus-player p strong{font-size:25px}.versus-mark{font-size:76px}}
.identity-note{font-size:10px;color:#98aab7;line-height:1.8}.play-settings:has(#mode-practice[aria-pressed=true]) .identity-note{display:none}
.battle-online-message{position:absolute;z-index:4;left:18px;right:18px;bottom:85px;padding:10px 14px;border-radius:12px;background:#ffffffed;color:#886d5d;text-align:center;font-size:11px;line-height:1.7}.result-ticket>.result-online-message{color:#b07c62;background:#fff6ee;border-radius:10px;padding:9px;font-size:11px;line-height:1.7}
