.counting-practice{--cp-muted:#aeb7a5;--cp-line:#414a37;background:#181d16;color:#f4f6e9;border:1px solid #39422e;border-radius:22px;margin:36px 0 52px;overflow:hidden;scroll-margin-top:110px;font:14px/1.6 var(--sans);color-scheme:dark}
.cp-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:30px 32px 25px}.cp-heading .cp-eyebrow{font-size:10px;letter-spacing:.15em;color:var(--lime);margin:0 0 12px}.cp-heading h2{font-size:clamp(30px,3.5vw,46px);line-height:1.15;letter-spacing:-.035em;margin:0 0 10px;color:#f4f6e9}.cp-heading p{font-size:13px;color:var(--cp-muted)}.cp-source-badge{border:1px solid #606b47;border-radius:50%;width:76px;height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:28px;line-height:1.1;color:var(--lime);flex-shrink:0;font-variant-numeric:tabular-nums}.cp-source-badge span{font-size:10px;letter-spacing:.12em;margin-top:4px}
.counting-practice button{min-height:44px;border:1px solid var(--cp-line);background:#252c20;color:inherit;border-radius:10px;font-size:12px;line-height:1.45;padding:10px 14px;touch-action:manipulation}.counting-practice button:hover{border-color:#8c9d64;background:#303a25}.counting-practice button:focus-visible,.counting-practice select:focus-visible,.counting-practice input:focus-visible{outline:2px solid var(--lime);outline-offset:3px}.counting-practice button:disabled{cursor:default;opacity:.35}.cp-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--cp-line);padding:0 18px}.cp-steps button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;display:flex;align-items:center;justify-content:center;gap:12px;padding:18px 10px;color:var(--cp-muted)}.cp-steps button[aria-current=step]{color:var(--lime);border-bottom-color:var(--lime);background:#ddf56806}.cp-steps button span{font-size:10px;font-variant-numeric:tabular-nums;opacity:.7}
.cp-workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px}.cp-player{padding:26px 28px 20px;min-width:0}.cp-instruction{min-height:106px}.cp-step-label{font-size:10px;letter-spacing:.12em;color:var(--lime)}.cp-instruction h3{font:500 18px/1.5 var(--sans);letter-spacing:0;margin:7px 0 8px;color:#f4f6e9}.cp-instruction p{font-size:12px;line-height:1.75;color:var(--cp-muted);max-width:60ch}
.cp-transport{display:flex;align-items:center;gap:10px;margin-top:20px;flex-wrap:wrap}.counting-practice .cp-play{background:var(--lime);border-color:var(--lime);color:#1d2610;min-width:124px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:10px}.counting-practice .cp-play:hover{background:#e6ff76}.cp-restart{font-size:22px!important;width:44px;padding:4px!important}.cp-speed{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--cp-muted);margin-left:auto}.cp-speed select{border:1px solid var(--cp-line);border-radius:8px;background:#252c20;color:#f4f6e9;min-height:44px;padding:5px 10px;font-size:12px}.cp-listening-bpm{font-size:10px;color:var(--cp-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.cp-mixer{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 26px}.cp-mixer button{display:flex;align-items:center;gap:7px;flex:1;padding-inline:8px;white-space:nowrap}.cp-mixer button[aria-pressed=true]{border-color:#cce554;background:#ddf56812;color:var(--lime)}.cp-dot{width:6px;height:6px;border-radius:50%;background:var(--lime);display:inline-block;flex-shrink:0}.cp-dot-bass{background:#d7b4f9}.cp-dot-harmony{background:#f0c68b}.cp-dot-full{background:#f4f6e9}
.cp-score{background:#21271c;border:1px solid var(--cp-line);border-radius:12px;padding:14px 16px 12px;position:relative}.cp-score-label{display:flex;justify-content:space-between;font-size:10px;color:var(--cp-muted);margin-bottom:10px}.cp-counts{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.cp-count{font-size:27px;line-height:1.3;text-align:center;color:#79846d;border-radius:7px;padding:5px 0;position:relative;font-variant-numeric:tabular-nums}.cp-count:nth-child(4){margin-right:5px}.cp-count:nth-child(5){margin-left:5px}.cp-anchor{color:#d5dec4}.cp-count.is-current{color:#1b230e;background:var(--lime)}.cp-count small{font-size:11px;position:absolute;right:1px;bottom:-4px;color:#aab895}.cp-count.is-current.is-half small{color:#fff}.cp-independent{position:absolute;inset:36px 10px 10px;display:flex;justify-content:center;align-items:center;font-size:14px;color:#c5d0b4}.is-independent .cp-counts{visibility:hidden}.is-independent [data-count-caption]{visibility:hidden}
.cp-timeline{height:170px;position:relative;margin-top:20px;overflow:hidden;background:#11160f;border-radius:8px}.cp-timeline canvas{width:100%;height:170px;display:block;cursor:crosshair}.cp-playhead{position:absolute;top:14px;bottom:0;width:1px;background:#f4f6e9c0;pointer-events:none}.cp-playhead:before{content:'';position:absolute;width:5px;height:5px;left:-2px;top:0;border-radius:50%;background:var(--lime)}.counting-practice .cp-seek{display:block;min-height:32px;height:32px;accent-color:var(--lime);margin:4px 0 0;touch-action:pan-y}.cp-times{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--cp-muted);font-variant-numeric:tabular-nums}.cp-options{display:flex;flex-wrap:wrap;gap:4px 18px;margin:14px 0 0}.cp-options label{display:flex;align-items:center;gap:7px;min-height:44px;font-size:11px;cursor:pointer}.cp-options input{width:16px;height:16px;accent-color:var(--lime);margin:0}.cp-options label:has(input:disabled){opacity:.4}.cp-status{color:var(--cp-muted);font-size:11px;min-height:20px;margin-top:8px}
.cp-phrases{background:#1d2319;border-left:1px solid var(--cp-line);padding:24px 18px;display:flex;flex-direction:column;gap:10px}.cp-aside-title{font-size:11px;letter-spacing:.03em;color:#ced7bf;margin:0 0 6px}.cp-phrases>button{text-align:left;position:relative;padding:14px!important;flex:1;background:transparent}.cp-phrases>button[aria-pressed=true]{border-color:#a0b956;background:#ddf5680b}.cp-phrase-meta{display:flex;justify-content:space-between;font-size:9px;color:#99a78a;margin-bottom:9px;font-variant-numeric:tabular-nums}.cp-phrases strong{display:block;font-size:13px;font-weight:500;color:#e5ebd9;line-height:1.5;margin-right:10px}.cp-phrase-hint{display:block;font-size:11px;color:var(--cp-muted);margin-top:6px;padding-right:6px}.cp-phrase-arrow{position:absolute;right:12px;top:40px;color:var(--lime)}.cp-lesson-nav{display:flex;gap:8px;margin-top:9px}.cp-lesson-nav button{flex:1;padding:9px 4px;white-space:normal;font-size:11px}
.cp-source{border-top:1px solid var(--cp-line);padding:16px 28px;display:flex;justify-content:space-between;align-items:start;gap:16px}.cp-source p{font-size:10px;color:#9ba98b;max-width:50ch}.cp-source p:first-child{color:#c2ccb3}.cp-test{border-top:1px solid var(--cp-line);padding-top:18px;margin-top:16px}.counting-practice .cp-tap{width:100%;min-height:76px;background:#ddf56814;border-color:#8ca34e;color:var(--lime);display:flex;justify-content:space-between;align-items:center;font-size:16px;padding:18px 22px;user-select:none;touch-action:manipulation}.counting-practice .cp-tap:active,.counting-practice .cp-tap.is-hit{background:var(--lime);color:#1d2610}.cp-tap-feedback{font-size:12px;color:var(--lime);min-height:24px;margin:12px 0}.cp-test-actions{display:flex;gap:12px}.cp-test-actions button{font-size:11px;background:transparent}.cp-tap-note{font-size:10px;color:var(--cp-muted);margin-top:12px}.counting-practice+ .article-layout{margin-top:0}
@media(min-width:1100px){.article-heading:has(+.counting-practice){max-width:1000px}.article-heading:has(+.counting-practice) h1{font-size:60px}.cp-player{padding-inline:32px}}
@media(min-width:701px){.cp-heading{padding:22px 28px 20px}.cp-heading h2{font-size:36px;margin-bottom:6px}.cp-heading .cp-eyebrow{margin-bottom:8px}.cp-player{padding-top:20px;padding-bottom:16px}.cp-instruction{min-height:80px}.cp-transport{margin-top:12px}.cp-mixer{margin:14px 0 18px}.cp-score{padding-block:10px}.cp-score-label{margin-bottom:4px}.cp-count{font-size:25px;padding:2px 0}.cp-timeline,.cp-timeline canvas{height:146px}.cp-timeline{margin-top:16px}.cp-options{margin-top:8px}.cp-phrases{padding-top:20px}}
@media(max-width:1000px){.cp-workspace{grid-template-columns:minmax(0,1fr) 225px}.cp-player{padding:22px}.cp-speed{margin-left:0}.cp-listening-bpm{margin-left:auto}.cp-instruction{min-height:132px}.cp-mixer{gap:5px}.cp-source{flex-direction:column;gap:4px}}
@media(max-width:700px){.counting-practice{border-radius:16px;margin:26px 0 36px}.cp-heading{padding:22px 18px;gap:12px}.cp-heading h2{font-size:29px;line-height:1.2}.cp-heading p{font-size:12px}.cp-heading .cp-eyebrow{font-size:8px;letter-spacing:.10em}.cp-source-badge{width:52px;height:52px;font-size:21px}.cp-source-badge span{font-size:8px}.cp-steps{padding:0 8px}.cp-steps button{flex-direction:column;gap:4px;padding:12px 3px;font-size:11px}.cp-steps button span{font-size:9px}.cp-workspace{grid-template-columns:minmax(0,1fr)}.cp-player{padding:22px 16px 16px}.cp-instruction{min-height:120px}.cp-instruction h3{font-size:17px}.cp-instruction p{font-size:12px}.cp-mixer{margin:16px 0 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.cp-mixer button{font-size:10px;padding:10px 3px;gap:4px;white-space:normal}.cp-transport{gap:8px}.cp-play{min-width:113px!important;padding-inline:10px!important}.cp-speed{font-size:10px;gap:5px;margin-left:auto}.cp-speed select{padding-inline:5px}.cp-listening-bpm{display:none}.cp-score{padding:12px 9px}.cp-counts{gap:2px}.cp-count{font-size:24px}.cp-count small{font-size:10px;right:-1px}.cp-options{gap:0 14px}.cp-options label{font-size:10px}.cp-options input{width:15px;height:15px}.cp-phrases{border-left:0;border-top:1px solid var(--cp-line);padding:18px 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cp-aside-title,.cp-lesson-nav{grid-column:1/-1}.cp-phrases>button{padding:12px!important}.cp-phrase-meta{font-size:8px;flex-wrap:wrap;gap:4px}.cp-phrases strong{font-size:12px}.cp-phrase-hint{font-size:10px}.cp-source{padding:14px 16px}.cp-source p{font-size:9px;max-width:none}.cp-test-actions{gap:8px;flex-wrap:wrap}.cp-times{font-size:9px}.cp-independent{font-size:12px}}

/* The pad is the interaction surface; notes and settings stay outside it. */
.cp-game-mode{display:flex;justify-content:space-between;gap:12px;color:var(--cp-muted);font-size:10px;letter-spacing:.05em;margin-bottom:10px;font-variant-numeric:tabular-nums}
.counting-practice .cp-tap{--hit-color:var(--lime);position:relative;isolation:isolate;display:block;overflow:hidden;width:100%;min-height:330px;padding:22px;background:radial-gradient(ellipse at 50% 62%,#3d4b1e55,transparent 70%),#141b10;border:1px solid #7e914e;border-radius:18px;color:var(--lime);user-select:none;-webkit-user-select:none;touch-action:manipulation;cursor:pointer;box-shadow:inset 0 0 0 5px #ddf56804}
.counting-practice .cp-tap[data-hit-result=good]{--hit-color:#f3cc7b}.counting-practice .cp-tap[data-hit-result=miss]{--hit-color:#f39284}
.counting-practice .cp-tap:active{background-color:#202a16;color:var(--hit-color)}
.cp-pad-flash{position:absolute;inset:0;z-index:-1;opacity:0;background:var(--hit-color);pointer-events:none}
.cp-pad-ring{position:absolute;left:50%;top:56%;width:165px;height:165px;border:2px solid var(--hit-color);border-radius:50%;opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.9)}
.cp-pad-hud{position:absolute;inset:20px 22px auto;display:flex;justify-content:space-between;align-items:start;color:#f2f5e6;text-align:left;pointer-events:none}.cp-pad-hud>span{display:flex;flex-direction:column;gap:2px}.cp-pad-hud>span:last-child{text-align:right}.cp-pad-hud b{font:500 36px/1 var(--sans);font-variant-numeric:tabular-nums;letter-spacing:-.06em}.cp-pad-hud>span:last-child b{font-size:21px;color:#b9c7a1}.cp-pad-hud small{font-size:9px;letter-spacing:.12em;color:#9dac88}
.cp-pad-center{position:absolute;inset:95px 12px 50px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;pointer-events:none}.cp-judgement{display:block;color:var(--hit-color);font:800 clamp(38px,5vw,76px)/1 var(--sans);letter-spacing:-.055em;font-style:italic;text-shadow:0 0 24px #ddf56820;will-change:transform,opacity}.cp-tap[data-hit-result=ready] .cp-judgement{font-size:clamp(30px,4vw,52px);letter-spacing:-.04em}.cp-judgement-detail{display:block;font-size:12px;color:#c7d0b8;font-variant-numeric:tabular-nums;line-height:1.6}.cp-pad-hint{position:absolute;bottom:20px;left:12px;right:12px;font-size:9px;letter-spacing:.13em;color:#8d9f77;pointer-events:none}
.cp-excellent{position:absolute;top:23px;left:70px;right:70px;display:flex;flex-direction:column;align-items:center;gap:4px;color:#f8df8a;pointer-events:none}.cp-excellent strong{font:800 23px/1.1 var(--sans);font-style:italic;letter-spacing:-.04em}.cp-excellent small{font-size:9px;line-height:1.5;color:#e3dab4}
.cp-results{padding:18px;background:#242d1d;border:1px solid #6d7e45;border-radius:12px;margin:16px 0}.cp-results-title{font-size:14px;font-weight:500;color:#e7efda;margin-bottom:16px}.cp-results dl{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px 12px;margin:0}.cp-results dl>div:nth-child(-n+2){grid-column:span 3}.cp-results dl>div:nth-child(n+3){grid-column:span 2}.cp-results dt{font-size:9px;color:#9eaf87;letter-spacing:.06em}.cp-results dd{margin:5px 0 0;color:var(--lime);font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums}.cp-results dl>div:last-child dd{color:#f39284}
.is-practicing .cp-timeline,.is-practicing .cp-seek,.is-practicing .cp-times{display:none}.is-practicing .cp-phrases>button{flex:0 0 auto}.is-practicing .cp-lesson-nav{margin-top:auto}.is-practicing .cp-score{margin-bottom:16px}.is-practicing .cp-test{border-top:0;margin-top:16px;padding-top:0}.is-practicing .cp-mixer{margin-bottom:16px}.is-practicing .cp-test-actions button:last-child{background:var(--lime);color:#1d2610;border-color:var(--lime)}
.cp-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:#11170e;border:1px solid var(--cp-line);border-radius:12px;padding:5px;margin-bottom:14px}.counting-practice .cp-mode-switch button{min-height:44px;border-color:transparent;background:transparent;color:var(--cp-muted);font-size:12px}.counting-practice .cp-mode-switch button[aria-pressed=true]{background:var(--lime);color:#1d2610;border-color:var(--lime)}
@media(hover:hover) and (pointer:fine){.counting-practice .cp-tap:hover{border-color:var(--hit-color);background-color:#1b2415;color:var(--hit-color)}}
@media(max-width:700px){.counting-practice .cp-tap{min-height:clamp(280px,46svh,420px);padding:18px;border-radius:14px}.cp-pad-hud{inset:18px 18px auto}.cp-pad-hud b{font-size:34px}.cp-pad-hint{font-size:8px;letter-spacing:.08em;bottom:18px}.cp-pad-center{inset:90px 10px 48px}.cp-judgement{font-size:clamp(35px,11vw,64px)}.cp-judgement-detail{font-size:11px}.cp-excellent{left:60px;right:50px;top:20px}.cp-excellent strong{font-size:19px}.cp-excellent small{font-size:8px}.cp-results dd{font-size:24px}.cp-game-mode{font-size:10px}.is-practicing .cp-instruction{min-height:0;margin-bottom:16px}.is-practicing .cp-options{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.counting-practice .cp-pad-ring{display:none}.cp-judgement{will-change:auto}.counting-practice .cp-tap{transition:none}}

.cp-topic-practice{padding:20px 28px;background:#222a1c;border-block:1px solid var(--cp-line)}.cp-topic-practice h3{font:500 17px/1.5 var(--sans);letter-spacing:0;color:#edf2e0;margin-bottom:8px}.cp-topic-practice p{font-size:11px;line-height:1.8;color:var(--cp-muted)}.cp-tempo-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.cp-tempo-values>div{display:flex;flex-direction:column;gap:6px}.cp-tempo-values output{font-size:32px;line-height:1.1;font-variant-numeric:tabular-nums;color:var(--lime)}.cp-tempo-values span{font-size:10px;color:var(--cp-muted)}.cp-tempo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.counting-practice .cp-tempo-actions button:first-child{background:var(--lime);color:#1d2610;min-height:58px;min-width:190px;border-color:var(--lime)}.cp-entry{padding:15px 16px;border:1px solid var(--cp-line);border-radius:10px;margin:0 0 18px}.cp-entry-options{display:flex;gap:8px;margin:12px 0}.cp-entry-options button{flex:1}.counting-practice .cp-entry-options button[aria-pressed=true]{background:var(--lime);border-color:var(--lime);color:#1d2610}
@media(max-width:700px){.cp-topic-practice{padding:18px 16px}.cp-topic-practice h3{font-size:16px}.cp-tempo-values{gap:8px}.cp-tempo-values output{font-size:29px}.cp-tempo-values span{font-size:9px}.cp-tempo-actions{display:grid;grid-template-columns:1fr}.counting-practice .cp-tempo-actions button:first-child{min-width:0}.cp-entry{padding:14px 12px}.cp-entry-options button{font-size:11px;padding-inline:6px}}
