:root {
  --bg: #0b0d0f;
  --bg-soft: #111416;
  --surface: #171a1d;
  --surface-raised: #202428;
  --surface-bright: #2a3035;
  --text: #f4f7f2;
  --muted: #929a9d;
  --muted-deep: #697174;
  --line: rgba(244, 247, 242, 0.11);
  --lime: #c9f56b;
  --lime-deep: #8fbf37;
  --blue: #acd9ff;
  --orange: #ff9c68;
  --pink: #ff8ea7;
  --mono: "SFMono-Regular", "Roboto Mono", "Menlo", monospace;
  --display: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
  --body: "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 4%, rgba(201, 245, 107, 0.07), transparent 24rem),
    radial-gradient(circle at 3% 38%, rgba(172, 217, 255, 0.045), transparent 28rem),
    var(--bg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  content: "";
  pointer-events: none;
}

body.overlay-open {
  overflow: hidden;
  overscroll-behavior: none;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one {
  top: 24rem;
  right: -17rem;
  background: var(--lime);
}

.ambient-two {
  bottom: -12rem;
  left: -15rem;
  background: var(--blue);
}

.shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 20px 30px;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -20px;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px;
  background: rgba(11, 13, 15, 0.82);
  border-bottom: 1px solid rgba(244, 247, 242, 0.06);
  backdrop-filter: blur(22px) saturate(130%);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-symbol {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--lime);
  transform: rotate(-8deg);
}

.brand-symbol::before,
.brand-symbol::after,
.brand-symbol span {
  position: absolute;
  display: block;
  width: 2px;
  border-radius: 99px;
  background: var(--bg);
  content: "";
}

.brand-symbol::before {
  height: 12px;
  transform: translateX(-7px) rotate(14deg);
}

.brand-symbol::after {
  height: 18px;
  transform: translateX(0) rotate(14deg);
}

.brand-symbol span:nth-child(1) {
  height: 9px;
  transform: translateX(7px) rotate(14deg);
}

.brand-symbol span:nth-child(2) {
  width: 17px;
  height: 2px;
  transform: translateY(5px) rotate(-14deg);
}

.brand-symbol span:nth-child(3) {
  display: none;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 0;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted-deep);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.topbar-side {
  display: flex;
  min-width: 0;
  align-items: center;
}

.usage-counter {
  display: inline-flex;
  max-width: 208px;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 6px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.usage-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 156, 104, 0.1);
}

.usage-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.usage-line {
  overflow: hidden;
  text-overflow: ellipsis;
}

.usage-line:first-child {
  color: var(--text);
}

.usage-line:last-child {
  color: var(--muted-deep);
}

.usage-counter.is-global {
  color: var(--text);
  border-color: rgba(201, 245, 107, 0.32);
}

.usage-counter.is-global .usage-dot {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(201, 245, 107, 0.12);
}

.usage-counter.is-global .usage-line:last-child {
  color: var(--lime);
}

.quick-nav {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar,
.song-shelf::-webkit-scrollbar {
  display: none;
}

.quick-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 6px 0 10px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.quick-nav a.is-active,
.quick-nav a:hover {
  color: var(--text);
}

.quick-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--lime);
  content: "";
}

.edition-pill {
  margin-left: auto;
  color: var(--muted-deep);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-areas:
    "copy art"
    "action action";
  grid-template-columns: minmax(0, 1fr) 136px;
  align-items: end;
  gap: 26px 14px;
  padding: 40px 0 28px;
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
}

.hero-action {
  grid-area: action;
  min-width: 0;
  scroll-margin-bottom: calc(160px + env(safe-area-inset-bottom));
}

.eyebrow,
.section-kicker,
.signal-label,
.catalog-count {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(201, 245, 107, 0.11);
}

.hero h1 {
  max-width: 620px;
  margin: 12px 0 14px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(46px, 13vw, 88px);
  font-weight: 800;
  letter-spacing: -0.105em;
  line-height: 0.95;
  text-wrap: balance;
}

.hero-description {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.hero-art {
  grid-area: art;
  position: relative;
  width: 136px;
  height: 152px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(244, 247, 242, 0.18);
  border-radius: 24px;
  background: #202522;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  transform: rotate(4deg);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(201, 245, 107, 0.3);
  border-radius: 50%;
  content: "";
}

.hero-art::before {
  top: -76px;
  right: -75px;
}

.hero-art::after {
  bottom: -96px;
  left: -92px;
  border-color: rgba(172, 217, 255, 0.3);
}

.hero-art-glow {
  position: absolute;
  top: 28px;
  right: 16px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--lime);
  filter: blur(22px);
  opacity: 0.5;
}

.hero-disc {
  position: absolute;
  right: -25px;
  bottom: -14px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #111614 0 3px, #29332a 4px 5px);
  box-shadow: 0 0 0 1px rgba(201, 245, 107, 0.38);
  animation: record-breathe 8s ease-in-out infinite;
}

.hero-disc-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 1px;
  background: rgba(201, 245, 107, 0.55);
  transform-origin: left center;
}

.line-one {
  transform: rotate(28deg);
}

.line-two {
  transform: rotate(118deg);
}

.hero-disc-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 4px solid #263128;
  border-radius: 50%;
  background: var(--lime);
  transform: translate(-50%, -50%);
}

.hero-art-label {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #d8f995;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.hero-art-index {
  position: absolute;
  right: 13px;
  bottom: 11px;
  color: rgba(244, 247, 242, 0.74);
  font-family: var(--mono);
  font-size: 8px;
}

.discovery-section,
.catalog-section {
  padding-top: 16px;
}

.hero-action > .section-kicker {
  margin-bottom: 10px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.section-kicker span:first-child {
  color: var(--lime);
}

.ask-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(32, 36, 40, 0.95), rgba(21, 24, 27, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.ask-heading h2,
.section-head h2,
.catalog-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 750;
  letter-spacing: -0.08em;
  line-height: 1.05;
  text-wrap: balance;
}

.ask-heading p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.question-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid rgba(244, 247, 242, 0.14);
  border-radius: 20px;
  background: rgba(11, 13, 15, 0.68);
  scroll-margin-bottom: calc(180px + env(safe-area-inset-bottom));
}

.question-form textarea {
  display: block;
  width: 100%;
  min-height: 82px;
  resize: none;
  padding: 10px 9px 9px;
  color: var(--text);
  border: 0;
  border-radius: 13px;
  outline: 0;
  background: transparent;
  caret-color: var(--lime);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.question-form textarea::placeholder {
  color: #687174;
}

.question-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(201, 245, 107, 0.08);
}

.question-form button {
  display: flex;
  width: auto;
  min-width: 74px;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 9px 6px;
  color: #10130d;
  border: 0;
  border-radius: 15px;
  background: var(--lime);
  cursor: pointer;
  text-align: left;
  flex-direction: column;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.question-form button:hover {
  background: #d8ff84;
  box-shadow: 0 14px 32px rgba(201, 245, 107, 0.16);
}

.question-form button:active {
  transform: scale(0.985);
}

.question-form button.is-drawing .button-play {
  animation: pulse-play 750ms ease-in-out infinite;
}

.button-play {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(16, 19, 13, 0.25);
  border-radius: 50%;
}

.button-play i {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid currentColor;
}

.button-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  justify-items: center;
  text-align: center;
}

.button-copy small {
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-copy strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: normal;
}

.button-arrow {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
}

.prompt-row {
  display: flex;
  gap: 7px;
  margin-top: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prompt-row::-webkit-scrollbar {
  display: none;
}

.prompt-row button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.prompt-row button:hover,
.prompt-row button:active {
  color: var(--text);
  border-color: rgba(201, 245, 107, 0.36);
  background: rgba(201, 245, 107, 0.08);
}

.empty-note {
  margin: 14px 0 0;
  color: var(--muted-deep);
  font-size: 11px;
}

.empty-note span {
  margin-right: 5px;
  color: var(--lime);
}

.section-head,
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 18px;
}

.section-head .section-kicker,
.catalog-head .section-kicker {
  margin-bottom: 10px;
}

.section-meta {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1;
}

.section-meta strong {
  color: var(--lime);
  font-size: 27px;
  font-weight: 500;
}

.section-meta span {
  margin-top: 5px;
  font-size: 9px;
}

.song-shelf {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 1px 9px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.track-card {
  display: grid;
  width: 166px;
  flex: 0 0 166px;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
}

.track-cover,
.catalog-cover {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

.track-cover {
  aspect-ratio: 1;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.track-card:hover .track-cover,
.track-card:active .track-cover {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
  transform: translateY(-4px) rotate(-1deg);
}

.track-cover::before,
.catalog-cover::before,
.answer-cover::before {
  position: absolute;
  z-index: -1;
  width: 120%;
  height: 120%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  content: "";
  transform: rotate(-24deg);
}

.track-cover::before {
  top: -46%;
  left: 25%;
}

.track-cover::after,
.catalog-cover::after,
.answer-cover::after {
  position: absolute;
  z-index: -1;
  width: 52%;
  height: 52%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  content: "";
  transform: rotate(26deg);
}

.track-cover::after {
  right: -16%;
  bottom: -18%;
}

.track-number,
.catalog-number {
  position: absolute;
  top: 12px;
  left: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.track-glyph,
.catalog-glyph {
  position: absolute;
  right: 13px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--display);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.15em;
  line-height: 0.9;
}

.track-wave {
  position: absolute;
  bottom: 15px;
  left: 14px;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 24px;
}

.track-wave i {
  display: block;
  width: 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.82);
}

.track-wave i:nth-child(1) { height: 8px; }
.track-wave i:nth-child(2) { height: 16px; }
.track-wave i:nth-child(3) { height: 11px; }
.track-wave i:nth-child(4) { height: 22px; }
.track-wave i:nth-child(5) { height: 13px; }

.track-info {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.track-info strong {
  overflow: hidden;
  color: var(--text);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-info span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-tag {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  color: var(--muted-deep);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

.shelf-hint {
  margin: 6px 0 0;
  color: var(--muted-deep);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.shelf-hint span {
  color: var(--lime);
}

.catalog-section {
  margin-top: 6px;
}

.catalog-head {
  margin-top: 46px;
}

.catalog-head h2 {
  font-size: clamp(22px, 6.5vw, 32px);
}

.catalog-count {
  padding-bottom: 4px;
  white-space: nowrap;
}

.song-library {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.catalog-track {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 9px 12px 9px 9px;
  border: 0;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease;
}

.catalog-track:hover,
.catalog-track:active {
  background: var(--surface-raised);
}

.catalog-cover {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.catalog-cover::before {
  top: -43%;
  left: 18%;
}

.catalog-cover::after {
  right: -22%;
  bottom: -25%;
}

.catalog-number {
  top: 7px;
  left: 8px;
  font-size: 6px;
}

.catalog-glyph {
  right: 5px;
  bottom: 3px;
  font-size: 26px;
}

.catalog-track-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.catalog-track-copy strong,
.catalog-track-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-track-copy strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.catalog-track-copy span {
  color: var(--muted);
  font-size: 11px;
}

.catalog-track-tag {
  color: var(--muted-deep);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

.signal-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 8px;
  margin-top: 44px;
}

.signal-card {
  position: relative;
  display: grid;
  min-height: 115px;
  align-content: space-between;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.signal-card strong {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.08em;
  line-height: 1.02;
}

.signal-card > span:not(.signal-label):not(.signal-wave) {
  color: var(--muted);
  font-size: 10px;
}

.signal-main {
  background: linear-gradient(135deg, rgba(201, 245, 107, 0.95), rgba(142, 193, 54, 0.94));
  color: #10130d;
}

.signal-main .signal-label,
.signal-main strong {
  color: #10130d;
}

.signal-main strong {
  font-size: 21px;
}

.signal-main .signal-wave {
  position: absolute;
  right: -1px;
  bottom: 16px;
  display: flex;
  align-items: end;
  gap: 4px;
  height: 40px;
  opacity: 0.55;
  transform: rotate(-18deg);
}

.signal-wave i {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: #10130d;
}

.signal-wave i:nth-child(1) { height: 12px; }
.signal-wave i:nth-child(2) { height: 28px; }
.signal-wave i:nth-child(3) { height: 20px; }
.signal-wave i:nth-child(4) { height: 38px; }
.signal-wave i:nth-child(5) { height: 23px; }
.signal-wave i:nth-child(6) { height: 33px; }
.signal-wave i:nth-child(7) { height: 15px; }

.footer {
  display: grid;
  gap: 5px;
  padding: 38px 0 max(12px, env(safe-area-inset-bottom));
  color: var(--muted-deep);
  font-size: 10px;
}

.footer p {
  margin: 0;
}

/* Cover color families: the same visual system is reused by the shelf and answer sheet. */
[data-theme="0"] { background: linear-gradient(145deg, #314d35 0%, #a5d75e 100%); }
[data-theme="1"] { background: linear-gradient(145deg, #1c3e5b 0%, #83c8eb 100%); }
[data-theme="2"] { background: linear-gradient(145deg, #762e40 0%, #f19283 100%); }
[data-theme="3"] { background: linear-gradient(145deg, #3e2e65 0%, #c58ae9 100%); }
[data-theme="4"] { background: linear-gradient(145deg, #8a4b25 0%, #ffb56e 100%); }
[data-theme="5"] { background: linear-gradient(145deg, #234a4b 0%, #7ed0be 100%); }
[data-theme="6"] { background: linear-gradient(145deg, #31404d 0%, #b5c2cd 100%); }
[data-theme="7"] { background: linear-gradient(145deg, #652d58 0%, #e8a1d2 100%); }

/* Answer sheet */
.answer-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  overscroll-behavior: none;
  touch-action: none;
  transition: visibility 260ms ease, opacity 260ms ease;
}

.answer-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 6, 0.74);
  backdrop-filter: blur(18px);
}

.answer-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 740px);
  height: 100%;
  height: 100dvh;
  min-height: 0;
  max-height: 100%;
  max-height: 100dvh;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
  padding-top: max(12px, env(safe-area-inset-top));
  background: var(--bg);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
  transform: translateY(28px);
  transition: transform 360ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.answer-overlay.is-open .answer-dialog {
  transform: translateY(0);
}

.answer-dialog-top {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.answer-dialog-top div {
  display: grid;
  gap: 1px;
}

.answer-dialog-top span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.answer-dialog-top strong {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.04em;
}

.close-answer {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.close-answer span,
.close-answer span::after {
  display: block;
  width: 14px;
  height: 1px;
  background: var(--text);
  content: "";
}

.close-answer span {
  transform: rotate(45deg);
}

.close-answer span::after {
  transform: rotate(90deg);
}

.answer-card {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 10px 14px 12px;
  overscroll-behavior: none;
  scrollbar-width: none;
  touch-action: none;
}

.answer-card.is-refreshing .answer-content,
.answer-card.is-refreshing .answer-cover {
  animation: answer-refresh 420ms ease both;
}

.answer-cover {
  position: relative;
  min-height: 94px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
  isolation: isolate;
}

.answer-cover::before {
  top: -38%;
  left: 36%;
  width: 130%;
  height: 130%;
  border-color: rgba(255, 255, 255, 0.28);
}

.answer-cover::after {
  right: -13%;
  bottom: -18%;
  width: 52%;
  height: 52%;
  border-color: rgba(255, 255, 255, 0.36);
}

.cover-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.orbit-one {
  top: -108px;
  right: -85px;
  width: 290px;
  height: 290px;
}

.orbit-two {
  right: -5px;
  bottom: -120px;
  width: 250px;
  height: 250px;
}

.cover-copy {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  display: grid;
  gap: 2px;
}

.cover-copy small {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.cover-copy strong {
  max-width: 76%;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.98;
  text-wrap: balance;
}

.cover-copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}

.cover-glyph {
  position: absolute;
  right: 17px;
  top: 18px;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.16em;
  line-height: 1;
}

.answer-content {
  padding-top: 10px;
}

.answer-question {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  margin-top: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.answer-question span,
.answer-label,
.mood-panel > span,
.interpretation > span,
.action-note > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.answer-question p {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
}

.answer-main {
  padding: 12px 0 14px;
}

.answer-label {
  margin: 0 0 7px;
  color: var(--lime);
}

.answer-lyric {
  display: block;
  width: 100%;
  max-width: 620px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.answer-lyric-text {
  display: block;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(29px, 8.8vw, 42px);
  font-weight: 750;
  letter-spacing: -0.09em;
  line-height: 1.04;
  text-wrap: balance;
}

.answer-lyric-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted-deep);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

.answer-lyric-hint span {
  color: var(--lime);
  font-size: 11px;
}

.answer-lyric:hover .answer-lyric-text,
.answer-lyric:focus-visible .answer-lyric-text {
  color: var(--lime);
}

.answer-lyric:hover .answer-lyric-hint,
.answer-lyric:focus-visible .answer-lyric-hint {
  color: var(--text);
}

.song-credit {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.answer-details {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.mood-panel {
  display: grid;
  gap: 5px;
  align-content: start;
}

.mood-panel strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.07em;
}

.answer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.answer-tags span {
  padding: 3px 5px;
  color: var(--lime);
  border: 1px solid rgba(201, 245, 107, 0.28);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 7px;
}

.interpretation {
  display: grid;
  gap: 5px;
}

.interpretation h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.06em;
  line-height: 1.2;
}

.interpretation p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.48;
}

.action-note {
  display: grid;
  gap: 4px;
  margin-top: 3px;
  padding: 10px 11px;
  border-radius: 13px;
  background: rgba(201, 245, 107, 0.1);
}

.action-note > span {
  color: var(--lime);
}

.action-note p {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.42;
}

.result-actions {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(11, 13, 15, 0.94);
  box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.result-actions button {
  min-height: 44px;
  padding: 0 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
  font-size: 11px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.result-actions button:first-child {
  color: #10130d;
  border-color: var(--lime);
  background: var(--lime);
}

.result-actions button:hover:not(:first-child) {
  color: var(--text);
  border-color: rgba(244, 247, 242, 0.28);
  background: var(--surface-raised);
}

.result-actions button span {
  margin-right: 2px;
  font-size: 14px;
}

.result-actions button:active {
  transform: scale(0.98);
}

.result-status {
  position: absolute;
  right: 18px;
  bottom: calc(66px + env(safe-area-inset-bottom));
  left: 18px;
  z-index: 4;
  margin: 0;
  padding: 10px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(32, 36, 40, 0.96);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}

.result-status:empty {
  display: none;
}

.music-sheet {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  align-items: end;
  touch-action: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 220ms ease, opacity 220ms ease;
}

.music-sheet.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.music-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 6, 0.46);
  backdrop-filter: blur(10px);
}

.music-sheet-panel {
  position: relative;
  width: min(100%, 740px);
  max-height: min(86svh, 560px);
  overflow-y: auto;
  touch-action: pan-y;
  margin: 0 auto;
  padding: 18px 18px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(244, 247, 242, 0.14);
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.42);
  transform: translateY(24px);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.music-sheet.is-open .music-sheet-panel {
  transform: translateY(0);
}

.music-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.music-sheet-head > div {
  display: grid;
  gap: 3px;
}

.music-sheet-head span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.music-sheet-head strong {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.06em;
}

.close-music-sheet {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
  cursor: pointer;
}

.close-music-sheet span::before,
.close-music-sheet span::after {
  position: absolute;
  top: 15px;
  left: 9px;
  width: 14px;
  height: 1px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.close-music-sheet span::after {
  transform: rotate(-45deg);
}

.music-sheet-copy {
  display: grid;
  gap: 3px;
  margin: 18px 0 14px;
}

.music-sheet-copy > span {
  color: var(--muted-deep);
  font-family: var(--mono);
  font-size: 9px;
}

.music-sheet-copy strong {
  font-size: 16px;
}

.music-sheet-copy p {
  max-width: 540px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.music-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.music-platform-link {
  display: grid;
  min-height: 64px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg-soft);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.music-platform-link:hover,
.music-platform-link:focus-visible {
  border-color: rgba(201, 245, 107, 0.46);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.platform-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #10130d;
  border-radius: 10px;
  background: var(--lime);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
}

.platform-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.platform-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-copy small {
  color: var(--muted-deep);
  font-family: var(--mono);
  font-size: 8px;
}

.platform-arrow {
  color: var(--lime);
  font-size: 16px;
}

.music-sheet-note {
  margin: 13px 0 0;
  color: var(--muted-deep);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.01em;
  text-align: center;
}

@keyframes record-breathe {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.03); }
}

@keyframes pulse-play {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.82); }
}

@keyframes answer-refresh {
  from {
    opacity: 0.3;
    transform: translateY(8px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (min-width: 680px) {
  .shell {
    padding-right: 0;
    padding-left: 0;
  }

  .topbar {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .hero {
    grid-template-areas:
      "copy art"
      "action action";
    grid-template-columns: minmax(0, 1fr) 220px;
    padding-top: 82px;
  }

  .hero-art {
    width: 210px;
    height: 232px;
  }

  .hero-disc {
    right: -45px;
    bottom: -22px;
    width: 194px;
    height: 194px;
  }

  .hero-art-label {
    top: 20px;
    left: 20px;
  }

  .ask-panel {
    padding: 30px;
  }

  .question-form {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .question-form textarea {
    min-height: 92px;
    resize: vertical;
    padding: 17px 17px 15px;
    border: 1px solid rgba(244, 247, 242, 0.14);
    border-radius: 17px;
    background: rgba(11, 13, 15, 0.68);
  }

  .question-form button {
    display: flex;
    width: 100%;
    min-height: 62px;
    min-width: 0;
    flex-direction: row;
    justify-content: initial;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 13px 10px 14px;
    border-radius: 17px;
    text-align: left;
  }

  .button-copy {
    justify-items: initial;
    text-align: left;
  }

  .button-copy small {
    display: block;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .button-copy strong {
    font-size: 15px;
    white-space: nowrap;
  }

  .button-arrow {
    margin-left: auto;
    font-size: 24px;
  }

  .music-platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .music-platform-link {
    min-height: 82px;
  }

  .answer-details {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 28px;
  }

  .catalog-track {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .catalog-cover {
    width: 54px;
    height: 54px;
  }

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

@media (min-width: 960px) {
  .shell {
    width: min(100%, 1120px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .hero h1 {
    font-size: 98px;
  }

  .hero-art {
    width: 286px;
    height: 310px;
  }

  .hero-disc {
    width: 250px;
    height: 250px;
  }

  .song-shelf {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .track-card {
    width: auto;
    flex: initial;
  }

  .shelf-hint {
    display: none;
  }

  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}

@media (max-width: 360px) {
  .shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .usage-counter {
    max-width: 146px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .usage-copy {
    font-size: 7px;
  }

  .hero {
    grid-template-areas:
      "copy art"
      "action action";
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }

  .hero-art {
    width: 112px;
    height: 128px;
  }

  .hero-disc {
    width: 106px;
    height: 106px;
  }

  .ask-panel {
    padding: 16px;
  }

  .question-form {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 6px;
    padding: 7px;
  }

  .question-form button {
    min-width: 66px;
    padding-right: 4px;
    padding-left: 4px;
  }
}

@media (max-width: 420px) {
  .hero {
    gap: 20px 8px;
    padding-top: 28px;
  }

  .hero-copy {
    padding-top: 8px;
  }

  .hero h1 {
    margin-top: 9px;
    font-size: clamp(42px, 13vw, 54px);
  }

  .hero-description {
    max-width: 205px;
    font-size: 12px;
    line-height: 1.6;
  }

  .hero-art {
    width: 112px;
    height: 128px;
  }

  .hero-action .ask-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .ask-heading h2 {
    font-size: clamp(25px, 7.5vw, 31px);
  }

  .ask-heading p {
    max-width: 250px;
    margin-bottom: 13px;
    font-size: 12px;
  }

  .question-form {
    grid-template-columns: minmax(0, 1fr) 104px;
    min-height: 88px;
    padding: 6px;
    border-radius: 16px;
  }

  .question-form textarea {
    min-height: 74px;
    padding: 9px 8px;
  }

  .question-form button {
    min-width: 0;
    min-height: 74px;
    gap: 6px;
    padding: 7px 4px;
    border-radius: 12px;
  }

  .button-play {
    width: 28px;
    height: 28px;
  }

  .button-play i {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 7px;
  }

  .button-copy small {
    font-size: 6px;
    letter-spacing: 0.02em;
  }

  .button-copy strong {
    font-size: 10px;
    line-height: 1.3;
  }

  .button-arrow {
    font-size: 16px;
  }

  .prompt-row {
    margin-top: 11px;
  }

  .empty-note {
    margin-top: 10px;
    line-height: 1.45;
  }
}

@media (max-height: 680px) and (max-width: 679px) {
  .answer-dialog-top {
    min-height: 48px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .answer-card {
    padding: 8px 12px 10px;
  }

  .answer-cover {
    min-height: 78px;
    border-radius: 16px;
  }

  .cover-copy {
    right: 12px;
    bottom: 10px;
    left: 12px;
  }

  .cover-copy small {
    font-size: 6px;
  }

  .cover-copy strong {
    font-size: clamp(22px, 7vw, 30px);
  }

  .cover-copy span {
    font-size: 9px;
  }

  .cover-glyph {
    top: 13px;
    right: 14px;
    font-size: 38px;
  }

  .answer-content {
    padding-top: 6px;
  }

  .answer-main {
    padding: 9px 0 10px;
  }

  .answer-label {
    margin-bottom: 5px;
  }

  .answer-lyric-text {
    font-size: clamp(25px, 7.5vw, 36px);
  }

  .answer-lyric-hint {
    margin-top: 5px;
    font-size: 7px;
  }

  .answer-lyric-hint span {
    font-size: 10px;
  }

  .song-credit {
    margin-top: 5px;
    font-size: 10px;
  }

  .answer-question {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .answer-question p {
    font-size: 10px;
  }

  .answer-details {
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .mood-panel {
    gap: 4px;
  }

  .mood-panel strong {
    font-size: 15px;
  }

  .answer-tags {
    gap: 3px;
  }

  .answer-tags span {
    padding: 2px 4px;
    font-size: 6px;
  }

  .interpretation {
    gap: 3px;
  }

  .interpretation h2 {
    font-size: 14px;
  }

  .interpretation p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10px;
    line-height: 1.35;
  }

  .action-note {
    gap: 3px;
    padding: 8px 10px;
    border-radius: 11px;
  }

  .action-note p {
    font-size: 10px;
    line-height: 1.3;
  }

  .result-actions {
    padding-top: 5px;
  }

  .result-actions button {
    min-height: 40px;
    font-size: 10px;
  }

  .hero {
    gap: 16px 8px;
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .hero-description {
    display: none;
  }

  .hero-art {
    width: 96px;
    height: 108px;
  }

  .hero-disc {
    width: 88px;
    height: 88px;
  }

  .hero-action .ask-panel {
    padding: 14px;
  }
}

body.keyboard-open .hero-art {
  opacity: 0.58;
}

body.keyboard-open .hero-action {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
