:root{color-scheme:light;--bg:#f3eee4;--panel:#faf8f4;--text:#1b1711;--muted:#534f47;--orange:#ad540c;--mint:#206b57;--gold:#896a18;--line:#b9bcb4;font-family:"Segoe UI",Inter,Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:radial-gradient(circle at 50% 0,#fffefe,transparent 55%),var(--bg);color:var(--text);font-size:16px;line-height:1.6}main{max-width:1040px;margin:auto;padding:20px 24px 48px}header:not(.site-header),header:not(.site-header) nav,.heading,.transport,footer nav{display:flex;align-items:center;justify-content:space-between;gap:16px}header:not(.site-header){min-height:48px;margin-bottom:24px}.brand{display:flex;align-items:center;gap:14px;font-size:25px;font-weight:850;letter-spacing:.12em;color:var(--orange);text-decoration:none}.brand span{font-size:13px;letter-spacing:0;font-weight:500;color:var(--muted)}a{color:var(--mint);text-underline-offset:4px}header:not(.site-header) a:not(.brand){font-size:14px;display:inline-flex;align-items:center;min-height:44px}button,select,input{font:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);border-radius:8px;background:#ffffff;color:var(--text);min-height:44px;padding:8px 16px}#language{padding:6px 10px;font-size:13px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--orange)}h1{font-size:clamp(30px,5vw,46px);line-height:1.12;letter-spacing:-.025em;margin:8px 0 14px}h2{font-size:27px;line-height:1.2;margin:0}h3{font-size:21px;line-height:1.3;margin:0}.intro{margin-bottom:26px}.intro p{margin:0;color:var(--muted)}.instruments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.instrument-choice{text-align:left;min-height:88px;padding:14px 18px;background:#fbf9f6}.instrument-choice strong{display:block;font-size:23px}.instrument-choice span{display:block;font-size:13px;color:var(--muted);margin-top:3px}.instrument-choice.active{border-color:var(--orange);box-shadow:inset 0 0 0 1px var(--orange)}.instrument-choice.davul.active{border-color:var(--mint);box-shadow:inset 0 0 0 1px var(--mint)}.instrument-choice.cymbal.active{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}.instrument{padding:24px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(150deg,#ffffff,#f8f5ef)}.pill{font-size:13px;color:var(--muted);border:1px solid var(--line);padding:3px 10px;border-radius:20px;white-space:nowrap}p{color:var(--muted)}#hint{font-size:14px;margin:12px 0 16px}.transport{justify-content:flex-start;gap:24px;margin-bottom:18px}.primary{background:var(--orange);border:0;color:#f6f0e9;min-width:155px;font-weight:750;min-height:48px}.primary[aria-pressed=true]{background:var(--mint)}.tempo{display:grid;grid-template-columns:auto 1fr;gap:0 16px;min-width:200px;font-size:13px;color:var(--muted)}.tempo output{color:var(--text);font-weight:700;text-align:right}.tempo input{grid-column:1/-1;width:100%;min-height:36px}input[type=range]{accent-color:var(--orange);min-height:36px;max-width:100%}.rhythm-select{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:16px}.rhythm-select label{font-size:14px;color:var(--muted)}select{background:#fdfdfb;border:1px solid #9fa498;color:var(--text);border-radius:8px;padding:9px 12px;min-height:44px;max-width:100%;width:100%;font-size:14px}.rhythm-explanation{font-size:14px;margin:9px 0}#audio-status{font-size:13px;min-height:20px;margin:12px 0;color:var(--muted)}.pads{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0 20px}.pads.davul{grid-template-columns:repeat(3,minmax(0,1fr))}.pads.cymbal{grid-template-columns:repeat(4,minmax(0,1fr))}.pad{position:relative;min-height:115px;padding:14px;text-align:left;background:linear-gradient(135deg,#d2b49a,#ffffff);border-color:#b18259;color:#ffffff;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.pad.tek,.pad.pah{background:linear-gradient(135deg,#a3c7bc,#ffffff);border-color:#6a9a83}.pads.davul .pad{background:linear-gradient(135deg,#a7c1b9,#ffffff);border-color:#6a9a83}.pads.cymbal .pad{background:linear-gradient(135deg,#d2c89d,#ffffff);border-color:#9f9156}.pad strong{display:block;font-size:21px;line-height:1.25}.pad kbd{font-family:inherit;font-size:14px;font-weight:750;display:inline-block;margin-top:10px;border:1px solid #786752;border-radius:5px;min-width:28px;text-align:center;padding:0 6px}.pad small{display:block;font-size:11px;margin-top:5px;color:#352b1d}.pad.hit,.pad.guided{background:#c88440;box-shadow:inset 0 0 0 2px #533500}.pad.tek.hit,.pad.tek.guided,.pads.davul .pad.hit{background:#75bba3;box-shadow:inset 0 0 0 2px #003821}.pads.cymbal .pad.hit{background:#c9b96c;box-shadow:inset 0 0 0 2px #544403}.player-bottom{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px}.volume{display:flex;align-items:center;gap:12px;color:var(--muted)}.volume input{width:130px}.player-bottom button{font-size:13px}.practice{padding:28px 0 24px}.practice>p{font-size:14px;margin:12px 0 18px}.beats{display:flex;gap:5px;margin:12px 0 22px;flex-wrap:wrap}.beat{width:31px;height:31px;display:flex;align-items:center;justify-content:center;font-size:12px;border:1px solid #999e94;border-radius:50%;color:var(--muted)}.beat.group{margin-left:12px}.beat.active{background:var(--mint);color:#f1f8f4;font-weight:800}.layers{display:flex;gap:10px;flex-wrap:wrap}.layers label{display:flex;align-items:center;gap:9px;min-height:46px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:14px;cursor:pointer}.layers input{width:18px;height:18px;accent-color:var(--mint)}.layer-sounds{display:flex;gap:14px;flex-wrap:wrap;margin-top:16px}.layer-sounds label{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.layer-sounds select{width:170px}#rhythm-status,.practice .small{font-size:13px;margin-top:14px}.options{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}summary{padding:14px 0;min-height:48px;cursor:pointer;color:var(--mint)}.options-body{padding:8px 0 20px}.options-body p{font-size:14px}.midi-map{max-width:480px;max-height:300px;overflow:auto;margin-top:16px}table{width:100%;border-collapse:collapse;font-size:13px}td,th{text-align:left;border-bottom:1px solid var(--line);padding:8px}.learning{padding-top:38px;margin-top:10px;border-top:1px solid var(--line)}.learning>p{max-width:800px}.rhythm-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}.rhythm-card{padding:20px;border:1px solid var(--line);border-radius:12px;background:#faf8f3;scroll-margin:20px}.rhythm-card p{font-size:14px}.rhythm-card .count{font-size:13px;color:var(--gold)}.card-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.card-links button{font-size:14px;min-height:44px;color:#f6efe9;background:var(--orange);border:0;font-weight:700}.card-links a{font-size:13px}.learning-note{font-size:14px;padding:18px;border-left:3px solid var(--mint);background:#fbfaf7}.learning details{margin-top:18px}.learning li{color:var(--muted);font-size:14px;margin:8px 0}.source-links{font-size:12px;line-height:1.5}.source-links a{display:inline-block;margin:0 14px 8px 0}footer{font-size:13px;margin-top:28px}footer p{margin:8px 0}footer nav{justify-content:flex-start;flex-wrap:wrap;gap:4px 24px;margin-top:12px}footer a{display:inline-flex;align-items:center;min-height:44px}:focus-visible{outline:3px solid var(--mint);outline-offset:4px}@media(max-width:720px){.pads{grid-template-columns:repeat(3,minmax(0,1fr))}.pads.cymbal{grid-template-columns:repeat(2,minmax(0,1fr))}.pad{min-height:108px}.rhythm-cards{grid-template-columns:1fr}}@media(max-width:600px){main{padding:12px 14px 32px}header:not(.site-header){margin-bottom:18px;gap:8px}.brand{font-size:23px}.brand span{display:none}header:not(.site-header) nav{gap:10px}header:not(.site-header) a:not(.brand){font-size:13px}.intro{margin-bottom:20px}.intro p{font-size:14px}h1{font-size:29px}.instruments{gap:8px;margin-bottom:14px}.instrument-choice{padding:11px 10px;min-height:78px}.instrument-choice strong{font-size:19px}.instrument-choice span{font-size:11px;line-height:1.4}.instrument{padding:18px 12px}h2{font-size:24px}#hint{font-size:13px;margin:10px 0 14px}.transport{gap:16px;margin-bottom:14px}.primary{min-width:136px;font-size:14px}.tempo{min-width:0;flex:1;gap:0 8px}.rhythm-select{grid-template-columns:1fr;gap:5px}.rhythm-select select{font-size:13px;padding:9px}.rhythm-explanation{font-size:13px}.pads,.pads.davul{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}.pad{min-height:100px;padding:11px 9px}.pad strong{font-size:18px}.pad kbd{margin-top:8px;font-size:13px}.pad small{font-size:10px}.player-bottom{gap:10px 14px}.volume{gap:8px}.volume input{width:100px}#audio-status{font-size:12px;margin:10px 0}.practice .heading{gap:8px}.beat{width:24px;height:28px;font-size:11px}.beat.group{margin-left:5px}.beats{gap:3px}.layers{gap:7px}.layers label{padding:8px 9px;font-size:13px}.layer-sounds{gap:10px}.layer-sounds label{width:100%;justify-content:space-between}.layer-sounds select{width:185px}.rhythm-card{padding:18px}.rhythm-card h3{font-size:20px}}@media(prefers-reduced-motion:no-preference){.pad{transition:background .06s,box-shadow .06s}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

@media(max-width:600px){.intro>.eyebrow,.intro>p{display:none}.intro{margin-bottom:16px}.intro h1{font-size:26px;line-height:1.12;margin:0 0 10px}.instrument-choice{min-height:74px}#audio-status{margin:5px 0}}
