:root {
  --bg-0: #060813;
  --bg-1: #0a1022;
  --bg-2: #101936;
  --signature-bar-height: 52px;
  --signature-safe-gap: 24px;
  --text: #eaf1ff;
  --muted: #9eb0d6;
  --line: rgba(133, 180, 255, 0.25);
  --accent-a: #3effcf;
  --accent-b: #35a8ff;
  --accent-c: #ff5fe7;
  --danger: #ff5f81;
  --vibe-glow-a: rgba(62, 255, 207, 0.2);
  --vibe-glow-b: rgba(53, 168, 255, 0.2);
  --vibe-glow-c: rgba(255, 95, 231, 0.2);
  --vibe-token-color: rgba(197, 235, 255, 0.52);
  --vibe-token-shadow: rgba(123, 247, 255, 0.28);
  --vibe-orb-core: rgba(125, 233, 255, 0.9);
  --vibe-orb-edge: rgba(69, 125, 255, 0.4);
  --vibe-beam: rgba(126, 214, 255, 0.44);
  --vibe-panel-glow: rgba(8, 22, 45, 0.48);
  --vibe-strength: 0.45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--signature-bar-height) + var(--signature-safe-gap) + env(safe-area-inset-bottom));
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background:
    radial-gradient(circle at 12% 8%, var(--vibe-glow-a), transparent 34%),
    radial-gradient(circle at 88% 10%, var(--vibe-glow-b), transparent 32%),
    radial-gradient(circle at 85% 86%, var(--vibe-glow-c), transparent 35%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  transition: background 520ms ease;
}

body.signature-bar-hidden {
  padding-bottom: env(safe-area-inset-bottom);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Syne", sans-serif;
}

p {
  margin: 0;
}

.signature-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--signature-bar-height);
  min-height: var(--signature-bar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 12;
  border-top: 1px solid rgba(113, 208, 255, 0.26);
  background:
    radial-gradient(circle at 18% 30%, rgba(109, 255, 208, 0.12), transparent 42%),
    radial-gradient(circle at 86% 50%, rgba(157, 122, 255, 0.16), transparent 46%),
    linear-gradient(90deg, rgba(4, 11, 27, 0.95), rgba(8, 24, 54, 0.92) 52%, rgba(23, 16, 53, 0.95));
  backdrop-filter: blur(8px);
}

.signature-track {
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
  max-width: none;
  white-space: nowrap;
  padding-inline: 1.2rem;
  transform: translate3d(0, -50%, 0);
  animation: signature-marquee-primary 16s linear infinite;
  will-change: transform;
}

.signature-track.clone {
  display: inline-flex;
  animation-name: signature-marquee-secondary;
}

.signature-pill {
  font-family: "Syne", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
  color: #dff5ff;
  text-shadow:
    0 0 14px rgba(114, 236, 255, 0.34),
    0 0 22px rgba(159, 122, 255, 0.24);
}

.signature-divider {
  font-size: 0.72rem;
  color: rgba(161, 210, 255, 0.82);
}

.welcome-screen,
.app-shell {
  position: relative;
  z-index: 1;
}

.audio-toggle {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 14;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.44rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(121, 211, 255, 0.45);
  background:
    radial-gradient(circle at 16% 20%, rgba(109, 255, 208, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(6, 14, 33, 0.9), rgba(11, 21, 49, 0.84));
  color: #dff5ff;
  font-family: "Syne", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(3, 11, 29, 0.4), inset 0 0 0 1px rgba(142, 207, 255, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 220ms ease, opacity 220ms ease;
}

.audio-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(134, 229, 255, 0.7);
}

.audio-toggle:active {
  transform: translateY(0);
}

.audio-toggle-bars {
  width: 16px;
  height: 14px;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

.audio-toggle-bar {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dffd7, #7fb4ff 66%, #8f6eff);
  animation: audio-level-bounce 1s ease-in-out infinite;
}

.audio-toggle-bar:nth-child(1) {
  height: 55%;
  animation-delay: -0.18s;
}

.audio-toggle-bar:nth-child(2) {
  height: 88%;
  animation-delay: -0.42s;
}

.audio-toggle-bar:nth-child(3) {
  height: 66%;
  animation-delay: -0.27s;
}

.audio-toggle.muted {
  opacity: 0.8;
  border-color: rgba(132, 164, 211, 0.42);
}

.audio-toggle.muted .audio-toggle-bar {
  animation: none;
  opacity: 0.42;
}

.audio-volume-control {
  position: fixed;
  top: 3.25rem;
  right: 0.9rem;
  z-index: 9;
  display: grid;
  grid-template-columns: auto minmax(92px, 126px) 3rem;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(121, 211, 255, 0.36);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 16%, rgba(109, 255, 208, 0.15), transparent 42%),
    linear-gradient(145deg, rgba(6, 14, 33, 0.88), rgba(11, 21, 49, 0.8));
  color: #dff5ff;
  box-shadow: 0 10px 24px rgba(3, 11, 29, 0.3), inset 0 0 0 1px rgba(142, 207, 255, 0.07);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.audio-volume-control::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 18px;
}

.audio-toggle:hover + .audio-volume-control,
.audio-toggle:focus-visible + .audio-volume-control,
.audio-toggle.audio-volume-open + .audio-volume-control,
.audio-volume-control.open,
.audio-volume-control:hover,
.audio-volume-control:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.audio-volume-control label,
.audio-volume-control span {
  font-family: "Syne", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.audio-volume-control span {
  color: var(--cyan);
  text-align: right;
}

.audio-volume-control input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
}

.audio-volume-control.muted {
  border-color: rgba(132, 164, 211, 0.34);
  color: rgba(223, 245, 255, 0.74);
}

.floating-sonic-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: calc(0.42 + (var(--vibe-strength, 0.45) * 0.62));
  transition: opacity 420ms ease;
}

.floating-sonic-layer::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background:
    radial-gradient(circle at 14% 32%, rgba(123, 247, 255, 0.18), transparent 35%),
    radial-gradient(circle at 86% 22%, rgba(132, 255, 207, 0.16), transparent 34%),
    radial-gradient(circle at 64% 86%, rgba(255, 95, 231, 0.14), transparent 38%);
  filter: blur(3px);
}

.sonic-note {
  position: absolute;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.14rem, 2.8vw, 2rem);
  color: var(--vibe-token-color);
  text-shadow: 0 0 16px var(--vibe-token-shadow);
  animation: sonic-note-rise 15s linear infinite;
}

.sonic-note.note-a { left: 4%; bottom: -10%; animation-duration: 18s; animation-delay: -4s; }
.sonic-note.note-b { left: 18%; bottom: -13%; animation-duration: 16s; animation-delay: -1s; }
.sonic-note.note-c { left: 36%; bottom: -9%; animation-duration: 20s; animation-delay: -9s; }
.sonic-note.note-d { left: 62%; bottom: -12%; animation-duration: 17s; animation-delay: -6s; }
.sonic-note.note-e { left: 78%; bottom: -11%; animation-duration: 19s; animation-delay: -2s; }
.sonic-note.note-f { left: 92%; bottom: -15%; animation-duration: 21s; animation-delay: -11s; }
.sonic-note.note-g { left: 10%; bottom: -18%; animation-duration: 23s; animation-delay: -5s; }
.sonic-note.note-h { left: 46%; bottom: -16%; animation-duration: 18.5s; animation-delay: -14s; }
.sonic-note.note-i { left: 58%; bottom: -14%; animation-duration: 22s; animation-delay: -7s; }
.sonic-note.note-j { left: 70%; bottom: -17%; animation-duration: 24s; animation-delay: -13s; }
.sonic-note.note-k { left: 83%; bottom: -20%; animation-duration: 20.5s; animation-delay: -10s; }
.sonic-note.note-l { left: 28%; bottom: -19%; animation-duration: 26s; animation-delay: -17s; }
.sonic-note.note-m { left: 8%; bottom: -12%; animation-duration: 19.8s; animation-delay: -7.6s; }
.sonic-note.note-n { left: 88%; bottom: -14%; animation-duration: 21.8s; animation-delay: -16.2s; }
.sonic-note.note-o { left: 14%; bottom: -22%; animation-duration: 22.4s; animation-delay: -11.4s; }
.sonic-note.note-p { left: 52%; bottom: -24%; animation-duration: 20.8s; animation-delay: -6.6s; }
.sonic-note.note-q { left: 96%; bottom: -17%; animation-duration: 24.6s; animation-delay: -9.8s; }
.sonic-note.note-r { left: 38%; bottom: -21%; animation-duration: 23.2s; animation-delay: -14.1s; }
.sonic-note.note-s { left: 25%; bottom: -15%; animation-duration: 17.8s; animation-delay: -4.4s; }
.sonic-note.note-t { left: 66%; bottom: -23%; animation-duration: 25.1s; animation-delay: -18.6s; }
.sonic-note.note-u { left: 74%; bottom: -13%; animation-duration: 18.6s; animation-delay: -5.7s; }
.sonic-note.note-v { left: 32%; bottom: -11%; animation-duration: 21.2s; animation-delay: -12.8s; }
.sonic-note.note-w { left: 48%; bottom: -19%; animation-duration: 22.8s; animation-delay: -15.1s; }
.sonic-note.note-x { left: 58%; bottom: -10%; animation-duration: 19.2s; animation-delay: -8.9s; }

.sonic-note-eq {
  letter-spacing: 0.06em;
  font-family: "Chakra Petch", sans-serif;
}

.sonic-orb {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--vibe-orb-core), var(--vibe-orb-edge));
  box-shadow: 0 0 24px var(--vibe-token-shadow);
  animation: sonic-orb-drift 12s ease-in-out infinite;
}

.sonic-orb.orb-a { left: 9%; top: 22%; animation-delay: -2s; }
.sonic-orb.orb-b { left: 29%; top: 68%; animation-delay: -8s; }
.sonic-orb.orb-c { left: 73%; top: 18%; animation-delay: -4s; }
.sonic-orb.orb-d { left: 86%; top: 74%; animation-delay: -10s; }
.sonic-orb.orb-e { left: 44%; top: 28%; animation-delay: -5.2s; }
.sonic-orb.orb-f { left: 16%; top: 56%; animation-delay: -3.4s; }
.sonic-orb.orb-g { left: 61%; top: 56%; animation-delay: -7.3s; }
.sonic-orb.orb-h { left: 92%; top: 42%; animation-delay: -11.2s; }

.sonic-beam {
  position: absolute;
  width: 2px;
  height: 212px;
  background: linear-gradient(180deg, var(--vibe-beam), rgba(126, 214, 255, 0));
  filter: blur(0.2px);
  animation: sonic-beam-pulse 3.4s ease-in-out infinite;
}

.sonic-beam.beam-a { left: 12%; top: 38%; animation-delay: -1.1s; }
.sonic-beam.beam-b { right: 10%; top: 28%; animation-delay: -2.3s; }
.sonic-beam.beam-c { left: 52%; top: 16%; animation-delay: -0.7s; }
.sonic-beam.beam-d { right: 34%; top: 52%; animation-delay: -3.1s; }

.sonic-shard {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(160deg, rgba(173, 243, 255, 0.92), rgba(137, 118, 255, 0.18));
  box-shadow: 0 0 18px rgba(123, 247, 255, 0.25);
  animation: sonic-shard-drift 8.8s ease-in-out infinite;
}

.sonic-shard.shard-a { left: 22%; top: 18%; animation-delay: -0.8s; }
.sonic-shard.shard-b { left: 40%; top: 78%; animation-delay: -2.1s; }
.sonic-shard.shard-c { left: 68%; top: 32%; animation-delay: -4.7s; }
.sonic-shard.shard-d { left: 90%; top: 60%; animation-delay: -6.4s; }

.sonic-pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(132, 255, 207, 0.44);
  opacity: 0;
  animation: sonic-pulse-ring 4.4s ease-out infinite;
}

.sonic-pulse.pulse-a { left: 24%; top: 46%; animation-delay: -0.3s; }
.sonic-pulse.pulse-b { left: 58%; top: 66%; animation-delay: -1.8s; }
.sonic-pulse.pulse-c { left: 82%; top: 40%; animation-delay: -2.9s; }

.sonic-speaker {
  position: absolute;
  width: 54px;
  height: 74px;
  border-radius: 12px;
  border: 1px solid rgba(127, 212, 255, 0.35);
  background:
    radial-gradient(circle at 50% 24%, rgba(122, 246, 255, 0.26), transparent 36%),
    linear-gradient(170deg, rgba(7, 16, 35, 0.7), rgba(6, 13, 30, 0.86));
  box-shadow:
    0 14px 22px rgba(6, 14, 33, 0.35),
    inset 0 0 0 1px rgba(138, 217, 255, 0.08);
  animation: sonic-speaker-thump 3.5s ease-in-out infinite;
}

.sonic-speaker::before,
.sonic-speaker::after {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: 999px;
  transform: translateX(-50%);
}

.sonic-speaker::before {
  width: 20px;
  height: 20px;
  top: 12px;
  border: 1px solid rgba(142, 223, 255, 0.42);
  background: radial-gradient(circle, rgba(131, 243, 255, 0.6), rgba(7, 23, 47, 0.65) 72%);
  box-shadow: 0 0 14px rgba(112, 235, 255, 0.18);
}

.sonic-speaker::after {
  width: 30px;
  height: 30px;
  bottom: 10px;
  border: 1px solid rgba(130, 218, 255, 0.46);
  background: radial-gradient(circle, rgba(132, 247, 255, 0.44), rgba(6, 19, 39, 0.84) 72%);
  box-shadow:
    inset 0 0 0 1px rgba(145, 210, 255, 0.1),
    0 0 20px rgba(107, 206, 255, 0.2);
}

.sonic-speaker.speaker-a { left: 6%; top: 64%; animation-delay: -0.8s; }
.sonic-speaker.speaker-b { right: 9%; top: 66%; animation-delay: -2s; }
.sonic-speaker.speaker-c { left: 78%; top: 48%; animation-delay: -1.4s; }

.genre-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: calc(0.22 + (var(--vibe-strength, 0.45) * 0.7));
  transition: opacity 420ms ease;
}

.genre-fx-token {
  position: absolute;
  color: var(--vibe-token-color);
  text-shadow: 0 0 22px var(--vibe-token-shadow);
  user-select: none;
  transform: translate3d(0, 0, 0);
  animation:
    genre-fx-drift 16s ease-in-out infinite,
    genre-fx-twinkle 3.8s ease-in-out infinite;
}

.genre-fx-token.alt {
  filter: hue-rotate(26deg);
}

.genre-fx-token.pulse {
  animation-duration: 20s, 2.5s;
}

.genre-fx-token.wide {
  text-shadow:
    0 0 26px rgba(133, 242, 255, 0.5),
    0 0 36px rgba(163, 112, 255, 0.22);
}

.genre-fx-token.dense {
  font-weight: 700;
}

.genre-fx-token.spin {
  animation:
    genre-fx-drift 16s ease-in-out infinite,
    genre-fx-twinkle 3.4s ease-in-out infinite,
    genre-fx-spin 5.4s linear infinite;
}

body[data-vibe-theme="dark"] {
  --vibe-glow-a: rgba(113, 64, 255, 0.26);
  --vibe-glow-b: rgba(71, 126, 255, 0.22);
  --vibe-glow-c: rgba(255, 108, 183, 0.24);
  --vibe-token-color: rgba(239, 210, 255, 0.62);
  --vibe-token-shadow: rgba(186, 117, 255, 0.46);
  --vibe-orb-core: rgba(199, 157, 255, 0.9);
  --vibe-orb-edge: rgba(88, 99, 255, 0.45);
  --vibe-beam: rgba(174, 146, 255, 0.42);
  --vibe-panel-glow: rgba(49, 28, 97, 0.52);
}

body[data-vibe-theme="psy"] {
  --vibe-glow-a: rgba(83, 255, 174, 0.24);
  --vibe-glow-b: rgba(99, 179, 255, 0.24);
  --vibe-glow-c: rgba(238, 121, 255, 0.2);
  --vibe-token-color: rgba(207, 255, 232, 0.64);
  --vibe-token-shadow: rgba(89, 255, 206, 0.44);
  --vibe-orb-core: rgba(89, 255, 206, 0.92);
  --vibe-orb-edge: rgba(109, 145, 255, 0.45);
  --vibe-beam: rgba(104, 230, 255, 0.46);
  --vibe-panel-glow: rgba(20, 66, 76, 0.5);
}

body[data-vibe-theme="techno"] {
  --vibe-glow-a: rgba(109, 214, 255, 0.24);
  --vibe-glow-b: rgba(90, 142, 255, 0.25);
  --vibe-glow-c: rgba(175, 189, 255, 0.18);
  --vibe-token-color: rgba(212, 236, 255, 0.62);
  --vibe-token-shadow: rgba(120, 190, 255, 0.46);
  --vibe-orb-core: rgba(128, 222, 255, 0.92);
  --vibe-orb-edge: rgba(89, 126, 255, 0.42);
  --vibe-beam: rgba(125, 199, 255, 0.48);
  --vibe-panel-glow: rgba(26, 49, 97, 0.52);
}

body[data-vibe-theme="dnb"] {
  --vibe-glow-a: rgba(78, 232, 255, 0.24);
  --vibe-glow-b: rgba(119, 129, 255, 0.24);
  --vibe-glow-c: rgba(255, 120, 237, 0.22);
  --vibe-token-color: rgba(218, 241, 255, 0.64);
  --vibe-token-shadow: rgba(138, 202, 255, 0.48);
  --vibe-orb-core: rgba(128, 226, 255, 0.9);
  --vibe-orb-edge: rgba(133, 110, 255, 0.44);
  --vibe-beam: rgba(132, 214, 255, 0.5);
  --vibe-panel-glow: rgba(36, 39, 104, 0.54);
}

body[data-vibe-theme="house"] {
  --vibe-glow-a: rgba(95, 255, 198, 0.22);
  --vibe-glow-b: rgba(94, 197, 255, 0.22);
  --vibe-glow-c: rgba(124, 165, 255, 0.2);
  --vibe-token-color: rgba(203, 255, 231, 0.62);
  --vibe-token-shadow: rgba(116, 255, 210, 0.42);
  --vibe-orb-core: rgba(122, 255, 215, 0.88);
  --vibe-orb-edge: rgba(86, 143, 255, 0.42);
  --vibe-beam: rgba(122, 236, 232, 0.44);
  --vibe-panel-glow: rgba(18, 73, 69, 0.5);
}

body[data-vibe-theme="bass"] {
  --vibe-glow-a: rgba(126, 202, 255, 0.23);
  --vibe-glow-b: rgba(124, 121, 255, 0.24);
  --vibe-glow-c: rgba(255, 154, 106, 0.2);
  --vibe-token-color: rgba(222, 232, 255, 0.62);
  --vibe-token-shadow: rgba(123, 166, 255, 0.46);
  --vibe-orb-core: rgba(136, 205, 255, 0.9);
  --vibe-orb-edge: rgba(128, 111, 255, 0.44);
  --vibe-beam: rgba(138, 197, 255, 0.48);
  --vibe-panel-glow: rgba(33, 49, 104, 0.52);
}

body[data-vibe-theme="ambient"] {
  --vibe-glow-a: rgba(134, 236, 218, 0.2);
  --vibe-glow-b: rgba(121, 185, 255, 0.2);
  --vibe-glow-c: rgba(155, 232, 191, 0.2);
  --vibe-token-color: rgba(220, 255, 242, 0.58);
  --vibe-token-shadow: rgba(129, 228, 214, 0.42);
  --vibe-orb-core: rgba(143, 242, 222, 0.86);
  --vibe-orb-edge: rgba(113, 158, 255, 0.4);
  --vibe-beam: rgba(126, 220, 214, 0.42);
  --vibe-panel-glow: rgba(20, 73, 72, 0.45);
}

body[data-vibe-theme="leftfield"] {
  --vibe-glow-a: rgba(122, 214, 255, 0.22);
  --vibe-glow-b: rgba(104, 144, 255, 0.22);
  --vibe-glow-c: rgba(173, 130, 255, 0.22);
  --vibe-token-color: rgba(218, 232, 255, 0.6);
  --vibe-token-shadow: rgba(130, 175, 255, 0.44);
  --vibe-orb-core: rgba(145, 220, 255, 0.88);
  --vibe-orb-edge: rgba(116, 134, 255, 0.42);
  --vibe-beam: rgba(133, 204, 255, 0.44);
  --vibe-panel-glow: rgba(37, 52, 110, 0.5);
}

body[data-vibe-theme="hard"] {
  --vibe-glow-a: rgba(255, 124, 124, 0.24);
  --vibe-glow-b: rgba(194, 102, 255, 0.22);
  --vibe-glow-c: rgba(255, 169, 112, 0.22);
  --vibe-token-color: rgba(255, 225, 218, 0.64);
  --vibe-token-shadow: rgba(255, 149, 121, 0.46);
  --vibe-orb-core: rgba(255, 178, 132, 0.9);
  --vibe-orb-edge: rgba(193, 116, 255, 0.44);
  --vibe-beam: rgba(255, 162, 132, 0.5);
  --vibe-panel-glow: rgba(104, 44, 38, 0.52);
}

.welcome-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.2vh, 1.6rem);
  padding-top: max(clamp(1rem, 2.2vh, 1.6rem), env(safe-area-inset-top));
  padding-bottom: max(clamp(1rem, 2.2vh, 1.6rem), calc(var(--signature-bar-height) + 0.8rem + env(safe-area-inset-bottom)));
  overflow: visible;
}

.welcome-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 780px;
  width: min(780px, 100%);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(8, 12, 26, 0.92), rgba(10, 19, 40, 0.8));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 1.2rem;
}

.intro-screen {
  padding: 1rem;
  cursor: default;
}

.intro-card {
  width: min(980px, 100%);
  padding: 1.4rem;
  overflow: hidden;
  position: relative;
  border-color: rgba(131, 205, 255, 0.38);
  background:
    radial-gradient(circle at 9% 17%, rgba(115, 255, 212, 0.15), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(167, 118, 255, 0.18), transparent 30%),
    linear-gradient(140deg, rgba(6, 12, 28, 0.95), rgba(7, 16, 38, 0.9) 52%, rgba(12, 19, 48, 0.88));
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 10% -25% auto;
  height: 280px;
  background:
    radial-gradient(circle at 20% 40%, rgba(83, 255, 188, 0.12), transparent 44%),
    radial-gradient(circle at 74% 46%, rgba(170, 98, 255, 0.14), transparent 50%);
  pointer-events: none;
  filter: blur(2px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  justify-items: center;
  min-height: min(78vh, 760px);
  position: relative;
  z-index: 1;
}

.intro-copy {
  display: grid;
  gap: 0.72rem;
  justify-items: start;
  text-align: left;
  width: min(100%, 520px);
  margin-inline: auto;
}

/* Defensive: if a cached legacy intro markup appears, keep splash purely visual. */
#introScreen .intro-copy {
  display: none !important;
}

.intro-copy h1 {
  font-size: clamp(2.28rem, 4.8vw, 4.1rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
}

.intro-copy #introDesc {
  max-width: 48ch;
  line-height: 1.45;
  color: #cbe1ff;
}

.intro-impact {
  margin: 0.04rem 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.02rem, 2vw, 1.34rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: #dff6ff;
  text-shadow:
    0 0 14px rgba(111, 233, 255, 0.34),
    0 0 28px rgba(171, 124, 255, 0.18);
  animation: intro-impact-pulse 3.2s ease-in-out infinite;
}

.intro-quote-shell {
  border: 1px solid rgba(121, 211, 255, 0.36);
  border-radius: 14px;
  padding: 0.8rem 0.92rem;
  min-height: 98px;
  display: grid;
  align-items: center;
  width: min(560px, 100%);
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 247, 255, 0.16), transparent 44%),
    rgba(6, 14, 33, 0.85);
}

.intro-quote {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.02rem, 2.2vw, 1.42rem);
  line-height: 1.26;
  letter-spacing: 0.015em;
  transform-origin: center;
}

.intro-quote-enter {
  animation: intro-quote-enter 300ms ease;
}

.intro-quote-flare {
  color: #dff8ff;
  text-shadow: 0 0 12px rgba(134, 229, 255, 0.42);
  animation: intro-quote-flare 3.4s ease-in-out infinite;
}

.intro-quote-wave {
  color: #c8ffe6;
  animation: intro-quote-wave 2.2s ease-in-out infinite;
}

.intro-quote-glitch {
  color: #f0e3ff;
  text-shadow: 1px 0 rgba(255, 83, 218, 0.52), -1px 0 rgba(89, 245, 255, 0.52);
  animation: intro-quote-glitch 2.7s steps(1, end) infinite;
}

.intro-quote-drift {
  color: #d4ecff;
  animation: intro-quote-drift 4.6s ease-in-out infinite;
}

.intro-quote-laser {
  color: #e8dbff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: intro-quote-laser 2.6s linear infinite;
}

.intro-continue-btn {
  margin-top: 0.16rem;
  width: fit-content;
  justify-self: start;
}

.intro-visual {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.intro-logo-system {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.intro-logo-wrap {
  position: relative;
  width: min(94%, 470px);
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 0.56rem;
  box-shadow:
    0 22px 38px rgba(4, 11, 29, 0.28);
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  animation:
    intro-logo-reveal 960ms cubic-bezier(0.18, 0.88, 0.28, 1.18) 180ms forwards,
    intro-logo-float 3.1s ease-in-out 1.14s infinite;
}

.intro-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 12% -8%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.46) 48%, transparent 72%);
  filter: blur(14px);
  opacity: 0;
  transform: translateX(-58%) skewX(-12deg);
  animation: intro-logo-sweep 1.18s ease-out 680ms both;
}

.intro-logo-mark {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 24px rgba(103, 239, 255, 0.34))
    drop-shadow(0 12px 24px rgba(48, 148, 255, 0.2));
  animation: intro-logo-glow 1.45s ease-out 220ms both;
}

.intro-logo-wordmark {
  width: min(92%, 340px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(88, 214, 255, 0.22));
}

.intro-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(125, 214, 255, 0.38);
  pointer-events: none;
}

.intro-ring.ring-a {
  inset: 9% 8%;
  animation: intro-ring-spin 12s linear infinite;
}

.intro-ring.ring-b {
  inset: 18% 16%;
  border-color: rgba(128, 255, 216, 0.36);
  animation: intro-ring-spin-rev 10s linear infinite;
}

.intro-ring.ring-c {
  inset: 28% 24%;
  border-color: rgba(179, 146, 255, 0.33);
  animation: intro-ring-spin 7.6s linear infinite;
}

.intro-spark {
  position: absolute;
  color: rgba(198, 234, 255, 0.72);
  text-shadow: 0 0 12px rgba(134, 229, 255, 0.5);
  animation: intro-spark-flicker 2.5s ease-in-out infinite;
}

.intro-spark.spark-a {
  top: 12%;
  right: 14%;
  animation-delay: -0.2s;
}

.intro-spark.spark-b {
  bottom: 16%;
  left: 12%;
  animation-delay: -1.1s;
}

.intro-spark.spark-c {
  top: 53%;
  left: 6%;
  animation-delay: -1.8s;
}

.intro-glyph {
  position: absolute;
  font-size: clamp(1.2rem, 2.2vw, 1.78rem);
  font-weight: 700;
  color: rgba(204, 241, 255, 0.82);
  text-shadow:
    0 0 12px rgba(135, 233, 255, 0.5),
    0 0 24px rgba(177, 128, 255, 0.22);
  pointer-events: none;
  animation: intro-glyph-drift 5.8s ease-in-out infinite;
}

.intro-glyph.glyph-a {
  top: 6%;
  left: 23%;
  animation-delay: -0.6s;
}

.intro-glyph.glyph-b {
  top: 16%;
  right: 16%;
  animation-delay: -2.1s;
}

.intro-glyph.glyph-c {
  right: 10%;
  bottom: 23%;
  animation-delay: -1.3s;
}

.intro-glyph.glyph-d {
  left: 11%;
  bottom: 18%;
  animation-delay: -2.9s;
}

.intro-symbol-cloud {
  width: min(90%, 500px);
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  border-radius: 14px;
  border: 1px solid rgba(117, 203, 255, 0.34);
  background:
    radial-gradient(circle at 16% 24%, rgba(102, 255, 216, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(8, 15, 33, 0.9), rgba(11, 20, 46, 0.82));
  box-shadow: 0 12px 28px rgba(3, 11, 29, 0.42);
}

.intro-symbol {
  font-size: clamp(0.84rem, 1.54vw, 1.18rem);
  color: rgba(208, 243, 255, 0.86);
  text-shadow:
    0 0 10px rgba(118, 228, 255, 0.46),
    0 0 18px rgba(173, 121, 255, 0.2);
  animation: intro-symbol-float 3.4s ease-in-out infinite;
}

.intro-symbol-eq {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.05em;
}

.intro-symbol.sym-a { animation-delay: -0.2s; }
.intro-symbol.sym-b { animation-delay: -0.5s; }
.intro-symbol.sym-c { animation-delay: -1.2s; }
.intro-symbol.sym-d { animation-delay: -0.9s; }
.intro-symbol.sym-e { animation-delay: -1.7s; }
.intro-symbol.sym-f { animation-delay: -2.1s; }
.intro-symbol.sym-g { animation-delay: -2.8s; }
.intro-symbol.sym-h { animation-delay: -3.2s; }
.intro-symbol.sym-i { animation-delay: -0.7s; }
.intro-symbol.sym-j { animation-delay: -1.5s; }
.intro-symbol.sym-k { animation-delay: -2.4s; }
.intro-symbol.sym-l { animation-delay: -3.6s; }

.intro-eq {
  width: min(84%, 270px);
  height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(116, 204, 255, 0.32);
  padding: 0.44rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 0.3rem;
  background: rgba(6, 14, 34, 0.76);
}

.eq-bar {
  border-radius: 999px;
  min-height: 18%;
  background: linear-gradient(180deg, #7dffd7, #7fb4ff 62%, #8f6eff);
  animation: intro-eq-bounce 1.08s ease-in-out infinite;
}

.eq-bar:nth-child(1) { animation-delay: -0.2s; }
.eq-bar:nth-child(2) { animation-delay: -0.5s; }
.eq-bar:nth-child(3) { animation-delay: -0.1s; }
.eq-bar:nth-child(4) { animation-delay: -0.8s; }
.eq-bar:nth-child(5) { animation-delay: -0.35s; }
.eq-bar:nth-child(6) { animation-delay: -0.62s; }
.eq-bar:nth-child(7) { animation-delay: -0.26s; }
.eq-bar:nth-child(8) { animation-delay: -0.74s; }

.language-card {
  width: 100%;
  max-width: 720px;
  width: min(720px, 100%);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  gap: 1rem;
  position: relative;
  overflow: visible;
  justify-items: center;
  background:
    radial-gradient(circle at 0% 8%, rgba(95, 255, 220, 0.18), transparent 38%),
    radial-gradient(circle at 96% 84%, rgba(177, 122, 255, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(7, 13, 29, 0.95), rgba(8, 17, 38, 0.88));
}

.auth-card {
  width: 100%;
  max-width: 760px;
  width: min(760px, 100%);
  padding: 2rem;
  gap: 1rem;
}

.usage-guide-card {
  width: min(900px, 100%);
  max-width: 900px;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgba(120, 255, 218, 0.14), transparent 36%),
    radial-gradient(circle at 92% 18%, rgba(119, 217, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(7, 13, 29, 0.95), rgba(8, 17, 38, 0.88));
}

.usage-guide-card .brand-wrap {
  gap: 0.66rem;
}

.usage-guide-card .brand-logo-wrap {
  width: min(360px, 100%);
}

.usage-guide-card h1 {
  max-width: 15ch;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 0.98;
  text-wrap: balance;
}

.usage-guide-card #usageGuideDesc {
  max-width: 58ch;
  color: #cfe3ff;
  line-height: 1.45;
}

.usage-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.66rem;
}

.usage-guide-item {
  min-width: 0;
  border: 1px solid rgba(127, 209, 255, 0.25);
  border-radius: 12px;
  padding: 0.78rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 246, 223, 0.1), transparent 42%),
    rgba(5, 12, 28, 0.68);
  display: grid;
  gap: 0.42rem;
}

.usage-guide-number {
  width: fit-content;
  border-radius: 999px;
  padding: 0.16rem 0.46rem;
  color: #041425;
  background: linear-gradient(110deg, #7bf4d9, #77d9ff);
  font-family: "Syne", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

.usage-guide-item h2 {
  margin: 0;
  color: #eef8ff;
  font-size: 0.98rem;
  line-height: 1.12;
}

.usage-guide-item p {
  margin: 0;
  color: #b9d6f6;
  font-size: 0.86rem;
  line-height: 1.36;
}

.usage-guide-note {
  border: 1px solid rgba(124, 246, 223, 0.25);
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  background: rgba(5, 20, 28, 0.58);
}

.usage-guide-note p {
  margin: 0;
  color: #c8ffe6;
  line-height: 1.4;
}

.usage-guide-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.language-card .brand-wrap {
  gap: 0.8rem;
  width: min(640px, 100%);
  margin-inline: auto;
}

.auth-card .brand-wrap {
  gap: 0.75rem;
}

.language-card .brand-logo-wrap,
.auth-card .brand-logo-wrap {
  width: 100%;
  max-width: 420px;
  width: min(420px, 100%);
}

.language-card h1 {
  font-size: clamp(2.16rem, 5.24vw, 3.72rem);
  line-height: 1.1;
  letter-spacing: -0.016em;
  max-width: 13ch;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.language-card #langKicker {
  line-height: 1.32;
  display: inline-flex;
  align-items: center;
  min-height: 1.2em;
}

.language-card #langTitle {
  display: block;
  text-wrap: balance;
}

.language-card #langDesc {
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #cfe3ff;
  text-wrap: pretty;
}

.lang-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(640px, 100%);
  align-items: stretch;
  margin-inline: auto;
}

.lang-btn {
  min-width: 0;
  width: 100%;
  padding: 0.82rem 1rem;
  font-size: 1.08rem;
  line-height: 1.2;
}

.lang-btn.active {
  border: none;
  color: #041425;
  font-weight: 700;
  background: linear-gradient(110deg, var(--accent-a), #4bc8ff 50%, #7a8dff);
  box-shadow: 0 10px 24px rgba(40, 174, 255, 0.28);
}

.brand-wrap {
  display: grid;
  gap: 0.7rem;
}

.brand-logo-wrap {
  width: min(460px, 100%);
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  animation: brand-logo-float 3.2s ease-in-out infinite;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(88, 214, 255, 0.22));
}

@keyframes brand-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes intro-quote-enter {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes intro-quote-flare {
  0%,
  100% {
    opacity: 0.86;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes intro-quote-wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes intro-quote-glitch {
  0%,
  88%,
  100% {
    transform: translateX(0);
  }
  90% {
    transform: translateX(1px);
  }
  92% {
    transform: translateX(-1px);
  }
  94% {
    transform: translateX(2px);
  }
  96% {
    transform: translateX(-2px);
  }
}

@keyframes intro-quote-drift {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  33% {
    transform: translateX(1px) rotate(-0.35deg);
  }
  66% {
    transform: translateX(-1px) rotate(0.35deg);
  }
}

@keyframes intro-quote-laser {
  0% {
    text-shadow: 0 0 8px rgba(155, 217, 255, 0.4);
    opacity: 0.8;
  }
  50% {
    text-shadow: 0 0 18px rgba(198, 126, 255, 0.5);
    opacity: 1;
  }
  100% {
    text-shadow: 0 0 8px rgba(155, 217, 255, 0.4);
    opacity: 0.86;
  }
}

@keyframes intro-impact-pulse {
  0%,
  100% {
    opacity: 0.88;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px) scale(1.015);
  }
}

@keyframes signature-marquee-primary {
  0% {
    transform: translate3d(0, -50%, 0);
  }
  100% {
    transform: translate3d(-100%, -50%, 0);
  }
}

@keyframes signature-marquee-secondary {
  0% {
    transform: translate3d(100%, -50%, 0);
  }
  100% {
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes intro-logo-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.01);
  }
}

@keyframes intro-logo-reveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  62% {
    opacity: 1;
    transform: translateY(-3px) scale(1.025);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes intro-logo-sweep {
  0% {
    opacity: 0;
    transform: translateX(-58%) skewX(-12deg);
  }
  28% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateX(58%) skewX(-12deg);
  }
}

@keyframes intro-logo-glow {
  0% {
    filter:
      drop-shadow(0 0 0 rgba(103, 239, 255, 0))
      drop-shadow(0 6px 10px rgba(48, 148, 255, 0.08));
  }
  58% {
    filter:
      drop-shadow(0 0 34px rgba(103, 239, 255, 0.62))
      drop-shadow(0 16px 30px rgba(48, 148, 255, 0.28));
  }
  100% {
    filter:
      drop-shadow(0 0 24px rgba(103, 239, 255, 0.34))
      drop-shadow(0 12px 24px rgba(48, 148, 255, 0.2));
  }
}

@keyframes intro-ring-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes intro-ring-spin-rev {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes intro-spark-flicker {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes intro-glyph-drift {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.62;
  }
  50% {
    transform: translateY(-7px) scale(1.08) rotate(6deg);
    opacity: 1;
  }
}

@keyframes intro-eq-bounce {
  0%,
  100% {
    height: 22%;
  }
  40% {
    height: 78%;
  }
  70% {
    height: 38%;
  }
}

@keyframes intro-symbol-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.64;
  }
  50% {
    transform: translateY(-5px) scale(1.08);
    opacity: 1;
  }
}

@keyframes sonic-note-rise {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(0.92);
    opacity: 0;
  }
  12% {
    opacity: 0.62;
  }
  76% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-112vh) translateX(14px) rotate(10deg) scale(1.12);
    opacity: 0;
  }
}

@keyframes sonic-orb-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0.48;
  }
  35% {
    transform: translate3d(8px, -12px, 0) scale(1.06);
    opacity: 0.82;
  }
  70% {
    transform: translate3d(-9px, -6px, 0) scale(0.98);
    opacity: 0.56;
  }
}

@keyframes sonic-beam-pulse {
  0%,
  100% {
    transform: scaleY(0.86);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1.08);
    opacity: 0.72;
  }
}

@keyframes sonic-shard-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(45deg) scale(0.88);
    opacity: 0.24;
  }
  50% {
    transform: translate3d(12px, -14px, 0) rotate(60deg) scale(1.18);
    opacity: 0.82;
  }
}

@keyframes sonic-pulse-ring {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  18% {
    opacity: 0.64;
  }
  100% {
    opacity: 0;
    transform: scale(7.2);
  }
}

@keyframes sonic-speaker-thump {
  0%,
  100% {
    transform: translateY(0) scale(0.96);
    opacity: 0.34;
  }
  45% {
    transform: translateY(-5px) scale(1.04);
    opacity: 0.74;
  }
  70% {
    transform: translateY(-2px) scale(0.98);
    opacity: 0.54;
  }
}

@keyframes genre-fx-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--fx-rot-start, -6deg)) scale(var(--fx-scale-start, 0.78));
  }
  45% {
    transform: translate3d(calc(var(--fx-dx, 50px) * 0.55), calc(var(--fx-dy, -130px) * 0.48), 0) rotate(var(--fx-rot-mid, 9deg)) scale(var(--fx-scale-mid, 1.06));
  }
  100% {
    transform: translate3d(var(--fx-dx, 90px), var(--fx-dy, -210px), 0) rotate(var(--fx-rot-end, -9deg)) scale(var(--fx-scale-end, 1.18));
  }
}

@keyframes genre-fx-twinkle {
  0%,
  100% {
    opacity: 0.16;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes genre-fx-spin {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(22deg);
  }
}

@keyframes audio-level-bounce {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.logo-core {
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(62, 255, 207, 0.95), rgba(53, 168, 255, 0.4) 40%, rgba(8, 13, 29, 0.95) 70%),
    #0a1228;
  border: 1px solid rgba(94, 237, 255, 0.6);
  box-shadow: 0 0 30px rgba(62, 255, 207, 0.25), inset 0 0 24px rgba(53, 168, 255, 0.25);
}

.logo-core span {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #041420;
}

.logo-core.mini {
  width: 52px;
}

.hero-logo-wrap {
  width: clamp(142px, 18vw, 230px);
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 0.18rem 0;
}

.hero-logo-mark {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(49, 236, 223, 0.18));
}

.brand-kicker {
  color: #77d9ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.app-slogan {
  margin: 0;
  max-width: 42ch;
  font-size: 0.88rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #9ff2d8;
  text-wrap: balance;
  text-shadow: 0 0 12px rgba(109, 255, 213, 0.2);
}

.hero-slogan {
  font-size: 0.84rem;
  color: #9de8ff;
}

.app-mission {
  margin: 0;
  max-width: 62ch;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #b7d6ff;
  text-wrap: pretty;
}

.hero-mission {
  max-width: 68ch;
  color: #a7ceff;
}

.welcome-card h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.95;
}

.app-shell {
  width: min(980px, 92%);
  margin: 1.2rem auto 2rem;
  padding-bottom: calc(var(--signature-bar-height) + 0.8rem + env(safe-area-inset-bottom));
  display: grid;
  gap: 0.82rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(150deg, rgba(7, 13, 29, 0.96), rgba(11, 19, 39, 0.84));
  backdrop-filter: blur(8px);
  animation: fade-up 420ms ease both;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.018), 0 12px 30px rgba(0, 8, 24, 0.34);
  transition: border-color 300ms ease, box-shadow 360ms ease, background 360ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 560px;
}

.hero {
  display: grid;
  gap: 0.7rem;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -50px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 255, 207, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.catalog-stats {
  margin-top: 0.95rem;
  max-width: 980px;
  display: grid;
  gap: 0.45rem;
}

.hero-help-btn {
  justify-self: start;
  min-height: 36px;
  padding: 0.42rem 0.72rem;
  border-color: rgba(123, 235, 255, 0.45);
  color: #dff7ff;
  font-size: 0.84rem;
  background: rgba(5, 13, 31, 0.54);
}

.catalog-stats-kicker {
  margin: 0;
  color: #8feeff;
  font-family: "Syne", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.catalog-stat {
  min-width: 0;
  border: 1px solid rgba(127, 209, 255, 0.28);
  border-radius: 9px;
  padding: 0.52rem 0.62rem;
  background: rgba(7, 16, 34, 0.58);
  box-shadow: inset 0 0 0 1px rgba(137, 234, 255, 0.05);
}

.catalog-stat strong,
.catalog-stat span {
  display: block;
}

.catalog-stat strong {
  color: #f3fbff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1;
}

.catalog-stat span {
  margin-top: 0.18rem;
  color: #acc7ee;
  font-size: 0.74rem;
  line-height: 1.2;
}

.catalog-stats-health {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.44rem 0.64rem;
  border: 1px solid rgba(126, 235, 255, 0.25);
  border-radius: 999px;
  color: #c7ddff;
  background:
    radial-gradient(circle at 0% 0%, rgba(100, 255, 209, 0.12), transparent 45%),
    rgba(6, 15, 34, 0.54);
  font-size: 0.72rem;
  line-height: 1.25;
}

.fields-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.preference-panel {
  position: relative;
}

.app-tab-bar {
  position: sticky;
  top: calc(var(--signature-bar-height, 0px) + 0.62rem);
  z-index: 22;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
  padding: 0.38rem;
  border: 1px solid rgba(125, 224, 255, 0.22);
  border-radius: 12px;
  background: rgba(4, 10, 24, 0.88);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.app-tab-btn {
  min-width: 0;
  min-height: 40px;
  border-radius: 8px;
  padding: 0.44rem 0.58rem;
  color: #cfe8ff;
  background:
    linear-gradient(180deg, rgba(125, 224, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(6, 14, 31, 0.78);
  font-size: 0.86rem;
  font-weight: 900;
}

.app-tab-btn.active,
.app-tab-btn[aria-pressed="true"] {
  color: #05172b;
  border-color: rgba(124, 246, 223, 0.86);
  background: linear-gradient(110deg, #7bf4d9, #77d9ff);
}

.app-tab-panel:not(.active) {
  display: none !important;
}

.daily-news-panel {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin-inline: auto;
}

.daily-news-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(124, 246, 223, 0.08), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(255, 151, 213, 0.14), transparent 28%);
  opacity: 0.9;
}

.daily-news-panel > * {
  position: relative;
  z-index: 1;
}

.daily-news-head {
  align-items: center;
  gap: 1rem;
}

.daily-news-refresh {
  min-width: 118px;
}

.daily-news-intro {
  max-width: 46rem;
  margin: -0.12rem 0 0.72rem;
  text-align: left;
  line-height: 1.45;
}

.daily-news-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 0.78rem;
  padding: 0.34rem 0.68rem;
  border: 1px solid rgba(123, 244, 217, 0.22);
  border-radius: 999px;
  background: rgba(5, 14, 31, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.daily-news-status.is-loading {
  color: rgba(205, 255, 245, 0.96);
  border-color: rgba(123, 244, 217, 0.38);
  box-shadow: 0 0 20px rgba(123, 244, 217, 0.13);
}

.daily-news-progress {
  position: relative;
  width: min(100%, 46rem);
  height: 8px;
  margin: -0.28rem 0 1rem;
  overflow: hidden;
  border: 1px solid rgba(125, 224, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    rgba(3, 10, 24, 0.68);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
}

.daily-news-progress[hidden] {
  display: none;
}

.daily-news-progress-fill {
  position: relative;
  display: block;
  width: var(--daily-news-progress, 8%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7bf4d9 0%, #77d9ff 54%, #c095ff 100%);
  box-shadow:
    0 0 18px rgba(123, 244, 217, 0.55),
    0 0 28px rgba(119, 217, 255, 0.28);
  transition: width 360ms ease;
}

.daily-news-progress.is-active .daily-news-progress-fill::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: daily-news-progress-scan 1.15s linear infinite;
  transform: translateX(-100%);
}

@keyframes daily-news-progress-scan {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-news-progress-fill {
    transition: none;
  }

  .daily-news-progress.is-active .daily-news-progress-fill::after {
    animation: none;
  }
}

.daily-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.86rem;
}

.daily-news-card {
  display: grid;
  align-content: start;
  gap: 0.58rem;
  min-height: 184px;
  padding: 1rem;
  border: 1px solid rgba(125, 224, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 33, 58, 0.78), rgba(3, 9, 23, 0.82)),
    rgba(5, 14, 31, 0.78);
}

.daily-news-meta {
  margin: 0;
  color: #8ff6e5;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.daily-news-market {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 0.45rem;
  padding: 0.16rem 0.48rem;
  border: 1px solid rgba(125, 224, 255, 0.28);
  border-radius: 999px;
  color: #cfe7ff;
  background: rgba(9, 20, 42, 0.72);
  font-size: 0.68rem;
  line-height: 1;
  vertical-align: middle;
}

.daily-news-market.br {
  border-color: rgba(126, 232, 198, 0.52);
  color: #8ff6e5;
  background: rgba(22, 79, 65, 0.32);
}

.daily-news-market.global {
  border-color: rgba(138, 199, 255, 0.4);
  color: #bfdbff;
}

.daily-news-source-link {
  color: #8ff6e5;
  text-decoration: none;
}

.daily-news-source-link:hover {
  color: #f2fbff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.daily-news-link {
  color: #f2fbff;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(1rem, 0.94rem + 0.22vw, 1.16rem);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.daily-news-link:hover {
  color: #83efff;
}

.daily-news-summary {
  margin: 0;
  color: #c6d7f2;
  font-size: clamp(0.9rem, 0.86rem + 0.18vw, 1rem);
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.daily-news-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.82rem;
}

.daily-news-sources a {
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(125, 224, 255, 0.26);
  border-radius: 999px;
  color: #bfdbff;
  background: rgba(5, 14, 31, 0.64);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.daily-news-sources a:hover {
  color: #071427;
  background: linear-gradient(110deg, #7bf4d9, #77d9ff);
}

.support-panel {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin-inline: auto;
}

.support-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(123, 244, 217, 0.1), transparent 36%),
    radial-gradient(circle at 86% 8%, rgba(255, 198, 123, 0.18), transparent 26%);
}

.support-panel > * {
  position: relative;
  z-index: 1;
}

.support-head {
  align-items: center;
}

.support-intro {
  max-width: 52rem;
  margin: -0.12rem 0 0.85rem;
  text-align: left;
  line-height: 1.45;
}

.support-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(160px, 1.1fr);
  gap: 0.52rem;
  margin-bottom: 0.9rem;
}

.support-amount-btn,
.support-custom-amount {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(125, 224, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 14, 31, 0.74);
  color: #e9f4ff;
  font-weight: 900;
}

.support-amount-btn.active {
  color: #06172a;
  border-color: rgba(124, 246, 223, 0.86);
  background: linear-gradient(110deg, #7bf4d9, #77d9ff);
}

.support-custom-amount {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.46rem;
  padding: 0.38rem 0.64rem;
}

.support-custom-amount span {
  color: #b9cef0;
  font-size: 0.78rem;
  font-weight: 800;
}

.support-custom-amount input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f2fbff;
  font: inherit;
  font-weight: 900;
  outline: 0;
}

.support-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
}

.support-payment-card {
  display: grid;
  gap: 0.72rem;
  padding: 1rem;
  border: 1px solid rgba(125, 224, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 33, 58, 0.72), rgba(3, 9, 23, 0.86)),
    rgba(5, 14, 31, 0.78);
}

.support-payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
}

.support-payment-head h4 {
  margin: 0;
  color: #f2fbff;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.22rem);
}

.support-payment-status {
  flex: 0 0 auto;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(123, 244, 217, 0.28);
  border-radius: 999px;
  color: #98ffe9;
  background: rgba(6, 24, 36, 0.82);
  font-size: 0.72rem;
  font-weight: 900;
}

.support-qr-wrap {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px solid rgba(125, 224, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(123, 244, 217, 0.08), rgba(119, 151, 255, 0.08)),
    rgba(2, 7, 18, 0.72);
}

.support-qr {
  width: min(210px, 68vw);
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
}

.support-qr-placeholder {
  display: grid;
  place-items: center;
  width: min(210px, 68vw);
  aspect-ratio: 1;
  border: 1px dashed rgba(125, 224, 255, 0.38);
  border-radius: 8px;
  color: rgba(207, 232, 255, 0.5);
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.support-payment-hint {
  min-height: 2.7em;
  margin: 0;
  text-align: left;
  line-height: 1.35;
}

.support-pix-key-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(123, 244, 217, 0.22);
  border-radius: 8px;
  padding: 0.52rem;
  background:
    linear-gradient(135deg, rgba(123, 244, 217, 0.08), rgba(119, 151, 255, 0.06)),
    rgba(2, 7, 18, 0.66);
}

.support-pix-key-row span {
  color: #98ffe9;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-pix-key-row code {
  min-width: 0;
  color: #e8f6ff;
  font: 0.78rem/1.25 "Chakra Petch", monospace;
  overflow-wrap: anywhere;
}

.support-key-copy-btn {
  min-height: 34px;
  padding: 0.34rem 0.56rem;
  border-radius: 8px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.support-copy-field {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(125, 224, 255, 0.2);
  border-radius: 8px;
  padding: 0.66rem;
  color: #d9e9ff;
  background: rgba(2, 7, 18, 0.76);
  font: 0.78rem/1.35 "Chakra Petch", monospace;
}

.support-copy-btn {
  width: 100%;
}

.support-legal-note {
  margin: 0.88rem 0 0;
  font-size: 0.78rem;
  text-align: left;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.72rem;
}

.section-head h3 {
  margin: 0;
}

.section-kicker {
  margin: 0 0 0.15rem;
  color: #88ecff;
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-hint {
  max-width: 28ch;
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  text-align: right;
}

.smart-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.46rem;
  margin: 0 0 0.88rem;
}

.smart-preset-btn {
  min-width: 0;
  min-height: 38px;
  border-radius: 10px;
  padding: 0.48rem 0.54rem;
  color: #dff5ff;
  background:
    linear-gradient(180deg, rgba(119, 217, 255, 0.11), rgba(255, 255, 255, 0.02)),
    rgba(6, 14, 31, 0.82);
  font-weight: 800;
  font-size: 0.86rem;
}

.smart-preset-btn:hover,
.smart-preset-btn.active {
  color: #05172b;
  border-color: rgba(124, 246, 223, 0.78);
  background: linear-gradient(110deg, #7bf4d9, #77d9ff);
  box-shadow: 0 10px 24px rgba(18, 196, 218, 0.16);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.style-field {
  position: relative;
}

label {
  color: #c9dcff;
  font-weight: 600;
}

select,
textarea,
input,
button {
  font: inherit;
}

select,
textarea,
input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 27, 0.95);
  color: var(--text);
  padding: 0.68rem;
}

select[size="1"] {
  min-height: 44px;
  height: 44px;
  line-height: 1.2;
}

textarea {
  resize: vertical;
}

.style-info-bubble {
  position: relative;
  margin-top: 0.45rem;
  border: 1px solid rgba(118, 211, 255, 0.42);
  border-radius: 14px;
  padding: 0.68rem 0.78rem 0.62rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 247, 255, 0.22), transparent 44%),
    linear-gradient(150deg, rgba(7, 16, 35, 0.97), rgba(9, 20, 42, 0.9));
  box-shadow: 0 10px 30px rgba(3, 10, 24, 0.5), inset 0 0 0 1px rgba(147, 213, 255, 0.12);
  display: grid;
  gap: 0.24rem;
  animation: style-bubble-in 220ms ease, style-bubble-float 3.4s ease-in-out infinite;
}

.style-info-bubble::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 18px;
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(118, 211, 255, 0.42);
  border-top: 1px solid rgba(118, 211, 255, 0.42);
  background: rgba(8, 18, 40, 0.95);
  transform: rotate(45deg);
}

.style-info-close {
  position: absolute;
  top: 0.36rem;
  right: 0.38rem;
  border: 1px solid rgba(151, 210, 255, 0.44);
  border-radius: 999px;
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  line-height: 1;
  color: #d8ecff;
  background: rgba(9, 20, 42, 0.84);
}

.style-info-title {
  margin-right: 1.6rem;
  color: #def5ff;
  font-weight: 700;
  font-size: 0.9rem;
}

.style-info-bpm {
  font-size: 0.88rem;
  color: #9bf3d4;
  font-weight: 700;
}

.style-info-summary {
  color: #d2e6ff;
  line-height: 1.34;
  font-size: 0.88rem;
}

.style-info-tip {
  font-size: 0.8rem;
  line-height: 1.28;
}

@keyframes style-bubble-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes style-bubble-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.auth-grid {
  display: grid;
  gap: 0.45rem;
}

.auth-local-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.1rem 0 0.25rem;
}

.auth-local-note span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0.48rem 0.6rem;
  border: 1px solid rgba(116, 239, 218, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(8, 18, 39, 0.82), rgba(7, 13, 29, 0.64));
  color: #dff8ff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.45rem 0 0.1rem;
  color: rgba(218, 231, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(137, 173, 255, 0.35), transparent);
}

.auth-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.auth-google-native-slot {
  grid-column: 1 / -1;
  min-height: 44px;
  display: grid;
  justify-items: center;
  align-items: center;
}

.auth-google-native-slot.hidden {
  display: none;
}

.auth-social-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.72rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(139, 178, 255, 0.26);
  background: rgba(10, 17, 34, 0.88);
  color: #edf5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.auth-social-btn:hover {
  border-color: rgba(116, 239, 218, 0.45);
  transform: translateY(-1px);
}

.auth-social-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.auth-social-btn.is-unconfigured:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.auth-social-btn.google {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(61, 139, 255, 0.1)),
    rgba(10, 17, 34, 0.9);
}

.auth-social-btn.apple {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(5, 8, 16, 0.94);
}

.auth-new-user-btn {
  min-width: min(100%, 260px);
  box-shadow:
    0 18px 44px rgba(97, 238, 226, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-new-user-hint {
  margin: -0.15rem 0 0.1rem;
  max-width: 62ch;
  color: rgba(210, 232, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.42;
}

.auth-provider-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f8fbff;
  color: #15213b;
  font-family: Inter, Manrope, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.auth-provider-mark.apple-mark {
  background: #f7f7f5;
  color: #05070d;
}

.auth-provider-hint {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.42;
}

.auth-feedback {
  min-height: 1.2rem;
}

.auth-standby-card {
  max-width: 720px;
}

.auth-standby-card .cta-row {
  justify-content: center;
}

.auth-standby-card .auth-new-user-btn {
  width: min(100%, 360px);
  min-height: 56px;
}

.auth-standby-card .auth-provider-hint {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(126, 218, 255, 0.24);
  border-radius: 10px;
  background: rgba(6, 16, 35, 0.64);
  color: rgba(224, 242, 255, 0.84);
}

.auth-standby-hidden {
  display: none !important;
}

.checkbox .checkline {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  background: rgba(5, 10, 22, 0.86);
}

.checkbox .checkline input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px;
  height: 18px !important;
  margin: 0;
  padding: 0 !important;
  border-radius: 4px;
  border: 1px solid rgba(133, 180, 255, 0.42);
  background: rgba(7, 15, 31, 0.95);
  accent-color: #3ca7ff;
  flex: 0 0 auto;
}

.checkbox .checkline span {
  width: 100%;
  min-width: 0;
  line-height: 1.35;
}

button {
  border: 1px solid rgba(150, 198, 255, 0.35);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  padding: 0.66rem 1rem;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 22px rgba(15, 30, 62, 0.35);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.floating-surprise-btn {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: calc(var(--signature-bar-height) + 0.9rem + env(safe-area-inset-bottom));
  z-index: 9995;
  min-height: 34px;
  max-width: min(150px, calc(100vw - 2rem));
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(123, 235, 255, 0.72);
  color: #041425;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.68rem, 0.78vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0;
  background:
    linear-gradient(110deg, #3effcf, #4bc8ff 52%, #7a8dff);
  box-shadow:
    0 16px 36px rgba(4, 12, 30, 0.45),
    0 0 22px rgba(75, 200, 255, 0.24);
  isolation: isolate;
  animation: floating-surprise-in 320ms ease both, floating-surprise-pulse 2.4s ease-in-out 520ms infinite;
}

.floating-surprise-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(223, 252, 255, 0.95);
  box-shadow:
    0 18px 40px rgba(4, 12, 30, 0.52),
    0 0 28px rgba(75, 200, 255, 0.32);
}

.floating-surprise-btn:disabled {
  animation: none;
}

.primary {
  border: none;
  color: #041425;
  font-weight: 700;
  background: linear-gradient(110deg, var(--accent-a), #4bc8ff 50%, #7a8dff);
}

.secondary {
  border: none;
  color: #1f1130;
  font-weight: 600;
  background: linear-gradient(110deg, #ffd07d, #ff9be9);
}

.large {
  width: fit-content;
  padding: 0.8rem 1.2rem;
  font-size: 1.02rem;
}

.danger {
  border-color: rgba(255, 95, 129, 0.5);
  color: #ffc5d1;
}

.cta-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.welcome-start-actions {
  justify-content: center;
}

.welcome-start-actions #startBtn {
  min-width: min(100%, 17rem);
}

.welcome-import-profile {
  color: #08172a !important;
}

.social-profile-card.hidden,
.social-profile-card[aria-hidden="true"] {
  display: none !important;
}

.quick-surprise-panel {
  margin-top: 0.65rem;
  border: 1px solid rgba(122, 211, 255, 0.36);
  border-radius: 14px;
  padding: 0.8rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(129, 255, 227, 0.14), transparent 40%),
    linear-gradient(148deg, rgba(8, 15, 35, 0.95), rgba(8, 19, 44, 0.9));
  display: grid;
  gap: 0.65rem;
}

.quick-surprise-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
}

.quick-surprise-hint {
  margin: 0;
  line-height: 1.42;
}

.quick-surprise-grid {
  display: grid;
  gap: 0.62rem;
}

.new-artists-panel {
  margin-top: 0.7rem;
  border: 1px solid rgba(110, 224, 255, 0.34);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(6, 13, 29, 0.92), rgba(8, 18, 40, 0.85));
  padding: 0.8rem;
}

.new-artists-panel h4 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.new-artists-list {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.new-artists-list li {
  color: #d8e9ff;
  line-height: 1.35;
}

.new-artists-list a {
  color: #81dcff;
  text-decoration: none;
}

.new-artists-list a:hover {
  text-decoration: underline;
}

.advanced-filters {
  margin-top: 0.72rem;
  border: 1px solid rgba(127, 209, 255, 0.22);
  border-radius: 12px;
  background: rgba(5, 11, 24, 0.54);
  overflow: hidden;
}

.advanced-filters summary {
  cursor: pointer;
  padding: 0.66rem 0.78rem;
  color: #c9e5ff;
  font-weight: 800;
  list-style: none;
}

.advanced-filters summary::-webkit-details-marker {
  display: none;
}

.advanced-filters summary::after {
  content: "+";
  float: right;
  color: #7bf4d9;
  font-weight: 800;
}

.advanced-filters[open] summary::after {
  content: "-";
}

.weights-panel {
  margin-top: 0;
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  border-radius: 0;
  background: rgba(5, 11, 24, 0.62);
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.weights-panel h4 {
  font-size: 0.95rem;
  color: #bfe8ff;
}

.weights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
}

.weight-item {
  display: grid;
  gap: 0.3rem;
}

.weight-item span {
  font-size: 0.86rem;
  color: #cae4ff;
}

.weight-item strong {
  color: #67ffd4;
}

.advanced-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.1rem;
}

.recommendation-actions {
  margin-top: 0.9rem;
  margin-inline: 0;
  padding: 0.44rem;
  border: 1px solid rgba(127, 209, 255, 0.2);
  border-radius: 13px;
  background: rgba(4, 10, 24, 0.58);
  backdrop-filter: blur(10px);
}

.is-recommending .recommendation-actions {
  border-color: rgba(124, 246, 223, 0.46);
  box-shadow: 0 12px 28px rgba(0, 8, 24, 0.32);
}

button.is-loading {
  position: relative;
  overflow: hidden;
}

button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-110%);
  animation: button-loading-sheen 1.05s linear infinite;
}

input[type="range"] {
  width: 100%;
  accent-color: #4cf6d1;
}

.result-card {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.86rem;
  background: rgba(8, 15, 33, 0.82);
  display: grid;
  gap: 0.48rem;
  box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.08);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 260ms ease;
}

.result-card.discovery {
  border-color: rgba(62, 255, 207, 0.45);
  opacity: 0.86;
}

.main-track {
  --swipe-x: 0px;
  --swipe-rotate: 0deg;
  --swipe-like-opacity: 0;
  --swipe-pass-opacity: 0;
  position: relative;
  border: 1px solid rgba(104, 211, 255, 0.42);
  background:
    radial-gradient(circle at 100% 0%, rgba(71, 183, 255, 0.1), transparent 36%),
    linear-gradient(160deg, rgba(8, 15, 33, 0.92), rgba(6, 14, 32, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(140, 196, 255, 0.1),
    0 8px 22px rgba(7, 24, 55, 0.34);
  padding: 0.92rem;
  cursor: grab;
  touch-action: pan-y;
  transform: translateX(var(--swipe-x)) rotate(var(--swipe-rotate));
}

.main-track::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(125deg, rgba(93, 233, 255, 0.85), rgba(126, 160, 255, 0.35), rgba(93, 233, 255, 0.85));
  z-index: -1;
  filter: blur(2px);
  opacity: 0.24;
}

.main-track.fresh {
  animation: fresh-pulse 950ms ease;
}

.main-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.main-track.is-like {
  border-color: rgba(110, 255, 220, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(110, 255, 220, 0.16),
    0 18px 42px rgba(70, 255, 211, 0.16);
}

.main-track.is-pass {
  border-color: rgba(255, 143, 180, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 143, 180, 0.16),
    0 18px 42px rgba(255, 108, 160, 0.16);
}

.main-track.is-accepted {
  transform: translateX(120%) rotate(16deg);
}

.main-track.is-rejected {
  transform: translateX(-120%) rotate(-16deg);
}

.main-track h4 {
  font-size: clamp(1.78rem, 3.7vw, 2.72rem);
  line-height: 1;
  letter-spacing: 0;
  margin-top: 0.15rem;
}

.primary-swipe-hint {
  width: fit-content;
  margin: 0.04rem 0 0;
  border: 1px solid rgba(126, 214, 255, 0.24);
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  color: #bff8ff;
  background: rgba(4, 12, 28, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.now-playing-genre {
  display: grid;
  gap: 0.26rem;
  width: min(100%, 680px);
  margin: 0.06rem 0 0.16rem;
  border: 1px solid rgba(126, 255, 231, 0.42);
  border-radius: 12px;
  padding: clamp(0.68rem, 1.6vw, 0.92rem) clamp(0.74rem, 2vw, 1rem);
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 255, 231, 0.16), transparent 46%),
    linear-gradient(135deg, rgba(4, 18, 31, 0.94), rgba(5, 10, 26, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(18, 230, 204, 0.08);
}

.now-playing-genre.hidden {
  display: none;
}

.now-playing-genre > span:first-child {
  color: #96f8ff;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.now-playing-genre strong {
  min-width: 0;
  color: #f6ffff;
  font-family: "Syne", sans-serif;
  font-size: var(--now-playing-style-size, clamp(1.56rem, 5.2vw, 2.72rem));
  font-weight: 900;
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-wrap: balance;
  text-shadow: 0 0 24px rgba(126, 255, 231, 0.22);
}

.now-playing-genre strong.is-long-word {
  --now-playing-style-size: clamp(1.34rem, 4.7vw, 2.28rem);
}

.now-playing-genre strong.is-long-label {
  --now-playing-style-size: clamp(1.24rem, 4.3vw, 2.04rem);
  line-height: 1.02;
}

.now-playing-genre small {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.48rem;
  align-items: center;
  color: rgba(222, 242, 255, 0.86);
  font-size: clamp(0.82rem, 1.7vw, 0.98rem);
  font-weight: 850;
  line-height: 1.22;
}

.now-playing-genre[data-family="psytrance"],
.now-playing-genre[data-family="trance"] {
  border-color: rgba(188, 132, 255, 0.54);
  background:
    radial-gradient(circle at 0% 0%, rgba(188, 132, 255, 0.22), transparent 48%),
    radial-gradient(circle at 94% 18%, rgba(115, 255, 229, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(13, 8, 38, 0.94), rgba(4, 13, 27, 0.86));
}

.now-playing-genre[data-family="techno"] {
  border-color: rgba(125, 224, 255, 0.54);
  background:
    radial-gradient(circle at 0% 0%, rgba(125, 224, 255, 0.2), transparent 46%),
    linear-gradient(135deg, rgba(4, 16, 28, 0.94), rgba(8, 11, 24, 0.88));
}

.now-playing-genre[data-family="house"] {
  border-color: rgba(255, 216, 125, 0.52);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 216, 125, 0.18), transparent 46%),
    radial-gradient(circle at 96% 20%, rgba(126, 255, 190, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(20, 18, 10, 0.92), rgba(4, 16, 26, 0.86));
}

.now-playing-genre[data-family="dnb"],
.now-playing-genre[data-family="bass_music"] {
  border-color: rgba(255, 133, 180, 0.5);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 133, 180, 0.18), transparent 44%),
    radial-gradient(circle at 94% 18%, rgba(118, 205, 255, 0.13), transparent 36%),
    linear-gradient(135deg, rgba(24, 8, 28, 0.94), rgba(5, 12, 26, 0.88));
}

.now-playing-genre[data-family="leftfield"],
.now-playing-genre[data-family="hard_dance"] {
  border-color: rgba(255, 245, 102, 0.48);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 245, 102, 0.16), transparent 44%),
    radial-gradient(circle at 96% 18%, rgba(116, 255, 218, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(22, 18, 6, 0.92), rgba(4, 10, 24, 0.88));
}

.recommendation-why-panel {
  display: grid;
  gap: 0.48rem;
  border: 1px solid rgba(126, 214, 255, 0.32);
  border-radius: 10px;
  padding: 0.68rem;
  background:
    linear-gradient(135deg, rgba(6, 20, 39, 0.88), rgba(7, 12, 30, 0.82)),
    rgba(5, 14, 31, 0.7);
}

.recommendation-trust-panel {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.36rem 0.56rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.18rem 0 0.68rem;
  border: 1px solid rgba(110, 255, 220, 0.28);
  border-radius: 10px;
  padding: 0.48rem 0.62rem;
  background: linear-gradient(135deg, rgba(10, 36, 44, 0.78), rgba(4, 14, 31, 0.84));
  box-shadow: 0 12px 32px rgba(10, 255, 213, 0.07);
}

.recommendation-trust-panel.hidden {
  display: none;
}

.recommendation-trust-panel span {
  color: #bdf8ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recommendation-trust-panel strong {
  color: #7fffe1;
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.recommendation-trust-panel[data-level="medium"] {
  border-color: rgba(125, 224, 255, 0.32);
  box-shadow: 0 12px 32px rgba(125, 224, 255, 0.06);
}

.recommendation-trust-panel[data-level="medium"] strong {
  color: #9ee8ff;
}

.recommendation-trust-panel[data-level="low"] {
  border-color: rgba(255, 208, 125, 0.34);
  box-shadow: 0 12px 32px rgba(255, 208, 125, 0.06);
}

.recommendation-trust-panel[data-level="low"] strong {
  color: #ffe0a3;
}

.recommendation-trust-panel small {
  min-width: 0;
  color: rgba(219, 238, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.recommendation-trust-panel.compact {
  grid-template-columns: auto auto;
  width: 100%;
  margin: 0.14rem 0 0.46rem;
}

.recommendation-trust-panel.compact small {
  grid-column: 1 / -1;
}

.recommendation-why-title {
  margin: 0;
  color: #7df1ff;
  font-family: "Syne", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.recommendation-why-text {
  margin: 0;
  max-width: 74ch;
  color: #e6f2ff;
  font-size: clamp(0.96rem, 1.75vw, 1.06rem);
  font-weight: 650;
  line-height: 1.52;
  text-wrap: pretty;
}

.recommendation-why-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.recommendation-why-chip {
  border: 1px solid rgba(126, 214, 255, 0.26);
  border-radius: 999px;
  padding: 0.28rem 0.54rem;
  color: #dcecff;
  background: rgba(12, 26, 55, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.recommendation-why-chip.confidence {
  border-color: rgba(110, 255, 220, 0.42);
  color: #cffff4;
  background: rgba(24, 88, 76, 0.36);
}

.track-title-animated {
  color: #f4fbff;
  background: linear-gradient(90deg, #f4fbff 0%, #89eeff 30%, #f4fbff 55%, #a6bcff 78%, #f4fbff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: title-shimmer 7s linear 1;
  text-shadow: 0 0 12px rgba(126, 214, 255, 0.2);
}

@keyframes title-shimmer {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 220% center;
  }
}

.generated-badge {
  position: absolute;
  top: -11px;
  right: 12px;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  color: #041427;
  background: linear-gradient(90deg, #6effdc, #74e9ff);
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  box-shadow: 0 5px 14px rgba(93, 233, 255, 0.32);
  animation: badge-breathe 3.8s ease-in-out infinite;
}

.chip {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  color: #021726;
  background: #5de9ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.main-track .chip {
  animation: chip-pop 640ms ease;
}

.artist-visual-card {
  margin: 0.4rem 0 0.15rem;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  max-width: min(100%, 500px);
  padding: 0.42rem;
  border: 1px solid rgba(123, 233, 255, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 255, 220, 0.1), transparent 48%),
    linear-gradient(135deg, rgba(5, 13, 31, 0.7), rgba(10, 25, 52, 0.52));
  box-shadow: inset 0 0 0 1px rgba(145, 221, 255, 0.06);
}

.artist-photo-frame {
  position: relative;
  width: 64px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(141, 232, 255, 0.44);
  background:
    radial-gradient(circle at 28% 22%, rgba(111, 255, 219, 0.55), transparent 42%),
    linear-gradient(145deg, rgba(32, 77, 119, 0.92), rgba(32, 24, 84, 0.84));
  display: grid;
  place-items: center;
}

.artist-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-photo-fallback {
  font-family: "Syne", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #061529;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.2);
}

.artist-visual-card figcaption {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
}

.artist-visual-card figcaption span {
  color: var(--cyan);
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artist-visual-card figcaption strong {
  color: #f2f7ff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.artist-photo-name-wrap,
.artist-line {
  align-items: center;
}

.artist-photo-name-wrap {
  display: inline-flex;
  gap: 0.44rem;
  min-width: 0;
}

.artist-origin-flag {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 1.72em;
  height: 1.72em;
  border: 1px solid rgba(125, 241, 255, 0.36);
  border-radius: 999px;
  background: rgba(9, 22, 48, 0.78);
  box-shadow: 0 0 18px rgba(93, 226, 255, 0.2);
  font-size: 0.76em;
  line-height: 1;
}

.artist-origin-flag.hidden {
  display: none;
}

.artist-visual-card figcaption small {
  color: #bfd4f4;
  font-size: 0.78rem;
}

.chip.alt {
  background: #9bffb7;
}

#spiritBadge {
  background: linear-gradient(90deg, #7bffd8, #8be8ff, #f8b5ff, #7bffd8);
  background-size: 230% auto;
  animation: celebration-breathe 2.1s ease-in-out infinite, celebration-shimmer 4.4s linear infinite;
}

.meta-line {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  color: #d5e7ff;
  font-size: 0.95rem;
}

.artist-line {
  font-size: clamp(1.08rem, 2.4vw, 1.48rem);
  font-weight: 700;
  color: #f2f8ff;
  text-shadow: 0 0 22px rgba(126, 214, 255, 0.24);
}

.bpm-line {
  font-size: clamp(1rem, 2.2vw, 1.34rem);
  font-weight: 700;
}

.artist-line.flash,
.bpm-line.flash {
  animation: line-flash 760ms ease;
}

.meta-line.muted {
  color: var(--muted);
}

.genre-guide-panel {
  margin: 0.18rem 0 0.05rem;
  border: 1px solid rgba(103, 255, 212, 0.32);
  border-radius: 8px;
  padding: 0.58rem 0.68rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 255, 212, 0.11), transparent 44%),
    rgba(4, 13, 29, 0.58);
}

.genre-guide-title {
  margin: 0 0 0.18rem;
  color: #8dfce9;
  font-family: "Syne", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
}

.genre-guide-text {
  margin: 0;
  line-height: 1.42;
  font-size: 0.9rem;
}

.listening-narrative {
  margin: 0.25rem 0 0.05rem;
  border: 1px solid rgba(123, 224, 255, 0.32);
  border-radius: 11px;
  padding: 0.55rem 0.65rem;
  color: #dff4ff;
  font-size: 0.9rem;
  line-height: 1.4;
  background:
    radial-gradient(circle at 100% 0%, rgba(109, 255, 220, 0.12), transparent 42%),
    rgba(8, 17, 35, 0.84);
}

.listening-narrative.typing::after {
  content: "";
  display: inline-block;
  width: 0.52ch;
  height: 1em;
  margin-left: 0.08ch;
  vertical-align: -0.1em;
  background: rgba(130, 225, 255, 0.95);
  animation: bio-cursor 820ms steps(1, end) infinite;
}

.listen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.player-wrap {
  margin-top: 0.55rem;
}

.auto-player {
  width: 100%;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 6, 16, 0.9);
}

.auto-audio {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 16, 0.9);
}

.preview-play-btn {
  width: fit-content;
  min-width: 172px;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border: 1px solid rgba(113, 245, 222, 0.68);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(55, 237, 216, 0.95), rgba(125, 153, 255, 0.94));
  color: #06111c;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(47, 216, 205, 0.18);
}

.preview-play-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.preview-panel {
  margin-top: 0.6rem;
  padding: 0.72rem;
  border: 1px solid rgba(116, 233, 255, 0.34);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(6, 16, 33, 0.94), rgba(7, 18, 39, 0.82));
  display: grid;
  gap: 0.5rem;
}

.preview-panel.has-fixed-embeds {
  border-color: rgba(101, 255, 220, 0.48);
  box-shadow: 0 0 22px rgba(59, 214, 196, 0.12);
}

.youtube-preview,
.soundcloud-preview,
.bandcamp-preview {
  width: 100%;
  border: 1px solid rgba(124, 221, 255, 0.32);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2, 6, 16, 0.92);
}

.youtube-preview::before,
.soundcloud-preview::before,
.bandcamp-preview::before {
  display: block;
  padding: 0.36rem 0.62rem;
  border-bottom: 1px solid rgba(124, 221, 255, 0.18);
  color: rgba(226, 249, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(102, 216, 255, 0.12), rgba(2, 6, 16, 0));
}

.youtube-preview::before {
  content: "YouTube";
}

.soundcloud-preview::before {
  content: "SoundCloud";
}

.bandcamp-preview::before {
  content: "Bandcamp";
}

.youtube-preview-frame,
.soundcloud-preview-frame,
.bandcamp-preview-frame {
  width: 100%;
  border: 0;
  display: block;
  background: rgba(2, 6, 16, 0.92);
}

.youtube-preview-frame {
  aspect-ratio: 16 / 9;
}

.soundcloud-preview-frame {
  height: 166px;
}

.bandcamp-preview-frame {
  height: 130px;
}

.youtube-preview-actions,
.preview-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.youtube-preview-actions .secondary,
.preview-source-actions .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.soundcloud-inline-btn,
.soundcloud-search-link {
  border-color: rgba(255, 145, 86, 0.46);
  color: #ffe2d1;
  background:
    linear-gradient(135deg, rgba(255, 96, 44, 0.18), rgba(7, 14, 31, 0.78)),
    rgba(5, 11, 24, 0.78);
}

.bandcamp-inline-btn {
  border-color: rgba(60, 220, 255, 0.46);
  color: #d9f8ff;
  background:
    linear-gradient(135deg, rgba(37, 165, 201, 0.2), rgba(7, 14, 31, 0.78)),
    rgba(5, 11, 24, 0.78);
}

.listeners-panel {
  margin-top: 0.45rem;
  border: 1px solid rgba(255, 208, 125, 0.35);
  border-radius: 12px;
  padding: 0.7rem;
  display: grid;
  gap: 0.45rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 208, 125, 0.18), transparent 52%),
    linear-gradient(160deg, rgba(11, 19, 36, 0.9), rgba(9, 17, 33, 0.82));
}

.listeners-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffd07d;
  letter-spacing: 0.01em;
}

.listeners-subtitle {
  font-size: 0.9rem;
}

.listeners-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.45rem;
}

.listener-item {
  border: 1px solid rgba(155, 206, 255, 0.3);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: rgba(7, 14, 30, 0.85);
  display: grid;
  gap: 0.15rem;
  animation: listener-in 320ms ease both;
}

.listener-name {
  color: #f2f8ff;
  font-weight: 700;
  font-size: 0.98rem;
}

.listener-meta {
  color: #aed7ff;
  font-size: 0.84rem;
}

.top-listeners-panel {
  border-color: rgba(118, 224, 255, 0.4);
  background:
    radial-gradient(circle at 100% 0%, rgba(107, 255, 222, 0.16), transparent 48%),
    linear-gradient(165deg, rgba(8, 17, 35, 0.92), rgba(7, 14, 30, 0.85));
}

.top-listeners-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.top-listener-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  border: 1px solid rgba(153, 206, 255, 0.28);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: rgba(7, 14, 30, 0.86);
  animation: listener-in 320ms ease both;
}

.top-listener-rank {
  min-width: 52px;
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #062034;
  background: linear-gradient(90deg, #7bf4d9, #7de0ff);
}

.top-listener-main {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.top-listener-name {
  color: #eef8ff;
  font-weight: 700;
  font-size: 0.9rem;
}

.top-listener-meta {
  color: #9fc9f6;
  font-size: 0.8rem;
  line-height: 1.25;
}

.track-ai-panel {
  margin-top: 0.5rem;
  border: 1px solid rgba(126, 214, 255, 0.34);
  border-radius: 12px;
  padding: 0.68rem;
  display: grid;
  gap: 0.45rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(110, 255, 220, 0.12), transparent 38%),
    linear-gradient(160deg, rgba(6, 14, 31, 0.94), rgba(8, 16, 35, 0.86));
}

.track-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.track-ai-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #aef2ff;
}

.track-ai-text {
  margin: 0;
  color: #e7f5ff;
  line-height: 1.42;
}

.track-ai-meta {
  margin: 0;
  font-size: 0.81rem;
  color: #9fc9f6;
}

.suggestion-queue {
  border-color: rgba(120, 241, 255, 0.42);
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 214, 255, 0.08), transparent 54%),
    linear-gradient(162deg, rgba(7, 15, 32, 0.86), rgba(8, 17, 38, 0.78));
}

.taste-tuning-card {
  border-color: rgba(112, 255, 218, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(104, 255, 218, 0.12), transparent 46%),
    linear-gradient(162deg, rgba(7, 15, 32, 0.88), rgba(8, 17, 38, 0.78));
}

.taste-tuning-head {
  display: grid;
  gap: 0.14rem;
}

.taste-tuning-title {
  margin: 0;
  color: #e7fbff;
  font-weight: 800;
}

.taste-tuning-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.taste-tune-btn {
  min-width: 0;
  min-height: 42px;
  padding: 0.58rem 0.68rem;
  border-radius: 11px;
  border-color: rgba(151, 205, 255, 0.34);
  background: rgba(8, 17, 35, 0.72);
  color: #e9f7ff;
  font-size: 0.9rem;
}

.taste-tune-btn:hover {
  border-color: rgba(110, 255, 220, 0.72);
  background: rgba(12, 33, 48, 0.9);
}

.voice-lab-panel {
  border-color: rgba(119, 232, 255, 0.34);
  background:
    linear-gradient(150deg, rgba(7, 13, 29, 0.96), rgba(10, 22, 38, 0.86));
}

.voice-lab-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.voice-lab-head h3 {
  margin: 0.08rem 0 0;
}

.voice-lab-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 0.88rem;
  align-items: start;
}

.voice-recorder-card,
.voice-effects-card {
  border: 1px solid rgba(136, 205, 255, 0.22);
  border-radius: 10px;
  padding: 0.86rem;
  background: rgba(6, 13, 29, 0.72);
  box-shadow: inset 0 0 0 1px rgba(132, 245, 226, 0.055);
}

.voice-recorder-card {
  display: grid;
  gap: 0.72rem;
  align-content: start;
}

.voice-visual {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  border-radius: 10px;
  border: 1px solid rgba(123, 224, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 22, 42, 0.78), rgba(6, 13, 29, 0.82));
  overflow: hidden;
}

.voice-visual span {
  width: 8px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #78f1ff, #64ffd1);
  box-shadow: 0 0 18px rgba(105, 244, 226, 0.22);
  transform-origin: center;
  animation: voice-idle-bars 1.4s ease-in-out infinite;
}

.voice-visual span:nth-child(2) {
  height: 34px;
  animation-delay: -0.22s;
}

.voice-visual span:nth-child(3) {
  height: 48px;
  animation-delay: -0.46s;
}

.voice-visual span:nth-child(4) {
  height: 30px;
  animation-delay: -0.68s;
}

.voice-visual span:nth-child(5) {
  height: 24px;
  animation-delay: -0.88s;
}

.voice-lab-panel.is-recording .voice-visual span {
  animation-duration: 0.58s;
}

.voice-status {
  margin: 0;
  min-height: 1.3rem;
  color: #ddfbff;
  font-weight: 700;
}

.voice-meter {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(126, 214, 255, 0.2);
  background: rgba(1, 7, 18, 0.72);
}

.voice-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #52ffd2, #77d7ff, #f7a7ff);
  transition: width 180ms ease;
}

.voice-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.voice-controls button {
  min-height: 42px;
}

.voice-download {
  width: fit-content;
}

.voice-effects-card {
  display: grid;
  align-content: start;
  gap: 0.64rem;
}

.voice-effects-title {
  margin: 0;
  color: #e7fbff;
  font-weight: 800;
}

.voice-effect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.voice-effect-btn {
  min-height: 46px;
  border-color: rgba(151, 205, 255, 0.28);
  background: rgba(8, 17, 35, 0.72);
  color: #e9f7ff;
}

.voice-effect-btn.active,
.voice-effect-btn[aria-pressed="true"] {
  border-color: rgba(100, 255, 209, 0.76);
  background: linear-gradient(145deg, rgba(16, 57, 60, 0.92), rgba(14, 28, 56, 0.86));
  box-shadow: 0 0 0 1px rgba(111, 255, 219, 0.18), 0 10px 26px rgba(0, 13, 28, 0.32);
}

.voice-mini-card {
  grid-column: 1 / -1;
  margin-top: 0.18rem;
  border: 1px solid rgba(126, 214, 255, 0.32);
  border-radius: 16px;
  padding: clamp(0.78rem, 1.6vw, 1rem);
  background:
    radial-gradient(circle at 0% 0%, rgba(100, 255, 209, 0.16), transparent 36%),
    radial-gradient(circle at 100% 18%, rgba(247, 167, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(5, 14, 32, 0.92), rgba(4, 10, 25, 0.78));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 0.72rem;
  align-items: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 18px 42px rgba(0, 10, 28, 0.2);
}

.voice-mini-hint,
.voice-mini-status {
  margin: 0.12rem 0 0;
  line-height: 1.35;
}

.voice-mini-status {
  grid-column: 1 / -1;
}

.voice-mini-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.5rem;
  grid-column: 2;
  grid-row: 1;
}

.voice-mini-controls button {
  min-height: 42px;
}

.voice-mini-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
  grid-column: 1 / -1;
}

.voice-mini-preset-btn {
  min-height: 54px;
  border-radius: 10px;
  border-color: rgba(151, 205, 255, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 225, 255, 0.1), transparent 42%),
    rgba(7, 15, 32, 0.8);
  color: #ddecff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.08;
}

.voice-mini-preset-btn:hover {
  border-color: rgba(110, 255, 220, 0.7);
  color: #f2fdff;
  background:
    radial-gradient(circle at 50% 0%, rgba(110, 255, 220, 0.16), transparent 42%),
    rgba(10, 28, 45, 0.92);
}

.voice-mini-preset-btn.active,
.voice-mini-preset-btn[aria-pressed="true"] {
  border-color: rgba(100, 255, 209, 0.82);
  color: #061124;
  background: linear-gradient(120deg, #6effdc, #7cb2ff);
  box-shadow: 0 10px 24px rgba(73, 217, 255, 0.18);
}

.voice-bpm-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 0.7rem;
  align-items: center;
  padding: 0.58rem 0.68rem;
  border: 1px solid rgba(126, 214, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(9, 24, 48, 0.72), rgba(2, 8, 20, 0.56));
}

.voice-bpm-control span {
  color: #bfdbff;
  font-size: 0.86rem;
  font-weight: 800;
}

.voice-bpm-control strong {
  color: #8ff6e5;
  font-size: 0.92rem;
  font-weight: 900;
}

.voice-bpm-control input {
  grid-column: 1 / -1;
  width: 100%;
}

.voice-select-control select {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(126, 214, 255, 0.26);
  border-radius: 10px;
  color: #f1fbff;
  font: inherit;
  font-weight: 800;
  background:
    linear-gradient(145deg, rgba(11, 28, 55, 0.96), rgba(5, 12, 28, 0.92));
  padding: 0.54rem 0.62rem;
  outline: none;
}

.voice-select-control option {
  color: #061124;
  background: #e9f7ff;
}

.voice-select-control strong {
  max-width: 100%;
  text-align: right;
  white-space: normal;
}

.voice-mini-card > .voice-bpm-control {
  grid-column: span 1;
}

.voice-mini-mixer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.44rem;
  grid-column: 1 / -1;
}

.voice-knob-control {
  min-width: 0;
  display: grid;
  gap: 0.32rem;
  justify-items: center;
  padding: 0.58rem 0.48rem;
  border: 1px solid rgba(126, 214, 255, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(119, 215, 255, 0.12), transparent 48%),
    rgba(2, 8, 20, 0.54);
}

.voice-knob-control span {
  max-width: 100%;
  overflow: hidden;
  color: #bfdbff;
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-knob-control strong {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(118, 244, 218, 0.38);
  border-radius: 50%;
  color: #8ff6e5;
  background:
    radial-gradient(circle at 50% 38%, rgba(123, 255, 216, 0.2), transparent 52%),
    rgba(3, 10, 22, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 0 18px rgba(123, 255, 216, 0.08);
}

.voice-knob-control input {
  width: 100%;
}

.voice-presence-control {
  border-color: rgba(247, 167, 255, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 167, 255, 0.12), transparent 38%),
    rgba(2, 8, 20, 0.5);
}

.voice-length-control {
  border-color: rgba(125, 178, 255, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 178, 255, 0.14), transparent 40%),
    linear-gradient(145deg, rgba(8, 22, 48, 0.72), rgba(2, 8, 20, 0.56));
}

.voice-length-control strong {
  color: #a8cfff;
}

.voice-groove-control {
  border-color: rgba(255, 214, 125, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 125, 0.14), transparent 40%),
    linear-gradient(145deg, rgba(20, 20, 38, 0.72), rgba(2, 8, 20, 0.56));
}

.voice-groove-control strong {
  color: #ffd77d;
}

.voice-daw-pad-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.42rem;
  grid-column: 1 / -1;
}

.voice-daw-pad {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 0.14rem;
  padding: 0.74rem 0.36rem;
  border-color: rgba(100, 255, 209, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 225, 255, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(12, 32, 55, 0.88), rgba(8, 15, 33, 0.84));
  color: #ecfbff;
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.02;
}

.voice-daw-pad::after {
  content: attr(data-state-label);
  display: block;
  color: #9fd5ff;
  font-family: "Inter", sans-serif;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.82;
}

.voice-daw-pad.active,
.voice-daw-pad[aria-pressed="true"] {
  border-color: rgba(100, 255, 209, 0.88);
  color: #061124;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.42), transparent 46%),
    linear-gradient(110deg, #6effdc, #7cb2ff);
  box-shadow:
    0 0 0 1px rgba(100, 255, 209, 0.18),
    0 12px 30px rgba(73, 217, 255, 0.24),
    0 0 22px rgba(100, 255, 209, 0.22);
}

.voice-daw-pad.active::after,
.voice-daw-pad[aria-pressed="true"]::after {
  color: rgba(6, 17, 36, 0.72);
  opacity: 1;
}

.voice-daw-pad:disabled::after {
  color: rgba(213, 231, 255, 0.5);
}

.voice-lab-panel.is-mini-playing .voice-daw-pad.active,
.voice-lab-panel.is-mini-playing .voice-daw-pad[aria-pressed="true"] {
  animation: voice-pad-pulse 920ms ease-in-out infinite;
}

.voice-daw-pad:active {
  transform: translateY(1px) scale(0.98);
  border-color: rgba(126, 255, 219, 0.88);
  box-shadow: 0 0 22px rgba(93, 233, 255, 0.22);
}

.voice-step-sequencer {
  display: grid;
  gap: 0.36rem;
  padding: 0.55rem;
  border: 1px solid rgba(126, 214, 255, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 255, 220, 0.08), transparent 44%),
    rgba(2, 8, 20, 0.5);
  grid-column: 1 / -1;
}

.voice-step-row {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.42rem;
  align-items: center;
}

.voice-step-row > span {
  color: #bfdbff;
  font-size: 0.76rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-step-buttons {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.28rem;
}

.voice-step-btn {
  min-height: 28px;
  padding: 0;
  border-radius: 7px;
  border-color: rgba(151, 205, 255, 0.22);
  background: rgba(7, 15, 32, 0.78);
  color: rgba(202, 221, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
}

.voice-step-btn.active,
.voice-step-btn[aria-pressed="true"] {
  border-color: rgba(100, 255, 209, 0.84);
  color: #061124;
  background: linear-gradient(120deg, #6effdc, #7cb2ff);
  box-shadow: 0 0 14px rgba(100, 255, 209, 0.2);
}

.voice-step-btn:active {
  transform: translateY(1px) scale(0.96);
}

.voice-lab-panel.is-mini-playing .voice-visual {
  border-color: rgba(100, 255, 209, 0.58);
  box-shadow: 0 0 0 1px rgba(100, 255, 209, 0.12), inset 0 0 28px rgba(100, 255, 209, 0.08);
}

.voice-lab-panel.is-mini-playing .voice-visual span {
  animation-duration: 0.42s;
  background: linear-gradient(180deg, #f7a7ff, #77d7ff 50%, #52ffd2);
}

@keyframes voice-pad-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-1px) scale(1.015);
    filter: brightness(1.08);
  }
}

.queue-head {
  display: grid;
  gap: 0.12rem;
}

.dj-mode-card {
  border-color: rgba(155, 255, 183, 0.32);
}

.dj-mode-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.dj-mode-list {
  display: grid;
  gap: 0.48rem;
}

.dj-step {
  display: grid;
  grid-template-columns: 6.8rem minmax(0, 1fr);
  gap: 0.28rem 0.58rem;
  align-items: center;
  border: 1px solid rgba(126, 214, 255, 0.18);
  border-radius: 10px;
  padding: 0.54rem;
  background: rgba(5, 14, 31, 0.58);
}

.dj-step-label {
  grid-row: span 2;
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.54rem;
  color: #062030;
  background: linear-gradient(90deg, #9bffb7, #74e9ff);
  font-size: 0.76rem;
  font-weight: 800;
}

.dj-step-track,
.dj-step-meta,
.dj-mode-status {
  margin: 0;
}

.dj-step-track {
  color: #f2f8ff;
  font-weight: 800;
}

.dj-step-meta {
  color: #aebee1;
  font-size: 0.86rem;
}

.queue-title {
  margin: 0;
  color: #dff4ff;
  font-weight: 700;
}

.suggestion-queue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.46rem;
}

.queue-item {
  border: 1px solid rgba(153, 206, 255, 0.36);
  border-radius: 9px;
  padding: 0.48rem 0.52rem;
  display: grid;
  gap: 0.3rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(136, 163, 255, 0.08), transparent 44%),
    rgba(7, 14, 31, 0.82);
}

.queue-item.active {
  border-color: rgba(105, 249, 221, 0.82);
  box-shadow: 0 0 0 1px rgba(105, 249, 221, 0.3), 0 10px 22px rgba(7, 25, 44, 0.46);
}

.queue-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.32rem;
}

.queue-chip {
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.13rem 0.42rem;
  color: #06182c;
  background: linear-gradient(90deg, #84f8ff, #8be8ff);
}

.queue-chip.alt {
  background: linear-gradient(90deg, #8efec0, #72f0d6);
}

.queue-track {
  color: #eef8ff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  min-height: 2rem;
}

.queue-meta {
  margin: 0;
  color: #9fc9f6;
  font-size: 0.76rem;
}

.queue-action {
  justify-self: start;
  padding: 0.32rem 0.64rem;
  font-size: 0.76rem;
}

.known-prompt {
  margin-top: 0.65rem;
  border: 1px solid rgba(62, 255, 207, 0.35);
  border-radius: 12px;
  padding: 0.7rem;
  display: grid;
  gap: 0.45rem;
  background: rgba(6, 16, 28, 0.82);
}

.quick-known-panel {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.72rem;
  padding: clamp(0.74rem, 1.8vw, 0.95rem);
  border: 1px solid rgba(126, 232, 198, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(126, 232, 198, 0.14), rgba(138, 199, 255, 0.07) 46%, rgba(255, 208, 125, 0.06)),
    rgba(5, 12, 24, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 36px rgba(0, 0, 0, 0.18);
}

.quick-known-panel.is-pending {
  border-color: rgba(126, 232, 198, 0.72);
  box-shadow:
    0 0 0 1px rgba(126, 232, 198, 0.2),
    0 16px 38px rgba(47, 232, 201, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.quick-known-copy {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.quick-known-kicker {
  margin: 0;
  color: #92ffe3;
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-known-question {
  margin: 0;
  color: #f5fbff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.quick-known-hint {
  margin: 0;
  color: #b8c7dc;
  font-size: 0.9rem;
  line-height: 1.34;
}

.quick-known-question.compact {
  margin-top: -0.1rem;
  font-size: clamp(0.92rem, 1.45vw, 1.05rem);
  line-height: 1.18;
}

.quick-known-hint.compact {
  color: #91a7c3;
  font-size: 0.8rem;
}

.correction-feedback-group.is-pending {
  border-color: rgba(126, 232, 198, 0.48);
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 232, 198, 0.12), transparent 44%),
    rgba(4, 12, 25, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 32px rgba(47, 232, 201, 0.08);
}

.correction-feedback-group.is-answered .quick-known-hint {
  color: #ffdca3;
}

.correction-buttons button.active {
  border-color: rgba(255, 208, 125, 0.82);
  box-shadow: 0 0 0 2px rgba(255, 208, 125, 0.16);
}

.quick-known-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.54rem;
}

.quick-known-btn {
  min-height: 58px;
  width: 100%;
  border-radius: 8px;
  padding: 0.72rem 0.64rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  font-weight: 900;
  line-height: 1.05;
  white-space: normal;
  touch-action: manipulation;
}

.quick-known-btn.known {
  color: #eaf6ff;
  border-color: rgba(138, 199, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(138, 199, 255, 0.16), rgba(17, 28, 52, 0.86)),
    rgba(7, 14, 27, 0.92);
}

.quick-known-btn.new {
  color: #06130f;
  border-color: rgba(126, 232, 198, 0.8);
  background: linear-gradient(105deg, #7ee8c6, #8ac7ff 72%, #ffd07d);
  box-shadow: 0 12px 26px rgba(126, 232, 198, 0.14);
}

.quick-known-btn:hover,
.quick-known-btn:focus-visible {
  transform: translateY(-1px);
}

.quick-known-btn.active {
  opacity: 1;
  border-color: rgba(255, 208, 125, 0.86);
  box-shadow: 0 0 0 2px rgba(255, 208, 125, 0.18), 0 14px 30px rgba(255, 208, 125, 0.1);
}

.quick-known-btn:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.quick-known-btn.active:disabled {
  opacity: 1;
}

.spotify-btn {
  background: #1db954;
  border-color: #1db954;
  color: #02160a;
  font-weight: 700;
}

.youtube-btn {
  background: #ff3b30;
  border-color: #ff3b30;
  color: #230302;
  font-weight: 700;
}

.soundcloud-btn {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #2a0f00;
  font-weight: 700;
}

.bandcamp-btn {
  background: #1da0c3;
  border-color: #1da0c3;
  color: #03131a;
  font-weight: 700;
}

.celebrate {
  animation: celebrate-glow 580ms ease;
}

@keyframes celebrate-glow {
  0% {
    box-shadow: 0 0 0 rgba(62, 255, 207, 0);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(62, 255, 207, 0.55), 0 0 24px rgba(62, 255, 207, 0.45);
  }
  100% {
    box-shadow: 0 0 0 rgba(62, 255, 207, 0);
  }
}

@keyframes star-wave {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.05);
  }
}

@keyframes star-twinkle {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 206, 128, 0);
  }
  50% {
    text-shadow: 0 0 16px rgba(255, 206, 128, 0.62);
  }
}

@keyframes celebration-breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(93, 233, 255, 0.26);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(93, 233, 255, 0.42);
  }
}

@keyframes celebration-shimmer {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 230% center;
  }
}

@keyframes floating-surprise-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floating-surprise-pulse {
  0%,
  100% {
    box-shadow:
      0 16px 36px rgba(4, 12, 30, 0.45),
      0 0 20px rgba(75, 200, 255, 0.22);
  }
  50% {
    box-shadow:
      0 18px 40px rgba(4, 12, 30, 0.5),
      0 0 30px rgba(62, 255, 207, 0.34);
  }
}

@keyframes button-loading-sheen {
  to {
    transform: translateX(110%);
  }
}

.listen-btn {
  border: 1px solid rgba(166, 208, 255, 0.35);
  border-radius: 999px;
  padding: 0.56rem 0.92rem;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  font-weight: 700;
}

.listen-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.listen-btn.disabled-link {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.35);
}

.listen-btn.unverified-link {
  border-style: dashed;
  border-color: rgba(255, 206, 142, 0.7);
}

.feedback-grid {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.78rem;
  border-top: 1px solid rgba(141, 173, 214, 0.22);
  padding-top: 0.75rem;
}

.feedback-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.feedback-section-head h3 {
  margin: 0;
}

.feedback-hint {
  max-width: 34ch;
  margin: 0.2rem 0 0;
  text-align: right;
}

.feedback-refinement-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
  gap: 0.62rem;
  align-items: start;
}

.feedback-refinement-layout > * {
  min-width: 0;
  align-self: start;
}

.swipe-start-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(0.8rem, 1.8vw, 1.15rem);
  border-color: rgba(126, 246, 223, 0.34);
  background:
    radial-gradient(circle at 16% 6%, rgba(110, 255, 220, 0.18), transparent 32%),
    radial-gradient(circle at 100% 96%, rgba(255, 151, 219, 0.12), transparent 38%),
    linear-gradient(150deg, rgba(7, 16, 36, 0.94), rgba(6, 13, 31, 0.88));
}

.swipe-start-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr);
  gap: 0.72rem;
  align-items: end;
}

.swipe-start-head h3 {
  margin: 0.16rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2.28rem);
  line-height: 1.02;
}

.swipe-start-stage {
  display: grid;
  gap: 0.72rem;
  width: min(100%, 880px);
  margin-inline: auto;
}

.swipe-hero-card {
  min-height: clamp(320px, 46vw, 430px);
  grid-template-columns: minmax(168px, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  padding: clamp(1rem, 2.8vw, 1.6rem);
  background:
    radial-gradient(circle at 18% 22%, rgba(119, 255, 221, 0.26), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(128, 178, 255, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(9, 24, 52, 0.98), rgba(4, 9, 24, 0.92));
  box-shadow:
    0 22px 58px rgba(0, 8, 22, 0.34),
    inset 0 0 0 1px rgba(151, 233, 255, 0.08);
}

.swipe-hero-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(115, 240, 255, 0.08) 36% 37%, transparent 37% 100%),
    repeating-linear-gradient(90deg, rgba(145, 216, 255, 0.055) 0 1px, transparent 1px 54px);
  opacity: 0.72;
}

.swipe-hero-art {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(126, 246, 223, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(126, 246, 223, 0.48), transparent 24%),
    conic-gradient(from 30deg, rgba(126, 246, 223, 0.86), rgba(124, 178, 255, 0.52), rgba(255, 151, 219, 0.54), rgba(126, 246, 223, 0.86));
  box-shadow:
    0 0 42px rgba(93, 233, 255, 0.2),
    inset 0 0 34px rgba(4, 10, 24, 0.74);
}

.swipe-hero-art::before,
.swipe-hero-art::after {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(220, 246, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.swipe-hero-art::after {
  inset: 32%;
  border-color: rgba(255, 151, 219, 0.28);
}

.swipe-hero-image {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.06);
  box-shadow: 0 0 22px rgba(4, 10, 24, 0.5);
}

.swipe-hero-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(4, 12, 28, 0.88);
  font-family: "Syne", sans-serif;
  font-size: clamp(2.3rem, 7vw, 4rem);
  font-weight: 900;
}

.swipe-hero-copy {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.swipe-hero-copy h4 {
  max-width: 11ch;
  font-size: clamp(2.1rem, 6.2vw, 4.8rem);
  line-height: 0.92;
}

.swipe-hero-copy .muted {
  max-width: 48ch;
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
}

.swipe-hero-card.is-empty .swipe-hero-art {
  opacity: 0.78;
}

.swipe-hero-card.is-empty .swipe-hero-copy h4 {
  max-width: 12ch;
}

.swipe-hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr) minmax(0, 0.95fr);
  gap: 0.52rem;
}

.swipe-hero-actions button {
  min-width: 0;
  min-height: 54px;
  border-radius: 999px;
}

.swipe-like-count-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.42rem;
  min-width: 0;
}

.swipe-like-count-wrap .swipe-action-btn {
  width: 100%;
}

.swipe-hero-surprise {
  box-shadow: 0 14px 30px rgba(93, 233, 255, 0.18);
}

.swipe-feedback-deck {
  display: grid;
  gap: 0.62rem;
  padding: clamp(0.7rem, 1.3vw, 0.95rem);
  border: 1px solid rgba(126, 214, 255, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 255, 220, 0.12), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(255, 157, 224, 0.1), transparent 38%),
    rgba(3, 10, 25, 0.72);
}

.swipe-track-card {
  --swipe-x: 0px;
  --swipe-rotate: 0deg;
  --swipe-like-opacity: 0;
  --swipe-pass-opacity: 0;
  position: relative;
  min-height: 172px;
  display: grid;
  align-content: center;
  gap: 0.48rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border: 1px solid rgba(139, 236, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(123, 255, 216, 0.14), transparent 42%),
    linear-gradient(315deg, rgba(126, 178, 255, 0.16), rgba(10, 19, 42, 0.86)),
    rgba(4, 11, 28, 0.92);
  box-shadow: 0 20px 52px rgba(0, 8, 22, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transform: translateX(var(--swipe-x)) rotate(var(--swipe-rotate));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.swipe-track-card:active,
.swipe-track-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.swipe-track-card.is-like {
  border-color: rgba(110, 255, 220, 0.72);
  box-shadow: 0 22px 58px rgba(70, 255, 211, 0.16), inset 0 0 0 1px rgba(110, 255, 220, 0.12);
}

.swipe-track-card.is-pass {
  border-color: rgba(255, 143, 180, 0.72);
  box-shadow: 0 22px 58px rgba(255, 108, 160, 0.16), inset 0 0 0 1px rgba(255, 143, 180, 0.12);
}

.swipe-track-card.is-accepted {
  transform: translateX(120%) rotate(16deg);
}

.swipe-track-card.is-rejected {
  transform: translateX(-120%) rotate(-16deg);
}

.swipe-kicker {
  margin: 0;
  color: #9fffea;
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swipe-track-card h4 {
  margin: 0;
  color: #f1fbff;
  font-size: clamp(1.28rem, 3vw, 2.08rem);
  line-height: 1.02;
}

.swipe-track-card .muted {
  margin: 0;
  max-width: 64ch;
}

.swipe-track-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.swipe-track-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(141, 197, 255, 0.26);
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  color: #dcecff;
  background: rgba(8, 17, 35, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.swipe-track-signals span.genre-signal {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 48px;
  min-width: min(100%, 148px);
  border-color: rgba(126, 255, 231, 0.46);
  padding: 0.34rem 0.72rem 0.38rem;
  color: #f5ffff;
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 255, 231, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(7, 24, 39, 0.92), rgba(7, 12, 28, 0.88));
  font-family: "Syne", sans-serif;
  font-size: clamp(0.96rem, 2vw, 1.12rem);
  font-weight: 900;
  line-height: 1.02;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.swipe-track-signals span.genre-signal::before {
  content: attr(data-label);
  margin-bottom: 0.16rem;
  color: #8ffff0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.swipe-track-signals span.genre-signal[data-family="psytrance"],
.swipe-track-signals span.genre-signal[data-family="trance"] {
  border-color: rgba(188, 132, 255, 0.58);
  background:
    radial-gradient(circle at 0% 0%, rgba(188, 132, 255, 0.2), transparent 46%),
    linear-gradient(135deg, rgba(15, 8, 38, 0.94), rgba(5, 13, 28, 0.88));
}

.swipe-track-signals span.genre-signal[data-family="house"] {
  border-color: rgba(255, 216, 125, 0.58);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 216, 125, 0.18), transparent 46%),
    linear-gradient(135deg, rgba(25, 18, 8, 0.94), rgba(5, 15, 26, 0.88));
}

.swipe-track-signals span.genre-signal[data-family="techno"] {
  border-color: rgba(125, 224, 255, 0.58);
}

.swipe-track-signals span.genre-signal[data-family="dnb"],
.swipe-track-signals span.genre-signal[data-family="bass_music"] {
  border-color: rgba(255, 133, 180, 0.54);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 133, 180, 0.18), transparent 46%),
    linear-gradient(135deg, rgba(24, 8, 28, 0.94), rgba(5, 12, 26, 0.88));
}

.swipe-stamp {
  position: absolute;
  top: 1rem;
  z-index: 1;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.92rem, 2vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(4, 11, 28, 0.74);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  transition: opacity 120ms ease, transform 160ms ease, box-shadow 160ms ease;
  pointer-events: none;
}

.swipe-stamp-like {
  right: 1rem;
  color: #7bffd8;
  opacity: var(--swipe-like-opacity, 0);
  transform: rotate(10deg);
}

.swipe-stamp-pass {
  left: 1rem;
  color: #ff93bc;
  opacity: var(--swipe-pass-opacity, 0);
  transform: rotate(-10deg);
}

.swipe-track-card.is-ready.is-like .swipe-stamp-like,
.main-track.is-ready.is-like .swipe-stamp-like {
  box-shadow: 0 16px 38px rgba(110, 255, 220, 0.24), 0 0 0 4px rgba(110, 255, 220, 0.1);
  transform: rotate(8deg) scale(1.08);
}

.swipe-track-card.is-ready.is-pass .swipe-stamp-pass,
.main-track.is-ready.is-pass .swipe-stamp-pass {
  box-shadow: 0 16px 38px rgba(255, 143, 188, 0.24), 0 0 0 4px rgba(255, 143, 188, 0.1);
  transform: rotate(-8deg) scale(1.08);
}

.primary-swipe-stamp {
  top: 2.15rem;
  font-size: clamp(0.94rem, 2vw, 1.2rem);
}

.swipe-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.correction-feedback-group {
  display: none;
}

.swipe-action-btn {
  min-height: 46px;
  border-radius: 999px;
  font-family: "Syne", sans-serif;
  font-weight: 900;
}

.swipe-action-btn.pass {
  border-color: rgba(255, 143, 180, 0.5);
  color: #ffd6e4;
  background: linear-gradient(135deg, rgba(80, 17, 42, 0.66), rgba(8, 15, 33, 0.86));
}

.swipe-action-btn.like {
  border-color: rgba(110, 255, 220, 0.66);
  color: #061124;
  background: linear-gradient(110deg, #6effdc, #7cb2ff);
}

.swipe-hint {
  margin: 0;
  font-size: 0.88rem;
}

.rating-panel {
  border: 1px solid rgba(134, 191, 255, 0.28);
  border-radius: 12px;
  padding: 0.65rem 0.72rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(93, 233, 255, 0.14), transparent 38%),
    rgba(8, 16, 35, 0.82);
  display: grid;
  gap: 0.42rem;
  align-content: start;
}

.rating-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.rating-title {
  font-weight: 700;
  color: #def2ff;
}

.rating-celebration {
  margin: 0;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  color: #072030;
  font-weight: 700;
  font-size: 0.82rem;
  background: linear-gradient(90deg, #7bffd8, #8be8ff, #f8b5ff, #7bffd8);
  background-size: 230% auto;
  animation: celebration-breathe 2.1s ease-in-out infinite, celebration-shimmer 4.4s linear infinite;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.star-btn {
  min-width: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(143, 197, 255, 0.32);
  background: linear-gradient(170deg, rgba(7, 16, 34, 0.9), rgba(10, 20, 43, 0.92));
  color: #607ba1;
  font-size: 1.72rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  animation: star-wave 1.8s ease-in-out infinite, star-twinkle 3.2s ease-in-out infinite;
}

.star-btn:nth-child(1) { animation-delay: 0s, 0s; }
.star-btn:nth-child(2) { animation-delay: 0.12s, 0.12s; }
.star-btn:nth-child(3) { animation-delay: 0.24s, 0.24s; }
.star-btn:nth-child(4) { animation-delay: 0.36s, 0.36s; }
.star-btn:nth-child(5) { animation-delay: 0.48s, 0.48s; }

.star-btn.active {
  color: #ffd77d;
  border-color: rgba(255, 211, 135, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 216, 129, 0.35), 0 0 16px rgba(255, 196, 110, 0.3);
}

.star-btn:hover {
  color: #ffdca1;
}

.star-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.45);
}

.feedback-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.feedback-buttons button {
  min-height: 40px;
  width: 100%;
  border-radius: 10px;
  padding-inline: 0.72rem;
  font-size: clamp(0.78rem, 0.72rem + 0.18vw, 0.92rem);
  line-height: 1.12;
  white-space: normal;
}

.recommendation-issue-buttons {
  margin-top: 0.55rem;
}

.recommendation-issue-buttons button {
  min-height: 36px;
  border-color: rgba(138, 199, 255, 0.34);
  background: rgba(5, 13, 25, 0.54);
  color: rgba(230, 245, 255, 0.86);
  font-size: clamp(0.69rem, 0.66rem + 0.12vw, 0.78rem);
}

.recommendation-issue-buttons button:hover,
.recommendation-issue-buttons button:focus-visible {
  border-color: rgba(126, 232, 198, 0.68);
  color: #f7ffff;
}

.correction-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.correction-buttons button {
  min-height: 48px;
}

.correction-buttons .positive {
  color: #06130f;
  border-color: rgba(126, 232, 198, 0.78);
  background: linear-gradient(105deg, #7ee8c6, #8ac7ff 72%, #ffd07d);
  font-weight: 800;
}

.correction-buttons .danger {
  grid-column: span 1;
}

.correction-buttons #blockArtistBtn {
  grid-column: 1 / -1;
}

.feedback-actions-panel {
  display: grid;
  gap: 0.56rem;
}

.feedback-action-group {
  display: grid;
  gap: 0.42rem;
  padding: 0.62rem;
  border: 1px solid rgba(125, 224, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(125, 224, 255, 0.07), transparent 46%),
    rgba(4, 12, 29, 0.62);
}

.feedback-action-group.explore {
  border-color: rgba(255, 198, 123, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 198, 123, 0.1), rgba(255, 141, 230, 0.07)),
    rgba(4, 12, 29, 0.62);
}

.feedback-group-title {
  margin: 0;
  color: #99f7e7;
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feedback-message {
  position: relative;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.62rem 0.78rem 0.62rem 2.15rem;
  border: 1px solid rgba(123, 244, 217, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(123, 244, 217, 0.11), rgba(119, 151, 255, 0.08)),
    rgba(4, 12, 29, 0.68);
  color: #d6ffee;
  font-weight: 600;
  line-height: 1.35;
}

.feedback-message:empty {
  display: none;
}

.feedback-message::before {
  position: absolute;
  left: 0.78rem;
  top: 50%;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: #7bffd8;
  box-shadow: 0 0 14px rgba(123, 255, 216, 0.65);
  content: "";
  transform: translateY(-50%);
}

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 9999;
  min-width: 260px;
  max-width: min(90vw, 680px);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 211, 255, 0.45);
  background: linear-gradient(145deg, rgba(11, 22, 45, 0.95), rgba(7, 16, 35, 0.98));
  color: #e9f7ff;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(5, 12, 28, 0.6);
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  animation: toast-in-out 2600ms ease forwards;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 46%, rgba(111, 235, 255, 0.08), transparent 36%),
    rgba(3, 8, 18, 0.7);
  backdrop-filter: blur(8px);
}

.search-card {
  position: relative;
  width: min(560px, 92vw);
  border-radius: 16px;
  border: 1px solid rgba(126, 214, 255, 0.32);
  background:
    linear-gradient(90deg, transparent, rgba(126, 246, 255, 0.08), transparent) 0 0 / 220% 100%,
    radial-gradient(circle at 0% 0%, rgba(113, 255, 222, 0.08), transparent 38%),
    linear-gradient(165deg, rgba(8, 15, 33, 0.97), rgba(6, 12, 26, 0.94));
  box-shadow: 0 24px 60px rgba(4, 10, 24, 0.62);
  padding: 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.82rem 0.9rem;
  overflow: hidden;
  animation: search-card-scan 2.8s linear infinite;
}

.search-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 9px
    );
  mix-blend-mode: screen;
  opacity: 0.22;
}

.search-visual {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  align-self: start;
}

.search-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(98, 237, 255, 0.92);
  position: relative;
  box-shadow: 0 0 18px rgba(98, 237, 255, 0.25);
  animation: search-float 1.35s ease-in-out infinite, search-lens-pulse 1.4s ease-in-out infinite;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(98, 237, 255, 0.95);
  right: -12px;
  bottom: -2px;
  transform: rotate(40deg);
}

.search-rings,
.search-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.search-rings span {
  border: 1px solid rgba(116, 227, 255, 0.18);
  transform: scale(0.52);
  animation: search-ring 1.85s ease-out infinite;
}

.search-rings span:nth-child(2) {
  animation-delay: 0.42s;
}

.search-rings span:nth-child(3) {
  animation-delay: 0.84s;
}

.search-wave {
  position: absolute;
  right: -3px;
  bottom: 5px;
  display: flex;
  align-items: end;
  gap: 2px;
  height: 22px;
}

.search-wave span {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #83fff0, #79c8ff);
  opacity: 0.86;
  animation: search-eq 0.74s ease-in-out infinite;
}

.search-wave span:nth-child(2) { animation-delay: 0.08s; }
.search-wave span:nth-child(3) { animation-delay: 0.16s; }
.search-wave span:nth-child(4) { animation-delay: 0.24s; }
.search-wave span:nth-child(5) { animation-delay: 0.32s; }
.search-wave span:nth-child(6) { animation-delay: 0.4s; }
.search-wave span:nth-child(7) { animation-delay: 0.48s; }

.search-copy {
  min-width: 0;
  align-self: center;
}

.search-stage-label {
  margin: 0 0 0.16rem;
  color: #79f5e2;
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-card h4 {
  margin: 0;
  font-size: 1.15rem;
}

.search-card p {
  margin: 0;
  color: #cfe7ff;
}

.search-progress-track {
  grid-column: 1 / -1;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.search-progress-fill {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(100deg, #48ffd6, #5fc5ff 55%, #8da4ff);
  box-shadow: 0 0 14px rgba(80, 209, 255, 0.45);
  transition: width 220ms ease;
}

.search-stage-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.search-stage-list span {
  min-width: 0;
  border: 1px solid rgba(151, 205, 255, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.42rem;
  color: #88a8ca;
  background: rgba(4, 12, 27, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.search-stage-list span.complete {
  color: #8df8e0;
  border-color: rgba(108, 244, 218, 0.3);
}

.search-stage-list span.active {
  color: #041425;
  border-color: rgba(124, 246, 223, 0.86);
  background: linear-gradient(110deg, #7bf4d9, #77d9ff);
  box-shadow: 0 8px 20px rgba(31, 215, 229, 0.18);
}

.quiz-bubble {
  position: fixed;
  right: 16px;
  bottom: calc(var(--signature-bar-height) + 12px + env(safe-area-inset-bottom));
  z-index: 9996;
  width: min(380px, calc(100vw - 24px));
  border-radius: 14px;
  border: 1px solid rgba(129, 215, 255, 0.42);
  background:
    radial-gradient(circle at 88% 18%, rgba(114, 255, 214, 0.18), transparent 36%),
    linear-gradient(150deg, rgba(6, 13, 31, 0.95), rgba(9, 18, 42, 0.9));
  box-shadow: 0 20px 42px rgba(5, 11, 26, 0.58);
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.65rem;
  animation: quiz-bubble-in 260ms ease;
}

.quiz-bubble p {
  margin: 0;
  color: #d7ecff;
  line-height: 1.35;
  font-weight: 600;
}

.quiz-bubble-actions {
  display: flex;
  gap: 0.48rem;
  flex-wrap: wrap;
}

.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 18, 0.66);
  backdrop-filter: blur(7px);
}

.quiz-card {
  width: min(640px, 94vw);
  border-radius: 18px;
  border: 1px solid rgba(126, 214, 255, 0.36);
  background:
    radial-gradient(circle at 84% 14%, rgba(122, 255, 223, 0.14), transparent 30%),
    linear-gradient(165deg, rgba(8, 15, 33, 0.97), rgba(7, 14, 32, 0.94));
  box-shadow: 0 24px 60px rgba(4, 10, 24, 0.62);
  padding: 1rem;
  display: grid;
  gap: 0.62rem;
}

.quiz-kicker {
  margin: 0;
  color: #7cd9ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.quiz-card h4 {
  margin: 0;
  font-size: clamp(1.28rem, 2.4vw, 1.52rem);
}

.quiz-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.quiz-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(100deg, #48ffd6, #5fc5ff 55%, #8da4ff);
  box-shadow: 0 0 14px rgba(80, 209, 255, 0.45);
  transition: width 200ms ease;
}

.quiz-question {
  margin: 0.12rem 0 0;
  font-weight: 700;
  color: #e7f4ff;
  line-height: 1.38;
}

.quiz-options {
  display: grid;
  gap: 0.42rem;
}

.quiz-option {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(138, 194, 255, 0.3);
  background: linear-gradient(165deg, rgba(11, 21, 42, 0.88), rgba(7, 14, 30, 0.92));
  color: #dbecff;
  text-align: left;
  line-height: 1.33;
  padding: 0.62rem 0.74rem;
}

.quiz-option.active {
  border-color: rgba(112, 242, 218, 0.8);
  box-shadow: inset 0 0 0 1px rgba(118, 243, 221, 0.4), 0 0 18px rgba(78, 208, 255, 0.18);
}

.quiz-option.correct {
  border-color: rgba(122, 255, 171, 0.84);
  background: linear-gradient(165deg, rgba(13, 32, 30, 0.92), rgba(8, 24, 29, 0.9));
}

.quiz-option.wrong {
  border-color: rgba(255, 149, 149, 0.75);
  background: linear-gradient(165deg, rgba(34, 16, 24, 0.92), rgba(26, 11, 18, 0.9));
}

.quiz-feedback {
  min-height: 1.24rem;
  margin: 0.1rem 0 0;
  line-height: 1.35;
}

.quiz-feedback.correct {
  color: #91ffcc;
}

.quiz-feedback.wrong {
  color: #ffbcc5;
}

.quiz-actions {
  margin-top: 0.2rem;
}

@keyframes quiz-bubble-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-in-out {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  12%,
  78% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}

.confetti {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9998;
  animation: confetti-pop 820ms ease-out forwards;
}

@keyframes confetti-pop {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.35) rotate(240deg);
    opacity: 0;
  }
}

@keyframes search-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes search-card-scan {
  to {
    background-position: 220% 0, 0 0, 0 0;
  }
}

@keyframes search-lens-pulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(98, 237, 255, 0.24);
  }
  50% {
    box-shadow: 0 0 28px rgba(98, 237, 255, 0.42);
  }
}

@keyframes search-ring {
  from {
    opacity: 0.76;
    transform: scale(0.46);
  }
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes search-eq {
  0%,
  100% {
    height: 7px;
    opacity: 0.58;
  }
  50% {
    height: 22px;
    opacity: 1;
  }
}

@keyframes fresh-pulse {
  0% {
    transform: scale(0.995);
    box-shadow: 0 0 0 rgba(96, 211, 255, 0);
  }
  45% {
    transform: scale(1.01);
    box-shadow:
      inset 0 0 0 1px rgba(140, 196, 255, 0.2),
      0 0 0 2px rgba(96, 211, 255, 0.5),
      0 0 46px rgba(96, 211, 255, 0.48);
  }
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 0 0 1px rgba(140, 196, 255, 0.2),
      0 18px 42px rgba(7, 24, 55, 0.55);
  }
}

@keyframes line-flash {
  0% {
    filter: brightness(1);
    transform: translateY(0);
  }
  45% {
    filter: brightness(1.16);
    transform: translateY(-2px);
  }
  100% {
    filter: brightness(1);
    transform: translateY(0);
  }
}

@keyframes listener-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.details-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.artist-hub-panel,
.events-hub-panel {
  border-color: rgba(125, 224, 255, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(110, 255, 220, 0.08), transparent 44%),
    rgba(8, 15, 33, 0.82);
}

.artist-hub-intro {
  max-width: 64ch;
  margin-top: -0.25rem;
}

.details-grid article {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.75rem;
  background: rgba(7, 13, 30, 0.92);
  display: grid;
  gap: 0.4rem;
}

.details-card {
  transition: transform 240ms ease, box-shadow 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.details-card h4 {
  margin: 0;
}

.details-panel-reveal .details-card {
  animation: details-rise 420ms ease;
}

.details-card.artist-focus {
  border-color: rgba(110, 255, 220, 0.85);
  background:
    radial-gradient(circle at 10% 0%, rgba(110, 255, 220, 0.14), transparent 60%),
    rgba(7, 13, 30, 0.96);
  box-shadow: 0 0 0 1px rgba(110, 255, 220, 0.28), 0 16px 36px rgba(5, 16, 34, 0.52);
  transform: translateY(-1px);
}

.artist-socials {
  margin-top: 0.3rem;
  border-top: 1px solid rgba(141, 173, 214, 0.28);
  padding-top: 0.6rem;
}

.discogs-artist-panel {
  margin-top: 0.62rem;
  border: 1px solid rgba(155, 206, 255, 0.32);
  border-radius: 10px;
  padding: 0.64rem;
  display: grid;
  gap: 0.32rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 255, 220, 0.1), transparent 46%),
    rgba(7, 14, 31, 0.72);
}

.discogs-title {
  margin: 0;
  color: #e8f6ff;
  font-weight: 800;
}

.discogs-hint {
  margin: 0;
  font-size: 0.82rem;
}

.discogs-link {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(155, 206, 255, 0.52);
  color: #d8efff;
  text-decoration: none;
  padding: 0.32rem 0.78rem;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(9, 18, 37, 0.94);
}

.discogs-link:hover {
  border-color: rgba(110, 255, 220, 0.82);
  background: rgba(11, 30, 45, 0.96);
}

.socials-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e8f6ff;
}

.socials-hint {
  margin: 0.18rem 0 0.5rem;
  font-size: 0.82rem;
}

.artist-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(155, 206, 255, 0.48);
  background: rgba(9, 18, 37, 0.92);
  color: #d8efff;
  text-decoration: none;
  padding: 0.28rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.social-link:hover {
  border-color: rgba(110, 255, 220, 0.8);
  background: rgba(11, 30, 45, 0.95);
  transform: translateY(-1px);
}

#artistBio.bio-typing {
  white-space: normal;
}

#artistBio.bio-typing::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 0.1ch;
  vertical-align: -0.1em;
  background: rgba(130, 225, 255, 0.95);
  animation: bio-cursor 820ms steps(1, end) infinite;
}

.artist-ai-meta {
  margin: 12px 0 0;
  font-size: clamp(0.78rem, 0.76rem + 0.22vw, 0.95rem);
  color: var(--muted-strong);
}

.events-calendar {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.event-date-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  background: rgba(7, 13, 30, 0.92);
  display: grid;
  gap: 0.2rem;
}

.event-date-card strong {
  color: #7bf4d9;
}

.event-source {
  width: fit-content;
  color: #91b9e8;
  font-size: 0.72rem;
}

.events-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.event-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(7, 13, 30, 0.92);
  display: grid;
  gap: 0.3rem;
}

.event-item a {
  color: #9de6ff;
  text-decoration: none;
}

.event-item a:hover {
  text-decoration: underline;
}

.event-search-card {
  grid-column: 1 / -1;
  border: 1px solid rgba(126, 232, 198, 0.34);
  border-radius: 12px;
  padding: 0.78rem;
  background:
    linear-gradient(135deg, rgba(126, 232, 198, 0.1), rgba(138, 199, 255, 0.08)),
    rgba(7, 13, 30, 0.92);
  display: grid;
  gap: 0.46rem;
}

.event-search-card strong {
  color: #dffdf7;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.98rem, 1.8vw, 1.18rem);
  line-height: 1.08;
}

.event-search-card span {
  color: rgba(230, 242, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.35;
}

.event-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.event-search-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 206, 255, 0.42);
  border-radius: 8px;
  padding: 0.36rem 0.72rem;
  color: #e4f7ff;
  background: rgba(9, 18, 37, 0.9);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.05;
}

.event-search-actions a:hover {
  border-color: rgba(126, 232, 198, 0.76);
  color: #07100e;
  background: linear-gradient(110deg, #7ee8c6, #8ac7ff);
  text-decoration: none;
}

.spirit-panel {
  border-color: rgba(123, 247, 255, 0.45);
  background:
    radial-gradient(circle at 14% 0%, rgba(118, 233, 255, 0.2), transparent 42%),
    radial-gradient(circle at 92% 20%, rgba(255, 146, 218, 0.13), transparent 38%),
    linear-gradient(150deg, rgba(5, 12, 28, 0.97), rgba(12, 20, 44, 0.91));
  position: relative;
  overflow: hidden;
}

.spirit-panel > * {
  position: relative;
  z-index: 1;
}

.spirit-panel:not(.unlock-pulse)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(120, 235, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(120, 235, 255, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 18%, black 0%, transparent 72%);
  opacity: 0.36;
}

.spirit-panel.unlock-pulse::before {
  content: "";
  position: absolute;
  inset: -35% -10%;
  background:
    radial-gradient(circle at 25% 50%, rgba(110, 255, 220, 0.42), transparent 34%),
    radial-gradient(circle at 72% 45%, rgba(128, 194, 255, 0.38), transparent 32%),
    radial-gradient(circle at 52% 68%, rgba(255, 155, 233, 0.28), transparent 40%);
  pointer-events: none;
  filter: blur(16px);
  animation: spirit-unlock-pulse 1050ms ease;
}

.spirit-panel.unlock-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 22%, rgba(117, 236, 255, 0.28) 48%, transparent 74%);
  transform: translateX(-120%);
  pointer-events: none;
  animation: spirit-sweep 900ms ease;
}

.spirit-card {
  margin-top: 0.7rem;
  border: 1px solid rgba(130, 238, 255, 0.42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 18%, rgba(111, 255, 229, 0.22), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(137, 154, 255, 0.19), transparent 36%),
    radial-gradient(circle at 76% 86%, rgba(255, 138, 219, 0.12), transparent 36%),
    linear-gradient(155deg, rgba(3, 9, 23, 0.98), rgba(8, 19, 42, 0.91));
  padding: clamp(1rem, 2.4vw, 1.5rem);
  display: grid;
  grid-template-columns: minmax(270px, 410px) minmax(340px, 1fr);
  gap: clamp(1rem, 2.4vw, 1.7rem);
  align-items: start;
  box-shadow:
    0 24px 70px rgba(1, 8, 24, 0.72),
    0 0 42px rgba(86, 228, 255, 0.13),
    inset 0 0 0 1px rgba(186, 247, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.spirit-card::before,
.spirit-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.spirit-card::before {
  inset: -22% -12%;
  background:
    conic-gradient(from 160deg at 33% 48%, transparent 0deg, rgba(113, 255, 224, 0.25) 56deg, transparent 112deg, rgba(119, 166, 255, 0.16) 184deg, transparent 256deg, rgba(255, 138, 223, 0.16) 318deg, transparent 360deg);
  filter: blur(10px);
  opacity: 0.54;
}

.spirit-card::after {
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(191, 251, 255, 0.08);
  box-shadow: inset 0 0 54px rgba(117, 239, 255, 0.05);
}

.spirit-card > * {
  position: relative;
  z-index: 1;
}

.spirit-card.reveal {
  animation: spirit-card-in 640ms ease both;
}

.spirit-avatar-wrap {
  width: min(100%, 340px);
  justify-self: center;
  align-self: start;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(158, 244, 255, 0.55);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(111, 255, 224, 0.3), transparent 34%),
    radial-gradient(circle at 50% 78%, rgba(255, 142, 225, 0.16), transparent 32%),
    linear-gradient(150deg, rgba(2, 8, 22, 0.98), rgba(12, 29, 62, 0.92));
  box-shadow:
    0 0 54px rgba(89, 232, 255, 0.28),
    0 28px 68px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  isolation: isolate;
}

.spirit-avatar-wrap::before,
.spirit-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  pointer-events: none;
}

.spirit-avatar-wrap::before {
  inset: -18%;
  border: 0;
  background:
    conic-gradient(from 90deg, transparent, rgba(117, 255, 227, 0.48), transparent 31%, rgba(255, 149, 224, 0.38), transparent 62%, rgba(120, 166, 255, 0.42), transparent);
  filter: blur(10px);
  opacity: 0.72;
  animation: spirit-orbit 18s linear infinite;
  z-index: -1;
}

.spirit-avatar-wrap::after {
  inset: 9%;
  border: 1px solid rgba(190, 255, 247, 0.34);
  box-shadow:
    0 0 0 1px rgba(120, 170, 255, 0.18),
    0 0 36px rgba(108, 255, 224, 0.18),
    inset 0 0 42px rgba(95, 235, 255, 0.08);
  animation: spirit-orbit-reverse 16s linear infinite;
}

.spirit-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  padding: clamp(0.3rem, 0.9vw, 0.58rem);
  transform-origin: 50% 60%;
  animation: spirit-float 3.6s ease-in-out infinite;
  filter: saturate(1.22) contrast(1.08) drop-shadow(0 0 24px rgba(97, 255, 229, 0.24));
  position: relative;
  z-index: 1;
}

.spirit-avatar.asset-fallback,
.spirit-collectible-image.asset-fallback {
  object-fit: contain;
  background: rgba(4, 10, 24, 0.92);
}

.spirit-copy {
  display: grid;
  align-self: center;
  align-content: start;
  gap: 0.58rem;
  min-width: 0;
  padding: clamp(0.2rem, 0.8vw, 0.55rem) 0 clamp(0.2rem, 0.8vw, 0.55rem) clamp(0.85rem, 1.6vw, 1.2rem);
  border-left: 1px solid rgba(139, 255, 222, 0.34);
  background: linear-gradient(90deg, rgba(132, 232, 255, 0.08), transparent 72%);
  border-radius: 0 16px 16px 0;
}

.spirit-name {
  font-size: clamp(2rem, 4.8vw, 3.45rem);
  line-height: 0.98;
  background: linear-gradient(90deg, #f5fbff 0%, #79efff 35%, #f5fbff 68%, #a8baff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: spirit-title-shimmer 4.4s linear infinite;
}

.spirit-archetype {
  color: #8cf5d4;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.spirit-description {
  color: #eef9ff;
  line-height: 1.52;
  font-size: clamp(0.98rem, 1.28vw, 1.08rem);
  max-width: 58ch;
  overflow-wrap: anywhere;
  word-break: normal;
}

.spirit-description.typing::after {
  content: "";
  display: inline-block;
  width: 0.5ch;
  height: 1em;
  margin-left: 0.1ch;
  vertical-align: -0.14em;
  background: rgba(132, 231, 255, 0.96);
  animation: spirit-cursor 820ms steps(1, end) infinite;
}

.spirit-progress {
  grid-column: 1 / -1;
  color: #9ad2ff;
  font-weight: 600;
}

.spirit-insight-panel {
  margin-top: 0.72rem;
  border: 1px solid rgba(123, 221, 255, 0.28);
  border-radius: 12px;
  padding: 0.74rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 255, 220, 0.11), transparent 34%),
    rgba(7, 15, 34, 0.82);
  display: grid;
  gap: 0.54rem;
}

.spirit-insight-panel.locked {
  border-color: rgba(151, 205, 255, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(119, 215, 255, 0.09), transparent 36%),
    rgba(7, 15, 34, 0.72);
}

.spirit-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.spirit-insight-head .chip {
  white-space: nowrap;
}

.spirit-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(126, 214, 255, 0.18);
  background: rgba(1, 7, 18, 0.74);
}

.spirit-progress-track span {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55ffd2, #76dcff, #caa0ff);
  transition: width 360ms ease;
}

.spirit-vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.52rem;
  margin: 0.1rem 0 0.06rem;
}

.spirit-vital-card {
  min-width: 0;
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 0.42rem;
  padding: 0.72rem;
  border: 1px solid rgba(135, 220, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(14, 34, 66, 0.7), rgba(5, 12, 28, 0.68)),
    rgba(3, 9, 22, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026);
  position: relative;
  overflow: hidden;
}

.spirit-vital-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #7fffdc, #7dcfff, #ff9de8);
  opacity: 0.76;
}

.spirit-vital-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(126, 255, 224, 0.72), transparent);
  opacity: 0.36;
}

.spirit-vital-card span {
  color: #8ff6e5;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.spirit-vital-card strong {
  color: #f4fbff;
  font-family: "Syne", sans-serif;
  font-size: 1.02rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.spirit-vital-card small {
  color: #aacff5;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
}

.spirit-vitals-grid.is-unlocked .spirit-vital-card {
  border-color: rgba(141, 255, 225, 0.25);
}

.spirit-signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.spirit-signal-item {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.54rem;
  border-radius: 10px;
  border: 1px solid rgba(135, 204, 255, 0.18);
  background: rgba(5, 12, 27, 0.62);
}

.spirit-signal-item span {
  color: #eaf8ff;
  font-weight: 800;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.spirit-signal-item i {
  display: block;
  width: 8%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fffdc, #86c7ff);
}

.spirit-signal-item strong {
  color: #9fc9f6;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.spirit-signal-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.spirit-spotlight {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  border: 1px solid rgba(123, 221, 255, 0.24);
  border-left-color: rgba(139, 255, 222, 0.56);
  border-radius: 16px;
  padding: 0.9rem;
  background:
    radial-gradient(circle at 8% 0%, rgba(110, 255, 220, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(8, 24, 48, 0.82), rgba(4, 12, 28, 0.68));
  display: grid;
  gap: 0.4rem;
}

.spirit-spotlight-track {
  color: #eaf8ff;
  font-weight: 700;
  font-size: 0.98rem;
}

.spirit-spotlight-meta {
  color: #b7dcff;
  font-size: 0.84rem;
  line-height: 1.34;
}

.spirit-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.spirit-spotlight-actions .listen-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.72rem;
}

.spirit-visual-title {
  color: #aef2ff;
  font-weight: 700;
  font-size: 0.95rem;
}

.spirit-visual-hint {
  font-size: 0.9rem;
  line-height: 1.38;
}

.spirit-collectible {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  border: 1px solid rgba(153, 226, 255, 0.3);
  border-left-color: rgba(139, 255, 222, 0.62);
  border-radius: 20px;
  padding: clamp(0.9rem, 1.8vw, 1.15rem);
  background:
    radial-gradient(circle at 84% 8%, rgba(143, 120, 255, 0.18), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(110, 255, 220, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(8, 18, 45, 0.9), rgba(4, 8, 24, 0.78));
  display: grid;
  gap: 0.62rem;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.spirit-collectible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.spirit-generation-progress {
  display: grid;
  gap: 0.42rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(137, 255, 225, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 50%, rgba(126, 255, 224, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(5, 17, 36, 0.88), rgba(4, 9, 25, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.spirit-generation-progress.hidden {
  display: none;
}

.spirit-generation-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #e9fbff;
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.25;
}

.spirit-generation-progress-head strong {
  color: #99ffe4;
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  white-space: nowrap;
}

.spirit-generation-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(132, 229, 255, 0.22);
  background: rgba(1, 6, 17, 0.82);
}

.spirit-generation-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #7dffe1 0%, #82ceff 46%, #ff8ee3 100%);
  box-shadow: 0 0 24px rgba(126, 255, 224, 0.38);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spirit-collectible-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.9rem, 2vw, 1.25rem);
  align-items: start;
}

.spirit-collectible.awaiting-image .spirit-collectible-grid {
  grid-template-columns: minmax(0, 1fr);
}

.spirit-collectible.awaiting-image .spirit-collectible-meta {
  max-width: 100%;
}

.spirit-collectible-placeholder {
  display: none;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  aspect-ratio: 1 / 1;
  align-content: end;
  gap: 0.34rem;
  padding: clamp(1rem, 2.4vw, 1.45rem);
  border-radius: 8px;
  border: 1px solid rgba(182, 231, 255, 0.38);
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 7, 20, 0.14) 42%, rgba(2, 7, 20, 0.9) 100%),
    radial-gradient(circle at 50% 34%, rgba(126, 255, 224, 0.22), transparent 30%),
    radial-gradient(circle at 72% 20%, rgba(130, 166, 255, 0.28), transparent 28%),
    linear-gradient(150deg, rgba(5, 14, 32, 0.96), rgba(13, 47, 70, 0.86));
  color: #eafcff;
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.34),
    0 0 58px rgba(98, 242, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.spirit-collectible-placeholder::before,
.spirit-collectible-placeholder::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.spirit-collectible-placeholder::before {
  inset: 15% 18% 34%;
  border-radius: 8px;
  border: 1px solid rgba(219, 255, 250, 0.24);
  background:
    linear-gradient(90deg, transparent 48%, rgba(143, 246, 229, 0.32) 49%, rgba(143, 246, 229, 0.32) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(125, 207, 255, 0.24) 49%, rgba(125, 207, 255, 0.24) 51%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(143, 246, 229, 0.12) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(0deg, rgba(125, 207, 255, 0.1) 0 2px, transparent 2px 22px),
    radial-gradient(circle at 50% 50%, rgba(143, 255, 229, 0.22), transparent 36%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 38px rgba(98, 242, 255, 0.18);
  opacity: 0.9;
}

.spirit-collectible-placeholder::after {
  inset: 0;
  background:
    linear-gradient(105deg, transparent 12%, rgba(142, 255, 230, 0.2) 44%, transparent 66%);
  transform: translateX(-110%);
  opacity: 0;
}

.spirit-collectible.awaiting-image .spirit-collectible-placeholder {
  display: grid;
}

.spirit-collectible.is-generating .spirit-collectible-placeholder::after {
  opacity: 1;
  animation: spirit-placeholder-scan 1.8s ease-in-out infinite;
}

.spirit-collectible-placeholder span,
.spirit-collectible-placeholder strong,
.spirit-collectible-placeholder small {
  position: relative;
  z-index: 1;
}

.spirit-collectible-placeholder span {
  color: #8ff6e5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.spirit-collectible-placeholder strong {
  color: #f7fcff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.04;
}

.spirit-collectible-placeholder small {
  max-width: 28ch;
  color: #bde4ff;
  font-size: 0.86rem;
  line-height: 1.34;
}

.spirit-collectible-image {
  display: none !important;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  border-radius: 20px;
  border: 1px solid rgba(182, 231, 255, 0.44);
  background:
    radial-gradient(circle at 50% 28%, rgba(126, 255, 224, 0.16), transparent 38%),
    rgba(4, 10, 24, 0.92);
  object-fit: contain;
  object-position: center;
  aspect-ratio: 1 / 1;
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.34),
    0 0 58px rgba(98, 242, 255, 0.2);
}

.spirit-collectible-placeholder {
  display: none !important;
}

.spirit-collectible-meta {
  display: grid;
  align-content: start;
  gap: 0.62rem;
  max-width: 100%;
}

.spirit-collectible-milestone {
  color: #f3fbff;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  font-weight: 800;
}

.spirit-collectible-details {
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 1.48;
  color: #dff4ff;
  overflow-wrap: normal;
  word-break: normal;
}

.spirit-collectible-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0.45rem;
}

.spirit-collectible-actions .listen-btn,
.spirit-collectible-actions .instagram-share-btn {
  min-height: 42px;
  padding: 0.48rem 0.78rem;
  font-size: 0.84rem;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.instagram-share-btn {
  border: none;
  color: #fdf7ff;
  font-weight: 700;
  background: linear-gradient(120deg, #f58529 0%, #feda77 18%, #dd2a7b 44%, #8134af 68%, #515bd4 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.instagram-share-btn:hover {
  filter: brightness(1.06);
}

.instagram-share-btn:disabled {
  filter: grayscale(0.35);
}

@media (max-width: 1180px) {
  .spirit-card {
    grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  }

  .spirit-vitals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spirit-collectible-grid {
    grid-template-columns: 1fr;
  }

  .spirit-collectible.awaiting-image .spirit-collectible-grid {
    grid-template-columns: 1fr;
  }

  .spirit-collectible-image {
    max-width: min(100%, 460px);
  }

  .spirit-collectible-placeholder {
    max-width: min(100%, 460px);
  }

  .spirit-collectible-placeholder {
    max-width: min(100%, 460px);
  }

  .spirit-collectible-actions {
    grid-template-columns: 1fr;
  }

  .spirit-collectible-actions .listen-btn,
  .spirit-collectible-actions .instagram-share-btn {
    min-height: 48px;
    font-size: 0.92rem;
  }
}

@keyframes spirit-prism-turn {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.02);
  }
}

@keyframes spirit-entity-halo {
  from {
    transform: rotate(0deg) scale(1);
    opacity: 0.68;
  }
  50% {
    transform: rotate(180deg) scale(1.05);
    opacity: 0.92;
  }
  to {
    transform: rotate(360deg) scale(1);
    opacity: 0.68;
  }
}

@keyframes spirit-entity-wave {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scaleY(0.92);
    opacity: 0.62;
  }
  50% {
    transform: translateX(-50%) translateY(-5px) scaleY(1.14);
    opacity: 0.92;
  }
}

@keyframes spirit-card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  55% {
    opacity: 1;
    transform: translateY(-1px) scale(1.005);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spirit-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(108, 255, 230, 0));
  }
  50% {
    transform: translateY(-6px) scale(1.012);
    filter: drop-shadow(0 12px 26px rgba(108, 255, 230, 0.24));
  }
}

@keyframes spirit-title-shimmer {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 220% center;
  }
}

@keyframes spirit-cursor {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}

@keyframes spirit-orbit {
  from {
    transform: rotate(0deg) scale(1);
    opacity: 0.7;
  }
  50% {
    opacity: 0.95;
  }
  to {
    transform: rotate(360deg) scale(1);
    opacity: 0.7;
  }
}

@keyframes spirit-orbit-reverse {
  from {
    transform: rotate(360deg) scale(1.02);
    opacity: 0.62;
  }
  50% {
    opacity: 0.85;
  }
  to {
    transform: rotate(0deg) scale(1.02);
    opacity: 0.62;
  }
}

@keyframes spirit-unlock-pulse {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  30% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes spirit-sweep {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes spirit-placeholder-scan {
  0% {
    transform: translateX(-115%);
  }
  55%,
  100% {
    transform: translateX(115%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes details-rise {
  from {
    opacity: 0.45;
    transform: translateY(7px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bio-cursor {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}

@keyframes badge-breathe {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(93, 233, 255, 0.45);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(93, 233, 255, 0.62);
  }
}

@keyframes chip-pop {
  0% {
    transform: scale(0.95);
    opacity: 0.55;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes voice-idle-bars {
  0%,
  100% {
    transform: scaleY(0.62);
    opacity: 0.64;
  }

  45% {
    transform: scaleY(1.14);
    opacity: 1;
  }
}

.profile-stats-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.summary-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
}

.summary-panel-head h3 {
  margin-bottom: 0.18rem;
}

.summary-share-story-btn {
  min-height: 44px;
  align-self: start;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.summary-share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.summary-share-link-btn,
.share-link-btn {
  min-width: max-content;
}

.profile-library-section {
  margin-top: 0.9rem;
  padding: 0.95rem 0 1.05rem;
  border-top: 1px solid rgba(126, 232, 198, 0.18);
  border-bottom: 1px solid rgba(134, 191, 255, 0.14);
}

.profile-library-head {
  display: grid;
  gap: 0.24rem;
  margin-bottom: 0.72rem;
}

.profile-library-head h4 {
  margin: 0.12rem 0 0;
  color: #f6fbff;
  font-size: clamp(1.22rem, 2.5vw, 1.72rem);
  line-height: 1.02;
}

.profile-library-head .muted {
  max-width: 58ch;
  margin: 0;
  line-height: 1.45;
}

.profile-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.profile-library-grid .profile-stat-card.wide {
  grid-column: auto;
}

.profile-library-grid .liked-track-list {
  max-height: min(420px, 52svh);
  overflow: auto;
  padding-right: 0.28rem;
  align-content: start;
  scrollbar-gutter: stable;
}

.profile-backup-card {
  margin-top: 0.8rem;
  border: 1px solid rgba(116, 239, 218, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(116, 239, 218, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(8, 16, 33, 0.88), rgba(10, 14, 29, 0.78));
  padding: 0.76rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.62fr);
  gap: 0.78rem;
  align-items: center;
}

.profile-backup-card h4 {
  margin: 0.16rem 0 0.24rem;
  color: #f4fbff;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.profile-backup-actions {
  display: grid;
  gap: 0.5rem;
  justify-items: stretch;
}

.profile-backup-status {
  margin: 0;
  color: #b9c7d9;
  font-size: 0.9rem;
}

.profile-backup-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.profile-backup-buttons .listen-btn {
  min-height: 44px;
  justify-content: center;
  text-align: center;
}

.profile-transfer-details {
  border-top: 1px solid rgba(149, 184, 255, 0.12);
  padding-top: 0.18rem;
}

.profile-transfer-details summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: #9fb6cf;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  list-style: none;
}

.profile-transfer-details summary::-webkit-details-marker {
  display: none;
}

.profile-transfer-details summary::after {
  content: "+";
  margin-left: auto;
  color: #8df7e5;
  font-size: 1rem;
}

.profile-transfer-details[open] summary::after {
  content: "-";
}

.profile-transfer-body {
  display: grid;
  gap: 0.42rem;
  padding-bottom: 0.08rem;
}

.profile-transfer-details:not([open]) .profile-transfer-body {
  display: none;
}

.profile-transfer-body p {
  margin: 0;
  font-size: 0.84rem;
}

.profile-import-btn {
  min-height: 40px;
  justify-content: center;
  text-align: center;
}

.profile-import-btn.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(8, 16, 34, 0.88);
  color: #eaf7ff !important;
}

.profile-stat-card {
  border: 1px solid rgba(134, 191, 255, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 223, 255, 0.15), transparent 42%),
    linear-gradient(155deg, rgba(7, 14, 30, 0.94), rgba(8, 17, 38, 0.84));
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.profile-stat-card.metric {
  min-height: 98px;
  align-content: start;
}

.summary-kicker {
  color: #9fd7ff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.summary-value {
  margin-top: 0.1rem;
  color: #eff8ff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.02;
}

.summary-value.achievement-value {
  font-size: clamp(0.92rem, 1.8vw, 1.06rem);
  line-height: 1.35;
  color: #d8edff;
}

.profile-stat-card.wide {
  grid-column: 1 / -1;
}

.profile-stat-card h4 {
  font-size: 0.95rem;
  color: #d8edff;
}

.profile-artist-recommendations-card.hidden {
  display: none;
}

.profile-artist-recommendations-card {
  gap: 0.75rem;
  border-color: rgba(116, 239, 218, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(116, 239, 218, 0.13), transparent 34%),
    radial-gradient(circle at 94% 10%, rgba(157, 123, 255, 0.15), transparent 32%),
    linear-gradient(155deg, rgba(6, 14, 31, 0.96), rgba(9, 17, 38, 0.84));
}

.profile-artist-recommendations-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.profile-artist-recommendations-head h4 {
  margin: 0.12rem 0 0.22rem;
  color: #f1fbff;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.profile-artist-recommendations-head .muted,
.profile-artist-recommendations-status {
  margin: 0;
  line-height: 1.42;
}

.profile-artist-recommendations-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.56rem;
}

.profile-artist-recommendation {
  min-width: 0;
  border: 1px solid rgba(155, 206, 255, 0.25);
  border-radius: 10px;
  padding: 0.68rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 255, 220, 0.1), transparent 42%),
    rgba(5, 12, 27, 0.78);
  display: grid;
  gap: 0.46rem;
}

.profile-artist-recommendation-main {
  min-width: 0;
  display: grid;
  gap: 0.24rem;
}

.profile-artist-recommendation-name {
  color: #f6fbff;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-artist-recommendation-style {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(116, 239, 218, 0.32);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  color: #9af7e9;
  background: rgba(7, 20, 32, 0.75);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.profile-artist-recommendation-reason {
  margin: 0;
  color: #c9d9ec;
  font-size: 0.84rem;
  line-height: 1.38;
}

.profile-artist-recommendation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.profile-artist-recommendation-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 206, 255, 0.26);
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  color: #dff2ff;
  background: rgba(10, 21, 43, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.profile-artist-recommendation-links a:hover {
  border-color: rgba(116, 239, 218, 0.48);
  color: #f6ffff;
}

.summary-tags {
  min-height: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: flex-start;
}

.summary-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(155, 206, 255, 0.38);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.83rem;
  color: #dff2ff;
  background: rgba(9, 18, 37, 0.88);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.summary-tag.empty {
  border-color: rgba(134, 191, 255, 0.22);
  color: #90a8d2;
  background: rgba(8, 15, 31, 0.65);
}

.liked-track-history-card {
  gap: 0.7rem;
  align-content: start;
}

.liked-track-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.liked-track-history-head h4 {
  margin-bottom: 0.16rem;
}

.liked-track-history-head .muted {
  font-size: 0.88rem;
  line-height: 1.35;
}

.liked-track-clear-btn,
.liked-track-clear-btn.secondary {
  width: auto;
  min-height: 38px;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 111, 152, 0.3);
  color: #ffc7d4;
  background: rgba(12, 22, 45, 0.76);
  font-weight: 800;
  font-size: 0.82rem;
}

.liked-track-clear-btn:hover,
.liked-track-clear-btn.secondary:hover {
  border-color: rgba(255, 111, 152, 0.5);
  background: rgba(31, 18, 39, 0.82);
}

.liked-track-clear-btn:disabled {
  display: none;
}

.liked-track-list {
  display: grid;
  gap: 0.52rem;
}

.liked-track-empty {
  margin: 0;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  border: 1px dashed rgba(134, 191, 255, 0.24);
  border-radius: 10px;
  padding: 0.68rem 0.78rem;
  background: rgba(8, 15, 31, 0.58);
}

.liked-track-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.62rem;
  border: 1px solid rgba(139, 205, 255, 0.24);
  border-radius: 10px;
  padding: 0.78rem 0.84rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 255, 220, 0.1), transparent 40%),
    rgba(5, 12, 27, 0.78);
}

.liked-track-item.is-disliked {
  border-color: rgba(255, 132, 161, 0.3);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 111, 152, 0.11), transparent 40%),
    rgba(5, 12, 27, 0.78);
}

.liked-track-body {
  min-width: 0;
  display: grid;
  gap: 0.26rem;
}

.liked-track-title {
  margin: 0;
  color: #f5fbff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.12;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

.liked-track-meta,
.liked-track-date {
  margin: 0;
  color: #aec0d8;
  font-size: 0.82rem;
  line-height: 1.35;
}

.liked-track-date {
  color: #8fe9d4;
}

.liked-track-item.is-disliked .liked-track-date {
  color: #ffb6c7;
}

.liked-track-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.38rem;
  max-width: none;
  padding-top: 0.14rem;
}

.liked-track-actions a,
.liked-track-remove {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(139, 205, 255, 0.3);
  padding: 0.34rem 0.66rem;
  color: #eaf7ff;
  background: rgba(12, 22, 45, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.liked-track-actions a:hover,
.liked-track-remove:hover {
  border-color: rgba(110, 255, 220, 0.58);
  color: #ffffff;
  background: rgba(27, 51, 82, 0.9);
}

.liked-track-remove {
  color: #ffc7d4;
  border-color: rgba(255, 111, 152, 0.34);
  cursor: pointer;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 780px) {
  :root {
    --signature-bar-height: 46px;
    --signature-safe-gap: 18px;
  }

  body {
    font-size: 16px;
    line-height: 1.5;
  }

  p,
  label,
  .muted,
  .meta-line,
  .section-hint,
  .genre-guide-text,
  .listening-narrative,
  .feedback-message,
  .voice-mini-hint,
  .voice-mini-status,
  .spirit-visual-hint,
  .spirit-spotlight-meta,
  .spirit-collectible-details,
  .summary-tag {
    font-size: 1rem;
    line-height: 1.48;
  }

  h3 {
    font-size: 1.28rem;
    line-height: 1.16;
  }

  h4,
  .voice-effects-title,
  .rating-title,
  .queue-title,
  .taste-tuning-title,
  .spirit-visual-title {
    font-size: 1.08rem;
    line-height: 1.22;
  }

  select,
  textarea,
  input,
  button,
  .listen-btn {
    min-height: 44px;
    font-size: 1rem;
    line-height: 1.2;
  }

  .auth-card {
    padding: 1.2rem;
  }

  .auth-local-note {
    grid-template-columns: 1fr;
  }

  .auth-social-grid {
    grid-template-columns: 1fr;
  }

  .auth-social-btn {
    min-height: 50px;
    width: 100%;
  }

  textarea {
    min-height: 92px;
  }

  .app-shell {
    width: min(100% - 1rem, 980px);
    margin: 0.78rem auto 1.6rem;
    gap: 0.95rem;
  }

  .app-tab-bar {
    top: calc(var(--signature-bar-height) + 0.42rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.34rem;
    padding: 0.32rem;
    border-radius: 10px;
  }

  .app-tab-btn {
    min-height: 42px;
    font-size: 0.96rem;
  }

  .feedback-section-head,
  .rating-head {
    display: grid;
    gap: 0.42rem;
  }

  .feedback-hint {
    max-width: none;
    text-align: left;
  }

  .feedback-refinement-layout {
    grid-template-columns: 1fr;
  }

  .swipe-start-panel {
    gap: 0.74rem;
  }

  .swipe-start-head {
    grid-template-columns: 1fr;
  }

  .swipe-start-head h3 {
    font-size: clamp(1.42rem, 7vw, 2rem);
  }

  .swipe-hero-card {
    min-height: 360px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0.7rem;
    padding: 0.9rem;
  }

  .swipe-hero-art {
    width: min(44vw, 172px);
  }

  .swipe-hero-copy h4 {
    max-width: 100%;
    font-size: clamp(1.78rem, 9vw, 2.55rem);
    line-height: 0.98;
  }

  .swipe-hero-copy .muted {
    font-size: 0.95rem;
    line-height: 1.32;
  }

  .swipe-hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .swipe-hero-actions button {
    min-height: 50px;
    padding-inline: 0.42rem;
    font-size: 0.88rem;
  }

  .swipe-feedback-deck {
    padding: 0.62rem;
  }

  .swipe-track-card {
    min-height: 160px;
  }

  .swipe-actions {
    grid-template-columns: 1fr;
  }

  .feedback-buttons {
    grid-template-columns: 1fr;
  }

  .feedback-message {
    padding: 0.72rem 0.82rem 0.72rem 2.2rem;
  }

  .support-amounts,
  .support-payment-grid {
    grid-template-columns: 1fr;
  }

  .support-custom-amount {
    grid-template-columns: 1fr;
  }

  .support-payment-card {
    padding: 0.86rem;
  }

  .support-payment-head {
    align-items: flex-start;
  }

  .support-pix-key-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .support-key-copy-btn {
    width: 100%;
  }

  .support-qr-wrap {
    min-height: 184px;
  }

  .support-qr,
  .support-qr-placeholder {
    width: min(184px, 64vw);
  }

  .welcome-screen {
    padding-inline: 0.72rem;
  }

  .signature-track {
    animation-duration: 24s;
    gap: 0.56rem;
  }

  .signature-pill {
    font-size: 0.86rem;
    letter-spacing: 0.03em;
  }

  .signature-divider {
    font-size: 0.82rem;
  }

  .welcome-card {
    padding: 1.2rem;
  }

  .intro-card {
    padding: 1.05rem;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .intro-visual {
    gap: 0.65rem;
  }

  .intro-logo-system {
    width: min(100%, 340px);
  }

  .intro-copy h1 {
    max-width: none;
    font-size: clamp(1.78rem, 10vw, 2.82rem);
  }

  .intro-copy {
    justify-items: center;
    text-align: center;
  }

  .intro-copy #introDesc {
    margin-inline: auto;
  }

  .intro-impact {
    font-size: clamp(0.96rem, 4.4vw, 1.12rem);
  }

  .intro-quote-shell {
    min-height: 90px;
  }

  .intro-quote {
    font-size: clamp(0.96rem, 4.8vw, 1.2rem);
  }

  .intro-continue-btn {
    justify-self: center;
  }

  .audio-toggle {
    top: 0.66rem;
    right: 0.64rem;
    font-size: 0.94rem;
    padding: 0.4rem 0.6rem;
  }

  .audio-volume-control {
    top: 3.25rem;
    right: 0.64rem;
    grid-template-columns: auto minmax(86px, 1fr) 2.8rem;
    width: min(92vw, 280px);
    min-height: 36px;
    padding: 0.36rem 0.54rem;
  }

  .audio-volume-control label,
  .audio-volume-control span {
    font-size: 0.86rem;
  }

  .floating-surprise-btn {
    left: 0.72rem;
    bottom: calc(var(--signature-bar-height) + 0.72rem + env(safe-area-inset-bottom));
    min-height: 34px;
    max-width: calc(100vw - 1.44rem);
    padding: 0.44rem 0.68rem;
    font-size: 0.94rem;
  }

  .artist-visual-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .artist-photo-frame {
    width: 72px;
    border-radius: 10px;
  }

  .artist-photo-fallback {
    font-size: 1.1rem;
  }

  .language-card {
    padding: 1.3rem;
  }

  .usage-guide-card {
    padding: 1.1rem;
  }

  .usage-guide-card h1 {
    max-width: none;
    font-size: clamp(1.82rem, 9vw, 2.78rem);
  }

  .usage-guide-grid {
    grid-template-columns: 1fr;
  }

  .usage-guide-item {
    padding: 0.86rem;
  }

  .usage-guide-actions {
    justify-content: stretch;
  }

  .usage-guide-actions button {
    width: 100%;
  }

  .language-card h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.012em;
  }

  .brand-logo-wrap {
    width: 100%;
    padding: 0.26rem 0.42rem;
  }

  .language-card #langDesc {
    font-size: 0.98rem;
  }

  .app-slogan {
    font-size: 0.96rem;
  }

  .hero-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .hero-logo-wrap {
    width: min(74vw, 210px);
    min-height: 48px;
    justify-items: start;
  }

  .section-head {
    display: grid;
    gap: 0.25rem;
  }

  .daily-news-head {
    align-items: stretch;
  }

  .daily-news-refresh {
    width: 100%;
  }

  .daily-news-list {
    grid-template-columns: 1fr;
  }

  .daily-news-card {
    min-height: 0;
  }

  .daily-news-link {
    font-size: 1rem;
  }

  .daily-news-summary,
  .daily-news-status {
    font-size: 0.94rem;
  }

  .section-hint {
    max-width: none;
    text-align: left;
  }

  .smart-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smart-preset-btn {
    min-height: 44px;
    font-size: 0.98rem;
  }

  .search-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.72rem;
    padding: 0.9rem;
  }

  .search-visual {
    width: 64px;
    height: 64px;
  }

  .search-icon {
    width: 38px;
    height: 38px;
  }

  .search-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommendation-actions {
    position: static;
    margin-inline: 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .catalog-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-stat {
    padding: 0.62rem 0.66rem;
  }

  .catalog-stats-health {
    width: auto;
    border-radius: 10px;
  }

  .app-mission {
    font-size: 0.96rem;
  }

  .quiz-bubble {
    right: 8px;
    left: 8px;
    bottom: 56px;
    width: auto;
    padding: 0.7rem 0.72rem;
  }

  .quiz-card {
    width: min(96vw, 640px);
    padding: 0.82rem;
  }

  .quiz-question {
    font-size: 1.08rem;
  }

  .lang-actions {
    grid-template-columns: 1fr;
  }

  .fields-grid,
  .details-grid,
  .weights-grid,
  .taste-tuning-actions,
  .voice-lab-grid,
  .spirit-card {
    grid-template-columns: 1fr;
  }

  .voice-lab-head {
    display: grid;
  }

  .voice-mini-controls,
  .voice-mini-preset-grid {
    grid-template-columns: 1fr;
  }

  .voice-effect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-controls button {
    min-height: 48px;
    border-radius: 16px;
  }

  .voice-mini-card {
    grid-template-columns: 1fr;
  }

  .voice-mini-controls {
    grid-column: auto;
    grid-row: auto;
  }

  .voice-mini-card > .voice-bpm-control {
    grid-column: 1;
  }

  .voice-mini-preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .voice-mini-mixer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .voice-daw-pad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .voice-step-sequencer {
    overflow-x: auto;
    padding-bottom: 0.7rem;
  }

  .voice-step-row {
    grid-template-columns: 3.4rem minmax(220px, 1fr);
    gap: 0.24rem;
  }

  .voice-step-buttons {
    gap: 0.22rem;
  }

  .voice-step-btn {
    min-height: 32px;
    font-size: 0.74rem;
  }

  .dj-mode-head {
    display: grid;
  }

  .dj-step {
    grid-template-columns: 1fr;
  }

  .dj-step-label {
    grid-row: auto;
  }

  #catalogInfo,
  #songVibe,
  #listeningNarrative,
  #tasteTuningHint,
  #suggestionQueueHint,
  #djModeHint {
    display: none;
  }

  .profile-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-backup-card {
    grid-template-columns: 1fr;
  }

  .profile-backup-buttons {
    grid-template-columns: 1fr;
  }

  .summary-panel-head {
    grid-template-columns: 1fr;
  }

  .summary-share-story-btn {
    width: 100%;
    min-height: 50px;
    white-space: normal;
  }

  .summary-share-actions,
  .summary-share-link-btn {
    width: 100%;
  }

  .profile-library-grid {
    grid-template-columns: 1fr;
  }

  .profile-library-grid .liked-track-list {
    max-height: none;
  }

  .profile-stat-card.wide {
    grid-column: 1 / -1;
  }

  .profile-artist-recommendations-head {
    grid-template-columns: 1fr;
  }

  .profile-artist-recommendations-list {
    grid-template-columns: 1fr;
  }

  .profile-artist-recommendation-links a {
    flex: 1 1 92px;
  }

  .liked-track-history-head,
  .liked-track-item {
    grid-template-columns: 1fr;
  }

  .liked-track-history-head {
    display: grid;
  }

  .liked-track-clear-btn {
    width: 100%;
  }

  .liked-track-actions {
    justify-content: stretch;
    max-width: none;
  }

  .liked-track-actions a,
  .liked-track-remove {
    flex: 1 1 112px;
  }

  .spirit-collectible-grid {
    grid-template-columns: 1fr;
  }

  .spirit-avatar-wrap {
    width: min(100%, 280px);
  }

  .spirit-avatar {
    padding: 0.55rem;
  }

  .spirit-signal-list {
    grid-template-columns: 1fr;
  }

  .spirit-vitals-grid {
    grid-template-columns: 1fr;
  }

  .spirit-vital-card {
    min-height: 96px;
  }

  .spirit-insight-head {
    align-items: flex-start;
  }

  .panel {
    padding: 1rem;
  }

  .section-kicker,
  .catalog-stats-kicker,
  .summary-kicker,
  .chip,
  .generated-badge,
  .search-stage-label,
  .spirit-archetype,
  .spirit-signal-item strong,
  .queue-meta,
  .listeners-subtitle {
    font-size: 0.92rem;
    line-height: 1.32;
  }

  .track-title-animated,
  .spirit-name {
    font-size: 1.85rem;
    line-height: 1.05;
  }

  .spirit-card {
    border-radius: 18px;
    padding: 0.9rem;
    gap: 0.9rem;
  }

  .spirit-copy {
    padding: 0;
    border-left: 0;
    background: none;
    border-radius: 0;
  }

  .spirit-description {
    color: #eefaff;
    font-size: 1.03rem;
    line-height: 1.58;
  }

  .spirit-collectible {
    gap: 0.74rem;
    padding: 1rem;
  }

  .spirit-collectible-header {
    align-items: flex-start;
  }

  .spirit-collectible-meta {
    gap: 0.55rem;
  }

  .spirit-collectible-details {
    color: #e8f8ff;
    font-size: 1rem;
    line-height: 1.62;
  }

  .spirit-collectible-actions {
    grid-template-columns: 1fr;
  }

  .rating-panel,
  .feedback-action-group {
    padding: 0.78rem;
  }

  .spirit-avatar-wrap {
    border-radius: 20px;
  }

  .spirit-spotlight,
  .spirit-collectible {
    border-radius: 14px;
  }

  .artist-line,
  .bpm-line,
  .catalog-stat strong,
  .summary-value {
    font-size: 1.12rem;
  }

  .feedback-buttons button,
  .taste-tune-btn,
  .voice-effect-btn {
    min-height: 46px;
  }
}

@media (min-width: 781px) and (max-width: 1100px) {
  body {
    font-size: 17px;
  }

  .app-shell {
    width: min(94%, 980px);
  }

  .daily-news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  select,
  textarea,
  input,
  button,
  .listen-btn {
    min-height: 42px;
    font-size: 0.98rem;
  }

  .panel {
    padding: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel {
    animation: none;
  }

  .floating-sonic-layer,
  .floating-sonic-layer::before,
  .sonic-note,
  .sonic-orb,
  .sonic-beam,
  .sonic-shard,
  .sonic-pulse,
  .sonic-speaker,
  .intro-logo-wrap,
  .intro-logo-wrap::before,
  .intro-logo-mark,
  .intro-ring,
  .intro-spark,
  .intro-glyph,
  .eq-bar,
  .intro-quote,
  .intro-impact,
  .genre-fx-layer,
  .genre-fx-token,
  .audio-toggle-bar,
  .floating-surprise-btn,
  .spirit-card.reveal,
  .spirit-card::before,
  .spirit-avatar,
  .spirit-avatar-wrap::before,
  .spirit-avatar-wrap::after,
  .spirit-name,
  .spirit-description.typing::after,
  .listening-narrative.typing::after,
  .style-info-bubble,
  .star-btn,
  .rating-celebration,
  #spiritBadge,
  .spirit-panel.unlock-pulse::before,
  .spirit-panel.unlock-pulse::after,
  .signature-track {
    animation: none;
  }

  .signature-track.clone {
    display: none;
  }

  .intro-logo-wrap {
    opacity: 1;
    transform: none;
  }

  .intro-logo-wrap::before {
    opacity: 0;
  }
}

/* Human polish pass: quieter product UI, clearer decisions, less visual noise. */
:root {
  --bg-0: #07090d;
  --bg-1: #0e1318;
  --bg-2: #171c21;
  --text: #f4f1e8;
  --muted: #aeb7c2;
  --line: rgba(219, 209, 188, 0.18);
  --accent-a: #7ee8c6;
  --accent-b: #8ac7ff;
  --accent-c: #ffb86b;
  --cyan: #86dfd2;
  --danger: #ff758f;
  --signature-bar-height: 42px;
  --signature-safe-gap: 14px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 26rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 92px),
    linear-gradient(155deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(126, 232, 198, 0.055), transparent 34%),
    linear-gradient(90deg, transparent, rgba(138, 199, 255, 0.05) 42%, transparent 76%);
  opacity: 0.78;
}

.floating-sonic-layer {
  opacity: 0.18;
}

.sonic-note,
.sonic-speaker {
  opacity: 0.12;
}

.sonic-orb,
.sonic-beam,
.sonic-shard,
.sonic-pulse,
.genre-fx-token {
  opacity: 0.1;
  filter: none;
}

.signature-bar {
  justify-content: flex-start;
  border-top-color: rgba(219, 209, 188, 0.16);
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(12px);
}

.signature-track {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  animation: none;
}

.signature-track.clone {
  display: none;
}

.signature-pill {
  color: rgba(244, 241, 232, 0.74);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.signature-divider {
  color: rgba(244, 241, 232, 0.32);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 0.78rem;
  margin-top: 0.85rem;
}

.app-shell > .hero,
.app-tab-bar,
.app-shell > .app-tab-panel:not(.swipe-start-panel):not(.preference-panel),
#resultPanel,
#detailsPanel {
  grid-column: 1 / -1;
}

.swipe-start-panel[data-app-tab="discover"] {
  grid-column: 1 / span 7;
}

.preference-panel[data-app-tab="discover"] {
  grid-column: 8 / -1;
  position: sticky;
  --preference-panel-sticky-top: calc(var(--signature-bar-height) + 4.25rem);
  top: var(--preference-panel-sticky-top);
  z-index: 5;
  content-visibility: visible;
  contain-intrinsic-size: auto;
  max-height: calc(100dvh - var(--preference-panel-sticky-top) - 1rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.panel {
  border-radius: 10px;
  border-color: rgba(219, 209, 188, 0.17);
  background:
    linear-gradient(180deg, rgba(24, 29, 35, 0.92), rgba(12, 16, 21, 0.9)),
    rgba(14, 19, 24, 0.9);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: none;
  animation-duration: 260ms;
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  align-items: center;
  gap: 0.9rem 1.1rem;
  padding: 0.9rem 1rem;
}

.hero::after {
  display: none;
}

.hero-brand {
  align-items: center;
}

.hero-logo-wrap {
  width: clamp(122px, 13vw, 176px);
  min-height: 44px;
  place-items: start;
}

.hero-logo-mark {
  max-height: 60px;
  filter: none;
}

.brand-kicker,
.section-kicker,
.catalog-stats-kicker {
  color: #9bded2;
  letter-spacing: 0.08em;
}

.hero h2 {
  max-width: 15ch;
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 1;
}

.hero #heroDesc {
  max-width: 72ch;
  color: rgba(244, 241, 232, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-slogan,
.hero-mission {
  max-width: 70ch;
  color: rgba(244, 241, 232, 0.72);
  text-shadow: none;
}

.hero-slogan {
  color: #9bded2;
  font-weight: 700;
}

.catalog-stats {
  grid-column: 2;
  grid-row: 1 / span 5;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(219, 209, 188, 0.14);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.36);
}

.catalog-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem 0.48rem;
}

.catalog-stat {
  border: 0;
  border-radius: 0;
  padding: 0.18rem 0;
  background: transparent;
  box-shadow: none;
}

.catalog-stat strong {
  color: #fff8e8;
}

.catalog-stat span,
.catalog-stats-health {
  color: rgba(244, 241, 232, 0.68);
}

.catalog-stats-health {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-help-btn {
  min-height: 38px;
  border-radius: 8px;
  border-color: rgba(219, 209, 188, 0.22);
  color: #f4f1e8;
  background: rgba(255, 255, 255, 0.045);
}

.app-tab-bar {
  top: calc(var(--signature-bar-height) + 0.46rem);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.24rem;
  padding: 0.28rem;
  border-color: rgba(219, 209, 188, 0.16);
  border-radius: 10px;
  background: rgba(7, 9, 13, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.app-tab-btn {
  min-height: 42px;
  border-radius: 8px;
  color: rgba(244, 241, 232, 0.74);
  background: transparent;
  font-weight: 800;
}

.app-tab-btn.active,
.app-tab-btn[aria-pressed="true"] {
  color: #07100e;
  border-color: rgba(126, 232, 198, 0.9);
  background: linear-gradient(110deg, #7ee8c6, #8ac7ff);
  box-shadow: 0 8px 22px rgba(126, 232, 198, 0.16);
}

.swipe-start-panel {
  border-color: rgba(126, 232, 198, 0.22);
  background:
    linear-gradient(180deg, rgba(24, 33, 35, 0.94), rgba(12, 16, 21, 0.9)),
    rgba(14, 19, 24, 0.9);
}

.swipe-start-head {
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

.swipe-start-head h3 {
  max-width: 14ch;
  font-size: clamp(1.55rem, 3.4vw, 3.05rem);
  line-height: 0.98;
}

.swipe-start-head .section-hint {
  max-width: 56ch;
  text-align: left;
}

.swipe-hero-card {
  min-height: clamp(280px, 34vw, 380px);
  grid-template-columns: minmax(150px, 0.62fr) minmax(0, 1.38fr);
  border-radius: 10px;
  border-color: rgba(219, 209, 188, 0.18);
  background:
    linear-gradient(130deg, rgba(126, 232, 198, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(31, 37, 43, 0.98), rgba(8, 11, 15, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.swipe-hero-card::before {
  opacity: 0.2;
}

.swipe-hero-art {
  width: min(100%, 188px);
  border-radius: 10px;
  border-color: rgba(219, 209, 188, 0.2);
  background:
    linear-gradient(135deg, rgba(126, 232, 198, 0.38), rgba(138, 199, 255, 0.24)),
    rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.swipe-hero-art::before,
.swipe-hero-art::after {
  border-radius: 8px;
  opacity: 0.35;
}

.swipe-hero-image {
  border-radius: 8px;
}

.swipe-hero-copy h4 {
  max-width: 12ch;
  font-size: clamp(1.72rem, 4.2vw, 3.32rem);
  line-height: 0.98;
}

.swipe-hero-actions,
.swipe-actions {
  gap: 0.46rem;
}

.swipe-hero-actions button,
.swipe-action-btn {
  border-radius: 8px;
}

.preference-panel {
  padding: 0.9rem;
}

.preference-panel .section-head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.62rem;
}

.preference-panel .section-hint {
  max-width: none;
  text-align: left;
}

.smart-presets {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.34rem;
  margin-bottom: 0.72rem;
}

.smart-preset-btn {
  min-height: 40px;
  border-radius: 8px;
  color: rgba(244, 241, 232, 0.84);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
}

.smart-preset-btn:hover,
.smart-preset-btn.active,
.smart-preset-btn[aria-pressed="true"] {
  color: #07100e;
  border-color: rgba(126, 232, 198, 0.86);
  background: linear-gradient(110deg, #7ee8c6, #8ac7ff);
  box-shadow: none;
}

.fields-grid {
  gap: 0.58rem;
}

.field {
  gap: 0.28rem;
}

.field label,
.checkbox > label {
  color: rgba(244, 241, 232, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
}

select,
textarea,
input {
  border-radius: 8px;
  border-color: rgba(219, 209, 188, 0.18);
  background: rgba(7, 9, 13, 0.62);
  color: #f4f1e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

select:focus,
textarea:focus,
input:focus {
  outline: 2px solid rgba(126, 232, 198, 0.42);
  outline-offset: 2px;
  border-color: rgba(126, 232, 198, 0.72);
}

button:focus-visible,
.listen-btn:focus-visible,
.app-tab-btn:focus-visible {
  outline: 2px solid rgba(126, 232, 198, 0.62);
  outline-offset: 2px;
}

.checkbox .checkline,
.advanced-filters,
.recommendation-actions,
.style-info-bubble {
  border-radius: 8px;
  border-color: rgba(219, 209, 188, 0.16);
  background: rgba(7, 9, 13, 0.48);
  box-shadow: none;
}

.style-info-bubble {
  animation: style-bubble-in 180ms ease;
  max-height: min(42dvh, 360px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.style-info-bubble::before {
  display: none;
}

.style-info-title,
.recommendation-why-title,
.queue-title,
.taste-tuning-title,
.track-ai-title,
.rating-title {
  color: #fff8e8;
}

.style-info-bpm,
.weight-item strong,
.swipe-kicker {
  color: #9bded2;
}

button,
.listen-btn {
  border-radius: 8px;
  border-color: rgba(219, 209, 188, 0.18);
  color: #f4f1e8;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  touch-action: manipulation;
}

button:hover,
.listen-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 241, 232, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.primary,
.swipe-action-btn.like {
  color: #07100e;
  background: linear-gradient(110deg, #7ee8c6, #8ac7ff);
}

.secondary {
  color: #17110a;
  background: linear-gradient(110deg, #ffd18b, #ffb86b);
}

.danger,
.swipe-action-btn.pass {
  color: #ffd8df;
  border-color: rgba(255, 117, 143, 0.38);
  background: rgba(105, 35, 50, 0.34);
}

.recommendation-actions {
  padding: 0.34rem;
}

.recommendation-actions button {
  flex: 1 1 160px;
}

.result-card,
.recommendation-why-panel,
.genre-guide-panel,
.preview-panel,
.listeners-panel,
.track-ai-panel,
.rating-panel,
.feedback-actions-panel,
.swipe-feedback-deck,
.dj-mode-card,
.taste-tuning-card,
.suggestion-queue,
.support-payment-card,
.daily-news-card {
  border-radius: 8px;
  border-color: rgba(219, 209, 188, 0.16);
  background: rgba(7, 9, 13, 0.42);
  box-shadow: none;
}

.main-track {
  border-color: rgba(126, 232, 198, 0.24);
  background:
    linear-gradient(135deg, rgba(126, 232, 198, 0.1), transparent 34%),
    rgba(7, 9, 13, 0.5);
}

.main-track::before {
  opacity: 0;
}

.main-track h4 {
  font-size: clamp(1.9rem, 4vw, 3.35rem);
}

.track-title-animated {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #fff8e8;
  text-shadow: none;
  animation: none;
}

.generated-badge,
.chip {
  color: #07100e;
  background: #9bded2;
  animation: none;
}

.artist-visual-card {
  max-width: none;
  border-radius: 8px;
  border-color: rgba(219, 209, 188, 0.16);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.artist-photo-frame {
  border-radius: 8px;
  border-color: rgba(219, 209, 188, 0.2);
  background: linear-gradient(135deg, rgba(126, 232, 198, 0.42), rgba(138, 199, 255, 0.28));
}

.artist-line,
.bpm-line {
  color: #f4f1e8;
  text-shadow: none;
}

.meta-line,
.recommendation-why-text,
.genre-guide-text,
.listening-narrative,
.track-ai-text,
.daily-news-summary {
  color: rgba(244, 241, 232, 0.76);
}

.listen-links {
  gap: 0.4rem;
}

.listen-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.82rem;
  text-decoration: none;
}

.feedback-grid {
  margin-top: 0.9rem;
}

.feedback-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 0.7rem;
  align-items: end;
}

.feedback-hint {
  max-width: 36ch;
  text-align: right;
}

.feedback-buttons button,
.taste-tune-btn,
.voice-effect-btn,
.voice-mini-preset-btn,
.voice-daw-pad {
  border-radius: 8px;
}

.star-btn {
  border-radius: 8px;
  animation: none;
}

.rating-panel {
  gap: 0.56rem;
}

.rating-head {
  align-items: start;
}

.rating-celebration {
  border: 1px solid rgba(219, 209, 188, 0.16);
  color: rgba(244, 241, 232, 0.76);
  background: rgba(255, 255, 255, 0.05);
  animation: none;
}

.rating-celebration.is-positive {
  color: #07100e;
  border-color: rgba(255, 209, 139, 0.7);
  background: linear-gradient(110deg, #ffd18b, #7ee8c6);
}

.star-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 48px));
  gap: 0.42rem;
  width: fit-content;
  max-width: 100%;
}

.star-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: rgba(174, 183, 194, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(7, 9, 13, 0.52);
  transition: transform 150ms ease, color 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.star-btn.filled,
.star-btn.active {
  color: #1b1308;
  border-color: rgba(255, 209, 139, 0.68);
  background:
    linear-gradient(135deg, #ffe0a3, #ffbd6e);
}

.star-btn.preview {
  transform: translateY(-1px);
  color: #1b1308;
  background:
    linear-gradient(135deg, #fff0be, #ffc477);
}

.star-btn.selected {
  box-shadow: 0 0 0 2px rgba(255, 209, 139, 0.3), 0 10px 22px rgba(255, 184, 107, 0.16);
}

.star-btn:focus-visible {
  outline: 2px solid rgba(255, 209, 139, 0.72);
  outline-offset: 2px;
}

.floating-surprise-btn {
  display: none !important;
  min-width: 116px;
  min-height: 38px;
  padding-inline: 0.82rem;
  border-radius: 8px;
  font-size: 0.78rem;
  animation: floating-surprise-in 220ms ease both;
}

#topSwipeSurpriseBtn,
#swipeHeroSurpriseBtn,
#surpriseBtn,
#adaptiveSurpriseBtn {
  min-height: 54px;
  border: 1px solid rgba(126, 232, 198, 0.66);
  color: #031523;
  font-family: "Syne", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  background:
    linear-gradient(115deg, #3effcf 0%, #66d8ff 48%, #8a8cff 100%);
  box-shadow:
    0 16px 38px rgba(32, 227, 200, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

#topSwipeSurpriseBtn {
  width: 100%;
  font-size: clamp(1rem, 2.6vw, 1.28rem);
}

#swipeHeroSurpriseBtn {
  box-shadow:
    0 18px 44px rgba(32, 227, 200, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#surpriseBtn,
#adaptiveSurpriseBtn {
  font-size: clamp(0.96rem, 1.8vw, 1.12rem);
}

@media (min-width: 981px) {
  #resultPanel:not(.hidden) + #detailsPanel:not(.hidden) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    width: min(100% - 24px, 980px);
    grid-template-columns: 1fr;
  }

  .app-shell > .hero,
  .app-tab-bar,
  .swipe-start-panel[data-app-tab="discover"],
  .preference-panel[data-app-tab="discover"],
  .app-shell > .app-tab-panel {
    grid-column: 1;
  }

  .preference-panel[data-app-tab="discover"] {
    position: relative;
    top: auto;
    max-height: none;
    overflow-y: visible;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .catalog-stats {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 780px) {
  :root {
    --signature-bar-height: 40px;
    --signature-safe-gap: 12px;
  }

  body::before,
  .floating-sonic-layer {
    display: none;
  }

  .app-shell {
    width: min(100% - 16px, 980px);
    margin-top: 0.68rem;
    gap: 0.72rem;
  }

  .panel {
    padding: 0.86rem;
    border-radius: 8px;
  }

  .hero {
    gap: 0.62rem;
  }

  .hero-brand {
    gap: 0.5rem;
  }

  .hero h2 {
    max-width: 100%;
    font-size: clamp(1.42rem, 8vw, 2.18rem);
  }

  .hero #heroDesc,
  .hero-mission {
    font-size: 0.95rem;
  }

  .catalog-stats {
    padding: 0.62rem;
  }

  .app-tab-bar {
    position: static;
    top: auto;
    z-index: 2;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.22rem;
    overflow: visible;
    justify-content: stretch;
    padding: 0.24rem;
    background: rgba(7, 9, 13, 0.58);
    box-shadow: none;
    backdrop-filter: none;
    scrollbar-width: none;
  }

  .app-tab-bar::-webkit-scrollbar {
    display: none;
  }

  .app-tab-btn {
    min-width: 0;
    min-height: 44px;
    padding: 0.38rem 0.2rem;
    font-size: 0.74rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .swipe-hero-card {
    min-height: 330px;
    border-radius: 8px;
  }

  .swipe-hero-actions {
    grid-template-columns: 1fr;
  }

  .smart-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommendation-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.44rem;
  }

  .feedback-section-head {
    grid-template-columns: 1fr;
  }

  .feedback-hint {
    max-width: none;
    text-align: left;
  }

  .star-rating {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .star-btn {
    width: 100%;
    height: 46px;
  }

  .listen-links {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .app-tab-btn {
    padding-inline: 0.14rem;
    font-size: 0.68rem;
  }
}

/* Flow-first refinement: less chrome, more room for the listening task. */
body {
  padding-bottom: 0;
}

.welcome-screen {
  padding-bottom: max(clamp(1rem, 2.2vh, 1.6rem), env(safe-area-inset-bottom));
}

.app-shell {
  width: min(1120px, calc(100% - 36px));
  gap: 0.64rem;
  margin-top: 0.72rem;
  padding-bottom: 1rem;
}

.signature-bar {
  position: static;
  width: min(1120px, calc(100% - 36px));
  height: 34px;
  min-height: 34px;
  margin: 0 auto 0.72rem;
  border: 1px solid rgba(219, 209, 188, 0.14);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: none;
}

.signature-track {
  padding-inline: 0.72rem;
}

.signature-pill {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

.signature-divider {
  font-size: 0.62rem;
}

.app-tab-bar {
  position: static;
  top: auto;
  z-index: 2;
  gap: 0.24rem;
  padding: 0.22rem;
  background: rgba(7, 9, 13, 0.56);
  box-shadow: none;
  backdrop-filter: none;
}

.app-tab-btn {
  min-height: 38px;
  font-size: 0.78rem;
}

.app-tab-btn.active,
.app-tab-btn[aria-pressed="true"] {
  box-shadow: none;
}

.hero {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand help"
    "desc help"
    "slogan help"
    "mission help";
  gap: 0.68rem 0.9rem;
  padding: 0.82rem 0.95rem;
}

.hero-brand {
  grid-area: brand;
  gap: 0.78rem;
}

.hero-logo-wrap {
  width: clamp(96px, 10vw, 132px);
  min-height: 40px;
}

.hero-logo-mark {
  max-height: 46px;
}

.hero h2 {
  max-width: 16ch;
  font-size: clamp(1.78rem, 2.7vw, 2.52rem);
  line-height: 0.98;
}

.hero #heroDesc {
  grid-area: desc;
  max-width: 72ch;
  font-size: 0.88rem;
}

.hero-slogan,
.hero-mission {
  font-size: 0.82rem;
}

.hero-slogan {
  grid-area: slogan;
}

.hero-mission {
  grid-area: mission;
}

.catalog-stats {
  align-self: stretch;
  padding: 0.66rem 0.72rem;
}

.catalog-stats-kicker {
  font-size: 0.7rem;
}

.catalog-stat strong {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.catalog-stat span,
.catalog-stats-health {
  font-size: 0.78rem;
  line-height: 1.28;
}

.hero-help-btn {
  grid-area: help;
  justify-self: end;
  align-self: end;
  min-height: 34px;
  padding: 0.35rem 0.62rem;
}

.swipe-start-panel,
.preference-panel {
  padding: 0.88rem;
}

.swipe-start-panel {
  gap: 0.7rem;
}

.swipe-start-head h3 {
  max-width: 13ch;
  font-size: clamp(1.9rem, 3.1vw, 3rem);
}

.swipe-hero-card {
  min-height: clamp(260px, 28vw, 340px);
  padding: 0.9rem;
}

.swipe-hero-copy h4 {
  font-size: clamp(2rem, 4.2vw, 3.65rem);
}

.swipe-hero-actions button {
  min-height: 46px;
}

.smart-preset-btn {
  min-height: 36px;
}

.audio-toggle {
  top: 0.72rem;
  right: max(0.72rem, calc((100vw - 1120px) / 2 + 0.72rem));
  min-height: 36px;
  padding: 0.34rem 0.62rem;
  font-size: 0.78rem;
}

@media (max-width: 780px) {
  .app-shell,
  .signature-bar {
    width: min(100% - 16px, 980px);
  }

  .audio-toggle {
    top: 0.55rem;
    right: 0.55rem;
    min-height: 34px;
    padding: 0.3rem 0.54rem;
    font-size: 0.72rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "desc"
      "help";
    padding: 0.72rem;
    gap: 0.5rem;
  }

  .hero-logo-wrap {
    width: 88px;
    min-height: 30px;
  }

  .hero-logo-mark {
    max-height: 34px;
  }

  .hero #heroDesc {
    font-size: 0.86rem;
    line-height: 1.36;
  }

  .hero-slogan,
  .hero-mission,
  .catalog-stats {
    display: none;
  }

  .signature-bar {
    margin-bottom: 0.55rem;
  }

  .app-tab-btn {
    min-height: 44px;
    font-size: 0.74rem;
  }

  .hero h2 {
    font-size: clamp(1.28rem, 6.4vw, 1.86rem);
  }

  .swipe-hero-card {
    grid-template-columns: minmax(98px, 0.58fr) minmax(0, 1fr);
    min-height: 282px;
    gap: 0.68rem;
    padding: 0.72rem;
  }

  .swipe-hero-art {
    width: min(100%, 150px);
  }

  .swipe-hero-copy {
    gap: 0.38rem;
  }

  .swipe-hero-copy h4 {
    font-size: clamp(1.62rem, 9vw, 2.44rem);
  }

  .swipe-hero-copy .muted {
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .swipe-track-signals {
    gap: 0.3rem;
  }

  .swipe-track-signals span {
    min-height: 30px;
    padding-inline: 0.5rem;
    font-size: 0.74rem;
  }

  .swipe-hero-actions {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0.36rem;
  }

  .swipe-hero-actions button {
    min-height: 44px;
    padding-inline: 0.28rem;
    font-size: 0.76rem;
  }
}

/* Swipe refinement: clearer intent, smoother motion, calmer cards. */
.swipe-track-card,
.main-track {
  --swipe-scale: 1;
  --swipe-progress: 0;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  transform: translate3d(var(--swipe-x), 0, 0) rotate(var(--swipe-rotate)) scale(var(--swipe-scale));
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.swipe-track-card::after,
.main-track::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.swipe-track-card > *,
.main-track > * {
  position: relative;
  z-index: 1;
}

.swipe-track-card.is-like::after,
.main-track.is-like::after {
  opacity: calc(var(--swipe-like-opacity) * 0.52);
  background:
    linear-gradient(90deg, rgba(126, 232, 198, 0.22), transparent 58%),
    rgba(126, 232, 198, 0.04);
}

.swipe-track-card.is-pass::after,
.main-track.is-pass::after {
  opacity: calc(var(--swipe-pass-opacity) * 0.52);
  background:
    linear-gradient(270deg, rgba(255, 117, 143, 0.2), transparent 58%),
    rgba(255, 117, 143, 0.035);
}

.swipe-track-card.is-ready,
.main-track.is-ready {
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(244, 241, 232, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.swipe-track-card:focus-visible,
.main-track:focus-visible {
  outline: 2px solid rgba(126, 232, 198, 0.68);
  outline-offset: 3px;
}

.swipe-start-stage {
  position: relative;
}

.swipe-start-stage::before {
  position: absolute;
  inset: 0.5rem 0.4rem auto;
  height: clamp(180px, 24vw, 260px);
  border: 1px solid rgba(219, 209, 188, 0.08);
  border-radius: 10px;
  content: "";
  opacity: 0.5;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.swipe-hero-card {
  align-items: center;
}

.swipe-hero-card.is-dragging,
.swipe-track-card.is-dragging,
.main-track.is-dragging {
  cursor: grabbing;
}

.swipe-action-btn:not(:disabled):active {
  transform: translateY(1px) scale(0.99);
}

/* Final interaction polish: keeps duplicated button rules from weakening states. */
button:disabled,
button[aria-busy="true"],
button[aria-disabled="true"] {
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

button[aria-busy="true"] {
  cursor: wait;
}

button:disabled:not(.active),
button[aria-disabled="true"] {
  opacity: 0.54;
  filter: saturate(0.78);
}

button:disabled:hover,
button[aria-busy="true"]:hover,
button[aria-disabled="true"]:hover {
  transform: none !important;
  border-color: rgba(219, 209, 188, 0.18);
}

button[aria-busy="true"].is-loading::after {
  opacity: 1;
}

.hero-actions {
  grid-area: help;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.42rem;
}

.hero-actions .hero-help-btn {
  grid-area: auto;
  justify-self: auto;
  align-self: auto;
}

.audio-control-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hero-actions .audio-toggle {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: 1;
  min-height: 34px;
  padding: 0.34rem 0.62rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: none;
}

.hero-actions .audio-volume-control {
  position: absolute !important;
  top: calc(100% + 0.42rem) !important;
  right: 0 !important;
  z-index: 20;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.floating-surprise-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 780px) {
  .toast {
    top: calc(env(safe-area-inset-top, 0px) + 86px);
    min-width: 0;
    width: min(88vw, 520px);
    border-radius: 18px;
    text-align: center;
  }

  .hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-actions .hero-help-btn,
  .hero-actions .audio-toggle {
    min-height: 42px;
  }

  .hero-actions .audio-toggle {
    padding-inline: 0.56rem;
    font-size: 0.72rem;
  }

  .hero-actions .audio-volume-control {
    display: none;
  }

  .support-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .support-amount-btn {
    min-height: 48px;
  }

  .support-custom-amount {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .support-payment-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .floating-surprise-btn {
    animation: none;
  }
}

/* Mobile hardening: no horizontal pan, no floating chrome, no oversized first fold. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
}

.app-shell,
.welcome-screen,
.signature-bar,
.panel,
.app-tab-bar {
  max-width: 100%;
}

@media (max-width: 780px) {
  html,
  body {
    min-width: 0;
    overflow-x: clip;
  }

  body {
    padding-inline: 0;
    background-attachment: scroll;
  }

  .app-shell {
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
    margin: 0.5rem auto 0.62rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.62rem;
    overflow-x: clip;
  }

  .panel,
  .app-tab-bar,
  .swipe-start-panel,
  .preference-panel,
  #resultPanel,
  #detailsPanel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "desc"
      "help";
    padding: 0.72rem;
  }

  .hero-brand,
  .hero-brand > div,
  .hero-actions,
  .audio-control-group {
    min-width: 0;
    max-width: 100%;
  }

  .hero h2,
  .hero #heroDesc,
  .swipe-start-head h3,
  .swipe-start-head .section-hint,
  .swipe-hero-copy,
  .swipe-hero-copy h4,
  .swipe-hero-copy .muted {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    gap: 0.42rem;
  }

  .hero-actions .hero-help-btn,
  .hero-actions .audio-toggle {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
  }

  .audio-toggle,
  .hero-actions .audio-toggle {
    position: static !important;
    top: auto !important;
    right: auto !important;
    border-radius: 8px;
    white-space: nowrap;
  }

  .catalog-stats {
    display: none !important;
  }

  .app-tab-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    padding: 0.34rem;
    border-radius: 10px;
  }

  .app-tab-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.42rem 0.38rem;
    font-size: 0.82rem;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .app-tab-btn:nth-child(5) {
    grid-column: 1 / -1;
  }

  .swipe-start-panel {
    padding: 0.82rem;
  }

  .swipe-start-head {
    gap: 0.32rem;
  }

  .swipe-start-head h3 {
    font-size: clamp(1.42rem, 7.2vw, 2.05rem);
    line-height: 1.04;
    text-wrap: balance;
  }

  .swipe-start-head .section-hint {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .swipe-start-stage {
    width: 100%;
    overflow: hidden;
  }

  .swipe-start-stage::before {
    display: none;
  }

  .swipe-hero-card {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 0.76rem;
    gap: 0.62rem;
  }

  .swipe-hero-art {
    width: min(62vw, 178px);
    min-width: 0;
    margin: 0 auto;
    aspect-ratio: 1;
  }

  .swipe-hero-copy {
    align-items: stretch;
    text-align: left;
  }

  .swipe-hero-copy h4 {
    font-size: clamp(1.48rem, 8vw, 2.22rem);
    line-height: 1.04;
  }

  .swipe-track-signals {
    width: 100%;
  }

  .swipe-track-signals span {
    min-width: 0;
    max-width: 100%;
  }

  .swipe-hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .swipe-hero-actions button {
    width: 100%;
    min-width: 0;
    padding-inline: 0.18rem;
    font-size: clamp(0.68rem, 2.9vw, 0.8rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .signature-bar {
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
    height: 32px;
    min-height: 32px;
    margin-inline: auto;
    overflow: hidden;
  }

  .signature-track {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    padding-inline: 0.58rem;
  }

  .signature-divider,
  .signature-track .signature-pill:nth-of-type(2) {
    display: none;
  }

  .signature-pill {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.64rem;
  }
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* Studio quick flow */
.voice-lab-panel {
  overflow: hidden;
}

.voice-lab-head {
  align-items: end;
}

.voice-lab-head .section-hint {
  max-width: 39rem;
}

.voice-mini-card {
  order: -1;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.82rem;
  border-radius: 14px;
}

.voice-mini-intro {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.voice-mini-eyebrow,
.voice-mini-section-title {
  margin: 0;
  color: #8ff6e5;
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.voice-studio-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
  margin-top: 0.24rem;
}

.voice-studio-steps span {
  min-width: 0;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.44rem;
  align-items: center;
  padding: 0.54rem;
  border: 1px solid rgba(126, 214, 255, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(110, 255, 220, 0.12), transparent 44%),
    rgba(4, 13, 29, 0.62);
}

.voice-studio-steps strong {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100, 255, 209, 0.48);
  border-radius: 50%;
  color: #061124;
  background: linear-gradient(120deg, #6effdc, #7cb2ff);
  font-family: "Syne", sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
}

.voice-studio-steps em {
  min-width: 0;
  color: #e7fbff;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.voice-studio-session {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.44rem;
  margin-top: 0.34rem;
}

.voice-studio-session div {
  min-width: 0;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 0.24rem;
  padding: 0.62rem;
  border: 1px solid rgba(126, 214, 255, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(5, 16, 34, 0.78), rgba(2, 8, 20, 0.52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.voice-studio-session span {
  color: #95abc8;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.voice-studio-session strong {
  min-width: 0;
  color: #f4fbff;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.88rem, 1.35vw, 1.06rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

#voiceStudioSessionStateValue[data-state="playing"],
#voiceStudioSessionStateValue[data-state="rendering"] {
  color: #8ff6e5;
}

#voiceStudioSessionStateValue[data-state="recording"],
#voiceStudioSessionStateValue[data-state="voiceready"] {
  color: #ffd77d;
}

.voice-mini-transport {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
  gap: 0.62rem;
  align-items: center;
  padding: 0.62rem;
  border: 1px solid rgba(126, 214, 255, 0.2);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(8, 25, 45, 0.82), rgba(3, 8, 19, 0.66));
}

.voice-mini-badge {
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(100, 255, 209, 0.36);
  border-radius: 999px;
  color: #dffcff;
  background: rgba(7, 25, 38, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
}

.voice-mini-transport .voice-mini-controls {
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.voice-mini-transport .voice-mini-controls button {
  min-height: 54px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.voice-mini-idea-btn,
.voice-mini-export-btn {
  border-color: rgba(126, 214, 255, 0.32);
  color: #dffcff;
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 214, 255, 0.14), transparent 44%),
    rgba(6, 14, 31, 0.78);
}

.voice-mini-controls #voiceMiniStopBtn {
  border: 1px solid rgba(126, 214, 255, 0.24);
  color: #dffcff;
  background: rgba(6, 14, 31, 0.72);
}

.voice-mini-controls #voiceMiniStopBtn:disabled {
  opacity: 1;
  filter: none;
  color: rgba(213, 231, 255, 0.46);
  border-color: rgba(126, 214, 255, 0.16);
  background: rgba(6, 14, 31, 0.42);
}

.voice-mini-live-board {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 0.72rem;
  align-items: stretch;
  border: 1px solid rgba(126, 214, 255, 0.22);
  border-radius: 14px;
  padding: 0.72rem;
  background:
    linear-gradient(135deg, rgba(8, 28, 45, 0.78), rgba(3, 8, 19, 0.62));
}

.voice-mini-orbit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  align-content: center;
  min-height: 112px;
  padding: 0.5rem;
  border: 1px solid rgba(100, 255, 209, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, rgba(100, 255, 209, 0.1), transparent 56%),
    rgba(2, 8, 20, 0.54);
}

.voice-mini-orbit span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(151, 205, 255, 0.2);
  border-radius: 10px;
  color: rgba(221, 236, 255, 0.58);
  background: rgba(7, 15, 32, 0.78);
  font-family: "Syne", sans-serif;
  font-weight: 900;
}

.voice-mini-orbit span.active {
  border-color: rgba(100, 255, 209, 0.86);
  color: #061124;
  background: linear-gradient(130deg, #6effdc, #7cb2ff);
  box-shadow: 0 12px 28px rgba(73, 217, 255, 0.22);
}

.voice-lab-panel.is-mini-playing .voice-mini-orbit span.active {
  animation: voice-layer-glow 720ms ease-in-out infinite;
}

.voice-mini-recipe {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.24rem;
}

.voice-mini-recipe-label {
  margin: 0;
  color: #8ff6e5;
  font-family: "Syne", sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.voice-mini-recipe strong {
  color: #f4fbff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  line-height: 1.05;
}

.voice-mini-recipe .muted {
  margin: 0;
  color: #bed2ef;
  font-size: 0.96rem;
  line-height: 1.35;
}

.voice-mini-insight {
  display: grid;
  gap: 0.46rem;
  margin-top: 0.52rem;
  padding: 0.62rem;
  border: 1px solid rgba(255, 214, 125, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 214, 125, 0.12), transparent 48%),
    linear-gradient(145deg, rgba(14, 20, 38, 0.78), rgba(3, 8, 20, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.voice-mini-insight p {
  margin: 0;
  color: #ffd77d;
  font-family: "Syne", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.voice-mini-insight > strong {
  color: #f8fdff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.05;
}

.voice-mini-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
}

.voice-mini-insight-grid span {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
  padding: 0.42rem;
  border: 1px solid rgba(126, 214, 255, 0.16);
  border-radius: 9px;
  background: rgba(2, 8, 20, 0.38);
}

.voice-mini-insight-grid small {
  color: #91a9c9;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.voice-mini-insight-grid b {
  min-width: 0;
  color: #dffcff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.voice-mini-export-link {
  justify-self: start;
  min-height: 44px;
  align-items: center;
}

.voice-mini-section {
  min-width: 0;
  display: grid;
  gap: 0.42rem;
}

.voice-mini-morph-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
}

.voice-mini-morph-btn {
  min-height: 50px;
  padding: 0.54rem 0.42rem;
  border: 1px solid rgba(255, 214, 125, 0.28);
  border-radius: 11px;
  color: #fff1c2;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 125, 0.14), transparent 46%),
    linear-gradient(145deg, rgba(16, 23, 42, 0.9), rgba(5, 10, 23, 0.84));
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.08;
}

.voice-mini-morph-btn:hover {
  border-color: rgba(255, 214, 125, 0.62);
  color: #061124;
  background: linear-gradient(120deg, #ffd77d, #7cb2ff);
  box-shadow: 0 10px 24px rgba(255, 214, 125, 0.16);
}

.voice-primary-bpm-control {
  border-color: rgba(100, 255, 209, 0.32);
  background:
    linear-gradient(135deg, rgba(12, 36, 54, 0.78), rgba(3, 8, 19, 0.6));
}

.voice-advanced-panel {
  min-width: 0;
  border: 1px solid rgba(126, 214, 255, 0.2);
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 167, 255, 0.08), transparent 42%),
    rgba(2, 8, 20, 0.48);
  overflow: hidden;
}

.voice-advanced-panel summary {
  display: flex;
  gap: 0.62rem;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.7rem 0.82rem;
  color: #e7fbff;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.voice-advanced-panel summary::-webkit-details-marker {
  display: none;
}

.voice-advanced-panel summary::after {
  content: "+";
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(126, 214, 255, 0.26);
  border-radius: 50%;
  color: #8ff6e5;
}

.voice-advanced-panel[open] summary::after {
  content: "-";
}

.voice-advanced-panel summary small {
  min-width: 0;
  color: #9fb6d8;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.voice-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.56rem;
  padding: 0 0.82rem 0.82rem;
}

.voice-advanced-grid > .voice-mini-mixer-grid,
.voice-advanced-grid > .voice-step-sequencer {
  grid-column: 1 / -1;
}

.voice-step-sequencer {
  overflow-x: hidden;
}

.voice-step-buttons {
  min-width: 0;
}

@media (max-width: 780px) {
  .voice-lab-head {
    gap: 0.5rem;
    margin-bottom: 0.7rem;
  }

  .voice-lab-head h3 {
    font-size: clamp(1.36rem, 7vw, 2rem);
    line-height: 1.05;
  }

  .voice-lab-grid {
    gap: 0.72rem;
  }

  .voice-mini-card {
    padding: 0.72rem;
    border-radius: 12px;
  }

  .voice-studio-steps {
    grid-template-columns: 1fr;
    gap: 0.38rem;
  }

  .voice-studio-steps span {
    padding: 0.46rem;
  }

  .voice-studio-session {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-mini-transport {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.56rem;
  }

  .voice-mini-badge {
    width: 100%;
    text-align: center;
  }

  .voice-mini-transport .voice-mini-controls {
    grid-template-columns: 1fr;
  }

  .voice-mini-transport .voice-mini-controls button {
    min-height: 52px;
  }

  .voice-mini-live-board {
    grid-template-columns: 1fr;
    padding: 0.62rem;
  }

  .voice-mini-orbit {
    min-height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .voice-mini-orbit span {
    min-height: 46px;
  }

  .voice-mini-insight-grid,
  .voice-mini-morph-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-mini-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-daw-pad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .voice-daw-pad {
    min-height: 62px;
    padding-inline: 0.2rem;
    font-size: 0.9rem;
  }

  .voice-daw-pad::after {
    font-size: 0.58rem;
  }

  .voice-advanced-panel summary {
    min-height: 46px;
    padding: 0.62rem;
  }

  .voice-advanced-grid {
    grid-template-columns: 1fr;
    gap: 0.48rem;
    padding: 0 0.62rem 0.62rem;
  }

  .voice-mini-mixer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-knob-control strong {
    width: 46px;
    height: 46px;
  }

  .voice-step-sequencer {
    overflow: visible;
    padding: 0.46rem;
  }

  .voice-step-row {
    grid-template-columns: 1fr;
    gap: 0.24rem;
  }

  .voice-step-row > span {
    white-space: normal;
  }

  .voice-step-buttons {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.18rem;
  }

  .voice-step-btn {
    min-height: 30px;
    border-radius: 6px;
    font-size: 0.64rem;
  }
}

@keyframes voice-layer-glow {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    filter: brightness(1.08);
  }
}

@media (max-width: 360px) {
  .voice-mini-insight-grid,
  .voice-mini-morph-grid {
    grid-template-columns: 1fr;
  }

  .voice-mini-mixer-grid {
    grid-template-columns: 1fr;
  }

  .voice-step-btn {
    font-size: 0.58rem;
  }
}

/* Hero brand prominence */
.hero-logo-wrap {
  width: clamp(220px, 16vw, 320px);
  min-height: 76px;
  place-items: center;
  overflow: visible;
}

.hero-logo-btn {
  margin: 0;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
}

.hero-logo-btn:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.hero-logo-btn:focus-visible {
  outline: 2px solid rgba(126, 232, 198, 0.86);
  outline-offset: 6px;
}

.hero-logo-mark {
  max-height: 104px;
  transform: scale(1.1);
  transform-origin: center;
  pointer-events: none;
  transition: filter 180ms ease, transform 180ms ease;
  filter: drop-shadow(0 12px 28px rgba(49, 236, 223, 0.2));
}

.hero-logo-btn:hover .hero-logo-mark,
.hero-logo-btn:focus-visible .hero-logo-mark {
  transform: scale(1.14);
  filter: drop-shadow(0 14px 34px rgba(49, 236, 223, 0.32));
}

@media (min-width: 1181px) {
  .hero-brand {
    gap: 1.2rem;
  }
}

@media (min-width: 781px) and (max-width: 1180px) {
  .hero-logo-wrap {
    width: clamp(190px, 24vw, 280px);
    min-height: 68px;
  }

  .hero-logo-mark {
    max-height: 92px;
  }
}

@media (max-width: 780px) {
  .hero-logo-wrap {
    width: clamp(132px, 36vw, 180px);
    min-height: 52px;
  }

  .hero-logo-mark {
    max-height: 68px;
    transform: scale(1.08);
  }
}

@media (max-width: 420px) {
  .hero-brand {
    gap: 0.62rem;
  }

  .hero-logo-wrap {
    width: clamp(118px, 34vw, 146px);
    min-height: 46px;
  }

  .hero-logo-mark {
    max-height: 58px;
  }
}

/* Swipe-first discovery */
.swipe-start-panel {
  gap: clamp(0.9rem, 2vw, 1.35rem);
}

.swipe-start-head {
  align-items: start;
}

.swipe-start-head h3 {
  max-width: 16ch;
  font-size: clamp(1.85rem, 3.8vw, 3.05rem);
  line-height: 0.96;
}

.swipe-start-head .section-hint {
  max-width: 42ch;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.42;
}

.swipe-start-cta {
  display: grid;
  gap: 0.72rem;
  align-self: end;
}

.swipe-hero-top-surprise {
  width: 100%;
  min-height: 58px;
  border-radius: 8px;
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  touch-action: manipulation;
}

.swipe-discovery-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.72rem, 1.8vw, 1rem);
  align-items: stretch;
  padding: clamp(0.76rem, 1.8vw, 1rem);
  border: 1px solid rgba(126, 232, 198, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(126, 232, 198, 0.12), rgba(138, 199, 255, 0.05) 42%, rgba(255, 255, 255, 0.025)),
    rgba(8, 13, 19, 0.66);
}

.swipe-discovery-copy {
  display: grid;
  align-content: center;
  gap: 0.3rem;
  min-width: 0;
}

.swipe-discovery-copy h4 {
  margin: 0;
  color: #f5fbff;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  line-height: 1.06;
}

.swipe-discovery-copy .muted {
  margin: 0;
  max-width: 42ch;
  font-size: 0.94rem;
  line-height: 1.38;
  display: none;
}

.swipe-style-rail {
  display: flex;
  grid-template-columns: none;
  gap: 0.48rem;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.08rem;
}

.swipe-style-rail::-webkit-scrollbar {
  display: none;
}

.swipe-style-pill {
  min-width: 0;
  flex: 0 0 clamp(150px, 29%, 190px);
  min-height: 68px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.18rem;
  border-radius: 8px;
  padding: 0.62rem 0.68rem;
  text-align: left;
  touch-action: manipulation;
  scroll-snap-align: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(6, 12, 24, 0.82);
  border-color: rgba(143, 210, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.swipe-style-pill span,
.swipe-style-pill small {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.swipe-style-pill span {
  color: #f3fbff;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.94rem, 1.45vw, 1.06rem);
  font-weight: 900;
  line-height: 1.05;
}

.swipe-style-pill small {
  color: #9fb5d8;
  font-size: 0.76rem;
  line-height: 1.18;
}

.swipe-style-pill:hover,
.swipe-style-pill:focus-visible {
  border-color: rgba(126, 232, 198, 0.64);
  background:
    linear-gradient(120deg, rgba(126, 232, 198, 0.2), rgba(138, 199, 255, 0.1)),
    rgba(8, 15, 28, 0.9);
}

.swipe-style-pill.active,
.swipe-style-pill[aria-pressed="true"] {
  border-color: rgba(126, 232, 198, 0.9);
  background: linear-gradient(110deg, #7ee8c6, #8ac7ff);
  box-shadow: 0 12px 26px rgba(126, 232, 198, 0.14);
}

.swipe-style-pill.active span,
.swipe-style-pill[aria-pressed="true"] span {
  color: #06120f;
}

.swipe-style-pill.active small,
.swipe-style-pill[aria-pressed="true"] small {
  color: rgba(6, 18, 15, 0.72);
}

.swipe-style-toggle {
  flex-basis: clamp(134px, 22%, 172px);
  border-style: dashed;
  background:
    linear-gradient(120deg, rgba(126, 232, 198, 0.12), rgba(138, 199, 255, 0.08)),
    rgba(8, 15, 28, 0.72);
}

.swipe-style-toggle span {
  font-size: 0.96rem;
}

.swipe-start-stage {
  width: min(100%, 960px);
}

.swipe-hero-card {
  min-height: clamp(390px, 46vw, 520px);
  border-radius: 12px;
}

.swipe-hero-copy h4 {
  max-width: 13ch;
}

.swipe-hero-copy .muted {
  font-size: clamp(1rem, 1.65vw, 1.15rem);
  line-height: 1.36;
}

.swipe-track-signals span {
  min-height: 36px;
  font-size: 0.9rem;
}

.swipe-hero-actions {
  gap: 0.62rem;
}

.swipe-hero-actions button,
.swipe-action-btn {
  min-height: 62px;
  border-radius: 8px;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  touch-action: manipulation;
}

.swipe-hero-surprise {
  font-size: clamp(1.06rem, 1.9vw, 1.24rem);
}

@media (min-width: 760px) {
  .quick-known-panel {
    grid-template-columns: minmax(0, 1fr) minmax(286px, 0.82fr);
    align-items: center;
  }
}

.preference-panel {
  border-color: rgba(219, 209, 188, 0.13);
  background: linear-gradient(180deg, rgba(16, 20, 27, 0.82), rgba(8, 11, 16, 0.76));
}

.preference-panel .section-head {
  align-items: start;
}

.preference-panel .section-kicker {
  color: rgba(126, 232, 198, 0.78);
}

@media (min-width: 1120px) {
  .app-shell {
    width: min(1200px, calc(100% - 96px));
    column-gap: 0.96rem;
  }

  .swipe-start-panel[data-app-tab="discover"] {
    grid-column: 1 / span 7;
    justify-self: end;
    width: min(100%, 690px);
  }

  .preference-panel[data-app-tab="discover"] {
    grid-column: 8 / -1;
    justify-self: start;
    width: min(100%, 500px);
    --preference-panel-sticky-top: calc(var(--signature-bar-height) + 0.85rem);
    top: var(--preference-panel-sticky-top);
  }

  .swipe-start-stage,
  .swipe-discovery-strip {
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .swipe-discovery-strip {
    grid-template-columns: 1fr;
  }

  .swipe-style-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .swipe-start-panel {
    padding: 0.82rem;
  }

  .swipe-start-head {
    grid-template-columns: 1fr;
  }

  .swipe-start-cta {
    gap: 0.58rem;
  }

  .swipe-hero-top-surprise {
    min-height: 56px;
  }

  .swipe-start-head h3 {
    max-width: 13ch;
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .swipe-discovery-strip {
    padding: 0.68rem;
  }

  .swipe-style-rail {
    gap: 0.4rem;
  }

  .swipe-style-pill {
    min-height: 66px;
    padding: 0.58rem;
  }

  .swipe-hero-card {
    min-height: 430px;
    padding: 0.86rem;
    gap: 0.76rem;
  }

  .swipe-hero-art {
    width: min(52vw, 188px);
  }

  .swipe-hero-copy h4 {
    font-size: clamp(2.05rem, 10.6vw, 3.05rem);
    line-height: 0.96;
  }

  .swipe-hero-actions {
    grid-template-columns: 1fr;
  }

  .swipe-hero-actions button {
    min-height: 58px;
    width: 100%;
  }

  .quick-known-panel {
    gap: 0.62rem;
    padding: 0.72rem;
  }

  .quick-known-actions {
    gap: 0.44rem;
  }

  .quick-known-btn {
    min-height: 56px;
    padding-inline: 0.5rem;
  }

  .swipe-hint {
    font-size: 0.96rem;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  .swipe-style-rail {
    grid-template-columns: 1fr;
  }

  .swipe-hero-card {
    min-height: 410px;
  }

  .swipe-track-signals span {
    width: 100%;
  }

  .quick-known-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero.panel {
    padding: 0.72rem;
    gap: 0.48rem;
    border-radius: 10px;
  }

  .hero-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.52rem;
    align-items: center;
  }

  .hero-logo-wrap {
    width: clamp(104px, 31vw, 132px);
    min-height: 38px;
  }

  .hero-logo-mark {
    max-height: 50px;
    transform: none;
  }

  .hero h2 {
    max-width: 18ch;
    font-size: clamp(1.28rem, 5.8vw, 1.72rem);
    line-height: 1;
  }

  .hero #heroDesc,
  .hero-slogan,
  .hero-mission {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 0.4rem;
    align-items: stretch;
  }

  .hero-help-btn,
  .audio-toggle {
    min-height: 44px;
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
  }

  .app-tab-bar {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.18rem;
    padding: 0.24rem;
  }

  .app-tab-btn {
    grid-column: auto;
    min-height: 46px;
    padding: 0.28rem 0.18rem;
    font-size: clamp(0.62rem, 2.55vw, 0.78rem);
    line-height: 1.05;
  }

  .app-tab-btn:nth-child(5) {
    grid-column: auto;
  }

  .swipe-discovery-strip {
    gap: 0.56rem;
  }

  .swipe-discovery-copy h4 {
    font-size: 1.04rem;
  }

  .swipe-discovery-copy .muted {
    display: none;
  }

  .swipe-style-rail {
    display: flex;
    grid-template-columns: none;
    gap: 0.42rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.08rem;
  }

  .swipe-style-rail::-webkit-scrollbar {
    display: none;
  }

  .swipe-style-pill {
    flex: 0 0 min(62vw, 178px);
    min-height: 64px;
    scroll-snap-align: start;
  }

  .swipe-hero-card {
    min-height: 386px;
  }

  .swipe-hero-actions {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr) minmax(0, 0.92fr);
    gap: 0.38rem;
  }

  .swipe-hero-actions button {
    min-height: 56px;
    padding-inline: 0.22rem;
    font-size: clamp(0.78rem, 3.3vw, 0.98rem);
    line-height: 1.05;
  }
}

@media (max-width: 380px) {
  .swipe-style-pill {
    flex-basis: min(72vw, 188px);
  }

  .swipe-hero-actions button {
    font-size: 0.78rem;
  }
}

/* Discovery card final layout: larger artwork, cleaner reading, stronger actions. */
.swipe-start-stage {
  width: min(100%, 980px);
}

.swipe-start-stage::before {
  display: none;
}

.swipe-hero-card {
  min-height: clamp(306px, 34vw, 420px);
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 1.45rem);
  padding: clamp(1rem, 2.1vw, 1.42rem);
  border-radius: 16px;
  border-color: rgba(132, 232, 255, 0.28);
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 232, 198, 0.18), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(128, 178, 255, 0.15), transparent 32%),
    linear-gradient(145deg, rgba(15, 24, 30, 0.96), rgba(5, 10, 22, 0.94));
  box-shadow:
    0 22px 54px rgba(0, 7, 20, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.swipe-hero-card::before {
  opacity: 0.46;
  background:
    linear-gradient(115deg, transparent 0 37%, rgba(126, 232, 198, 0.06) 37% 38%, transparent 38% 100%),
    repeating-linear-gradient(90deg, rgba(145, 216, 255, 0.04) 0 1px, transparent 1px 58px);
}

.swipe-hero-art {
  width: clamp(250px, 33vw, 340px);
  max-width: 100%;
  border-radius: 20px;
  border-color: rgba(126, 232, 198, 0.34);
  background:
    linear-gradient(135deg, rgba(126, 232, 198, 0.28), rgba(138, 199, 255, 0.17)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    0 18px 38px rgba(0, 7, 20, 0.3),
    0 0 42px rgba(93, 233, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.swipe-hero-art::before,
.swipe-hero-art::after {
  border-radius: 16px;
}

.swipe-hero-art::before {
  inset: 0.54rem;
  border-color: rgba(220, 246, 255, 0.2);
}

.swipe-hero-art::after {
  inset: 0.9rem;
  border-color: rgba(255, 151, 219, 0.18);
}

.swipe-hero-image {
  inset: 0.58rem;
  width: calc(100% - 1.16rem);
  height: calc(100% - 1.16rem);
  border-radius: 15px;
  object-fit: cover;
}

.swipe-hero-fallback {
  border-radius: 18px;
}

.swipe-hero-copy {
  align-content: center;
  gap: clamp(0.46rem, 1.1vw, 0.64rem);
}

.swipe-hero-copy h4 {
  max-width: 100%;
  font-size: clamp(2.35rem, 5.15vw, 4.15rem);
  line-height: 0.96;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.swipe-hero-copy .muted {
  max-width: 52ch;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.36;
}

.swipe-track-signals {
  gap: 0.42rem;
}

.swipe-track-signals span {
  min-height: 34px;
  border-color: rgba(138, 199, 255, 0.36);
  background: rgba(5, 12, 25, 0.78);
  font-size: clamp(0.78rem, 1.15vw, 0.9rem);
}

.swipe-hero-actions {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.25fr) minmax(0, 0.94fr);
  gap: clamp(0.48rem, 1.2vw, 0.72rem);
}

.swipe-hero-actions button {
  min-height: 62px;
  border-radius: 14px;
  padding-inline: clamp(0.55rem, 1.2vw, 0.9rem);
  font-size: clamp(0.96rem, 1.28vw, 1.08rem);
  line-height: 1.06;
  box-shadow:
    0 16px 34px rgba(0, 7, 20, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.swipe-hero-actions .swipe-action-btn.pass {
  color: #ffd9e6;
  border-color: rgba(255, 143, 180, 0.5);
  background:
    linear-gradient(135deg, rgba(92, 23, 48, 0.74), rgba(12, 17, 34, 0.92)),
    rgba(8, 15, 28, 0.88);
}

.swipe-hero-actions .swipe-hero-surprise {
  color: #061124;
  border-color: rgba(126, 232, 198, 0.8);
  background:
    linear-gradient(108deg, #36f0d8 0%, #72d8ee 45%, #8b9dff 100%);
  box-shadow:
    0 18px 38px rgba(93, 233, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.swipe-hero-actions .swipe-action-btn.like {
  color: #061124;
  border-color: rgba(126, 232, 198, 0.85);
  background:
    linear-gradient(108deg, #78ebc8 0%, #89d8ff 100%);
}

.quick-known-panel {
  grid-template-columns: 1fr;
  border-radius: 14px;
  padding: clamp(0.78rem, 1.5vw, 1rem);
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 232, 198, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(126, 232, 198, 0.12), rgba(138, 199, 255, 0.08) 48%, rgba(255, 208, 125, 0.06)),
    rgba(5, 12, 24, 0.92);
}

.quick-known-question {
  max-width: none;
  font-size: clamp(1.18rem, 2.2vw, 1.54rem);
}

.quick-known-btn {
  min-height: 62px;
  border-radius: 12px;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
}

@media (max-width: 860px) {
  .swipe-hero-card {
    grid-template-columns: minmax(188px, 0.72fr) minmax(0, 1fr);
    min-height: clamp(286px, 44vw, 380px);
  }

  .swipe-hero-art {
    width: clamp(210px, 36vw, 290px);
  }
}

@media (max-width: 620px) {
  .swipe-start-stage {
    gap: 0.64rem;
  }

  .swipe-hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0.82rem;
    gap: 0.78rem;
  }

  .swipe-hero-art {
    width: min(70vw, 260px);
  }

  .swipe-hero-copy h4 {
    font-size: clamp(2rem, 9.2vw, 3.08rem);
    line-height: 1;
  }

  .swipe-hero-actions {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 0.48rem;
  }

  .swipe-hero-actions button {
    min-height: 58px;
    padding-inline: 0.25rem;
    font-size: clamp(0.78rem, 3.3vw, 0.98rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .quick-known-panel {
    margin-top: 0.58rem;
  }

  .quick-known-question {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .swipe-hero-art {
    width: min(72vw, 240px);
  }

  .swipe-hero-actions button {
    font-size: 0.78rem;
  }
}

/* Signature ticker */
.signature-bar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(0.72rem + env(safe-area-inset-bottom));
  width: min(1120px, calc(100vw - 36px));
  height: 34px;
  min-height: 34px;
  margin: 0;
  transform: translateX(-50%);
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(219, 209, 188, 0.14);
  border-radius: 8px;
  z-index: 60;
}

.signature-bar.is-hidden {
  display: none !important;
}

.signature-track {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  min-width: max-content;
  max-width: none;
  display: inline-flex;
  justify-content: flex-start;
  gap: 0.72rem;
  overflow: visible;
  padding-inline: 1.2rem;
  white-space: nowrap;
  transform: none;
  animation: none;
}

.signature-track.clone {
  display: none;
}

.signature-divider,
.signature-track .signature-pill:nth-of-type(2) {
  display: inline;
}

.signature-pill {
  min-width: max-content;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .signature-bar {
    bottom: calc(0.44rem + env(safe-area-inset-bottom));
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
    height: 32px;
    min-height: 32px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .signature-track {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate3d(0, -50%, 0);
    animation: signature-marquee-primary 18s linear infinite;
    will-change: transform;
  }

  .signature-track.clone {
    display: inline-flex;
    animation-name: signature-marquee-secondary;
  }
}

@media (max-width: 620px) and (prefers-reduced-motion: no-preference) {
  .signature-track {
    gap: 0.58rem;
    padding-inline: 0.86rem;
    animation-duration: 14s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-bar {
    justify-content: center;
  }

  .signature-track {
    width: 100%;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
  }

  .signature-divider,
  .signature-track .signature-pill:nth-of-type(2) {
    display: none;
  }

  .signature-pill {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Legal notices */
.legal-hub {
  position: relative;
  width: 100%;
  padding: clamp(1rem, 2.8vw, 1.6rem);
  border: 1px solid rgba(126, 205, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7, 16, 34, 0.82), rgba(2, 8, 19, 0.92)),
    radial-gradient(circle at 12% 18%, rgba(110, 255, 220, 0.1), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(125, 224, 255, 0.11), transparent 34%);
}

.legal-hub-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.legal-hub-head {
  display: grid;
  gap: 0.55rem;
  max-width: 780px;
}

.legal-hub-head h2 {
  margin: 0;
  color: #f4fbff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.05;
}

.legal-hub-head p {
  margin: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 1rem;
}

.legal-item {
  min-width: 0;
  border: 1px solid rgba(126, 205, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 12, 29, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.legal-item summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.82rem 0.9rem;
  color: #dff8ff;
  cursor: pointer;
  font-family: "Syne", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  list-style: none;
}

.legal-item summary::-webkit-details-marker {
  display: none;
}

.legal-item summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(110, 255, 220, 0.38);
  border-radius: 999px;
  color: #8ffff0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.92rem;
  line-height: 1;
}

.legal-item[open] summary::before {
  content: "-";
}

.legal-item p {
  margin: 0;
  padding: 0 0.95rem 0.95rem 2.75rem;
  color: rgba(218, 239, 255, 0.74);
  font-size: 0.83rem;
  line-height: 1.55;
}

.legal-disclaimer {
  margin: 0.9rem 0 0;
  color: rgba(178, 209, 241, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .legal-hub {
    padding-inline: 0.75rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-item p {
    padding-left: 0.95rem;
  }
}

/* iPhone audio controls */
.audio-toggle.needs-unlock {
  border-color: rgba(126, 232, 198, 0.72);
  background:
    radial-gradient(circle at 16% 20%, rgba(126, 232, 198, 0.24), transparent 44%),
    linear-gradient(145deg, rgba(9, 30, 36, 0.94), rgba(11, 21, 49, 0.86));
  box-shadow: 0 0 0 2px rgba(126, 232, 198, 0.08), inset 0 0 0 1px rgba(142, 207, 255, 0.1);
}

.audio-toggle.needs-unlock .audio-toggle-bar {
  opacity: 1;
  animation: audio-level-bounce 0.86s ease-in-out infinite;
}

.audio-toggle[data-audio-state="unavailable"] {
  opacity: 0.7;
}

@media (max-width: 780px) {
  .hero,
  .hero.panel,
  .hero-actions,
  .audio-control-group {
    overflow: visible;
  }

  .hero.panel {
    contain: none;
    content-visibility: visible;
  }

  .audio-control-group {
    z-index: 30;
  }

  .hero-actions.volume-open {
    padding-bottom: 5.4rem;
  }

  .hero-actions .audio-volume-control {
    display: grid !important;
    grid-template-columns: auto minmax(118px, 1fr) 2.8rem;
    top: calc(100% + 0.44rem) !important;
    right: 0 !important;
    left: auto !important;
    width: min(88vw, 342px);
    max-width: calc(100vw - 28px);
    min-height: 44px;
    padding: 0.52rem 0.62rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    z-index: 80;
  }

  .hero-actions .audio-toggle.audio-volume-open + .audio-volume-control,
  .hero-actions .audio-volume-control.open,
  .hero-actions .audio-volume-control:focus-within {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .hero-actions .audio-volume-control input[type="range"] {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .hero-actions .audio-volume-control {
    grid-template-columns: 1fr minmax(116px, 1.4fr) auto;
    width: calc(100vw - 28px);
  }
}

/* Tinder-style discovery: first decision stays simple, details move below/profile. */
#swipeStartPanel.swipe-start-panel[data-app-tab="discover"] {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 720px);
  min-height: min(780px, calc(100svh - 190px));
  align-content: center;
  gap: clamp(0.72rem, 1.5vw, 1rem);
}

#swipeStartPanel .swipe-start-head {
  display: block;
  text-align: center;
}

#swipeStartPanel .swipe-start-head .section-kicker,
#swipeStartPanel .swipe-start-cta,
#swipeStartPanel .swipe-discovery-strip,
#topSwipeKicker,
#topSwipeBadges,
#topRecommendationTrustPanel,
#topSwipeReason,
#topSwipeCard .swipe-track-signals,
#topSwipeHint {
  display: none !important;
}

#swipeStartPanel .swipe-start-head h3 {
  max-width: none;
  font-size: clamp(1.34rem, 2.8vw, 2.08rem);
  line-height: 1;
}

#swipeStartPanel .swipe-start-stage {
  width: min(100%, 560px);
  gap: 0.7rem;
}

#topSwipeCard.swipe-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(500px, 66svh, 680px);
  padding: 0;
  gap: 0;
  overflow: hidden;
  align-items: stretch;
  border-radius: 24px;
  border-color: rgba(126, 232, 198, 0.36);
  background:
    radial-gradient(circle at 20% 12%, rgba(126, 232, 198, 0.2), transparent 36%),
    radial-gradient(circle at 82% 0%, rgba(138, 199, 255, 0.17), transparent 38%),
    linear-gradient(165deg, rgba(8, 18, 33, 0.98), rgba(3, 8, 20, 0.98));
  box-shadow:
    0 28px 74px rgba(0, 7, 20, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#topSwipeCard.swipe-hero-card::before {
  opacity: 0.34;
}

#topSwipeCard .swipe-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: inherit;
  background:
    conic-gradient(from 205deg at 50% 35%, rgba(126, 232, 198, 0.55), rgba(138, 199, 255, 0.4), rgba(255, 151, 219, 0.18), rgba(126, 232, 198, 0.55)),
    linear-gradient(150deg, rgba(8, 20, 36, 0.98), rgba(4, 9, 23, 0.98));
  box-shadow: none;
}

#topSwipeCard .swipe-hero-art::before,
#topSwipeCard .swipe-hero-art::after {
  display: none;
}

#topSwipeCard .swipe-hero-image {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(1.14) contrast(1.08);
}

#topSwipeCard .swipe-hero-fallback {
  inset: 0;
  border-radius: inherit;
  color: rgba(4, 12, 28, 0.74);
  font-size: clamp(4.8rem, 20vw, 9rem);
  background:
    radial-gradient(circle at 50% 34%, rgba(245, 251, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(126, 232, 198, 0.94), rgba(138, 199, 255, 0.78));
}

#topSwipeCard .swipe-preview-pulse {
  opacity: 0.52;
}

#topSwipeCard .swipe-hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  min-height: 42%;
  align-content: end;
  gap: 0.48rem;
  padding: clamp(1.05rem, 3vw, 1.5rem);
  background:
    linear-gradient(180deg, rgba(3, 8, 19, 0) 0%, rgba(3, 8, 19, 0.58) 30%, rgba(3, 8, 19, 0.94) 100%);
}

#topSwipeCard .swipe-hero-copy h4 {
  max-width: 100%;
  font-size: clamp(2.45rem, 7.8vw, 4.75rem);
  line-height: 0.94;
}

#topSwipeCard .swipe-hero-copy .muted {
  max-width: 100%;
  color: rgba(230, 244, 255, 0.84);
  font-size: clamp(0.98rem, 1.9vw, 1.15rem);
  line-height: 1.28;
}

#swipeStartPanel .swipe-hero-actions {
  width: min(100%, 560px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(0.42rem, 1.3vw, 0.66rem);
}

#swipeStartPanel .swipe-hero-actions button {
  min-height: 64px;
  border-radius: 999px;
  padding-inline: clamp(0.42rem, 1.2vw, 0.85rem);
  font-size: clamp(0.92rem, 1.45vw, 1.05rem);
  line-height: 1.05;
  white-space: nowrap;
}

#swipeStartPanel .swipe-hero-actions .swipe-action-btn.pass {
  color: #ffdce8;
  border-color: rgba(255, 122, 160, 0.58);
}

#swipeStartPanel .swipe-hero-actions .swipe-hero-surprise {
  color: #061124;
  border-color: rgba(126, 232, 198, 0.88);
}

#swipeStartPanel .swipe-hero-actions .swipe-action-btn.like {
  color: #061124;
  border-color: rgba(126, 232, 198, 0.92);
}

.preference-panel[data-app-tab="discover"] {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 720px);
  position: relative;
  top: auto;
  margin-top: 0.18rem;
  opacity: 0.78;
}

@media (min-width: 1120px) {
  .app-shell {
    width: min(1040px, calc(100% - 64px));
  }

  #swipeStartPanel.swipe-start-panel[data-app-tab="discover"],
  .preference-panel[data-app-tab="discover"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .now-playing-genre {
    width: 100%;
    border-radius: 11px;
    padding: 0.64rem 0.68rem;
  }

  .now-playing-genre strong {
    --now-playing-style-size: clamp(1.36rem, 7.4vw, 2.02rem);
  }

  .now-playing-genre strong.is-long-word {
    --now-playing-style-size: clamp(1.02rem, 5.35vw, 1.42rem);
    white-space: nowrap;
  }

  .now-playing-genre strong.is-long-label {
    --now-playing-style-size: clamp(1rem, 5.2vw, 1.42rem);
  }

  .now-playing-genre small {
    gap: 0.22rem 0.38rem;
    font-size: 0.82rem;
  }

  .swipe-track-signals span.genre-signal {
    min-height: 44px;
    min-width: min(100%, 132px);
    padding-inline: 0.58rem;
    font-size: 0.9rem;
  }

  #swipeStartPanel.swipe-start-panel[data-app-tab="discover"] {
    width: 100%;
    min-height: auto;
    padding: 0.74rem;
  }

  #swipeStartPanel .swipe-start-head h3 {
    font-size: clamp(1.18rem, 6vw, 1.7rem);
  }

  #topSwipeCard.swipe-hero-card {
    min-height: clamp(420px, 62svh, 560px);
    border-radius: 19px;
  }

  #topSwipeCard .swipe-hero-copy {
    min-height: 38%;
    padding: 0.95rem;
  }

  #topSwipeCard .swipe-hero-copy h4 {
    font-size: clamp(2.15rem, 10vw, 3.35rem);
  }

  #swipeStartPanel .swipe-hero-actions {
    gap: 0.36rem;
  }

  #swipeStartPanel .swipe-hero-actions button {
    min-height: 56px;
    padding-inline: 0.26rem;
    font-size: clamp(0.74rem, 3.45vw, 0.92rem);
  }

  .preference-panel[data-app-tab="discover"] {
    opacity: 0.72;
  }
}

/* Mobile discovery polish: make the empty swipe state feel like a refined app surface. */
#swipeStartPanel.swipe-start-panel[data-app-tab="discover"] {
  min-height: auto;
  align-content: start;
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border-color: rgba(126, 232, 198, 0.22);
  background:
    radial-gradient(circle at 14% 0%, rgba(126, 232, 198, 0.16), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(130, 189, 255, 0.11), transparent 30%),
    linear-gradient(160deg, rgba(6, 17, 29, 0.96), rgba(3, 8, 18, 0.96));
}

#swipeStartPanel .swipe-start-head h3 {
  font-size: clamp(1.28rem, 3.4vw, 1.85rem);
  letter-spacing: 0;
}

#swipeStartPanel .swipe-start-stage {
  width: min(100%, 520px);
}

#topSwipeCard.swipe-hero-card.is-empty {
  min-height: clamp(330px, 50svh, 430px);
  border-radius: 20px;
  border-color: rgba(132, 244, 224, 0.26);
  background:
    radial-gradient(circle at 22% 18%, rgba(126, 232, 198, 0.2), transparent 32%),
    radial-gradient(circle at 84% 0%, rgba(124, 181, 255, 0.2), transparent 34%),
    linear-gradient(170deg, rgba(7, 23, 33, 0.98), rgba(3, 9, 20, 0.98));
  box-shadow:
    0 18px 52px rgba(0, 7, 20, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

#topSwipeCard.swipe-hero-card.is-empty::before {
  opacity: 0.42;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(126, 232, 198, 0.09) 40% 41%, transparent 41% 100%),
    repeating-linear-gradient(90deg, rgba(160, 233, 255, 0.04) 0 1px, transparent 1px 46px);
}

#topSwipeCard.swipe-hero-card.is-empty::after {
  opacity: 1;
  z-index: 1;
  inset: auto 8% 8%;
  height: 92px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 50%, rgba(126, 232, 198, 0.22), transparent 38%),
    radial-gradient(circle at 74% 50%, rgba(132, 183, 255, 0.2), transparent 38%),
    linear-gradient(90deg, rgba(126, 232, 198, 0.08), rgba(126, 176, 255, 0.07));
  filter: blur(16px);
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-art {
  background:
    radial-gradient(circle at 48% 30%, rgba(244, 255, 252, 0.22), transparent 19%),
    conic-gradient(from 220deg at 50% 46%, rgba(126, 232, 198, 0.68), rgba(118, 178, 255, 0.44), rgba(255, 164, 220, 0.2), rgba(126, 232, 198, 0.68)),
    linear-gradient(145deg, rgba(4, 16, 26, 0.98), rgba(2, 7, 17, 0.98));
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-art::before,
#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-art::after {
  display: block;
  position: absolute;
  content: "";
  pointer-events: none;
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-art::before {
  inset: 12%;
  border: 1px solid rgba(231, 255, 250, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 34px rgba(126, 232, 198, 0.09),
    0 0 36px rgba(126, 232, 198, 0.08);
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-art::after {
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 40px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(126, 232, 198, 0.16), rgba(123, 174, 255, 0.2), rgba(255, 164, 220, 0.12));
  filter: blur(10px);
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-fallback {
  color: transparent;
  background: transparent;
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-preview-pulse {
  opacity: 0.66;
  inset: auto 19% 17% 19%;
  height: 32px;
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-copy {
  min-height: 44%;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0) 0%, rgba(3, 8, 18, 0.52) 32%, rgba(3, 8, 18, 0.96) 100%);
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-copy h4 {
  max-width: 11ch;
  font-size: clamp(2.05rem, 6vw, 3.4rem);
  line-height: 0.96;
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-copy .muted {
  max-width: 22ch;
  font-size: clamp(0.92rem, 1.6vw, 1.04rem);
  color: rgba(221, 240, 255, 0.74);
}

#swipeStartPanel .swipe-hero-actions {
  width: min(100%, 520px);
}

#swipeStartPanel .swipe-hero-actions button {
  min-height: 56px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: none;
  box-shadow:
    0 12px 28px rgba(0, 7, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#swipeStartPanel .swipe-hero-actions .swipe-action-btn.pass {
  color: #ffe8f0;
  background:
    linear-gradient(135deg, rgba(65, 20, 41, 0.84), rgba(13, 18, 34, 0.92));
}

#swipeStartPanel .swipe-hero-actions .swipe-hero-surprise,
#swipeStartPanel .swipe-hero-actions .swipe-action-btn.like {
  color: #071426;
}

.app-tab-bar {
  border-radius: 16px;
  padding: 0.3rem;
  gap: 0.32rem;
}

.app-tab-btn {
  border-radius: 12px;
}

@media (max-width: 620px) {
  .app-tab-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.32rem;
    overflow: visible;
    padding: 0.3rem;
    border-color: rgba(126, 232, 198, 0.18);
  }

  .app-tab-btn {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding-inline: 0.22rem;
    font-size: clamp(0.62rem, 2.85vw, 0.76rem);
  }

  #swipeStartPanel.swipe-start-panel[data-app-tab="discover"] {
    padding: 0.72rem;
    gap: 0.56rem;
  }

  #swipeStartPanel .swipe-start-head h3 {
    font-size: clamp(1.08rem, 5.1vw, 1.42rem);
  }

  #topSwipeCard.swipe-hero-card.is-empty {
    min-height: clamp(315px, 48svh, 395px);
    border-radius: 18px;
  }

  #topSwipeCard.swipe-hero-card.is-empty .swipe-hero-copy {
    min-height: 43%;
    padding: 0.92rem;
  }

  #topSwipeCard.swipe-hero-card.is-empty .swipe-hero-copy h4 {
    font-size: clamp(1.76rem, 8.4vw, 2.46rem);
  }

  #topSwipeCard.swipe-hero-card.is-empty .swipe-hero-copy .muted {
    font-size: 0.9rem;
  }

  #swipeStartPanel .swipe-hero-actions {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.12fr) minmax(0, 0.96fr);
  }

  #swipeStartPanel .swipe-hero-actions button {
    min-height: 52px;
    font-size: clamp(0.72rem, 3.15vw, 0.86rem);
  }
}

/* Artwork-first discovery pass: the swipe card should feel like a real music card, not a form. */
.context-moment-panel {
  display: grid;
  gap: 0.78rem;
  border: 1px solid rgba(126, 232, 198, 0.2);
  border-radius: 14px;
  padding: clamp(0.78rem, 1.7vw, 1rem);
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 232, 198, 0.13), transparent 34%),
    linear-gradient(150deg, rgba(6, 15, 29, 0.88), rgba(4, 9, 22, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.context-moment-copy {
  display: grid;
  gap: 0.22rem;
}

.context-moment-copy h4 {
  margin: 0;
  color: #effbff;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.05;
}

.context-moment-copy .muted {
  margin: 0;
  max-width: 52ch;
  font-size: 0.9rem;
}

.context-moment-panel .smart-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 0.42rem;
}

.context-moment-panel .smart-preset-btn {
  min-height: 44px;
  border-radius: 12px;
  padding-inline: 0.52rem;
  color: #dff8ff;
  background:
    linear-gradient(150deg, rgba(11, 21, 42, 0.92), rgba(4, 11, 25, 0.9));
}

.context-moment-panel .smart-preset-btn:hover,
.context-moment-panel .smart-preset-btn.active,
.context-moment-panel .smart-preset-btn[aria-pressed="true"] {
  color: #061225;
  border-color: rgba(126, 232, 198, 0.82);
  background: linear-gradient(108deg, #78ebc8 0%, #8bd9ff 100%);
}

.precision-filters {
  margin-top: 0.72rem;
  border: 1px solid rgba(127, 209, 255, 0.18);
  border-radius: 13px;
  background: rgba(5, 11, 24, 0.44);
  overflow: hidden;
}

.precision-filters > summary {
  cursor: pointer;
  padding: 0.68rem 0.78rem;
  color: #cde9ff;
  font-weight: 900;
  list-style: none;
}

.precision-filters > summary::-webkit-details-marker {
  display: none;
}

.precision-filters > summary::after {
  content: "+";
  float: right;
  color: #7bf4d9;
}

.precision-filters[open] > summary::after {
  content: "-";
}

.precision-filters:not([open]) > :not(summary) {
  display: none !important;
}

.precision-filters .fields-grid,
.precision-filters > .field,
.precision-filters .advanced-filters {
  margin-inline: 0.72rem;
}

.precision-filters .fields-grid {
  margin-top: 0.1rem;
}

.precision-filters > .field {
  margin-top: 0.7rem;
}

.precision-filters .advanced-filters {
  margin-bottom: 0.72rem;
}

.preference-panel[data-app-tab="discover"] {
  opacity: 0.94;
}

.swipe-start-stage::before {
  display: none;
}

#topSwipeCard.swipe-hero-card {
  border-color: rgba(205, 245, 255, 0.22);
  background:
    radial-gradient(circle at 18% 12%, rgba(126, 232, 198, 0.1), transparent 32%),
    linear-gradient(165deg, rgba(4, 9, 19, 0.98), rgba(2, 6, 15, 0.98));
}

#topSwipeCard.swipe-hero-card:not(.is-empty) {
  min-height: clamp(520px, 70svh, 710px);
  background: #040812;
}

#topSwipeCard.swipe-hero-card:not(.is-empty)::before {
  z-index: 1;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(1, 5, 13, 0.04) 0%, rgba(1, 5, 13, 0) 38%, rgba(1, 5, 13, 0.38) 78%, rgba(1, 5, 13, 0.74) 100%),
    radial-gradient(circle at 50% 102%, rgba(126, 232, 198, 0.18), transparent 42%);
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-art {
  background: #040812;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-image {
  opacity: 1;
  filter: brightness(1.82) saturate(1.14) contrast(0.98);
  object-position: center 36%;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-fallback {
  color: rgba(189, 227, 242, 0.1);
  background:
    radial-gradient(circle at 50% 34%, rgba(125, 224, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(8, 17, 32, 0.98), rgba(2, 6, 16, 0.98));
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-preview-pulse {
  z-index: 3;
  opacity: 0.64;
  inset: auto 10% 13% 10%;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy {
  z-index: 4;
  min-height: 38%;
  padding: clamp(1.05rem, 3vw, 1.42rem);
  background:
    linear-gradient(180deg, rgba(2, 6, 15, 0) 0%, rgba(2, 6, 15, 0.24) 34%, rgba(2, 6, 15, 0.72) 100%);
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy h4 {
  max-width: 11ch;
  color: #f7fbff;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(126, 232, 198, 0.18);
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy .muted {
  max-width: 28ch;
  color: rgba(233, 244, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

#topSwipeCard.swipe-hero-card.is-empty {
  background:
    radial-gradient(circle at 50% 18%, rgba(126, 232, 198, 0.12), transparent 34%),
    radial-gradient(circle at 76% 90%, rgba(138, 199, 255, 0.1), transparent 32%),
    linear-gradient(165deg, rgba(5, 13, 24, 0.98), rgba(2, 6, 15, 0.98));
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-art {
  background:
    radial-gradient(circle at 50% 42%, rgba(236, 255, 250, 0.13), transparent 22%),
    radial-gradient(circle at 50% 56%, rgba(126, 232, 198, 0.16), transparent 34%),
    linear-gradient(150deg, rgba(5, 14, 25, 0.98), rgba(2, 6, 15, 0.98));
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-copy {
  min-height: 46%;
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-copy h4 {
  max-width: 10ch;
}

#topSwipeCard.swipe-hero-card.is-empty .swipe-hero-fallback {
  color: transparent;
  background: transparent;
}

#primaryTrackCard.main-track {
  gap: 0.56rem;
}

#primaryTrackCard.main-track > * {
  order: 20;
}

#primaryTrackCard .primary-swipe-stamp {
  order: 0;
}

#primaryTrackCard > .chip,
#primaryTrackCard > .generated-badge,
#primarySwipeHint {
  display: none;
}

#primaryTrackCard #artistVisualCard {
  order: 1;
  grid-template-columns: minmax(106px, 34%) minmax(0, 1fr);
  align-items: center;
  max-width: 100%;
  margin: 0 0 0.12rem;
  padding: 0.58rem;
  border-radius: 14px;
  border-color: rgba(205, 245, 255, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 232, 198, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(7, 17, 31, 0.86), rgba(4, 9, 20, 0.86));
}

#primaryTrackCard #artistVisualCard .artist-photo-frame {
  width: 100%;
  min-width: 94px;
  border-radius: 12px;
}

#primaryTrackCard #artistVisualCard figcaption span {
  font-size: 0.68rem;
}

#primaryTrackCard #artistVisualCard figcaption strong {
  font-size: clamp(1.02rem, 4vw, 1.42rem);
}

#primaryTrackCard #artistVisualCard figcaption small {
  font-size: 0.76rem;
}

#primaryTrackCard #songTitle {
  order: 2;
  margin-top: 0.04rem;
}

#primaryTrackCard #nowPlayingGenre {
  order: 3;
  margin-top: 0.04rem;
}

#primaryTrackCard #trackMicroReason {
  order: 4;
  margin: 0;
  color: rgba(225, 241, 255, 0.82);
}

#primaryTrackCard #artistLine {
  order: 5;
}

#primaryTrackCard #bpmLine {
  order: 6;
}

#primaryTrackCard > .meta-line:not(.artist-line):not(.bpm-line) {
  order: 7;
}

#primaryTrackCard #songVibe {
  order: 8;
}

#primaryTrackCard #trackStatusBadges {
  order: 9;
}

#primaryTrackCard #recommendationTrustPanel {
  order: 10;
  margin: 0.1rem 0 0.2rem;
}

#primaryTrackCard #previewPanel {
  order: 11;
}

#primaryTrackCard .listen-links {
  order: 12;
}

#primaryTrackCard #knownArtistPrompt,
#primaryTrackCard #listeningPrompt {
  order: 13;
}

#primaryTrackCard #recommendationWhyPanel {
  order: 16;
  margin-top: 0.1rem;
}

#primaryTrackCard #genreGuidePanel {
  order: 17;
}

#primaryTrackCard #listeningNarrative {
  order: 18;
}

#primaryTrackCard .track-status-badges {
  gap: 0.36rem;
}

#primaryTrackCard .track-status-badges .swipe-status-badge {
  min-height: 1.55rem;
  padding: 0.16rem 0.46rem;
  font-size: 0.66rem;
}

@media (max-width: 620px) {
  .context-moment-panel .smart-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .context-moment-panel .smart-preset-btn {
    min-height: 42px;
    padding-inline: 0.22rem;
    font-size: clamp(0.7rem, 3vw, 0.82rem);
  }

  .preference-panel[data-app-tab="discover"] {
    opacity: 0.94;
  }

  #topSwipeCard.swipe-hero-card:not(.is-empty) {
    min-height: clamp(460px, 64svh, 590px);
    border-radius: 20px;
  }

  #topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy h4 {
    font-size: clamp(2.28rem, 10.4vw, 3.45rem);
  }

  #topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy .muted {
    font-size: 0.94rem;
  }

  #topSwipeCard.swipe-hero-card.is-empty {
    min-height: clamp(330px, 50svh, 430px);
  }

  #primaryTrackCard #artistVisualCard {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  #primaryTrackCard #artistVisualCard .artist-photo-frame {
    min-width: 0;
  }

  #primaryTrackCard #nowPlayingGenre strong {
    font-size: var(--now-playing-style-size, clamp(1.45rem, 7.2vw, 2.18rem));
  }

  #primaryTrackCard #nowPlayingGenre strong.is-long-word,
  #primaryTrackCard #nowPlayingGenre strong.is-long-label {
    --now-playing-style-size: clamp(1rem, 5.15vw, 1.42rem);
    line-height: 1.04;
  }
}

/* Discover v2: image first, decision simple, details/profile elsewhere. */
.preference-panel[data-app-tab="profile"] {
  grid-column: 1 / -1;
  position: relative;
  top: auto;
  max-height: none;
  overflow: visible;
  opacity: 1;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) {
  display: grid;
  grid-template-rows: minmax(330px, 1fr) auto;
  min-height: clamp(520px, 72svh, 700px);
  background:
    linear-gradient(180deg, rgba(4, 9, 18, 0.98), rgba(3, 7, 16, 0.99));
}

#topSwipeCard.swipe-hero-card:not(.is-empty)::before {
  display: none;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-art {
  position: relative;
  inset: auto;
  grid-row: 1;
  width: 100%;
  min-height: clamp(340px, 52svh, 520px);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(126, 232, 198, 0.18), transparent 34%),
    #040812;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  filter: brightness(1.18) saturate(1.16) contrast(1.02);
  object-fit: cover;
  object-position: center center;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  font-size: clamp(5rem, 24vw, 10rem);
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-fallback.hidden {
  display: none;
}

#topSwipeCard.swipe-hero-card:not(.is-empty).has-artist-image .swipe-hero-art {
  background:
    radial-gradient(circle at 50% 18%, rgba(126, 232, 198, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.98), rgba(2, 6, 14, 0.99));
}

#topSwipeCard.swipe-hero-card:not(.is-empty).has-artist-image .swipe-hero-image {
  box-sizing: border-box;
  padding: 0;
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.2) saturate(1.18) contrast(1.08);
}

#topSwipeCard.swipe-hero-card:not(.is-empty).has-artist-image .swipe-hero-copy {
  background:
    linear-gradient(180deg, rgba(2, 6, 14, 0.82), rgba(2, 6, 14, 0.98)),
    rgba(2, 6, 14, 0.9);
}

/* Dedicated filters tab: keep discovery Tinder-simple and move precision controls away from swipe. */
.app-tab-bar {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.preference-panel[data-app-tab="filters"] {
  grid-column: 1 / -1;
  position: relative;
  top: auto;
  max-height: none;
  overflow: visible;
  opacity: 1;
}

.preference-panel[data-app-tab="filters"] .section-head {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
}

.preference-panel[data-app-tab="filters"] .section-hint {
  max-width: 34ch;
}

.preference-panel[data-app-tab="filters"] .filters-discovery-strip {
  max-width: 980px;
  margin-inline: auto;
}

.preference-panel[data-app-tab="filters"] .context-moment-panel,
.preference-panel[data-app-tab="filters"] .precision-filters,
.preference-panel[data-app-tab="filters"] .recommendation-actions,
.preference-panel[data-app-tab="filters"] .new-artists-panel {
  max-width: 980px;
  margin-inline: auto;
}

.preference-panel[data-app-tab="filters"] .precision-filters[open] {
  padding-bottom: 0.72rem;
}

.preference-panel[data-app-tab="filters"] .recommendation-actions {
  margin-top: 0.88rem;
}

.app-tab-bar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.about-panel {
  max-width: 1180px;
  margin-inline: auto;
  overflow: hidden;
}

.about-head {
  align-items: end;
}

.about-intro {
  max-width: 760px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.78rem;
  margin-top: 1rem;
}

.about-card {
  min-height: 176px;
  padding: 1rem;
  border: 1px solid rgba(125, 224, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(9, 23, 42, 0.86), rgba(4, 10, 24, 0.74)),
    rgba(4, 10, 24, 0.72);
  box-shadow: inset 0 0 0 1px rgba(151, 219, 255, 0.05);
}

.about-card-primary {
  border-color: rgba(126, 232, 198, 0.42);
  background:
    linear-gradient(145deg, rgba(21, 81, 77, 0.48), rgba(8, 21, 42, 0.82)),
    rgba(4, 10, 24, 0.74);
}

.about-card span {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.54rem;
  border: 1px solid rgba(126, 232, 198, 0.34);
  border-radius: 999px;
  color: #a9ffef;
  font: 800 0.72rem/1 "Chakra Petch", sans-serif;
}

.about-card h4,
.about-flow h4 {
  margin: 0.72rem 0 0.42rem;
  color: #f6fbff;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.02rem, 0.95rem + 0.28vw, 1.22rem);
  letter-spacing: 0;
}

.about-card p,
.about-flow p,
.about-flow-list {
  color: rgba(218, 238, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.48;
}

.about-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: 0.86rem;
  margin-top: 0.86rem;
}

.about-flow > article {
  padding: 1rem;
  border: 1px solid rgba(125, 224, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 10, 24, 0.54);
}

.about-flow-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
  padding-left: 1.25rem;
}

.about-trust-box {
  border-color: rgba(255, 208, 125, 0.32) !important;
  background:
    linear-gradient(150deg, rgba(59, 43, 14, 0.44), rgba(6, 17, 38, 0.72)),
    rgba(4, 10, 24, 0.54) !important;
}

@media (max-width: 780px) {
  .app-tab-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-tab-btn,
  .app-tab-btn:nth-child(5) {
    grid-column: auto;
  }

  .preference-panel[data-app-tab="filters"] .section-head {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .preference-panel[data-app-tab="filters"] .section-hint {
    max-width: none;
    text-align: left;
  }

  .about-head {
    align-items: start;
  }

  .about-grid,
  .about-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-card {
    min-height: auto;
  }
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-preview-pulse {
  inset: auto 12% 1rem 12%;
  z-index: 2;
  opacity: 0.74;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy {
  grid-row: 2;
  align-self: stretch;
  min-height: auto;
  padding: clamp(0.95rem, 2.4vw, 1.24rem);
  border-top: 1px solid rgba(205, 245, 255, 0.14);
  background:
    radial-gradient(circle at 12% 0%, rgba(126, 232, 198, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(7, 13, 26, 0.98), rgba(3, 7, 16, 0.99));
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy h4 {
  max-width: 100%;
  font-size: clamp(2.05rem, 7.7vw, 3.9rem);
  line-height: 0.96;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy .muted {
  max-width: 100%;
  color: rgba(230, 244, 255, 0.9);
  text-shadow: none;
}

.spirit-collectible {
  gap: 0.9rem;
}

.spirit-visual-title {
  font-size: clamp(1rem, 2.7vw, 1.18rem);
  letter-spacing: 0;
}

.spirit-visual-hint {
  color: rgba(232, 246, 255, 0.92);
  font-size: clamp(1rem, 2.9vw, 1.12rem);
  line-height: 1.52;
}

.spirit-collectible-image {
  filter: brightness(1.08) saturate(1.16) contrast(1.04);
  image-rendering: auto;
}

.spirit-collectible-details {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(166, 236, 255, 0.22);
  border-left-color: rgba(137, 255, 222, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(119, 243, 219, 0.09), rgba(119, 152, 255, 0.08)),
    rgba(4, 11, 28, 0.46);
  color: rgba(240, 249, 255, 0.96);
  font-size: clamp(1.02rem, 2.9vw, 1.14rem);
  line-height: 1.58;
  text-shadow: 0 1px 14px rgba(92, 224, 255, 0.14);
}

@media (max-width: 620px) {
  #topSwipeCard.swipe-hero-card:not(.is-empty) {
    grid-template-rows: minmax(330px, 1fr) auto;
    min-height: clamp(500px, 69svh, 620px);
  }

  #topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-art {
    min-height: clamp(330px, 48svh, 450px);
    border-radius: 18px 18px 0 0;
  }

  #topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy {
    padding: 0.86rem 0.9rem 0.94rem;
  }

  #topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy h4 {
    font-size: clamp(1.96rem, 8.8vw, 2.85rem);
  }

  .spirit-collectible {
    padding: 0.82rem;
    border-radius: 16px;
  }

  .spirit-collectible-grid,
  .spirit-collectible.awaiting-image .spirit-collectible-grid {
    gap: 0.82rem;
  }

  .spirit-collectible-actions .listen-btn,
  .spirit-collectible-actions .instagram-share-btn {
    min-height: 48px;
    font-size: 0.9rem;
  }
}

/* Swipe bugfix polish: stable card count, long-title containment, and safer adaptive CTA text. */
.swipe-card-count {
  display: inline-flex;
  width: fit-content;
  min-width: 52px;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.56rem;
  border: 1px solid rgba(126, 232, 198, 0.62);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(126, 232, 198, 0.28), rgba(120, 164, 255, 0.2)),
    rgba(3, 10, 22, 0.88);
  color: #f3fffc;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.04rem, 2.1vw, 1.32rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow:
    0 8px 22px rgba(0, 8, 24, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#topSwipeCount {
  align-self: stretch;
  border-color: rgba(126, 232, 198, 0.72);
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy {
  gap: clamp(0.32rem, 1vw, 0.5rem);
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy h4 {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: clamp(1.88rem, 5.6vw, 3.28rem);
  line-height: 1.02;
}

#topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy .muted {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

#adaptiveSurpriseBtn {
  min-width: 0;
  min-height: 64px;
  padding: 0.62rem 0.88rem;
  white-space: normal;
  text-align: center;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.feedback-action-group.explore .feedback-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.56rem;
}

.feedback-action-group.explore .feedback-buttons button {
  min-width: 0;
  min-height: 54px;
  border-radius: 8px;
  padding: 0.6rem 0.78rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.86rem, 1.35vw, 1rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feedback-action-group.explore #adaptiveSurpriseBtn {
  min-height: 54px;
  color: #061523;
  font-size: clamp(0.9rem, 1.25vw, 1.02rem);
  background:
    linear-gradient(105deg, #45f1d0 0%, #78cfff 62%, #9ba0ff 100%);
}

.feedback-action-group.explore #moreInfoBtn {
  color: #1b1308;
  font-size: clamp(0.88rem, 1.15vw, 0.98rem);
  background:
    linear-gradient(105deg, #ffd18b 0%, #ffc06f 100%);
}

.feedback-action-group.explore .feedback-buttons button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.feedback-action-group.explore .feedback-buttons button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 3px;
}

#swipeStartPanel .swipe-hero-actions {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr) minmax(126px, 1.16fr);
  align-items: stretch;
}

#swipeStartPanel .swipe-like-count-wrap,
#swipeStartPanel .swipe-like-count-wrap .swipe-action-btn {
  min-width: 0;
}

@media (max-width: 620px) {
  .swipe-card-count {
    min-width: 42px;
    padding-inline: 0.48rem;
    font-size: 0.92rem;
  }

  .swipe-like-count-wrap {
    gap: 0.32rem;
  }

  #swipeStartPanel .swipe-hero-actions {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.96fr) minmax(112px, 1.16fr);
  }

  #topSwipeCard.swipe-hero-card:not(.is-empty) .swipe-hero-copy h4 {
    font-size: clamp(1.62rem, 7.2vw, 2.28rem);
    -webkit-line-clamp: 2;
  }

  #adaptiveSurpriseBtn {
    width: 100%;
    min-height: 58px;
    padding-inline: 0.72rem;
    font-size: clamp(0.96rem, 4.5vw, 1.1rem);
  }

  .feedback-action-group.explore .feedback-buttons {
    grid-template-columns: 1fr;
  }

  .feedback-action-group.explore .feedback-buttons button,
  .feedback-action-group.explore #adaptiveSurpriseBtn {
    min-height: 50px;
    font-size: 0.96rem;
  }
}
