:root{font-family:ui-rounded,"PingFang TC","Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:#292d35;background:#fff9ed;font-synthesis:none;--ink:#292d35;--yellow:#ffce4b;--mint:#dcf4dc}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:4px solid #29866f;outline-offset:4px}button{touch-action:manipulation}button:hover{filter:brightness(1.035)}button:active{transform:translateY(2px)}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}a{color:inherit;text-decoration:none}.menu{max-width:1300px;margin:auto;padding:0 56px}.site-header{height:105px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ded8ca}.brand{display:flex;align-items:center;gap:13px;font-size:20px;font-weight:900;letter-spacing:.03em}.brand-mark{display:grid;place-items:center;width:48px;height:48px;background:var(--yellow);border:2px solid var(--ink);border-radius:15px;font-size:32px;transform:rotate(-7deg);box-shadow:2px 3px 0 var(--ink)}.brand small{display:block;font-size:9px;letter-spacing:.24em;margin-top:4px}.edition{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:700;color:#686c68}.edition i{width:5px;height:5px;background:#a9b0a3;border-radius:50%}.intro{position:relative;padding:45px 0 29px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;color:#497665;display:flex;align-items:center;gap:8px}.eyebrow>span{width:7px;height:7px;border-radius:50%;background:#5e9a78}.intro h1{font-size:clamp(36px,4.5vw,59px);line-height:1.18;letter-spacing:-.06em;margin:16px 0 21px;font-weight:950}.intro h1>span{position:relative;margin-left:12px;display:inline-block}.intro h1 svg{position:absolute;bottom:-13px;left:0;width:100%;height:18px;stroke:#ffbe32;stroke-width:8;stroke-linecap:round;fill:none;z-index:-1}.intro p{font-size:14px;color:#777970;line-height:1.8;margin:0}.intro-note{display:flex;gap:23px;margin-top:20px;font-size:12px;font-weight:750}.hero-doodle{position:absolute;right:65px;top:48px;font-size:85px;color:#e89c42;transform:rotate(15deg);font-weight:900;opacity:.9}.hero-doodle span{position:absolute;top:-10px;right:-49px;font-size:40px;color:#74a18c}.level-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.level-card{border:2px solid var(--ink);border-radius:22px;background:#fffdf6;overflow:hidden;box-shadow:0 5px 0 #292d35;transition:transform .18s}.level-card:hover{transform:translateY(-3px)}.card-scene{aspect-ratio:16/8.2;position:relative;overflow:hidden;border-bottom:2px solid var(--ink)}.card-bg{width:100%;height:100%;object-fit:cover}.card-actor{position:absolute;width:80%;height:auto;bottom:-16%;left:10%;filter:drop-shadow(0 7px 0 #0001)}.level-number{position:absolute;top:17px;left:18px;font-size:14px;font-weight:950;background:#fff9ed;box-shadow:2px 2px 0 #292d35;border:1.5px solid #292d35;padding:6px 9px;border-radius:7px;display:flex;gap:9px;align-items:center}.level-number>span{font-size:9px;letter-spacing:.1em;border-left:1px solid #aaa;padding-left:9px}.scene-tag{position:absolute;right:16px;bottom:14px;transform:rotate(-5deg);background:white;padding:7px 13px;border:2px solid var(--ink);border-radius:40%;font-size:12px;font-weight:900;box-shadow:2px 3px 0 #292d35}.card-content{display:flex;padding:22px 23px 15px;align-items:center;justify-content:space-between;gap:8px}.card-content h2{font-size:25px;margin:0 0 6px;font-weight:950;letter-spacing:-.035em}.card-content p{margin:0;font-size:12px;color:#7b7e74}.play-button{background:var(--yellow);padding:13px 17px;border:1.8px solid var(--ink);border-radius:12px;box-shadow:0 3px 0 var(--ink);font-weight:850;font-size:14px;white-space:nowrap;min-height:48px}.play-button>span{margin-left:14px;font-size:20px}.dojo .play-button{background:#c9d6fc}.card-foot{display:flex;align-items:center;justify-content:space-between;margin:0 23px;padding:13px 0 16px;border-top:1px dashed #ded9cc;color:#888a80;font-size:10px;letter-spacing:.025em}.card-foot>span:first-child{color:#876131;background:#fff0d0;border-radius:5px;padding:4px 7px;font-weight:750}.dojo .card-foot>span:first-child{background:#edf0ff;color:#69628c}.card-foot b{padding:0 5px}.menu-footer{display:flex;align-items:center;gap:12px;margin:29px 0 20px;font-size:11px;color:#84857a}.friendly-icon{display:grid;place-items:center;flex-shrink:0;border-radius:50%;width:35px;height:35px;background:#e7ecd7;font-size:26px;color:#62745d}.menu-footer p{line-height:1.8;margin:0}.menu-footer strong{color:#62685d}.footer-note{margin-left:auto;white-space:nowrap;font-size:10px;letter-spacing:.04em}
.game-shell{height:100dvh;min-height:100svh;width:100%;display:flex;align-items:center;justify-content:center;background:#182631;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}.stage{width:min(100%,calc(100dvh * 16 / 9));aspect-ratio:16/9;position:relative;isolation:isolate;container-type:inline-size;overflow:hidden;background:#ffca51}#scenery{position:absolute;inset:0;width:100%;height:100%}.stage-vignette{position:absolute;inset:0;background:linear-gradient(#1d204b12,transparent 23%,transparent 77%,#0d1b3822);pointer-events:none}.actor{position:absolute;width:69%;aspect-ratio:1.5;left:15.5%;bottom:-1%;transform-origin:50% 90%;z-index:2;will-change:transform}.actor img{display:block;width:100%;height:auto;position:absolute;inset:0;filter:drop-shadow(0 .45cqw .1cqw #38202f25)}.beat-shadow{position:absolute;width:31%;height:4%;border-radius:50%;left:34.5%;bottom:2%;background:#3b234f24;filter:blur(5px);z-index:1}.game-top{position:absolute;inset:2.5% 2.1% auto;display:flex;justify-content:space-between;align-items:flex-start;z-index:5;pointer-events:none}.game-top>*{pointer-events:auto}.level-heading{display:flex;align-items:center;gap:.7cqw;background:#fff8df;border: .2cqw solid var(--ink);border-radius:1.3cqw;padding:.5cqw 1.1cqw .6cqw .5cqw;box-shadow:0 .3cqw 0 #292d35}.level-heading small{display:block;font-size:.65cqw;letter-spacing:.15em;font-weight:850;color:#8d7655}.level-heading h2{font-size:1.85cqw;font-weight:950;margin:0;line-height:1.2;letter-spacing:-.04em}.icon-button{width:3.7cqw;height:3.7cqw;border:.17cqw solid var(--ink);border-radius:1.15cqw;background:#fffbee;display:grid;place-items:center;box-shadow:0 .24cqw 0 #292d35;font-size:2cqw;padding:.8cqw}.icon-button svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.home-button{border:0;box-shadow:none;background:transparent;padding:0;font-size:3.5cqw;width:2.1cqw;height:3cqw}.game-tools{display:flex;gap:.6cqw}.beat-box{position:absolute;left:50%;transform:translateX(-50%);text-align:center}.beat-label{font-size:.7cqw;font-weight:850;letter-spacing:.16em;color:#393432;display:block;margin-bottom:.4cqw}.stage[data-level=fist] .beat-label{color:#fff9ed}.beat-lights{display:flex;gap:.6cqw;border:.2cqw solid #292d35;background:#39343e;padding:.6cqw 1cqw;border-radius:4cqw;box-shadow:0 .25cqw 0 #292d35}.beat-lights i{font-style:normal;font-size:.8cqw;font-weight:900;display:grid;place-items:center;width:1.9cqw;height:1.9cqw;background:#8c8588;color:#484044;border-radius:50%;border:.12cqw solid #25202b}.beat-lights i.active{background:#fff19d;color:#423a21;box-shadow:0 0 1cqw #ffd45b;transform:scale(1.1)}.volume-panel{position:absolute;z-index:12;right:2.1%;top:12%;background:#fffbee;border:.18cqw solid var(--ink);border-radius:1.1cqw;padding:1.2cqw;box-shadow:0 .3cqw 0 var(--ink);font-size:1.1cqw;min-width:21cqw}.volume-panel label{display:flex;align-items:center;gap:1cqw;font-weight:800}.volume-panel input[type=range]{width:14cqw;accent-color:#dc902a;min-height:34px}.voice-label{margin-top:.5cqw}.voice-label input{accent-color:#dc902a;width:1.4cqw;height:1.4cqw}.cue{position:absolute;top:17%;right:18%;background:#fffbee;border:.25cqw solid #292d35;border-radius:48% 48% 48% 15%;padding:.5cqw 1.8cqw;font-size:3.7cqw;font-weight:1000;z-index:4;box-shadow:.3cqw .4cqw 0 #292d35;transform:rotate(6deg);opacity:0;pointer-events:none}.cue.anticipate{font-size:2.1cqw;top:19%;right:14%}.cue.countdown{top:35%;left:50%;right:auto;transform:translateX(-50%);font-size:9cqw;min-width:14cqw;display:grid;place-items:center;border-radius:30%;opacity:1;padding:0 2cqw;z-index:4}.section-label{position:absolute;bottom:18%;left:50%;transform:translateX(-50%);font-size:1.05cqw;font-weight:800;letter-spacing:.05em;border-radius:3cqw;background:#fff9e8eb;padding:.5cqw 1.2cqw;z-index:4;white-space:nowrap}.game-bottom{position:absolute;bottom:3%;left:2.8%;right:2.8%;display:flex;justify-content:space-between;align-items:flex-end;z-index:5;pointer-events:none}.progress-panel{width:31%;background:#fff9e8f5;border:.16cqw solid #292d35;border-radius:1cqw;padding:1cqw 1.2cqw;box-shadow:0 .25cqw 0 #292d35}.progress-panel>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:.9cqw;font-weight:850;margin-bottom:.65cqw}.progress-panel #timeLabel{font-size:.75cqw;color:#81735d;font-variant-numeric:tabular-nums}.progress-track{height:.85cqw;border:.13cqw solid #292d35;border-radius:2cqw;background:#e9dfc8;overflow:hidden}.progress-track>span{display:block;height:100%;width:0;background:#8abd66;border-radius:2cqw}.next-panel{min-width:23%;display:flex;align-items:center;justify-content:space-between;gap:1cqw;background:#fff9e8f5;border:.2cqw solid #292d35;border-radius:1cqw;padding:.7cqw 1cqw;box-shadow:0 .25cqw 0 #292d35}.next-panel small{display:block;font-size:.7cqw;letter-spacing:.06em;font-weight:800;color:#82745c;margin-bottom:.3cqw}.next-panel strong{font-size:1.65cqw;white-space:nowrap;display:flex;align-items:center;gap:.7cqw}.hand-label{font-family:system-ui,sans-serif;font-size:.9cqw;font-weight:850;display:flex;align-items:center;gap:.3cqw}.hand-label b{font-size:2.3cqw;line-height:1.1}.next-panel>span{display:grid;place-items:center;min-width:3.4cqw;height:3.4cqw;background:#ffdc70;border:.16cqw solid #292d35;border-radius:50%;font-size:1.5cqw;font-weight:950;white-space:nowrap}.overlay{position:absolute;inset:0;z-index:20}.lesson{background:#fff9edfa;padding:2.4cqw 6cqw;display:flex;flex-direction:column;gap:1.1cqw}.lesson-header{text-align:center}.mini-label{display:block;font-size:.85cqw;font-weight:850;letter-spacing:.17em;color:#7b806d}.lesson-header h2{font-size:3cqw;font-weight:950;letter-spacing:-.04em;margin:.4cqw 0}.lesson-header p{font-size:1.05cqw;margin:.4cqw 0;color:#6e756a}.pose-lessons{display:flex;gap:2.5cqw;justify-content:center;min-height:0;flex:1}.pose-card{position:relative;display:flex;flex-direction:column;align-items:center;width:36%;background:#fff1ce;border:.18cqw solid #303337;border-radius:1.5cqw;box-shadow:0 .3cqw 0 #303337;padding:.8cqw;min-height:0}.stage[data-level=fist] .pose-card{background:#e4e8ff}.pose-card.selected{outline:.3cqw solid #6a9c75;outline-offset:.3cqw}.pose-badge{position:absolute;top:1cqw;left:1cqw;background:#fffbee;padding:.3cqw .6cqw;border:1px solid #292d35;border-radius:.5cqw;font-size:.8cqw;font-weight:900;z-index:1}.pose-card img{width:100%;flex:1;min-height:0;object-fit:contain;margin-top:.5cqw}.pose-card>span:not(.pose-badge){font-size:1.1cqw;font-weight:900;padding:.3cqw}.pose-card .try-label{font-size:.72cqw!important;color:#8a795f;font-weight:600!important}.lesson-footer{display:flex;justify-content:center;gap:2cqw;align-items:center;padding:.5cqw 0 .2cqw}.lesson-footer p{font-size:.95cqw;color:#747b6e}.primary-button{background:#ffce4b;border:.2cqw solid #292d35;border-radius:1cqw;box-shadow:0 .3cqw 0 #292d35;padding:1cqw 2cqw;min-height:3.9cqw;font-weight:900;font-size:1.3cqw;white-space:nowrap}.primary-button>span{margin-left:1.8cqw;font-size:1cqw}.stage[data-level=fist] .primary-button{background:#c9d6fc}.compact-overlay{display:grid;place-items:center;background:#1c293e8a;backdrop-filter:blur(6px)}.dialog{position:relative;z-index:1;width:43cqw;text-align:center;border:.23cqw solid #292d35;border-radius:2cqw;background:#fff9ed;box-shadow:0 .55cqw 0 #292d35;padding:2.5cqw}.dialog h2{font-size:3.2cqw;letter-spacing:-.05em;margin:1cqw 0}.dialog p{font-size:1cqw;color:#7c7d70;line-height:1.8;margin:1cqw 0 2cqw}.dialog>.primary-button{display:block;width:85%;margin:auto}.dialog-symbol{font-size:3.4cqw;color:#a6936d;background:#f1e6ce;width:6cqw;height:6cqw;border-radius:50%;display:grid;place-items:center;margin:auto}.dialog-actions{display:flex;justify-content:space-evenly;gap:1cqw;margin:1.4cqw 0 0}.dialog-actions button,.text-button{font-size:1cqw;font-weight:800;background:none;padding:.8cqw;border-radius:.5cqw;min-height:3cqw}.dialog-actions button{border-bottom:1px solid #d4ccb9}.text-button{margin-top:1cqw}.complete-star{display:block;font-size:5cqw;color:#e7ac22;line-height:1.2}.completion{background:#253a5966}.completion .dialog h2{font-size:3.6cqw}.completion .mini-label{margin-top:1cqw}#confetti{position:absolute;inset:0;pointer-events:none}#confetti i{position:absolute;width:.6cqw;height:1.4cqw;border-radius:.2cqw}.rotate-hint{display: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}
@media(min-width:1700px){.menu{max-width:1500px}.site-header{height:135px}.intro{padding:65px 0 45px}.intro h1{font-size:68px}.intro p{font-size:17px}.level-grid{gap:36px}.card-content{padding:30px}.card-content h2{font-size:31px}.card-content p{font-size:15px}.play-button{font-size:18px}.menu-footer{margin-top:40px;font-size:13px}}
@media(max-width:900px){.menu{padding:0 26px}.site-header{height:80px}.intro{padding:29px 0 24px}.intro h1{font-size:40px}.intro p{font-size:12px}.hero-doodle{right:25px;top:35px;font-size:60px}.hero-doodle span{font-size:30px;right:-28px}.level-grid{gap:17px}.card-content{padding:17px 14px 13px}.card-content h2{font-size:21px}.card-content p{font-size:10px}.play-button{font-size:12px;padding:8px 11px}.play-button>span{margin-left:6px}.level-number{top:11px;left:11px;font-size:11px}.scene-tag{font-size:10px}.card-foot{margin:0 14px}.footer-note{display:none}.brand{font-size:17px}.brand-mark{width:39px;height:39px}.edition{font-size:10px}.game-top .icon-button{min-width:44px;min-height:44px}.game-top .home-button{min-width:28px;min-height:37px}.level-heading{padding:.4cqw .9cqw .4cqw .3cqw}.level-heading h2{font-size:2cqw}.level-heading small{font-size:.8cqw}.beat-label{font-size:.9cqw}.beat-lights i{width:2.4cqw;height:2.4cqw;font-size:1cqw}.beat-lights{margin-top:.1cqw}.primary-button{min-height:44px;font-size:1.7cqw}.lesson-header p{font-size:1.4cqw}.lesson-footer p{font-size:1.2cqw}.pose-card>span:not(.pose-badge){font-size:1.45cqw}.pose-card .try-label{font-size:1cqw!important}.dialog p{font-size:1.4cqw}.dialog-actions button,.text-button{font-size:1.4cqw;min-height:44px}.progress-panel>div:first-child{font-size:1.15cqw}.progress-panel #timeLabel{font-size:1cqw}.next-panel small{font-size:1cqw}.section-label{font-size:1.3cqw}.volume-panel{top:15%;font-size:1.7cqw;min-width:28cqw}.volume-panel input[type=range]{width:18cqw}.voice-label input{width:20px;height:20px}.voice-label{min-height:36px}}
@media(max-width:600px) and (orientation:portrait){.menu{padding:0 19px}.site-header{height:78px}.edition{display:none}.intro h1{font-size:38px;line-height:1.35}.intro h1>span{margin-left:0;display:table}.intro{padding:30px 0}.intro p{font-size:12px;max-width:280px}.intro-note{gap:14px;font-size:10px;margin-top:18px}.hero-doodle{top:42px;right:35px}.level-grid{grid-template-columns:1fr;gap:25px}.card-content h2{font-size:25px}.card-content p{font-size:11px}.card-content{padding:20px 17px}.play-button{padding:12px 16px;font-size:14px}.menu-footer{margin:28px 0;font-size:11px;align-items:flex-start}.rotate-hint.show{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#fff9edf9;z-index:100;padding:25px}.rotate-hint>span{font-size:90px;color:#bb8c36}.rotate-hint strong{font-size:22px}.rotate-hint p{color:#7f8175}.rotate-hint button{border:2px solid #292d35;background:#ffce4b;border-radius:12px;padding:13px 22px;font-weight:800;margin-top:10px}.game-top .icon-button{min-width:25px;min-height:25px}.game-top .home-button{min-width:13px;min-height:16px}.game-tools{gap:1cqw}.primary-button{min-height:28px}.dialog-actions button,.text-button{min-height:28px}.game-top{inset:2% 2% auto}.volume-panel{font-size:3cqw;width:55cqw;top:17%}.volume-panel input[type=range]{width:35cqw}}
@media(max-height:580px) and (orientation:landscape){.menu{max-width:1000px;padding:0 26px}.site-header{height:61px}.brand{font-size:15px}.brand-mark{width:33px;height:33px;font-size:25px}.brand small{font-size:7px}.intro{padding:16px 0 18px}.eyebrow{font-size:9px}.intro h1{font-size:31px;margin:8px 0 12px}.intro p{font-size:10px}.intro-note{position:absolute;right:0;bottom:22px;font-size:9px;gap:10px}.hero-doodle{display:none}.level-grid{max-width:860px;margin:auto}.card-scene{aspect-ratio:16/7}.card-content{padding:12px 15px 10px}.card-content h2{font-size:19px;margin-bottom:3px}.card-content p{font-size:10px}.card-foot{padding:7px 0;font-size:9px}.level-card{border-radius:17px}.level-number{top:9px;left:9px;font-size:10px;padding:4px 6px}.level-number>span{font-size:7px}.scene-tag{font-size:9px;bottom:10px;right:12px;padding:5px 8px}.play-button{min-height:44px;padding:6px 10px}.menu-footer{margin:17px 0 16px;font-size:10px}.friendly-icon{width:28px;height:28px;font-size:21px}.lesson{padding:1.8cqw 5cqw;gap:.5cqw}.lesson-footer{padding:0}.lesson-header h2{font-size:2.7cqw}.lesson-header .mini-label{font-size:.9cqw}.pose-card{width:34%}.dialog{padding:2cqw}.dialog h2{font-size:3cqw}.dialog p{margin:.8cqw 0 1.1cqw}.dialog-symbol{font-size:2.7cqw;width:4.2cqw;height:4.2cqw}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* v2: first-level layers only; the dojo keeps its v1 presentation. */
.party-lights,.party-band,.party-effects{position:absolute;inset:0;pointer-events:none}.party-lights{z-index:1;overflow:hidden}.party-spotlight{position:absolute;top:1.8%;width:28%;height:115%;object-fit:fill;transform-origin:50% 0;mix-blend-mode:screen;will-change:transform,opacity}.party-band{z-index:2}.band-performer{position:absolute;aspect-ratio:1312/1199;transform-origin:50% 95%;will-change:transform}.band-performer img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.stage[data-level=thumb] .actor{z-index:3}.party-effects{z-index:4}.party-effects i{position:absolute;display:block;pointer-events:none}.party-star{font-style:normal;color:#fff6ad;font-size:4cqw;text-shadow:0 .15cqw #c89a29}.party-confetti{width:.55cqw;height:1cqw;border-radius:.12cqw}.stage[data-level=thumb] .game-top,.stage[data-level=thumb] .game-bottom{z-index:6}.stage[data-level=thumb] .section-label{z-index:6}.stage[data-level=thumb] .cue{z-index:5}.stage[data-level=thumb] .level-heading h2{font-size:1.7cqw}.stage[data-level=thumb] .level-heading small{font-size:.75cqw}.stage[data-level=thumb] .card-content h2{letter-spacing:-.04em}@media(max-width:900px){.stage[data-level=thumb] .level-heading h2{font-size:1.85cqw}.stage[data-level=thumb] .level-heading small{font-size:1cqw}}
/* Avoid backdrop-filter compositing artifacts on large transformed displays. */
.stage[data-level=thumb] .compact-overlay{backdrop-filter:none;background:#1c293e99}
/* v3 both stages use the same layered stage and transport. */
.stage[data-level=fist] .actor{z-index:3}.stage[data-level=fist] .game-top,.stage[data-level=fist] .game-bottom,.stage[data-level=fist] .section-label{z-index:6}.stage[data-level=fist] .cue{z-index:5}.stage[data-level=fist] .compact-overlay{backdrop-filter:none;background:#1c293e99}.cue.opening{font-size:4cqw;right:18%;top:17%;opacity:1}.beat-impact{position:absolute;left:11.5%;bottom:27%;font-size:3.5cqw;color:#ffec8c;text-shadow:0 .15cqw #af7535;z-index:4;pointer-events:none}button:disabled{cursor:default}.completion .primary-button:disabled{opacity:.85}
