/* Gurppa Beat Studio — 16-step sequencer inside a BustOS window */
.stu-wrap { display: flex; flex-direction: column; gap: 10px; font-family: inherit; }

.stu-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stu-play {
  appearance: none; cursor: pointer; font: inherit; font-weight: 800; font-size: .8rem; letter-spacing: .04em;
  color: #14140f; padding: .5rem .9rem; border-radius: 10px; border: none;
  background: radial-gradient(circle at 40% 30%, #ffd98a, var(--gold) 60%, #9a6c12);
  box-shadow: 0 4px 0 #7c560e; transition: transform .07s, box-shadow .07s;
}
.stu-play:active { transform: translateY(3px); box-shadow: 0 1px 0 #7c560e; }
.stu-play.live {
  color: #fff; background: radial-gradient(circle at 40% 30%, var(--red-hi), var(--red-1) 55%, var(--red-2));
  box-shadow: 0 4px 0 var(--red-2), 0 0 18px rgba(226,59,46,.6); animation: stu-pulse .5s ease-in-out infinite;
}
@keyframes stu-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.stu-bpm { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; color: var(--ink-soft); }
.stu-bpm input[type="range"] { width: 96px; accent-color: var(--gold); cursor: pointer; }
.stu-bpmout { min-width: 62px; color: var(--ink); }

.stu-tool, .stu-preset {
  appearance: none; cursor: pointer; font: inherit; font-weight: 700; font-size: .68rem;
  color: var(--ink); padding: .38rem .6rem; border-radius: 9px;
  background: var(--panel); border: 1px solid var(--panel-line); transition: transform .07s, border-color .1s;
}
.stu-tool:hover, .stu-preset:hover { border-color: var(--gold); transform: translateY(-1px); }
.stu-tool:active, .stu-preset:active { transform: translateY(0); }

.stu-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .64rem; color: var(--ink-soft); font-weight: 700; }

.stu-grid { display: flex; flex-direction: column; gap: 3px; overflow-x: auto; padding-bottom: 2px; }
.stu-row { display: grid; grid-template-columns: 58px repeat(16, 1fr); gap: 3px; align-items: center; min-width: 460px; }
.stu-label { font-size: .6rem; font-weight: 800; letter-spacing: .02em; color: var(--ink); text-align: right; padding-right: 4px; white-space: nowrap; display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.stu-emoji { font-size: .8rem; }
.stu-row-s .stu-label { color: var(--ink-soft); font-weight: 700; }

.stu-cell {
  appearance: none; cursor: pointer; padding: 0; border: 1px solid var(--panel-line);
  aspect-ratio: 1 / 1; min-height: 16px; border-radius: 5px;
  background: color-mix(in srgb, var(--panel) 82%, transparent); transition: background .06s, box-shadow .06s, transform .05s;
}
.stu-cell.stu-beat { border-color: color-mix(in srgb, var(--gold) 45%, var(--panel-line)); }
.stu-cell:hover { transform: scale(1.08); }
/* drum rows fill red, synth rows fill gold/cool so the two zones read differently */
.stu-row-d .stu-cell.on { background: radial-gradient(circle at 40% 30%, var(--red-hi), var(--red-1) 70%); border-color: var(--red-2); box-shadow: inset 0 1px 2px rgba(255,255,255,.3); }
.stu-row-s .stu-cell.on { background: radial-gradient(circle at 40% 30%, #ffd98a, var(--gold) 70%); border-color: #9a6c12; box-shadow: inset 0 1px 2px rgba(255,255,255,.4); }
.stu-cell.play { box-shadow: 0 0 0 2px var(--digit, #7fd0ff), 0 0 10px rgba(127,208,255,.7); }
.stu-cell.on.play { box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(255,255,255,.8); }

.stu-hint { font-size: .62rem; color: var(--ink-soft); line-height: 1.4; }

@media (prefers-reduced-motion: reduce) { .stu-play.live { animation: none; } .stu-cell:hover { transform: none; } }
