:root {
  color-scheme:dark;
  --bg:#10151b;
  --surface:#18222d;
  --raised:#1d2a36;
  --text:#dfedf4;
  --muted:#94a6b5;
  --line:#30404e;
  --accent:#67cce5;
  --accent-hover:#8bdeee;
  --amber:#eab768;
  --error:#eab768;
  font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;
  font-size:16px;
  line-height:1.5;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
}
button,input,summary {
  font:inherit;
}
button,a,input,summary {
  touch-action:manipulation;
}
button {
  cursor:pointer;
  border:1px solid transparent;
  border-radius:7px;
  background:var(--accent);
  color:#101a22;
  padding:12px 22px;
  font-weight:650;
  white-space:nowrap;
  transition:background .15s;
}
button:hover {
  background:var(--accent-hover);
}
button:disabled {
  cursor:default;
  opacity:.45;
}
a {
  color:var(--accent);
}
input {
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  background:#111b24;
  border-radius:7px;
  color:var(--text);
  padding:12px 14px;
}
input::placeholder {
  color:#7c909f;
}
input:disabled {
  opacity:.65;
}
input[readonly] {
  color:var(--muted);
}
input[type=checkbox] {
  width:18px;
  height:18px;
  accent-color:var(--accent);
  padding:0;
}
input[type=range] {
  padding:0;
  accent-color:var(--accent);
  border:0;
}
label {
  display:block;
  font-weight:550;
  font-size:.9rem;
  margin-bottom:7px;
}
label input:not([type=checkbox]) {
  margin-top:8px;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:clamp(2.3rem,4vw,3.5rem);
  font-weight:750;
  line-height:1.08;
  letter-spacing:-.04em;
}
h2 {
  font-size:1.3rem;
  font-weight:650;
  letter-spacing:-.02em;
}
h3 {
  font-size:1rem;
  font-weight:650;
}
.muted,.small-note {
  color:var(--muted);
}
.small-note {
  font-size:.82rem;
  line-height:1.55;
  margin-top:12px;
}
.guess-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}
#streak-note {
  margin-bottom:16px;
}
.quiet {
  background:transparent;
  color:var(--text);
  padding:8px 12px;
  border-color:transparent;
  font-size:.9rem;
}
.quiet:hover {
  background:var(--raised);
}
.secondary {
  background:var(--raised);
  color:var(--text);
  border-color:var(--line);
}
.secondary:hover {
  background:#293c4b;
}
.text-link {
  display:inline-block;
  margin-top:24px;
}
.site-shell {
  width:100%;
  padding:0 24px;
}
.site-header {
  height:100px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
}
.brand {
  color:var(--text);
  text-decoration:none;
  font-weight:750;
  font-size:1.45rem;
  letter-spacing:-.04em;
  display:flex;
  align-items:center;
}
.brand-dot {
  color:var(--accent);
}
.brand-record {
  display:inline-block;
  width:26px;
  height:26px;
  border:2px solid var(--accent);
  border-radius:50%;
  margin-right:12px;
  position:relative;
}
.brand-record:after {
  content:"";
  position:absolute;
  inset:7px;
  background:var(--accent);
  border-radius:50%;
}
.header-actions {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.85rem;
}
.header-actions>span {
  color:var(--muted);
}
main {
  min-height:calc(100vh - 185px);
}
.home-screen {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:60px;
  padding:70px 0 44px;
  align-items:center;
}
.intro-note {
  color:var(--muted);
  font-size:.92rem;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  gap:8px;
}
.signal-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
}
.home-copy h1 {
  font-size:clamp(4rem,7.7vw,6.5rem);
  line-height:.98;
  letter-spacing:-.06em;
}
.hero-description {
  max-width:400px;
  color:var(--muted);
  font-size:1.1rem;
  line-height:1.65;
  margin:28px 0 34px;
}
.entry-form {
  max-width:490px;
}
.input-action {
  display:flex;
  gap:8px;
}
.input-action input {
  margin-top:0!important;
}
.join-details {
  margin-top:22px;
  font-size:.9rem;
  color:var(--muted);
}
summary {
  cursor:pointer;
}
.join-details form {
  margin-top:15px;
}
.join-details label {
  color:var(--text);
}
.home-player {
  padding-left:12px;
}
.turntable {
  height:360px;
  background:#1d2a36;
  border:1px solid #3e5363;
  border-radius:16px;
  position:relative;
  box-shadow:0 25px 60px #05090d66;
  transform:rotate(-6deg);
  overflow:hidden;
}
.vinyl {
  position:absolute;
  top:27px;
  left:22px;
  width:300px;
  height:300px;
  border-radius:50%;
  background:repeating-radial-gradient(circle at center,#151c24 0px,#151c24 3px,#27333e 4px,#151c24 5px);
  box-shadow:0 7px 20px #03060899;
  display:grid;
  place-items:center;
}
.record-label {
  height:116px;
  width:116px;
  background:var(--accent);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  color:#15232e;
}
.record-label span {
  font-size:21px;
  line-height:.95;
  font-weight:800;
  letter-spacing:-.04em;
  transform:rotate(6deg);
  margin-top:-4px;
}
.record-label i {
  height:9px;
  width:9px;
  background:var(--bg);
  border-radius:50%;
  position:absolute;
  bottom:16px;
}
.tonearm {
  width:8px;
  height:230px;
  background:#8fa5b5;
  position:absolute;
  right:39px;
  top:27px;
  transform-origin:top center;
  transform:rotate(25deg);
  border-radius:8px;
}
.tonearm:before {
  content:"";
  position:absolute;
  top:-8px;
  left:-11px;
  width:30px;
  height:30px;
  border:8px solid #50677a;
  border-radius:50%;
  background:#94a8b8;
}
.tonearm:after {
  content:"";
  position:absolute;
  bottom:-6px;
  left:-8px;
  width:24px;
  height:44px;
  border-radius:4px;
  background:var(--amber);
}
.turntable-light {
  position:absolute;
  bottom:24px;
  right:29px;
  background:var(--amber);
  width:8px;
  height:8px;
  border-radius:50%;
  box-shadow:0 0 14px #eab76855;
}
.player-caption {
  display:flex;
  flex-direction:column;
  color:var(--muted);
  font-size:.85rem;
  margin-top:32px;
  align-items:flex-end;
}
.player-caption span+span {
  color:var(--text);
}
.how-to {
  grid-column:1/-1;
  display:flex;
  justify-content:space-between;
  gap:28px;
  border-top:1px solid var(--line);
  padding-top:32px;
  margin-top:24px;
}
.how-to>div {
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.step {
  border:1px solid var(--line);
  color:var(--accent);
  border-radius:50%;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  font-size:.85rem;
  flex-shrink:0;
}
.how-to p {
  font-size:.95rem;
}
.how-to small {
  display:block;
  color:var(--muted);
  margin-top:4px;
}
.site-footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:24px 0;
  border-top:1px solid var(--line);
  font-size:.8rem;
  color:var(--muted);
}
.join-screen {
  max-width:570px;
  margin:80px auto 100px;
}
.join-screen>p:not(.intro-note) {
  margin-top:20px;
  color:var(--muted);
}
.join-screen form {
  margin-top:28px;
}
.join-screen form>button {
  margin-top:18px;
}
.room-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:42px 0 30px;
  gap:20px;
}
.room-heading .intro-note {
  margin-bottom:12px;
}
.room-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:32px;
  padding-bottom:56px;
}
.room-main {
  min-width:0;
  display:flex;
  flex-direction:column;
}
.invite-panel {
  margin-bottom:28px;
}
.invite-panel .input-action {
  margin-top:8px;
}
.panel {
  background:var(--surface);
  padding:26px;
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:18px;
}
.panel>h2 {
  margin-bottom:24px;
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:22px;
}
.playlist-preview {
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}
.playlist-preview img {
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:6px;
  background:var(--raised);
}
.playlist-preview>div {
  flex:1;
  min-width:0;
}
.playlist-preview h3 {
  font-size:1.1rem;
  overflow-wrap:anywhere;
}
.playlist-preview p {
  font-size:.85rem;
  color:var(--muted);
  margin-top:4px;
}
.playlist-panel form {
  margin-top:18px;
}
.settings-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.number-input {
  display:flex;
  align-items:center;
  gap:8px;
  background:#111b24;
  border:1px solid var(--line);
  border-radius:7px;
  margin-top:9px;
  padding-right:12px;
}
.number-input input {
  background:none;
  border:0;
  padding:10px 4px 10px 12px;
  width:62px;
  margin:0!important;
  font-weight:650;
  font-size:1.2rem;
}
.number-input>span {
  font-weight:400;
  color:var(--muted);
  font-size:.8rem;
}
.answer-options {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  margin-top:22px;
  font-size:.9rem;
}
.check-label {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  font-weight:400;
}
.check-label .muted {
  font-size:.75rem;
}
fieldset {
  padding:0;
  margin:0;
  border:0;
  min-width:0;
}
#save-settings-button {
  margin-top:16px;
  color:var(--accent);
  padding-left:0;
}
.start-panel {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
  margin-top:28px;
}
.fairness-note {
  font-size:.85rem;
  text-align:right;
  color:var(--accent);
}
.fairness-note span {
  color:var(--muted);
  font-size:.78rem;
}
.players-panel {
  padding:24px 0;
  border-top:2px solid var(--accent);
}
.count-badge {
  font-size:.8rem;
  color:var(--muted);
}
.players-list {
  list-style:none;
  padding:0;
  margin:0;
}
.players-list li {
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.avatar {
  background:var(--raised);
  color:var(--accent);
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  font-weight:650;
  border-radius:50%;
  flex-shrink:0;
}
.player-name {
  font-weight:550;
  font-size:.92rem;
  overflow-wrap:anywhere;
}
.player-meta {
  display:block;
  color:var(--muted);
  font-size:.74rem;
}
.player-score {
  margin-left:auto;
  font-weight:650;
  color:var(--amber);
  white-space:nowrap;
}
.offline .avatar {
  color:var(--muted);
}
.sound-panel {
  background:var(--surface);
  border-radius:10px;
  padding:20px;
  margin-top:18px;
}
.sound-panel button {
  width:100%;
  padding:10px;
  font-size:.9rem;
}
.sound-panel label {
  margin-top:18px;
  margin-bottom:0;
}
.sound-panel input {
  display:block;
  margin-top:12px;
}
.score-note {
  color:var(--muted);
  padding:24px 8px;
  font-size:.85rem;
  line-height:1.65;
}
.score-note h3 {
  color:var(--text);
  margin-bottom:8px;
}
.game-panel {
  order:-1;
  margin-bottom:18px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:32px;
}
.round-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
  font-size:.95rem;
}
#timer {
  color:var(--amber);
  font-weight:650;
  font-size:1.25rem;
  font-variant-numeric:tabular-nums;
}
.playback {
  display:flex;
  align-items:center;
  gap:26px;
  margin:32px 0;
}
.playback h2 {
  font-size:1.9rem;
}
.playback p {
  margin-top:8px;
  font-size:.9rem;
}
.mini-vinyl {
  width:120px;
  height:120px;
  flex-shrink:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:repeating-radial-gradient(circle,#101820 0px,#101820 4px,#2d3d4b 5px,#101820 6px);
}
.mini-vinyl span {
  width:52px;
  height:52px;
  border-radius:50%;
  background:var(--accent);
  color:var(--bg);
  display:grid;
  place-items:center;
  font-size:1.4rem;
  font-weight:800;
}
.spinning {
  animation:spin 5s linear infinite;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}
.waveform {
  display:flex;
  align-items:center;
  height:30px;
  gap:4px;
  margin-top:12px;
}
.waveform i {
  width:4px;
  height:8px;
  background:var(--accent);
  border-radius:3px;
}
.waveform i:nth-child(3n) {
  height:22px;
}
.waveform i:nth-child(3n+1) {
  height:14px;
}
progress {
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:5px;
  border:0;
  border-radius:4px;
  margin-bottom:26px;
  background:var(--line);
}
progress::-webkit-progress-bar {
  background:var(--line);
  border-radius:4px;
}
progress::-webkit-progress-value {
  background:var(--accent);
  border-radius:4px;
}
progress::-moz-progress-bar {
  background:var(--accent);
  border-radius:4px;
}
#guess-form>input {
  margin-bottom:18px;
}
.guess-extra {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.field-feedback {
  color:var(--accent);
  font-size:.8rem;
  float:right;
}
.correct-input {
  border-color:var(--accent);
  background:#132b34;
}
.reveal {
  display:flex;
  gap:24px;
  align-items:center;
  padding-top:10px;
}
.reveal img {
  height:130px;
  width:130px;
  object-fit:cover;
  border-radius:8px;
  background:var(--raised);
}
.reveal h2 {
  font-size:1.7rem;
  margin:6px 0;
}
.reveal p {
  margin-top:4px;
  overflow-wrap:anywhere;
}
#finished {
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid var(--line);
}
#finished>h2 {
  color:var(--amber);
}
#finished>p {
  margin-top:8px;
}
#finished>button {
  margin-top:22px;
}
.played-details {
  margin-top:26px;
  color:var(--muted);
}
.played-details li {
  margin-top:10px;
  font-size:.9rem;
}
.connection {
  padding:12px;
  background:#403420;
  color:var(--amber);
  text-align:center;
  font-size:.9rem;
  margin-top:16px;
  border-radius:6px;
}
.toast {
  position:fixed;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100vw - 32px);
  padding:14px 22px;
  background:#dfedf4;
  color:#15232e;
  border-radius:10px;
  font-size:.9rem;
  z-index:10;
  box-shadow:0 10px 40px #0008;
}
.toast.error {
  background:#634817;
  color:#fff3d3;
}
dialog {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  color:var(--text);
  padding:32px;
  max-width:550px;
  width:calc(100vw - 32px);
  max-height:85vh;
  box-shadow:0 25px 70px #0009;
}
dialog::backdrop {
  background:#070b10cc;
}
dialog h2 {
  font-size:1.6rem;
  margin-bottom:12px;
}
dialog>.muted {
  font-size:.95rem;
  margin-bottom:24px;
}
.dialog-close {
  display:flex;
  justify-content:flex-end;
  margin:-18px -18px 0 0;
}
.dialog-close button {
  font-size:1.5rem;
  padding:3px 12px;
}
#account-form>input {
  margin:0 0 20px;
}
#account-form>button {
  margin-top:18px;
}
#auth-switch {
  display:block;
  padding-left:0;
  font-size:.9rem;
}
.form-error {
  color:var(--error);
  font-size:.9rem;
  margin-top:18px;
}
.saved-playlists {
  margin-top:24px;
}
.saved-item {
  display:flex;
  gap:12px;
  align-items:center;
  padding:16px 0;
  border-top:1px solid var(--line);
}
.saved-item img {
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:4px;
}
.saved-item .saved-info {
  flex:1;
  min-width:0;
}
.saved-item h3 {
  overflow-wrap:anywhere;
}
.saved-item p {
  color:var(--muted);
  font-size:.8rem;
}
.saved-item button {
  padding:8px 12px;
  font-size:.8rem;
}
.noscript {
  position:fixed;
  bottom:0;
  background:var(--error);
  color:var(--bg);
  padding:16px;
  width:100%;
  text-align:center;
}
[hidden] {
  display:none!important;
}
:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
button:disabled:focus-visible {
  outline:0;
}
@media(max-width:1050px) {
  .home-screen {
    gap:35px;
  }
  .turntable {
    height:310px;
  }
  .vinyl {
    width:260px;
    height:260px;
    top:24px;
    left:16px;
  }
  .tonearm {
    right:25px;
    height:210px;
  }
  .room-layout {
    grid-template-columns:minmax(0,1fr) 240px;
    gap:24px;
  }
  .settings-grid {
    gap:8px;
  }
  .number-input {
    padding-right:8px;
  }
  .panel {
    padding:22px;
  }
  .input-action>button {
    padding:12px 15px;
  }
}
@media(max-width:800px) {
  .home-screen {
    grid-template-columns:1fr;
    gap:36px;
    padding-top:48px;
  }
  .home-copy h1 {
    font-size:5.2rem;
  }
  .home-player {
    max-width:420px;
    margin:0 auto;
    width:100%;
    padding:0;
  }
  .turntable {
    height:335px;
    transform:rotate(-4deg);
  }
  .vinyl {
    width:280px;
    height:280px;
    top:25px;
    left:25px;
  }
  .tonearm {
    right:36px;
  }
  .player-caption {
    align-items:center;
    margin-top:20px;
  }
  .how-to {
    margin-top:4px;
    gap:18px;
  }
  .how-to>div {
    gap:8px;
  }
  .room-layout {
    grid-template-columns:1fr;
  }
  .room-sidebar {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    align-items:start;
  }
  .players-panel {
    grid-row:span 2;
  }
  .sound-panel {
    margin-top:0;
  }
  .score-note {
    padding:0 8px;
  }
  .site-header {
    height:80px;
  }
  .room-heading h1 {
    font-size:2.6rem;
  }
  .game-panel {
    padding:26px;
  }
}
@media(max-width:520px) {
  .site-shell {
    padding:0 20px;
  }
  .brand {
    font-size:1.2rem;
  }
  .brand-record {
    width:22px;
    height:22px;
    margin-right:8px;
  }
  .brand-record:after {
    inset:5px;
  }
  .header-actions {
    gap:0;
  }
  .header-actions>span {
    display:none;
  }
  .header-actions .quiet {
    font-size:.78rem;
    padding:8px;
  }
  .home-screen {
    padding-top:36px;
  }
  .intro-note {
    font-size:.8rem;
  }
  .home-copy h1 {
    font-size:4.5rem;
  }
  .hero-description {
    font-size:1rem;
    margin:24px 0;
  }
  .input-action {
    flex-wrap:wrap;
  }
  .input-action>input {
    flex-basis:100%;
  }
  .input-action>button {
    width:100%;
  }
  .home-copy .input-action {
    gap:12px;
  }
  .turntable {
    height:290px;
  }
  .vinyl {
    width:240px;
    height:240px;
    left:14px;
  }
  .record-label {
    height:100px;
    width:100px;
  }
  .record-label span {
    font-size:19px;
  }
  .tonearm {
    right:20px;
    height:195px;
  }
  .how-to {
    flex-direction:column;
    margin-top:0;
    gap:20px;
  }
  .how-to>div {
    gap:14px;
  }
  .how-to p {
    font-size:.9rem;
  }
  .site-footer {
    flex-direction:column;
    gap:5px;
    font-size:.75rem;
  }
  .room-heading {
    align-items:flex-start;
    margin:32px 0 24px;
  }
  .room-heading h1 {
    font-size:2rem;
  }
  .room-heading>button {
    padding:6px;
    font-size:.78rem;
  }
  .panel {
    padding:20px 16px;
  }
  .settings-grid {
    grid-template-columns:1fr;
  }
  .number-input {
    max-width:180px;
  }
  .settings-grid>label {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .number-input {
    margin-top:0;
    min-width:145px;
  }
  .answer-options {
    gap:12px;
  }
  .answer-options>span {
    flex-basis:100%;
  }
  .playlist-preview {
    flex-wrap:wrap;
  }
  .playlist-preview h3 {
    font-size:1rem;
  }
  .start-panel {
    flex-direction:column;
  }
  .fairness-note {
    text-align:left;
  }
  .room-sidebar {
    grid-template-columns:1fr;
    gap:16px;
  }
  .players-panel {
    grid-row:auto;
  }
  .score-note {
    padding:0 0 16px;
  }
  .game-panel {
    padding:22px 16px;
  }
  .playback {
    gap:16px;
    margin:24px 0;
  }
  .mini-vinyl {
    width:84px;
    height:84px;
  }
  .mini-vinyl span {
    width:38px;
    height:38px;
  }
  .playback h2 {
    font-size:1.4rem;
  }
  .guess-extra {
    grid-template-columns:1fr;
  }
  .reveal {
    gap:16px;
  }
  .reveal img {
    width:80px;
    height:80px;
  }
  .reveal h2 {
    font-size:1.3rem;
  }
  .saved-item {
    flex-wrap:wrap;
  }
  .saved-item .saved-info {
    min-width:65%;
  }
  dialog {
    padding:26px 20px;
  }
  .join-screen {
    margin:48px auto;
  }
  .join-screen h1 {
    font-size:2.4rem;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    transition:none!important;
  }
}
