@charset "UTF-8";
:root{color-scheme:light;--ink:#302565;--muted:#716981;--coral:#f76f67;--gold:#ffc958;--cream:#fff8e9;--indigo:#3b2f83;--line:#e9e0cf;font-family:"Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-size:15px;line-height:1.65}button,input{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,.playfield:focus-visible{outline:3px solid #247da1;outline-offset:4px}button:disabled{cursor:default;opacity:.5}a{color:inherit}svg{display:block}button svg,.back-link svg,.reset-button svg,summary svg{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}button svg{width:23px;height:23px;flex:none}[hidden]{display:none!important}.demo-shell{max-width:1000px;margin:0 auto;padding:22px 28px 16px}.masthead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.back-link{display:flex;align-items:center;gap:4px;text-decoration:none;font-size:12px;font-weight:700}.back-link svg{width:16px;height:16px}.demo-label{font-size:16px;font-weight:900;letter-spacing:.03em}.demo-label span{margin-left:8px;font-size:10px;color:var(--muted);letter-spacing:.11em}.toy{overflow:hidden;background:#fffdf7;border:2px solid var(--ink);border-radius:28px;box-shadow:0 8px 0 #e9ddc4}.toy-heading{padding:18px 25px 15px;display:flex;justify-content:space-between;align-items:center;gap:12px}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.13em;margin:0 0 1px;color:#8c5446}h1{margin:0;font-size:34px;font-weight:900;letter-spacing:.01em;line-height:1.3}h1 span{color:#c74043}.progress{min-width:88px;display:grid;text-align:center;border:2px solid var(--ink);border-radius:18px;padding:5px 12px;background:var(--gold);transform:rotate(3deg)}.progress span:first-child{font-size:23px;font-weight:900;line-height:1.25}.progress span:last-child{font-size:10px;font-weight:900}.stage-wrap{padding:0 13px}.playfield{position:relative;height:420px;overflow:hidden;isolation:isolate;border:2px solid var(--ink);border-radius:21px;background:#3b2f83;touch-action:none;user-select:none;overscroll-behavior:contain;box-shadow:inset 0 -10px 0 #30256d}.stage-decoration{position:absolute;inset:0;width:100%;height:100%;color:#7366af;opacity:.52;pointer-events:none}.field-caption{position:absolute;top:12px;left:0;right:0;text-align:center;color:#fff1cc;font-size:12px;letter-spacing:.09em;font-weight:800;pointer-events:none}.bumper{position:absolute;width:64px;height:64px;transform:translate(-50%,-50%);display:grid;place-items:center;border:3px solid #292157;border-radius:23px;box-shadow:0 6px 0 #251c55;z-index:2;transition:background .15s,scale .15s,box-shadow .15s}.bumper svg{width:41px;height:41px;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.bumper-star{background:#ffd264;rotate:-8deg}.bumper-star svg{fill:#fff5ce}.bumper-bell{background:#ff9286;rotate:7deg}.bumper-bell svg{fill:#ffd5bd}.bumper-flower{background:#9ddfda;rotate:3deg}.bumper-flower svg{fill:#def8e7}.bumper-check{display:none;position:absolute;top:-8px;right:-9px;border:2px solid #fff6d9;background:#3e8b77;border-radius:50%;width:27px;height:27px;line-height:21px;text-align:center;font-size:16px;color:#fff;font-weight:900}.bumper.hit,.bumper.is-hit,.bumper[data-hit="true"]{box-shadow:0 3px 0 #251c55,0 0 0 6px #ffffff20}.bumper.hit .bumper-check,.bumper.is-hit .bumper-check,.bumper[data-hit="true"] .bumper-check{display:block}.ball{position:absolute;left:0;top:0;width:60px;height:60px;border-radius:50%;background:#ffcb50;border:3px solid #392660;box-shadow:inset -6px -7px 0 #f49a46,0 5px 0 #20174555;z-index:4;will-change:transform;cursor:grab}.ball:active{cursor:grabbing}.ball-shine{position:absolute;top:8px;left:10px;width:17px;height:10px;rotate:-35deg;border-radius:50%;background:#fff2ae}.ball-face{position:absolute;left:16px;top:25px;display:flex;gap:10px}.ball-face i{width:4px;height:6px;background:#392660;border-radius:4px}.ball-face b{position:absolute;top:9px;left:5px;width:9px;height:5px;border-bottom:2px solid #392660;border-radius:0 0 8px 8px}.ball-spark{position:absolute;width:82px;height:82px;border:5px solid #ffe58c;border-radius:50%;opacity:0;pointer-events:none;z-index:3}.ball-spark.active,.ball-spark.is-active,.ball-spark[data-active="true"]{animation:spark .5s ease-out}.completion{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#33256eec;backdrop-filter:blur(3px);z-index:8;text-align:center;color:#fff9df;padding:20px}.completion>svg{width:68px;height:68px;fill:var(--gold);stroke:#f9a65d;stroke-width:2;rotate:8deg;margin-bottom:10px}.completion strong{font-size:28px;letter-spacing:.05em}.completion>span{font-size:13px;margin-top:4px}.completion button{border:2px solid var(--ink);background:var(--gold);color:var(--ink);font-weight:900;border-radius:15px;min-height:49px;padding:9px 30px;margin-top:20px;box-shadow:0 4px 0 #1e164c}.controls{padding:16px 25px 18px}.motion-controls{display:flex;gap:10px}.primary-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:51px;flex:1;padding:10px 16px;background:var(--coral);color:#2d2058;border:2px solid var(--ink);border-radius:15px;box-shadow:0 3px 0 #c4484e;font-size:16px;font-weight:900}.primary-button:active{translate:0 2px;box-shadow:0 1px 0 #c4484e}.secondary-button{border:2px solid #d4c8ad;background:#fff4db;border-radius:15px;color:#594970;padding:8px 14px;min-height:51px;font-size:12px;font-weight:800}.status-line{min-height:20px;margin:8px 0 13px;font-size:11px;color:var(--muted)}.touch-card{background:#f4ede0;border:1px solid #e8d7bd;border-radius:18px;padding:12px 14px;transition:background .15s,box-shadow .15s}.touch-card.pulse,.touch-card.is-pulsing,.touch-card[data-pulse="true"]{animation:touch-pop .4s ease-out}.pulse-label{display:flex;align-items:center;gap:12px;cursor:pointer}.pulse-icon{width:42px;height:42px;background:#ffd264;border-radius:13px;display:grid;place-items:center;flex:none}.pulse-icon svg{width:30px;height:30px;fill:none;stroke:#4c346d;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.pulse-copy{display:grid;flex:1;line-height:1.5}.pulse-copy strong{font-size:16px;letter-spacing:.02em}.pulse-copy small{font-size:10px;color:#7a6270}.pulse-label input{appearance:auto;-webkit-appearance:auto;position:static;display:block;flex:none;width:64px;height:44px;margin:0;accent-color:#e8665e;cursor:pointer;opacity:1;visibility:visible}.haptic-status{font-size:10px;line-height:1.65;margin:8px 0 0;color:#746779}.bottom-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:13px}.direction-pad{display:flex;gap:6px}.direction-pad button{min-width:48px;min-height:46px;border:2px solid #dfd5c4;border-radius:13px;background:#fffdf7;color:#5e4c83;display:grid;place-items:center;box-shadow:0 2px 0 #e9dfcf}.direction-pad button:active,.direction-pad button.is-pressed{background:#e5daf5;translate:0 2px;box-shadow:none}.direction-pad svg{width:21px;height:21px}.reset-button{display:flex;gap:4px;align-items:center;justify-content:center;border:0;background:transparent;color:#71617f;font-size:11px;font-weight:700;padding:10px 0;min-height:44px;white-space:nowrap}.reset-button svg{width:16px;height:16px}.helper-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;font-size:10px;color:var(--muted)}.collision-label{display:flex;gap:5px;align-items:center;white-space:nowrap}.collision-label input{accent-color:var(--indigo);width:16px;height:16px;margin:0}.activity-status{margin:10px 0 0;border-top:1px solid #eee5d6;padding-top:9px;font-size:11px;font-weight:700;color:#61567e;min-height:28px}.technical-notes{margin:20px 6px 0;border-bottom:1px solid #e4d8c0;font-size:11px;color:#7b6c79}.technical-notes summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;font-weight:800;padding:6px 0 12px}.technical-notes summary::-webkit-details-marker{display:none}.technical-notes summary svg{width:17px;height:17px;transition:rotate .15s}.technical-notes[open] summary svg{rotate:180deg}.technical-notes>div{padding:0 0 12px;max-width:740px}.technical-notes p{margin:0 0 10px}.demo-footer{display:flex;align-items:center;justify-content:space-between;padding:16px 5px 0;font-size:10px;color:#a18c83}.demo-footer a{font-weight:900;font-size:12px;text-decoration:none;letter-spacing:.03em}
@keyframes spark{0%{scale:.3;opacity:1}100%{scale:1.5;opacity:0}}@keyframes touch-pop{0%,100%{background:#f4ede0}30%{background:#ffe7a1;box-shadow:0 0 0 5px #ffca5f50}}
@media(min-width:800px){.toy{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);align-items:start}.toy-heading{grid-column:1/-1}.stage-wrap{padding:0 0 16px 15px}.playfield{height:430px}.controls{padding:0 20px 18px}.motion-controls{flex-direction:column}.primary-button{flex:none;min-height:53px}.secondary-button{min-height:37px}.status-line{margin-bottom:17px;min-height:37px}.touch-card{padding:15px 13px}.bottom-controls{flex-wrap:wrap;gap:3px}.direction-pad{flex:1;justify-content:space-between}.direction-pad button{min-width:46px}.reset-button{width:100%;justify-content:flex-end;min-height:30px;padding:4px 0}.helper-row{align-items:flex-start;flex-direction:column;gap:8px}.activity-status{margin-top:12px;min-height:45px}}
@media(max-width:479px){.demo-shell{padding:13px 11px 16px}.masthead{margin-bottom:12px}.demo-label{font-size:14px}.demo-label span{font-size:8px;margin-left:5px}.back-link{font-size:10px}.toy{border-radius:23px}.toy-heading{padding:15px 17px 12px}h1{font-size:28px}.eyebrow{font-size:9px}.progress{min-width:71px;padding:5px 9px;border-radius:15px}.progress span:first-child{font-size:20px}.progress span:last-child{font-size:9px}.stage-wrap{padding:0 9px}.playfield{height:345px;border-radius:18px}.field-caption{top:11px;font-size:10px;letter-spacing:.03em}.controls{padding:13px 15px 15px}.motion-controls{gap:7px}.primary-button{font-size:13px;padding:8px;gap:5px;min-height:49px}.primary-button svg{width:20px;height:20px}.secondary-button{font-size:10px;max-width:111px;min-height:49px;padding:6px 7px}.status-line{font-size:10px;margin:7px 0 10px}.touch-card{padding:11px 12px}.pulse-copy strong{font-size:15px}.pulse-copy small{font-size:9px}.pulse-icon{width:36px;height:36px;border-radius:10px}.pulse-icon svg{width:26px;height:26px}.pulse-label{gap:9px}.haptic-status{font-size:9px}.bottom-controls{gap:8px}.direction-pad{gap:4px}.direction-pad button{min-width:48px;min-height:48px;border-radius:11px}.reset-button{font-size:10px}.reset-button svg{width:14px;height:14px}.helper-row{font-size:9px;gap:6px}.collision-label{gap:4px}.activity-status{font-size:10px}.technical-notes{margin:18px 4px 0;font-size:10px}.demo-footer{font-size:8px;gap:10px}.completion strong{font-size:24px}.completion>span{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}
.collision-notice{margin:9px 0 0;padding:10px 12px;border:1px solid #e8d7bd;border-radius:12px;background:#fff4db;color:#615078;font-size:11px;line-height:1.65}
