.rhythm-shell{max-width:880px}
.rhythm-intro{padding-top:40px;padding-bottom:14px}
.rhythm-game{
  display:grid;gap:18px;padding:clamp(16px,4vw,30px);border:1px solid #74608c;
  border-radius:20px;background:linear-gradient(150deg,#2b2139,#14151e 72%);
}
.rhythm-game[hidden]{display:none}
.rhythm-game h2{margin:0;font:700 clamp(23px,4vw,32px)/1.2 "Space Grotesk",sans-serif;letter-spacing:-.025em;text-transform:none}
.rhythm-meta,.rhythm-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#d9cbe4}
.rhythm-meta{justify-content:space-between;font-family:"DM Mono",monospace;font-size:14px}
.rhythm-meta strong{color:var(--acid)}
.rhythm-game button{min-height:44px;border:1px solid #676073;border-radius:10px;padding:10px 15px;color:var(--ink);background:#252333;text-align:left}
.rhythm-game button:focus-visible{outline:2px solid var(--acid);outline-offset:3px}
.rhythm-game button:disabled{cursor:default}
.rhythm-game button:disabled:not(.correct):not(.wrong){opacity:.62}
#rhythm-play,#rhythm-next{background:var(--acid);color:#161b09;border-color:var(--acid);font-weight:700}
#rhythm-status,#rhythm-feedback{margin:0;line-height:1.5}
.rhythm-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px}
.rhythm-options button.correct{border-color:#adcb69;background:#273625}
.rhythm-options button.wrong{border-color:#f0adbc;background:#402a3b}
.rhythm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0;list-style:none}
.rhythm-grid li{min-width:0;padding:7px;border:1px solid #514563;border-radius:8px;background:#211b2c;font-size:13px;overflow-wrap:anywhere}
.rhythm-grid b{display:block;color:var(--acid);margin-bottom:4px}
.rhythm-method{margin-top:36px}
