.prototype-catalog-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;margin-left:auto;min-height:38px;padding:5px 10px;border:1px solid var(--line);border-radius:7px;text-decoration:none;font-size:12px;font-weight:700;color:var(--accent);background:var(--paper)}
.prototype-catalog-link svg{width:17px;height:17px}.prototype-catalog-link .short{display:none}
.motion-feature{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin:18px 0;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.motion-feature h2{margin:0 0 4px!important;font-size:17px}.motion-feature p{margin:0;color:var(--sub);font-size:12px}.motion-feature-copy{min-width:0}.motion-feature .motion-feature-kicker{font-size:10px;letter-spacing:.09em;margin-bottom:5px;color:var(--accent)}
.motion-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:8px;background:var(--accent);color:var(--bg);font:700 12px/1.5 Meiryo,system-ui,sans-serif;cursor:pointer;white-space:nowrap}.motion-button svg{width:16px;height:16px}.motion-button.secondary{background:transparent;color:var(--ink)}.motion-button:disabled{cursor:wait;opacity:.6}.motion-button:focus-visible,.motion-dialog select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.motion-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink);overflow:auto;box-shadow:0 20px 80px #0005}.motion-dialog::backdrop{background:#091214d9}
.motion-dialog-head{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line)}.motion-dialog-head h2{font-size:17px;line-height:1.5;margin:0;overflow-wrap:anywhere}.motion-dialog-head p{margin:0 0 3px;font-size:10px;letter-spacing:.13em;color:var(--sub)}.motion-close{flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);font:24px/1 system-ui;cursor:pointer}
.motion-stage{aspect-ratio:384/377;max-width:384px;margin:0 auto;position:relative;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 46%,#3b515a 0,#25363c 48%,#17252a 75%);overflow:hidden}.motion-stage:after{content:'';position:absolute;bottom:18px;left:20%;right:20%;height:1px;background:#a0c1b144;pointer-events:none}.motion-stage img,.motion-stage canvas{display:block;width:100%;height:auto}.motion-stage [hidden]{display:none!important}.motion-stage img{min-height:150px;object-fit:contain}
.motion-stage-label{position:absolute;bottom:8px;right:10px;color:#d7e7e0;font-size:10px;font-variant-numeric:tabular-nums}.motion-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 18px 4px}.motion-controls label{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:11px}.motion-controls select{min-height:44px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit}.motion-status{font-size:11px;color:var(--sub);margin:8px 18px 14px;line-height:1.7;min-height:2em}.motion-status[role=alert]{color:#c77845}.motion-detail-link{font-size:12px;margin:0 18px 16px}.motion-dialog .motion-button{min-width:80px}
@media(max-width:800px){.prototype-catalog-link{padding:3px 8px;min-height:36px;font-size:11px;gap:4px}.prototype-catalog-link .full{display:none}.prototype-catalog-link .short{display:inline}.prototype-catalog-link svg{width:15px;height:15px}}
@media(max-width:600px){.motion-feature{align-items:stretch;flex-direction:column;gap:12px;padding:15px}.motion-feature .motion-button{align-self:flex-start}.motion-dialog-head{padding:12px}.motion-controls{padding:12px 12px 0}.motion-status{margin:8px 12px 12px}.motion-dialog-head h2{font-size:16px}.motion-controls label{font-size:10px}.motion-dialog .motion-button{padding:8px 10px;min-width:68px}}
@media(max-width:360px){.series-row #bc-series .series-button{font-size:10px;padding:6px 7px}.series-row #bc-series{gap:4px}.prototype-catalog-link{font-size:10px;padding:3px 7px}.motion-controls label{margin-left:0}.motion-dialog{width:calc(100vw - 16px)}}
@media(prefers-reduced-motion:reduce){.motion-dialog::backdrop{backdrop-filter:none}}
.motion-dialog,.motion-feature{--bg:#f3f4ef;--paper:#fff;--ink:#24342e;--sub:#60726a;--line:#ccd6ce;--accent:#326d58}
@media(prefers-color-scheme:dark){.motion-dialog,.motion-feature{--bg:#171e21;--paper:#202a2d;--ink:#e4ece8;--sub:#acbcb4;--line:#36464b;--accent:#abd7bd}}

.motion-dialog-head{position:sticky;top:0;z-index:2;background:var(--bg)}
.motion-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:12px}
.motion-modes button{min-width:0;min-height:44px;padding:7px 3px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--sub);font:700 11px/1.4 Meiryo,system-ui,sans-serif;cursor:pointer}
.motion-modes button[aria-pressed=true]{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.motion-modes button:focus-visible,.motion-close:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.motion-stage[data-mode=sequence]{aspect-ratio:640/440;max-width:none;min-height:180px}
.motion-stage[data-mode=sequence]:after{display:none}
.motion-phase{position:absolute;top:10px;left:12px;font-size:11px;font-weight:700;letter-spacing:.04em;color:#e1eee7;background:#142221bb;border:1px solid #b6d4c83a;padding:5px 9px;border-radius:20px}
.motion-note{margin:0 18px 12px;font-size:10px;line-height:1.7;color:var(--sub)}
@media(max-width:600px){.motion-note{margin:0 12px 12px}.motion-modes{padding:10px}}
@media(max-width:360px){.motion-modes{grid-template-columns:repeat(2,minmax(0,1fr))}}

.motion-stage,.motion-stage[data-mode=sequence]{aspect-ratio:640/440;max-width:none;min-height:180px;background:#8ad6f4}
.motion-stage:after{display:none}
.motion-phase{background:#142221d9;color:#fff}

.motion-dialog{width:min(920px,calc(100vw - 24px))}
.motion-stage,.motion-stage[data-mode=sequence]{aspect-ratio:960/540;min-height:0;max-width:none}
.motion-timeline{padding:4px 18px 0}.motion-timeline input{display:block;width:100%;height:44px;margin:0;accent-color:var(--accent);cursor:pointer}
.motion-dialog .motion-reset{width:44px;min-width:44px;padding:5px;font-size:23px}
.motion-controls{padding-top:7px}.motion-stage-label{padding:3px 6px;background:#142221d9;border-radius:4px}
@media(max-width:600px){.motion-timeline{padding:4px 12px 0}.motion-dialog .motion-reset{min-width:44px}.motion-controls{gap:6px}}

.motion-range{display:flex;gap:20px;flex-wrap:wrap;margin:10px 18px 0;font-size:12px;color:#b5cfce}.motion-range b{color:#e6efec;font-variant-numeric:tabular-nums}

.motion-range{align-items:center;justify-content:space-between;gap:4px 12px;margin-top:0}.motion-range label{display:flex;align-items:center;gap:6px;min-height:44px;cursor:pointer}.motion-range input{accent-color:#abd5c3;width:18px;height:18px;margin:0}

.motion-scene{display:flex;align-items:center;gap:10px;padding:0 12px 10px;color:var(--sub);font-size:11px}.motion-scene select{flex:1;min-width:0;min-height:44px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit}.motion-target{position:absolute;right:10px;top:10px;padding:5px 8px;border:1px solid #dbe5dc88;border-radius:20px;background:#142221d9;color:#fff;font-size:10px;font-weight:700}.motion-target[hidden]{display:none}.motion-phase{max-width:46%;box-sizing:border-box;font-size:10px}.motion-note{margin-top:6px}

.motion-scene[hidden]{display:none}

.motion-modes button:disabled{opacity:.4;cursor:not-allowed}.motion-supported{display:inline-flex;font-size:10px;padding:3px 7px;border-radius:20px;color:#b6dfcb;background:#244239;margin-left:7px}.motion-catalog-note{border-left:3px solid #abd5c3;padding:12px 16px;background:#20302e;border-radius:8px;font-size:13px;margin:18px 0}.motion-feature-copy h2{font-size:18px}

.motion-catalog-note summary{cursor:pointer;min-height:32px;line-height:32px;font-weight:700}.motion-catalog-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.motion-catalog-links a{display:block;padding:9px 12px;border:1px solid #3e5a56;border-radius:8px;text-decoration:none}.motion-catalog-links a:hover{background:#2c4840}

.motion-stage[data-long-range=true]{aspect-ratio:960/420}
.motion-stage[data-focused=true]{aspect-ratio:960/540}
.motion-range [data-focus-control][hidden],.motion-focus-note[hidden]{display:none}
.motion-focus-note{margin:0 18px 10px;color:var(--sub);font-size:10px;line-height:1.7}
@media(max-width:600px){.motion-focus-note{margin:0 12px 10px}.motion-range{gap:0 12px}}

/* Scene gestures handle touch zoom and pass one-finger vertical drags to the dialog. */
.motion-stage{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.motion-stage[data-panning=true]{cursor:grabbing}
.motion-stage:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.motion-stage img,.motion-stage canvas{pointer-events:none;-webkit-user-drag:none}
.motion-view-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--paper);color:var(--sub);font:11px/1.5 system-ui,Meiryo,sans-serif}
.motion-view-tools button{min-height:40px;padding:5px 9px;border:0;background:transparent;color:var(--accent);font:700 11px/1.5 system-ui,Meiryo,sans-serif;cursor:pointer}
.motion-view-tools button:disabled{opacity:.4;cursor:default}
.motion-view-tools button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.motion-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;color:var(--sub)}

.motion-touch-hint{display:none}
.motion-range{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px),(pointer:coarse){.motion-range{grid-template-columns:repeat(2,minmax(0,1fr))}.motion-range [data-focus-control],.motion-focus-note{display:none!important}.motion-pointer-hint{display:none}.motion-touch-hint{display:inline}}

.motion-range-info{display:flex;flex-wrap:wrap;align-items:center;gap:5px 18px;margin:0 18px 8px;color:var(--sub);font:13px/1.7 system-ui,Meiryo,sans-serif}.motion-range-info strong{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}.motion-castle-key{display:inline-flex;align-items:center;gap:6px;font-size:11px}.motion-castle-key i{height:14px;width:2px;background:#e8f3ee;display:inline-block}@media(max-width:600px){.motion-range-info{margin:0 12px 6px;gap:3px 14px}.motion-castle-key{flex-basis:100%}}

.motion-detection-key,.motion-attack-key{display:inline-flex;align-items:center;gap:5px}.motion-detection-key::before,.motion-attack-key::before{content:"";display:inline-block;width:16px;flex:none;border-top:3px dashed #42c9ff}.motion-attack-key::before{border-top-style:solid;border-top-color:#ff9a30}.motion-castle-key i{width:3px;background:#f3faf6;box-shadow:0 0 0 1px #102d3b}.motion-castle-approach{font-size:12px}

/* A fifth action wraps into two balanced rows rather than narrow phone tabs. */
.motion-modes.has-burrow{grid-template-columns:repeat(5,minmax(0,1fr))}
.motion-burrow-info{display:flex;flex-wrap:wrap;gap:3px 14px;margin:0 18px 10px;color:var(--sub);font:11px/1.7 system-ui,Meiryo,sans-serif}
.motion-burrow-info[hidden]{display:none}.motion-burrow-info strong{color:var(--ink);font-variant-numeric:tabular-nums}
@media(max-width:600px){.motion-modes.has-burrow{grid-template-columns:repeat(6,minmax(0,1fr))}.motion-modes.has-burrow button{grid-column:span 2}.motion-modes.has-burrow button:nth-child(n+4){grid-column:span 3}.motion-burrow-info{margin:0 12px 8px}}

/* One optional effect preview; keep the explanation outside the scene. */
.motion-special{display:flex;flex-wrap:wrap;align-items:center;gap:3px 16px;padding:9px 14px;border-top:1px solid var(--line);background:var(--soft);font:11px/1.6 system-ui,Meiryo,sans-serif}.motion-special label{display:flex;align-items:center;gap:7px;min-height:34px;white-space:nowrap;color:var(--ink);font-size:12px}.motion-special input{width:17px;height:17px;accent-color:#acd5c3}.motion-special p{margin:0;color:var(--sub)}.motion-special strong{display:block;color:var(--ink);font-weight:600}.motion-special span{display:block}.motion-special[data-active="false"]{opacity:.8}@media(max-width:600px){.motion-special{gap:0;padding:8px 12px}.motion-special p{width:100%}}

/* Wave reach stays in the existing range guide, never over the character. */
.motion-wave-key{display:inline-flex;align-items:center;gap:5px}.motion-wave-key::before{content:"";display:inline-block;width:16px;flex:none;border-top:3px solid #c58bff}.motion-wave-key[hidden]{display:none}
.motion-stage[data-wave-range="true"] .motion-stage-label{bottom:1px;padding:0 4px;line-height:14px}

.motion-wave-key[data-kind="surge"]::before,.motion-wave-key[data-kind="mini-surge"]::before{border-color:#ec8fc9}
.motion-wave-key[data-kind="blast"]::before{border-color:#5ed8c8}
.motion-special-range-hint{font-size:10px;color:#b6c9c0;margin:0 18px 10px;line-height:1.5}.motion-special-range-hint[hidden]{display:none}

/* Use geometric cross strokes, independent of font baseline and platform padding. */
.motion-dialog .motion-close{display:grid;place-items:center;box-sizing:border-box;min-width:44px;min-height:44px;padding:0;line-height:0;align-self:center}.motion-close svg{display:block;width:22px;height:22px;pointer-events:none}
