.home-page .sound-play { padding-top: 48px; padding-bottom: 64px; }
.pad-instruction { margin-bottom: 24px; color: var(--fg-sub); font-size: .875rem; }
.sound-play-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sound-play-controls .pad-instruction { margin-bottom: 0; }
.sound-start { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sound-start[hidden] { display: none; }
.sound-enable { min-height: 44px; padding: 10px 16px; border: 0; border-radius: var(--radius); background: var(--accent); color: #fff; font: inherit; font-size: .875rem; cursor: pointer; }
.sound-enable:disabled { opacity: .65; cursor: wait; }
#soundEnableStatus { font-size: .8125rem; color: var(--fg-sub); }
.sound-volume { display: flex; align-items: center; gap: 12px; color: var(--fg-sub); font-size: .8125rem; white-space: nowrap; }
.sound-volume input { width: 128px; min-height: 44px; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.sound-volume output { min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.sound-play-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.sound-play-card { position: relative; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.pad-particles { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); pointer-events: none; }
.sound-play-card > :is(.pad-heading,.xy-pad) { position: relative; }
.sound-particles-page .sound-play-grid { grid-template-columns: minmax(0,480px); justify-content: center; }
.pad-heading { height: 72px; margin-bottom: 12px; }
.pad-heading h2 { font-size: clamp(1rem,1.5vw,1.25rem); line-height: 1.3; letter-spacing: -.025em; }
.pad-heading output { display: block; margin-top: 4px; font-size: .75rem; line-height: 1.5; color: var(--fg-sub); font-variant-numeric: tabular-nums; }
.xy-pad { display: block; position: relative; width: 100%; aspect-ratio: 5 / 4; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--fg); cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overflow: hidden; padding: 0; font: inherit; transition: background-color 100ms, border-color 100ms; }
.xy-pad[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent); }
.xy-pad:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.xy-pad svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.particle-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.particles-pad .pad-marker { width: 12px; height: 12px; }
.particles-pad :is(.pad-axis-x,.pad-axis-y,.pad-axis-noise) { text-shadow: 0 1px 4px #fff, 0 -1px 4px #fff; }
.xy-pad svg path { fill: none; vector-effect: non-scaling-stroke; }
.xy-pad .pad-guide { stroke: #e8eaf0; stroke-width: 1; }
.xy-pad .voice-a { stroke: var(--accent); stroke-width: 2; }
.xy-pad .voice-b { stroke: #3a5f5b; stroke-width: 1.5; }
.harmonic-pad .voice-a, .harmonic-pad .voice-b { opacity: .45; stroke-width: 1.25; }
.harmonic-pad .roller-outer { fill: none; stroke: var(--border); stroke-width: 1.5; }
.harmonic-pad :is(.roller-a,.roller-b) { fill: none; stroke-width: 1.5; }
.harmonic-pad :is(.roller-a,.spoke-a) { stroke: var(--accent); }
.harmonic-pad :is(.roller-b,.spoke-b) { stroke: #3a5f5b; }
.harmonic-pad :is(.spoke-a,.spoke-b) { stroke-width: 1; opacity: .7; }
.harmonic-pad :is(.roller-dot-a,.contact-a) { fill: var(--accent); }
.harmonic-pad :is(.roller-dot-b,.contact-b) { fill: #3a5f5b; }
.harmonic-pad :is(.roller-dot-a,.roller-dot-b) { stroke: #fff; stroke-width: 1; }
.harmonic-pad .roller-contacts { opacity: .65; }
.pad-axis-x, .pad-axis-y, .pad-axis-noise { position: absolute; color: var(--fg-sub); font-size: .75rem; pointer-events: none; }
.pad-axis-x { bottom: 12px; right: 14px; }
.pad-axis-y { top: 12px; left: 14px; }
.pad-axis-noise { bottom: 12px; left: 14px; }
.pad-marker { position: absolute; width: 20px; height: 20px; border: 2px solid var(--accent); background: #fff; border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.xy-pad[aria-pressed="true"] .pad-marker { background: var(--accent); box-shadow: 0 0 0 8px rgb(217 79 0 / 8%); }
.pad-ghost, .pad-ripple, .pad-spark { position: absolute; pointer-events: none; border-radius: 50%; transform: translate(-50%,-50%); }
.pad-ghost { width: 28px; height: 28px; border: 1px solid var(--accent); opacity: 0; }
.pad-ripple { width: 24px; height: 24px; border: 1px solid var(--accent); }
.pad-spark { width: 4px; height: 4px; background: var(--accent); }
.demo-status { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 3; padding: 8px 12px; border-radius: 8px; background: rgb(255 255 255 / 95%); font-size: .8125rem; color: var(--fg-sub); line-height: 1.7; pointer-events: none; }
.series-pad .series-guide { stroke: #e8eaf0; stroke-width: 1; }
.series-pad .series-partial { opacity: 0; transition: opacity 120ms; }
.series-pad .series-partial.is-active { opacity: 1; }
.series-pad .series-stem { stroke: #3a5f5b; stroke-width: 2; }
.series-pad .series-tip { fill: #3a5f5b; }
.series-pad .series-partial:first-child .series-stem { stroke: var(--accent); stroke-width: 3; }
.series-pad .series-partial:first-child .series-tip { fill: var(--accent); }
.series-pad .series-multiple { font-size: 14px; fill: var(--fg-sub); }
.series-pad .series-tick { font-size: 12px; fill: var(--fg-sub); }
.series-pad .pad-marker, .series-pad[aria-pressed="true"] .pad-marker { background: transparent; }
.chord-pad .chord-active { fill: transparent; }
.chord-pad .chord-active.is-active { fill: rgb(217 79 0 / 7%); }
.chord-pad .chord-degree { fill: var(--accent); font-size: 14px; }
.chord-pad .chord-name { fill: var(--fg); font-size: 13px; }
.chord-pad .chord-meta { fill: var(--fg-sub); font-size: 11px; }
.chord-pad .chord-voice { stroke: #3a5f5b; stroke-width: 1; opacity: .4; }
.chord-pad .chord-note { fill: #fff; stroke: #3a5f5b; stroke-width: 1; }
.chord-pad .chord-note-name { fill: #3a5f5b; font-size: 10px; }
.chord-pad .chord-hit { fill: #3a5f5b; }
.chord-pad .chord-hit.is-current { fill: var(--accent); }
.demo-status:empty { display: none; }
.melody-pad { background-image: radial-gradient(ellipse at 45% 60%, rgb(58 95 91 / 6%), transparent 65%); }
.melody-pad :is(.melody-meta,.melody-current) { fill: var(--fg-sub); font-size: 12px; }
.melody-pad .melody-current { fill: var(--accent); font-size: 18px; }
.melody-pad .melody-tone { fill: #e8eaf0; }
.melody-pad .melody-tone text { fill: var(--fg-sub); font-size: 12px; }
.melody-pad .melody-tone.is-scale { fill: #3a5f5b; }
.melody-pad .melody-tone.is-playing { fill: var(--accent); }
.melody-pad .melody-tone.is-playing text { fill: var(--accent); }
.melody-pad .melody-trace { stroke: #3a5f5b; stroke-width: 1.5; opacity: .65; }
.melody-pad .melody-step { fill: #3a5f5b; }
.melody-pad .melody-step.is-current { fill: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .pad-ghost, .pad-ripple, .pad-spark { display: none; }
  .xy-pad { transition: none; }
  .series-pad .series-partial { transition: none; }
}
@media (max-width: 900px) {
  .sound-play-controls { flex-direction: column; align-items: flex-start; gap: 12px; }
  .home-page .sound-play { padding-top: 32px; padding-bottom: 40px; }
}
@media (max-width: 1100px) {
  .sound-play-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .sound-play-grid { grid-template-columns: 1fr; }
}
