:root {
  color-scheme: dark;
  --bg: #110d16;
  --panel: #1d1525;
  --line: #392945;
  --paper: #fff7f2;
  --muted: #c4b4cd;
  --pink: #fbb4e1;
  --acid: #e7fa83;
  --purple: #6a427c;
  font: 100%/1.5 "Aptos", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--paper); background: var(--bg); }
a { color: inherit; }
button, input, select { font: inherit; }
button, .top-link { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
h1, h2, p { margin: 0; }
.shell { max-width: 59rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; gap: .45rem; align-items: center; text-decoration: none; font-size: 1.65rem; font-weight: 850; letter-spacing: -.09em; }
.brand-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; background: var(--pink); border-radius: 50%; color: var(--bg); font-size: 1.2rem; letter-spacing: 0; }
.brand-period { color: var(--pink); margin-left: -.42rem; }
.top-link { text-decoration: none; font-size: .9rem; font-weight: 650; color: var(--muted); padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 100vw; }
.top-link:hover, .text-link:hover { color: var(--paper); border-color: var(--pink); }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 17.5rem; border: 1px solid #553669; border-radius: 1.15rem; background: linear-gradient(110deg, #281937, #332046 66%, #4b2b62); margin-block: 1.5rem; }
.hero-content { padding: clamp(1.3rem, 5vw, 3rem); max-width: 73%; }
.station { color: var(--acid); font-size: .88rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .65rem; }
h1 { font-size: clamp(2.4rem, 6.8vw, 5rem); line-height: .96; letter-spacing: -.075em; font-weight: 850; text-wrap: balance; }
h2 { font-size: clamp(1.13rem, 2.8vw, 1.4rem); line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; }
.subtitle { margin-top: 1rem; color: #decbe7; }
.record { position: absolute; z-index: -1; right: -3.2rem; top: 50%; transform: translateY(-50%) rotate(-18deg); width: clamp(13rem, 39vw, 24rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1px solid #835b97; background: radial-gradient(circle, transparent 30%, #140f1d8c 34% 64%, transparent 68%), repeating-radial-gradient(circle, #21152b 0 4px, #624675 5px, #2d2035 6px 9px); box-shadow: -1rem 1rem 3rem #14101e8c; }
.record-label { display: grid; place-content: center; grid-auto-flow: column; width: 36%; aspect-ratio: 1; border-radius: 50%; border: .3rem solid #f798d2; background: var(--pink); color: #352044; font-size: clamp(2rem, 5vw, 4rem); font-weight: 850; letter-spacing: -.11em; }
.record-label span { color: #773866; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.45rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }
.status { flex-shrink: 0; white-space: nowrap; border-radius: 100vw; padding: .24rem .65rem; font-size: .88rem; font-weight: 700; background: #362742; color: var(--pink); }
.status[data-mode="open"] { background: #373d23; color: var(--acid); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.session-panel > .muted, .login-panel h2 { margin-block: .5rem 1rem; }
label { display: block; font-size: .92rem; font-weight: 650; margin-bottom: .35rem; }
.stack { display: grid; align-content: start; gap: .5rem; }
.stack label { margin-bottom: 0; }
.input-row { display: flex; gap: .55rem; }
input, select { min-width: 0; width: 100%; padding: .67rem .8rem; border: 1px solid #644f71; border-radius: .6rem; color: var(--paper); background: var(--bg); }
input::placeholder { color: #ad9bb8; }
button { min-height: 2.75rem; border: 1px solid #654d74; border-radius: .6rem; background: #2b2034; color: var(--paper); padding: .45rem .8rem; font-weight: 650; }
button:hover { border-color: var(--pink); background: #42304d; }
button:disabled { opacity: .58; cursor: default; }
.primary { border-color: var(--acid); background: var(--acid); color: #22280e; flex-shrink: 0; }
.primary:hover { background: #f3ffb3; border-color: #f3ffb3; }
.quiet { color: var(--muted); background: transparent; }
.search-caption { color: var(--muted); font-size: .9rem; margin-block: 1rem .5rem; }
.queue { margin-block: 1.5rem; }
.queue .section-heading { margin-bottom: .75rem; }
.tracks { padding: 0; margin: 0; list-style: none; display: grid; gap: .45rem; }
.track { display: flex; align-items: center; gap: .65rem; border: 1px solid var(--line); border-radius: .75rem; padding: .65rem; background: #191221; }
.track-picture { flex: 0 0 2.65rem; width: 2.65rem; height: 2.65rem; border-radius: .35rem; object-fit: cover; background: #352345; display: grid; place-items: center; color: var(--pink); font-size: 1.25rem; }
.track-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.track-title { font-weight: 750; text-decoration: none; }
.track-title:hover { text-decoration: underline; }
.track-detail { color: var(--muted); font-size: .88rem; }
.actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.actions button { padding: .35rem .58rem; font-size: .9rem; }
.actions button[aria-pressed="true"], .modes button[aria-pressed="true"] { border-color: var(--acid); color: var(--acid); }
.empty { padding: 1.3rem; text-align: center; color: var(--muted); border: 1px dashed #634b70; border-radius: .8rem; }
.notice { position: fixed; z-index: 2; bottom: 1rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); border: 1px solid #7e6590; background: #30213d; padding: .8rem 1rem; border-radius: .75rem; box-shadow: 0 .4rem 1.8rem #08060baa; }
.notice[data-error="true"] { border-color: #f3a5bb; }
footer { margin-block: 1.35rem 2rem; }
.login-panel { max-width: 28rem; }
.booth-bar { display: flex; align-items: end; gap: .75rem; justify-content: space-between; }
.booth-bar form { flex: 1; max-width: 31rem; min-width: 0; }
.booth-grid { display: grid; grid-template-columns: 1fr auto; gap: .7rem; margin-top: .7rem; }
.modes { display: flex; gap: .4rem; flex-wrap: wrap; }
.modes button { font-size: .88rem; }
.qr-panel { display: flex; align-items: center; gap: .8rem; }
.qr-panel img { width: 6.5rem; height: 6.5rem; border-radius: .4rem; }
.text-link { color: var(--pink); font-size: .92rem; }

@media (max-width: 37rem) {
  .hero { min-height: 14rem; }
  .hero-content { max-width: 90%; }
  .record { right: -6rem; opacity: .45; }
  .booth-grid { grid-template-columns: 1fr; }
  .booth-bar { align-items: start; flex-direction: column; }
  .booth-bar form { align-self: stretch; }
  body[data-booth="true"] .track { flex-wrap: wrap; }
  body[data-booth="true"] .track .actions { flex-basis: 100%; }
}
