:root {
  color-scheme: light;
  --ink: #211d1b;
  --muted: #755e53;
  --burgundy: #671c2c;
  --cream: #f1e6d4;
  --paper: #d8c1aa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 245, 226, 0.9), transparent 34rem),
    linear-gradient(145deg, #d8c4ad 0%, #b79883 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(90deg, rgba(74, 42, 34, 0.08) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.stage-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
}

.chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 6px 14px;
  color: #563f36;
  font-size: clamp(9px, 0.8vw, 12px);
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(86, 57, 47, 0.28);
  border-radius: clamp(24px, 3vw, 44px);
  background: #e5d2bc;
  box-shadow:
    0 35px 80px rgba(70, 41, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

#turntableScene {
  display: block;
  width: 100%;
  height: auto;
  min-height: 520px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.record-hit {
  cursor: pointer;
  outline: none;
}

.record-hit:focus-visible {
  filter: drop-shadow(0 0 10px rgba(255, 236, 200, 0.92));
}

.hint {
  position: absolute;
  right: clamp(16px, 2.4vw, 34px);
  bottom: clamp(16px, 2.4vw, 30px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(91, 38, 48, 0.16);
  border-radius: 999px;
  background: rgba(250, 240, 222, 0.78);
  color: #59453d;
  box-shadow: 0 8px 20px rgba(83, 51, 41, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a2b3c;
  box-shadow: 0 0 0 5px rgba(138, 43, 60, 0.10);
}

.state-dot.is-paused {
  background: #8b7466;
  box-shadow: 0 0 0 5px rgba(99, 79, 69, 0.10);
}

.caption {
  margin: 14px 6px 0;
  color: #614a40;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.55;
  letter-spacing: 0.015em;
}

@media (max-width: 760px) {
  .stage-shell {
    padding: 12px;
  }

  .chrome {
    margin: 2px 4px 10px;
  }

  .chrome span:last-child {
    display: none;
  }

  .player-card {
    border-radius: 24px;
  }

  #turntableScene {
    width: 128%;
    max-width: none;
    transform: translateX(-12%);
    min-height: 0;
  }

  .hint {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hint,
  .player-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
