:root {
  --orange: #FF8A3D;
  --orange-light: #FFC46B;
  --orange-deep: #C84A06;
  --cream: #FFF6E9;
  --muted: #BFAFDD;
  --cyan: #4CE3F7;
  --pink: #FF5CA8;
  --purple: #8B6BFF;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #08041A;
}

body {
  position: fixed;
  inset: 0;
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; }

.app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: #08041A;
}

.safe-probe {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px 3px);
  z-index: 2;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(120% 72% at 50% 22%, transparent 42%, rgba(3, 1, 10, 0.36) 100%),
    radial-gradient(90% 50% at 50% 108%, rgba(3, 1, 10, 0.55), transparent 70%);
}

/* ---------------- HUD ---------------- */
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mode-home .hud {
  opacity: 0;
  transform: translateY(-10px);
}

.hud-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.score-card {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 11px 7px;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(46, 24, 78, 0.88), rgba(17, 8, 36, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.score-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #FFC58E;
}

.score-label .mp-icon {
  width: 12px;
  height: 12px;
  color: var(--orange);
}

.score-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.score-line b {
  display: inline-block;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.015em;
  font-variant-numeric: tabular-nums;
  color: #FFF8EC;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.34);
}

.score-line b.bump {
  animation: scoreBump 0.18s ease-out;
}

.combo-chip {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  color: #FFC58E;
  background: rgba(255, 138, 61, 0.13);
  border: 1px solid rgba(255, 138, 61, 0.3);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.combo-chip.hot {
  color: #2A0D02;
  background: linear-gradient(135deg, #FFD25E, #FF8A3D);
  border-color: rgba(255, 214, 160, 0.9);
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.7);
  transform: scale(1.06);
}

.level-pill {
  flex: 0 0 76px;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(46, 24, 78, 0.88), rgba(17, 8, 36, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.level-label {
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #CDBBEC;
}

.level-label b {
  font-size: 14px;
  color: #FFF6E9;
  letter-spacing: 0;
}

.beat-dots {
  display: flex;
  gap: 4px;
  height: 6px;
  align-items: center;
}

.beat-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
}

.beat-dots i.on {
  background: var(--orange);
  box-shadow: 0 0 9px rgba(255, 138, 61, 0.95);
  transform: scale(1.55);
}

.bpm-label {
  font-size: 7.5px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
}

.hud-buttons {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  pointer-events: auto;
}

.round-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFF2E0;
  background: linear-gradient(145deg, rgba(46, 24, 78, 0.9), rgba(17, 8, 36, 0.86));
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.round-btn:active {
  transform: scale(0.9);
  background: rgba(255, 138, 61, 0.3);
}

.round-btn .mp-icon {
  width: 19px;
  height: 19px;
}

.round-btn .icon-off { display: none; }

.is-muted .round-btn .icon-on { display: none; }
.is-muted .round-btn .icon-off { display: inline-block; }

.hud-row.sub-row {
  margin-top: 7px;
  align-items: center;
}

.fever-meter {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.fever-word {
  flex: 0 0 auto;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.46);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.fever-track {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fever-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #FFD25E, #FF8A3D 55%, #FF4D8D);
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.85);
  transition: width 0.16s ease-out;
}

.fever-meter.on .fever-word {
  color: #FFD9A8;
  text-shadow: 0 0 9px rgba(255, 138, 61, 0.9);
}

.lives {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.lives .mp-icon {
  width: 17px;
  height: 17px;
  color: #FF5C7A;
  filter: drop-shadow(0 0 4px rgba(255, 92, 122, 0.7));
  transition: color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.lives .mp-icon.lost {
  color: rgba(255, 255, 255, 0.15);
  filter: none;
  transform: scale(0.86);
}

.lives.flash {
  animation: livesFlash 0.45s ease;
}

/* ---------------- 局内提示 ---------------- */
.hint {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(20, 10, 40, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: #D9CBEF;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hint .mp-icon {
  width: 15px;
  height: 15px;
  color: #FFC46B;
}

.hint.hide {
  opacity: 0;
  transform: translate(-50%, 9px);
}

/* ---------------- 中奖文字 ---------------- */
.toast-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 31%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.toast {
  font-size: 26px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  color: #FFF4E2;
  text-shadow: 0 2px 0 #9C3507, 0 0 24px rgba(255, 138, 61, 0.92);
  animation: toastIn 0.88s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  white-space: nowrap;
}

.toast small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: rgba(255, 246, 233, 0.72);
  text-shadow: none;
}

.toast.big { font-size: 34px; }

.toast.cyan {
  color: #C8FAFF;
  text-shadow: 0 2px 0 #0C6D7E, 0 0 24px rgba(76, 227, 247, 0.92);
}

.toast.cyan small { color: rgba(200, 250, 255, 0.68); }

.toast.pink {
  color: #FFD9EA;
  text-shadow: 0 2px 0 #981C52, 0 0 24px rgba(255, 92, 168, 0.92);
}

.toast.pink small { color: rgba(255, 217, 234, 0.72); }

@keyframes toastIn {
  0% { opacity: 0; transform: translateY(16px) scale(0.66); }
  18% { opacity: 1; transform: translateY(0) scale(1.08); }
  34% { transform: scale(1); }
  76% { opacity: 1; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-26px) scale(0.96); }
}

/* ---------------- 开始页 ---------------- */
.start-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(92% 54% at 50% 38%, rgba(8, 4, 24, 0.34) 0%, rgba(8, 4, 24, 0) 62%),
    linear-gradient(180deg, rgba(8, 4, 24, 0.62) 0%, rgba(8, 4, 24, 0.08) 25%, rgba(8, 4, 24, 0.17) 54%, rgba(8, 4, 24, 0.82) 88%, rgba(8, 4, 24, 0.95) 100%);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.start-overlay.hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.start-top {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: 99px;
  background: rgba(20, 10, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.24em;
  color: #FFD4A6;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF5C7A;
  box-shadow: 0 0 9px rgba(255, 92, 122, 0.9);
  animation: livePulse 1.2s ease-in-out infinite;
}

.round-btn.glass {
  width: 38px;
  height: 38px;
  background: rgba(20, 10, 40, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 1.8vh, 17px);
  padding-bottom: 4px;
}

.hero-badge {
  position: relative;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  margin-bottom: -2px;
}

.vinyl {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: repeating-radial-gradient(circle at 50% 50%, #1B1238 0 3px, #27194A 3px 6px);
  border: 2px solid rgba(255, 196, 107, 0.55);
  box-shadow:
    0 0 0 7px rgba(255, 138, 61, 0.07),
    0 16px 32px rgba(0, 0, 0, 0.45),
    0 0 38px rgba(255, 138, 61, 0.32),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  animation: spin 15s linear infinite;
}

.vinyl::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFD08B, #FF8A3D 55%, #E96415 100%);
  box-shadow: inset 0 0 0 3px rgba(42, 13, 2, 0.2), 0 0 16px rgba(255, 138, 61, 0.6);
}

.vinyl::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 16px;
  width: 26px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-28deg);
  filter: blur(1px);
}

.vinyl-label {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #2A0D02;
}

.vinyl-label .mp-icon {
  width: 18px;
  height: 18px;
}

.orbit-note {
  position: absolute;
  display: grid;
  place-items: center;
  color: #FFC46B;
  filter: drop-shadow(0 0 8px rgba(255, 138, 61, 0.85));
  animation: floaty 3.2s ease-in-out infinite;
}

.orbit-note .mp-icon {
  width: 18px;
  height: 18px;
}

.note-a { left: -11px; top: 12px; }
.note-b { right: -10px; bottom: 10px; color: #7BEAFF; filter: drop-shadow(0 0 8px rgba(76, 227, 247, 0.85)); animation-delay: -1.4s; }

.orbit-dot {
  position: absolute;
  border-radius: 50%;
}

.dot-a {
  width: 6px;
  height: 6px;
  right: 2px;
  top: 3px;
  background: #FF5C7A;
  box-shadow: 0 0 10px rgba(255, 92, 122, 0.95);
}

.dot-b {
  width: 4px;
  height: 4px;
  left: 8px;
  bottom: 3px;
  background: #7BEAFF;
  box-shadow: 0 0 8px rgba(76, 227, 247, 0.95);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -22px -30px -18px;
  z-index: -1;
  background: radial-gradient(58% 76% at 50% 50%, rgba(8, 4, 24, 0.52), rgba(8, 4, 24, 0) 74%);
  pointer-events: none;
}

.hero-kicker {
  margin: 0 0 3px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #FFC58E;
  text-shadow: 0 0 12px rgba(255, 138, 61, 0.55);
}

.hero-title {
  margin: 0;
  line-height: 0.92;
}

.title-small {
  display: block;
  margin-bottom: 1px;
  padding-left: 0.42em;
  font-size: clamp(15px, 4.2vw, 19px);
  font-weight: 800;
  letter-spacing: 0.42em;
  color: #FFD9A8;
  text-shadow: 0 2px 10px rgba(255, 138, 61, 0.36);
}

.title-big {
  display: block;
  font-size: clamp(50px, 15.4vw, 67px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.98;
  background: linear-gradient(180deg, #FFFDF5 2%, #FFEBCB 42%, #FFA95E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 3px 0 #8F3306)
    drop-shadow(0 7px 14px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 24px rgba(255, 138, 61, 0.5));
}

.hero-desc {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: #CDBCE8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.start-stats {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 7px 20px;
  border-radius: 16px;
  background: rgba(27, 14, 53, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 64px;
}

.stat span {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: #B8A7D6;
}

.stat b {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  color: #FFF4E1;
  font-variant-numeric: tabular-nums;
}

.stat-line {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.play-btn {
  position: relative;
  width: min(300px, 84vw);
  height: 64px;
  padding: 0 22px 0 12px;
  border: 2px solid rgba(255, 231, 200, 0.66);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #2A0D02;
  background: linear-gradient(135deg, #FFC46B 0%, #FF9A47 40%, #FF7A2B 100%);
  box-shadow:
    0 8px 0 #A63F07,
    0 16px 38px rgba(255, 122, 43, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.play-btn::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  border: 2px solid rgba(255, 138, 61, 0.36);
  animation: ringPulse 1.9s ease-out infinite;
  pointer-events: none;
}

.play-btn:active {
  transform: translateY(6px);
  box-shadow:
    0 2px 0 #A63F07,
    0 6px 16px rgba(255, 122, 43, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.55);
}

.play-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(58, 17, 2, 0.14);
  border: 1px solid rgba(58, 17, 2, 0.13);
}

.play-icon .mp-icon {
  width: 24px;
  height: 24px;
  color: #2A0D02;
  margin-left: 2px;
}

.play-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.play-copy small {
  margin-top: 5px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  opacity: 0.62;
}

.play-shine {
  position: absolute;
  top: 0;
  left: -65%;
  width: 38%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: skewX(-18deg);
  animation: shine 2.9s ease-in-out infinite;
  pointer-events: none;
}

.gesture-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(230, 218, 250, 0.7);
}

.gesture-row > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gesture-row .mp-icon {
  width: 14px;
  height: 14px;
  color: #FFC46B;
}

.gesture-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.start-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.eq {
  width: 100%;
  max-width: 290px;
  height: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.eq i {
  width: 3px;
  height: 32px;
  min-height: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #FFC46B, #FF8A3D);
  box-shadow: 0 0 7px rgba(255, 138, 61, 0.42);
  opacity: 0.82;
  transform-origin: bottom;
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.eq i:nth-child(3n) { background: linear-gradient(180deg, #7BEAFF, #3F8CFF); box-shadow: 0 0 7px rgba(76, 227, 247, 0.36); }
.eq i:nth-child(4n) { background: linear-gradient(180deg, #FFB1D9, #FF5CA8); box-shadow: 0 0 7px rgba(255, 92, 168, 0.34); }

.start-footer p {
  margin: 0;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.27em;
  color: rgba(233, 219, 255, 0.4);
}

/* ---------------- 弹层 ---------------- */
.panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 2, 14, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel-overlay[hidden] { display: none !important; }

.sheet {
  position: relative;
  width: min(340px, 88vw);
  padding: 24px 22px 20px;
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, rgba(46, 24, 78, 0.98), rgba(15, 7, 32, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: sheetIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.sheet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -88px;
  width: 250px;
  height: 170px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.38), transparent);
  pointer-events: none;
}

.sheet-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 138, 61, 0.26), rgba(255, 77, 141, 0.16));
  border: 1px solid rgba(255, 138, 61, 0.4);
  box-shadow: 0 0 26px rgba(255, 138, 61, 0.22);
}

.sheet-icon .mp-icon {
  width: 28px;
  height: 28px;
  color: #FFC46B;
}

.sheet-icon.danger {
  background: linear-gradient(145deg, rgba(255, 92, 168, 0.26), rgba(123, 92, 255, 0.16));
  border-color: rgba(255, 92, 168, 0.42);
  box-shadow: 0 0 26px rgba(255, 92, 168, 0.22);
}

.sheet-icon.danger .mp-icon { color: #FF9BC4; }

.sheet-kicker {
  position: relative;
  margin: 0 0 4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #FFC58E;
}

.sheet-title {
  position: relative;
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  color: #FFF6E9;
}

.sheet-desc {
  position: relative;
  margin: 8px 0 16px;
  font-size: 12px;
  line-height: 1.65;
  color: #BBAAD9;
}

.sheet-btn {
  position: relative;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.sheet-btn .mp-icon {
  width: 20px;
  height: 20px;
}

.sheet-btn.primary {
  color: #2A0D02;
  background: linear-gradient(135deg, #FFB15C, #FF7A2B);
  box-shadow: 0 5px 0 #A63F07, 0 10px 22px rgba(255, 122, 43, 0.3);
}

.sheet-btn.primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #A63F07, 0 4px 12px rgba(255, 122, 43, 0.24);
}

.sheet-btn.ghost {
  margin-top: 10px;
  color: #E9DDFF;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sheet-btn.ghost:active { transform: scale(0.98); background: rgba(255, 255, 255, 0.12); }

.sheet-link {
  margin-top: 12px;
  padding: 8px;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(233, 221, 255, 0.6);
  cursor: pointer;
}

.sheet-link .mp-icon {
  width: 15px;
  height: 15px;
}

.final-score {
  position: relative;
  margin: 14px 0 12px;
  padding: 13px 14px 12px;
  border-radius: 18px;
  background: rgba(255, 138, 61, 0.08);
  border: 1px solid rgba(255, 138, 61, 0.22);
}

.final-score span {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: #C9B6E8;
}

.final-score b {
  display: block;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
  color: #FFF4E2;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(255, 138, 61, 0.55);
}

.final-score em {
  display: inline-block;
  margin-top: 3px;
  padding: 3px 7px;
  border-radius: 6px;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #2A0D02;
  background: linear-gradient(135deg, #FFD25E, #FF8A3D);
}

.final-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.final-stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.final-stats span {
  font-size: 8.5px;
  color: #BBAAD9;
}

.final-stats b {
  font-size: 18px;
  font-weight: 900;
  color: #FFF4E1;
}

.final-stats i {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------------- 动画 ---------------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-7px) rotate(7deg); }
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}

@keyframes ringPulse {
  0% { transform: scale(0.94); opacity: 0.65; }
  100% { transform: scale(1.12); opacity: 0; }
}

@keyframes shine {
  0%, 45% { left: -65%; }
  70%, 100% { left: 125%; }
}

@keyframes eqBounce {
  0% { transform: scaleY(0.22); }
  100% { transform: scaleY(1); }
}

@keyframes scoreBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); color: #FFC46B; }
  100% { transform: scale(1); }
}

@keyframes livesFlash {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px) scale(1.08); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
}

@keyframes sheetIn {
  0% { opacity: 0; transform: translateY(18px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- 小屏适配 ---------------- */
@media (max-height: 730px) {
  .hero { gap: 7px; }
  .hero-badge { width: 72px; height: 72px; margin-bottom: -6px; }
  .vinyl { width: 60px; height: 60px; }
  .vinyl::before { width: 27px; height: 27px; }
  .vinyl::after { top: 9px; left: 12px; width: 20px; height: 8px; }
  .vinyl-label .mp-icon { width: 15px; height: 15px; }
  .note-a { left: -6px; top: 5px; }
  .note-b { right: -5px; bottom: 4px; }
  .title-big { font-size: clamp(44px, 13.4vw, 54px); }
  .hero-desc { margin-top: 5px; font-size: 11px; line-height: 1.55; }
  .start-stats { padding: 5px 16px; }
  .stat b { font-size: 16px; }
  .play-btn { height: 58px; width: min(280px, 82vw); }
  .play-copy { font-size: 18px; }
  .start-footer .eq { height: 26px; }
  .eq i { height: 24px; }
  .start-footer { gap: 6px; }
}

@media (max-height: 625px) {
  .hero-badge { display: none; }
  .hero-desc { display: none; }
  .start-stats { display: none; }
  .title-small { font-size: 14px; }
  .title-big { font-size: 46px; }
  .start-footer .eq { height: 18px; }
  .eq i { height: 17px; }
}

@media (min-width: 520px) {
  .start-overlay { padding-left: max(28px, calc((100vw - 520px) / 2)); padding-right: max(28px, calc((100vw - 520px) / 2)); }
  .hud { padding-left: max(20px, calc((100vw - 560px) / 2)); padding-right: max(20px, calc((100vw - 560px) / 2)); }
}

@media (max-width: 360px) {
  .hud { padding-left: 12px; padding-right: 12px; }
  .hud-row { gap: 6px; }
  .score-card { padding: 7px 8px 6px; border-radius: 15px; }
  .score-label { font-size: 8px; }
  .score-line b { font-size: 21px; }
  .combo-chip { padding: 2px 5px; font-size: 9px; }
  .level-pill { flex-basis: 66px; width: 66px; border-radius: 15px; }
  .hud-buttons { gap: 5px; }
  .round-btn { width: 33px; height: 33px; }
  .round-btn .mp-icon { width: 17px; height: 17px; }
  .lives .mp-icon { width: 15px; height: 15px; }
  .start-overlay { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vinyl, .orbit-note, .live-dot, .play-btn::after, .play-shine, .eq i, .hint, .start-overlay { animation: none !important; }
}

/* =========================================================
   首页 2.0 · 霓虹音浪舞台
   ========================================================= */
.start-overlay {
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px calc(12px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  touch-action: pan-y;
  background:
    radial-gradient(78% 36% at 50% 4%, rgba(255, 138, 61, 0.16), rgba(255, 138, 61, 0) 72%),
    radial-gradient(62% 44% at 6% 26%, rgba(76, 227, 247, 0.1), rgba(76, 227, 247, 0) 72%),
    radial-gradient(58% 40% at 96% 38%, rgba(255, 77, 141, 0.1), rgba(255, 77, 141, 0) 74%),
    linear-gradient(180deg, rgba(8, 4, 24, 0.14) 0%, rgba(8, 4, 24, 0.02) 34%, rgba(8, 4, 24, 0.5) 74%, rgba(8, 4, 24, 0.92) 100%);
}

.stage-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stage-beams::before,
.stage-beams::after {
  content: "";
  position: absolute;
  top: -10%;
  width: 58%;
  height: 92%;
  transform-origin: 50% 0;
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  filter: blur(11px);
}

.stage-beams::before {
  left: -16%;
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.3), rgba(255, 77, 141, 0.11) 46%, rgba(255, 77, 141, 0) 84%);
  transform: rotate(17deg);
  animation: beamSway 7.4s ease-in-out infinite alternate;
}

.stage-beams::after {
  right: -16%;
  background: linear-gradient(180deg, rgba(76, 227, 247, 0.24), rgba(139, 107, 255, 0.12) 52%, rgba(139, 107, 255, 0) 86%);
  transform: rotate(-17deg);
  animation: beamSway 8.8s ease-in-out infinite alternate-reverse;
}

.start-top {
  z-index: 3;
}

.live-pill {
  height: 30px;
  padding: 0 12px;
  gap: 8px;
  font-size: 8px;
  color: #FFD4A6;
  background: rgba(15, 7, 32, 0.66);
  border: 1px solid rgba(255, 138, 61, 0.34);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.live-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}

.live-wave i {
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FFE0A8, #FF8A3D 58%, #FF5C7A);
  box-shadow: 0 0 6px rgba(255, 138, 61, 0.65);
  transform-origin: bottom;
  animation: liveWave 0.62s ease-in-out infinite alternate;
}

.live-wave i:nth-child(2) { animation-delay: -0.22s; animation-duration: 0.5s; }
.live-wave i:nth-child(3) { animation-delay: -0.4s; animation-duration: 0.74s; }
.live-wave i:nth-child(4) { animation-delay: -0.12s; animation-duration: 0.58s; }

.round-btn.glass {
  width: 40px;
  height: 40px;
  background: rgba(15, 7, 32, 0.62);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero {
  z-index: 2;
  gap: clamp(5px, 1.45vh, 13px);
  padding: 1px 0 2px;
}

.disc-stage {
  --disc-size: clamp(172px, 48vw, 208px);
  position: relative;
  width: var(--disc-size);
  height: var(--disc-size);
  margin-bottom: -8px;
  display: grid;
  place-items: center;
  transform: scale(calc(1 + var(--beat, 0) * 0.026));
  will-change: transform;
}

.disc-halo {
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 138, 61, 0.2) 0%, rgba(255, 77, 141, 0.09) 38%, rgba(139, 107, 255, 0.06) 57%, rgba(8, 4, 24, 0) 71%);
  box-shadow: 0 0 60px rgba(255, 138, 61, 0.16);
}

.disc-halo::before,
.disc-halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.disc-halo::before {
  inset: 1%;
  border: 1.5px solid transparent;
  border-top-color: rgba(255, 196, 107, 0.7);
  border-right-color: rgba(255, 77, 141, 0.34);
  animation: spin 7.2s linear infinite;
}

.disc-halo::after {
  inset: 8%;
  border: 1px solid transparent;
  border-bottom-color: rgba(76, 227, 247, 0.48);
  border-left-color: rgba(139, 107, 255, 0.28);
  animation: spin 10.4s linear infinite reverse;
}

.eq-ring {
  --ring-r: calc(var(--disc-size) * 0.44);
  position: absolute;
  inset: 0;
}

.eq-ring i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 14px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #FFE9BD, #FF8A3D 58%, rgba(255, 77, 141, 0));
  box-shadow: 0 0 8px rgba(255, 138, 61, 0.55);
  opacity: 0.5;
  animation: ringBar 1.28s ease-in-out infinite alternate;
}

.eq-ring i:nth-child(3n) {
  background: linear-gradient(180deg, #D6FBFF, #4CE3F7 58%, rgba(76, 227, 247, 0));
  box-shadow: 0 0 8px rgba(76, 227, 247, 0.55);
}

.eq-ring i:nth-child(4n) {
  background: linear-gradient(180deg, #FFD7E9, #FF5CA8 58%, rgba(255, 92, 168, 0));
  box-shadow: 0 0 8px rgba(255, 92, 168, 0.5);
}

.vinyl {
  width: 64%;
  height: 64%;
  border: 2px solid rgba(255, 196, 107, 0.5);
  background:
    repeating-radial-gradient(circle at 50% 50%, #0C061F 0 2px, #1C1138 2px 4px, #251748 4px 5.5px);
  box-shadow:
    0 0 0 7px rgba(255, 138, 61, 0.06),
    0 0 0 8px rgba(255, 255, 255, 0.05),
    0 18px 36px rgba(0, 0, 0, 0.48),
    0 0 46px rgba(255, 138, 61, 0.32),
    inset 0 0 26px rgba(0, 0, 0, 0.55);
  animation: spin 13s linear infinite;
}

.vinyl::before {
  width: 38%;
  height: 38%;
  background: radial-gradient(circle at 35% 30%, #FFE3AB, #FF9A47 48%, #EB6413 100%);
  box-shadow: inset 0 0 0 3px rgba(42, 13, 2, 0.24), 0 0 18px rgba(255, 138, 61, 0.68);
}

.vinyl::after {
  top: 12%;
  left: 18%;
  width: 38%;
  height: 15%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(1.5px);
}

.vinyl-sheen {
  position: absolute;
  inset: 5%;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(from -24deg, rgba(255, 255, 255, 0) 0 12%, rgba(255, 255, 255, 0.16) 19%, rgba(255, 255, 255, 0) 29% 58%, rgba(255, 255, 255, 0.09) 66%, rgba(255, 255, 255, 0) 76% 100%);
  animation: spin 8s linear infinite reverse;
  pointer-events: none;
}

.vinyl-label .mp-icon {
  width: 20px;
  height: 20px;
}

.orbit-note {
  z-index: 3;
}

.note-a { left: 0; top: 20%; }
.note-b { right: -1px; top: 52%; bottom: auto; }
.note-c { left: 8%; bottom: 2%; color: #FF9BC4; filter: drop-shadow(0 0 8px rgba(255, 92, 168, 0.8)); animation-delay: -2.1s; }
.note-c .mp-icon { width: 16px; height: 16px; }

.brick-chip {
  position: absolute;
  z-index: 4;
  width: 42px;
  height: 16px;
  padding: 0 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: linear-gradient(180deg, #FFD08B, #FF8A3D 46%, #E86212 100%);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 3px 0 #9E3805, 0 8px 16px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 138, 61, 0.42);
  transform: rotate(var(--rot, 0deg));
  animation: chipFloat 3.9s ease-in-out infinite;
}

.brick-chip i {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.68);
  animation: chipEq 0.8s ease-in-out infinite alternate;
}

.brick-chip i:nth-child(2) { animation-delay: -0.24s; animation-duration: 0.62s; }
.brick-chip i:nth-child(3) { animation-delay: -0.44s; animation-duration: 0.92s; }

.chip-a { left: -16px; top: 35%; --rot: -12deg; animation-delay: -0.4s; }
.chip-b {
  right: -20px;
  top: 25%;
  --rot: 9deg;
  background: linear-gradient(180deg, #C9FAFF, #4CE3F7 46%, #1893B0 100%);
  box-shadow: 0 3px 0 #0B6379, 0 8px 16px rgba(0, 0, 0, 0.33), 0 0 18px rgba(76, 227, 247, 0.42);
  animation-delay: -1.7s;
}
.chip-c {
  right: 2px;
  bottom: 2%;
  --rot: -7deg;
  background: linear-gradient(180deg, #FFD2E6, #FF5CA8 46%, #C01F6C 100%);
  box-shadow: 0 3px 0 #8C124C, 0 8px 16px rgba(0, 0, 0, 0.33), 0 0 18px rgba(255, 92, 168, 0.38);
  animation-delay: -2.6s;
}

.spark {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  background: #FFF3D6;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px rgba(255, 196, 107, 0.95));
  animation: sparkTwinkle 2.8s ease-in-out infinite;
}

.spark-a { left: 14%; top: 12%; }
.spark-b { right: 20%; top: 8%; width: 5px; height: 5px; color: #C8FAFF; background: #C8FAFF; animation-delay: -1.1s; }
.spark-c { right: 12%; bottom: 22%; width: 4px; height: 4px; background: #FF9BC4; animation-delay: -2s; }

.hero-copy {
  padding: 0 4px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 3px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.26em;
  color: #FFC58E;
  text-shadow: 0 0 12px rgba(255, 138, 61, 0.55);
}

.kicker-line {
  width: 21px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 196, 107, 0), rgba(255, 196, 107, 0.72));
}

.kicker-line:last-child {
  transform: scaleX(-1);
}

.hero-title {
  position: relative;
  display: inline-block;
}

.title-small {
  margin-bottom: 0;
  padding-left: 0.46em;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.46em;
  color: #FFD9A8;
  text-shadow: 0 2px 12px rgba(255, 138, 61, 0.4);
}

.title-big {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-size: clamp(56px, 17vw, 74px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #FFFDF5 0%, #FFF0C9 24%, #FFC46B 52%, #FF8A3D 76%, #F2610F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 236, 200, 0.5);
  filter:
    drop-shadow(0 2px 0 #A44207)
    drop-shadow(0 5px 0 #7C2B03)
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 26px rgba(255, 138, 61, 0.48));
}

.title-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.32em;
  color: #FFC58E;
}

.tag-line {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 196, 107, 0), rgba(255, 196, 107, 0.6));
}

.tag-line:last-child {
  transform: scaleX(-1);
}

.hero-desc {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #C6B5E4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-desc b {
  color: #FFD9A8;
  font-weight: 800;
}

.start-stats {
  display: flex;
  gap: 13px;
  padding: 8px 15px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(52, 27, 88, 0.74), rgba(15, 7, 32, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 94px;
}

.stat-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 61, 0.14);
  border: 1px solid rgba(255, 138, 61, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-icon .mp-icon {
  width: 16px;
  height: 16px;
  color: #FFC46B;
}

.stat-icon.fire {
  background: rgba(255, 92, 168, 0.14);
  border-color: rgba(255, 92, 168, 0.3);
}

.stat-icon.fire .mp-icon {
  color: #FF8FBC;
}

.stat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.stat-body span {
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: #B8A7D6;
}

.stat-body b {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
  color: #FFF4E1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 8px rgba(255, 138, 61, 0.2);
}

.stat-line {
  height: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.play-btn {
  width: min(312px, 86vw);
  height: 66px;
  padding: 0 14px 0 11px;
  border: 1.5px solid rgba(255, 236, 207, 0.76);
  border-radius: 22px;
  gap: 11px;
  background: linear-gradient(135deg, #FFD08B 0%, #FFA14F 36%, #FF7A2B 74%, #F46515 100%);
  box-shadow:
    0 7px 0 #9E3805,
    0 17px 36px rgba(255, 110, 30, 0.38),
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 -2px 0 rgba(120, 40, 3, 0.18);
}

.play-btn::after {
  inset: -10px;
  border-radius: 28px;
  border: 1.5px solid rgba(255, 138, 61, 0.5);
  animation: playPulse 2.2s ease-out infinite;
}

.play-btn:active {
  transform: translateY(6px);
  box-shadow:
    0 1px 0 #9E3805,
    0 6px 16px rgba(255, 110, 30, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.play-icon {
  width: 42px;
  height: 42px;
  background: rgba(58, 17, 2, 0.16);
  border: 1px solid rgba(58, 17, 2, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: scale(calc(1 + var(--beat, 0) * 0.07));
}

.play-icon .mp-icon {
  width: 25px;
  height: 25px;
}

.play-copy {
  align-items: flex-start;
  gap: 0;
}

.play-copy b {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.play-copy small {
  margin-top: 5px;
  font-size: 7px;
  letter-spacing: 0.19em;
  opacity: 0.62;
}

.play-spark {
  margin-left: auto;
  display: grid;
  place-items: center;
  opacity: 0.5;
}

.play-spark .mp-icon {
  width: 18px;
  height: 18px;
  color: #7A2B05;
}

.beat-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 18px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(230, 218, 250, 0.72);
}

.home-beat-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-beat-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
}

.home-beat-dots i.on {
  background: #FFC46B;
  box-shadow: 0 0 9px rgba(255, 138, 61, 0.95);
  transform: scale(1.5);
}

.beat-bpm {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #FFD9A8;
}

.beat-bpm small {
  font-size: 7px;
  letter-spacing: 0.12em;
  color: rgba(255, 217, 168, 0.62);
}

.beat-sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.16);
}

.beat-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.beat-hint .mp-icon {
  width: 13px;
  height: 13px;
  color: #FFC46B;
}

.start-footer {
  z-index: 2;
  gap: 6px;
}

.start-footer .eq {
  height: 28px;
  max-width: 310px;
}

.start-footer .eq i {
  height: 26px;
}

.start-footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: rgba(233, 219, 255, 0.42);
}

.start-footer p i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 138, 61, 0.7);
  box-shadow: 0 0 6px rgba(255, 138, 61, 0.8);
}

@keyframes liveWave {
  0% { transform: scaleY(0.24); opacity: 0.55; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes ringBar {
  0% { height: 6px; opacity: 0.3; }
  100% { height: 22px; opacity: 0.95; }
}

@keyframes beamSway {
  0% { transform: rotate(12deg) scaleX(0.92); opacity: 0.6; }
  100% { transform: rotate(21deg) scaleX(1.06); opacity: 1; }
}

@keyframes sparkTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.72) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

@keyframes chipFloat {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50% { transform: rotate(var(--rot, 0deg)) translateY(-6px); }
}

@keyframes chipEq {
  0% { height: 4px; opacity: 0.5; }
  100% { height: 9px; opacity: 0.95; }
}

@keyframes playPulse {
  0% { transform: scale(0.96); opacity: 0.7; }
  80%, 100% { transform: scale(1.09); opacity: 0; }
}

@media (max-height: 780px) {
  .disc-stage { --disc-size: clamp(150px, 43vw, 182px); }
  .hero { gap: 7px; }
  .title-big { font-size: clamp(50px, 15vw, 64px); }
  .hero-desc { margin-top: 6px; font-size: 11px; line-height: 1.55; }
  .start-stats { padding: 6px 13px; }
  .stat { min-width: 88px; }
  .play-btn { height: 60px; }
  .play-copy b { font-size: 19px; }
  .start-footer .eq { height: 22px; }
  .start-footer .eq i { height: 20px; }
}

@media (max-height: 690px) {
  .disc-stage { --disc-size: 138px; margin-bottom: -4px; }
  .hero { gap: 6px; }
  .hero-desc { display: none; }
  .title-big { font-size: 48px; }
  .title-tag { margin-top: 3px; }
  .start-stats { padding: 5px 12px; }
  .stat-icon { width: 27px; height: 27px; border-radius: 9px; }
  .stat-body b { font-size: 15px; }
  .play-btn { height: 56px; border-radius: 19px; }
  .play-icon { width: 37px; height: 37px; }
  .play-copy b { font-size: 18px; }
  .start-footer .eq { height: 18px; }
  .start-footer .eq i { height: 16px; }
  .start-footer p { font-size: 6.5px; }
}

@media (max-height: 600px) {
  .disc-stage { --disc-size: 120px; margin-bottom: 0; }
  .title-small { font-size: 13px; }
  .title-big { font-size: 42px; }
  .title-tag { display: none; }
  .start-stats { display: flex; padding: 4px 10px; gap: 8px; }
  .stat { min-width: 82px; gap: 6px; }
  .stat-icon { width: 25px; height: 25px; }
  .stat-body b { font-size: 14px; }
  .beat-strip { min-height: 16px; }
  .start-footer p { display: none; }
  .start-footer { gap: 3px; }
  .start-top .round-btn { width: 36px; height: 36px; }
  .hero { justify-content: space-evenly; }
}

@media (max-width: 370px) {
  .start-overlay { padding-left: 14px; padding-right: 14px; }
  .title-big { font-size: clamp(50px, 16vw, 62px); }
  .start-stats { gap: 9px; padding-left: 11px; padding-right: 11px; }
  .stat { min-width: 86px; gap: 6px; }
  .play-btn { width: min(300px, 88vw); }
  .chip-a { left: -10px; }
  .chip-b { right: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-wave i, .disc-halo::before, .disc-halo::after, .eq-ring i, .vinyl-sheen,
  .brick-chip, .brick-chip i, .spark, .stage-beams::before, .stage-beams::after,
  .play-btn::after, .play-shine, .eq i, .vinyl, .orbit-note {
    animation: none !important;
  }
  .disc-stage, .hero-copy, .title-big, .play-icon { transform: none; }
}

@media (min-width: 520px) {
  .start-overlay {
    padding-left: max(24px, calc((100vw - 520px) / 2));
    padding-right: max(24px, calc((100vw - 520px) / 2));
  }
}
