:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0a0e10;
  color: #f1f5f5;
  --cyan: #9aeaff;
  --quiet: #a9bbbf;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}
main {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: min(730px, calc(100svh - 68px));
  padding: clamp(30px, 7vh, 76px) 20px clamp(20px, 4vh, 44px);
  overflow: clip;
}
.deck-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
main::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #0a0e10 0%, #0a0e10b8 21%, #0a0e1000 46%, #0a0e101a 62%, #0a0e10e8 82%, #0a0e10 100%);
}
.title { text-align: center; animation: arrive 460ms ease-out both; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: .71rem;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 750;
  letter-spacing: -.052em;
  line-height: .97;
}
.player {
  width: min(100%, 530px);
  margin-top: clamp(120px, 30vh, 300px);
  animation: arrive 460ms 100ms ease-out both;
}
.transport {
  display: grid;
  gap: 12px;
  align-items: end;
}
.transport { grid-template-columns: 1.1fr 1.25fr .8fr; }
.energy { width: min(100%, 260px); margin: 16px auto 0; }
.midi { display: block; width: min(100%, 260px); min-height: 38px; margin: 12px auto 0; font-size: .9em; }
.midi[hidden] { display: none; }
button, select, input { font: inherit; }
button, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #627479;
  border-radius: 6px;
  background: #151e21;
  color: inherit;
  padding: 0 10px;
}
button { cursor: pointer; transition: background 140ms, border-color 140ms; }
button:hover:not(:disabled), select:hover:not(:disabled) { border-color: var(--cyan); background: #233538; }
button:disabled, select:disabled { opacity: .55; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: var(--cyan);
  background: var(--cyan);
  color: #0a191f;
  font-weight: 750;
}
.play:hover:not(:disabled) { background: #d7f7ff; }
#play-icon { font-size: .75em; }
label {
  display: grid;
  gap: 5px;
  color: var(--quiet);
  font-size: .82rem;
  font-weight: 600;
}
select { font-size: .95rem; font-weight: 600; }
input[type="range"] { width: 100%; height: 22px; margin: 0; accent-color: var(--cyan); }
.status {
  min-height: 2.6em;
  margin: 11px 0 0;
  color: var(--quiet);
  text-align: center;
  font-size: .85rem;
  line-height: 1.3;
}
body[data-playback="playing"] .status { color: var(--cyan); }
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px max(20px, 5vw);
  border-top: 1px solid #223035;
  color: var(--quiet);
  font-size: .82rem;
}
footer span:last-child { display: flex; flex-wrap: wrap; gap: 8px 22px; }
a { color: #e3eeee; text-underline-offset: .2em; }
a:hover { color: var(--cyan); }
@keyframes arrive {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 570px) {
  main { min-height: calc(100svh - 100px); }
  .transport { grid-template-columns: 1fr 1.55fr .75fr; }
  .deck-art { object-fit: contain; object-position: 50% 42%; }
  main::after { background: linear-gradient(180deg, #0a0e10 3%, #0a0e1000 28%, #0a0e1000 54%, #0a0e10 77%); }
  footer { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .title, .player { animation: none; }
  button { transition: none; }
}
