:root {
  --ink: #171717;
  --muted: #6c6f75;
  --paper: #faf8f3;
  --mint: #dff5e8;
  --rose: #ffe2e2;
  --gold: #f4c95d;
  --blue: #dcecff;
}

body {
  background: var(--paper);
  color: var(--ink);
}

.qr-song-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  line-height: 1;
}

.qr-song-brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.qr-song-brand span {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.token-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8f4e8;
  border: 1px solid rgba(20,20,20,.1);
  color: #111;
  font-size: .86rem;
  font-weight: 800;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding-inline: 10px;
  font-weight: 800;
}

.language-toggle::after {
  margin-left: 1px;
}

.language-toggle-label {
  font-size: .84rem;
}

.language-menu {
  min-width: 150px;
  padding: 6px;
  border-radius: 8px;
  border-color: rgba(20,20,20,.1);
  box-shadow: 0 18px 40px rgba(25,24,21,.12);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  font-weight: 750;
}

.language-option.active,
.language-option:active {
  color: #111;
  background: #f8f4e8;
}

.eyebrow {
  color: #0b6f59;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-section {
  padding: 88px 0 70px;
  background: linear-gradient(135deg, #fff 0%, #f5efe4 52%, #e7f2ef 100%);
}

.panel, .auth-card, .karaoke-card, .turntable {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(20, 20, 20, .08);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(25, 24, 21, .11);
}

.hero-visual {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(240,246,241,.82)),
    radial-gradient(circle at 72% 26%, rgba(244, 201, 93, .26), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(11, 111, 89, .14), transparent 34%);
  border: 1px solid rgba(20, 20, 20, .08);
  box-shadow: 0 28px 90px rgba(25, 24, 21, .14);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: auto -12% -22% 16%;
  height: 44%;
  background: linear-gradient(90deg, rgba(11,111,89,.2), rgba(244,201,93,.2), rgba(28,91,161,.12));
  filter: blur(42px);
  opacity: .7;
}

.vinyl-stage {
  position: absolute;
  right: -34px;
  top: 38px;
  width: min(78%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.vinyl-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 34px 95px rgba(18, 18, 18, .28);
}

.qr-ticket {
  position: absolute;
  left: 34px;
  bottom: 34px;
  width: min(86%, 460px);
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(20, 20, 20, .08);
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(18,18,18,.16);
  backdrop-filter: blur(12px);
}

.qr-ticket-code {
  background: white;
  border: 1px solid rgba(20,20,20,.1);
  border-radius: 8px;
  padding: 9px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.qr-ticket-code img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.qr-ticket-copy strong,
.qr-ticket-copy small,
.ticket-kicker {
  display: block;
}

.ticket-kicker {
  margin-bottom: 6px;
  color: #0b6f59;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qr-ticket-copy strong {
  font-size: clamp(1.12rem, 1.7vw, 1.36rem);
  line-height: 1.1;
}

.qr-ticket-copy small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.player-chip {
  position: absolute;
  left: 38px;
  top: 42px;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 310px;
  padding: 13px 15px;
  color: #f8f4e8;
  background: rgba(17,17,17,.88);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
}

.player-chip strong,
.player-chip span {
  display: block;
}

.player-chip strong {
  font-size: .92rem;
}

.player-chip span {
  color: rgba(248,244,232,.72);
  font-size: .82rem;
}

.player-dot {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 8px rgba(17,17,17,.16);
}

.sound-bars {
  position: absolute;
  right: 42px;
  bottom: 36px;
  display: flex;
  gap: 6px;
  align-items: end;
  height: 54px;
}

.sound-bars i {
  display: block;
  width: 7px;
  border-radius: 999px;
  background: #0b6f59;
  opacity: .85;
}

.sound-bars i:nth-child(1) { height: 22px; }
.sound-bars i:nth-child(2) { height: 42px; background: #f4c95d; }
.sound-bars i:nth-child(3) { height: 30px; }
.sound-bars i:nth-child(4) { height: 50px; background: #1c5ba1; }
.sound-bars i:nth-child(5) { height: 26px; }

.record-preview {
  position: absolute;
  inset: 70px 70px auto auto;
  width: 260px;
  height: 260px;
}

.record-disc {
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f4c95d 0 12%, #161616 13% 20%, #292929 21% 38%, #101010 39% 100%);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.05), 0 24px 60px rgba(0,0,0,.25);
}

.record-disc {
  width: 100%;
  height: 100%;
}

.record-label {
  position: absolute;
  inset: 110px auto auto 86px;
  color: white;
  font-weight: 800;
}

.gift-card {
  position: absolute;
  left: 42px;
  bottom: 42px;
  display: flex;
  gap: 16px;
  align-items: center;
  width: 300px;
  padding: 18px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.gift-card span {
  display: block;
  color: var(--muted);
}

.mini-qr {
  width: 76px;
  height: 76px;
  background:
    linear-gradient(90deg, #111 12px, transparent 12px 20px, #111 20px 28px, transparent 28px),
    linear-gradient(#111 12px, transparent 12px 20px, #111 20px 28px, transparent 28px);
  background-size: 28px 28px;
  border: 8px solid white;
  outline: 2px solid #111;
}

.section-band, .player-page {
  padding: 64px 0;
}

.generator-page {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(244,201,93,.2), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(11,111,89,.14), transparent 30%),
    linear-gradient(145deg, #fffaf0 0%, #f7f3ea 46%, #edf6f1 100%);
}

.generator-page::before {
  content: '';
  position: absolute;
  inset: auto -10% -130px 12%;
  height: 260px;
  background: linear-gradient(90deg, rgba(11,111,89,.2), rgba(244,201,93,.2), rgba(28,91,161,.11));
  filter: blur(50px);
  opacity: .74;
  pointer-events: none;
}

.generator-page .container {
  position: relative;
}

.generator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.generator-hero h1 {
  max-width: 820px;
  margin: 8px 0 12px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: .98;
  font-weight: 950;
  letter-spacing: 0;
}

.generator-hero p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.studio-balance-card {
  min-width: 190px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,244,232,.92)),
    radial-gradient(circle at 90% 0%, rgba(244,201,93,.22), transparent 35%);
  border: 1px solid rgba(20,20,20,.08);
  box-shadow: 0 24px 60px rgba(25,24,21,.12);
}

.studio-balance-card span,
.studio-balance-card strong,
.studio-balance-card a {
  display: block;
}

.studio-balance-card > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-balance-card strong {
  margin: 5px 0 10px;
  font-size: 1.35rem;
  font-weight: 950;
}

.studio-balance-card a {
  color: #0b6f59;
  font-weight: 900;
  text-decoration: none;
}

.tokens-page {
  padding: 64px 0;
}

.generator-token-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f4e8;
  border: 1px solid rgba(20,20,20,.08);
}

.generator-panel,
.result-panel {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.97), rgba(250,248,243,.92)),
    radial-gradient(circle at 90% 6%, rgba(244,201,93,.16), transparent 26%);
  border-color: rgba(20,20,20,.09);
  box-shadow: 0 30px 88px rgba(25,24,21,.14);
}

.generator-panel::before,
.result-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0b6f59, #f4c95d, #1c5ba1);
}

.panel-topline,
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.panel-topline h2,
.result-head h2,
.recent-head h2 {
  margin: 4px 0 0;
  font-weight: 950;
  letter-spacing: 0;
}

.studio-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  background: #111;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
}

.cost-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.cost-strip div {
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(20,20,20,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.cost-strip span,
.cost-strip strong {
  display: block;
}

.cost-strip span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cost-strip strong {
  margin-top: 3px;
  font-size: 1.08rem;
  font-weight: 950;
}

.studio-form {
  display: grid;
  gap: 18px;
}

.studio-label {
  width: 100%;
  color: #111;
  font-weight: 850;
}

.studio-textarea,
.studio-select {
  margin-top: 7px;
  border: 1px solid rgba(20,20,20,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.studio-textarea {
  height: 235px;
  min-height: 230px;
  resize: vertical;
  line-height: 1.55;
}

.studio-textarea:focus,
.studio-select:focus {
  border-color: rgba(11,111,89,.45);
  box-shadow: 0 0 0 .25rem rgba(11,111,89,.12);
}

.studio-submit {
  min-height: 54px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(17,17,17,.18);
}

.generator-token-line a {
  color: #0b6f59;
  font-weight: 800;
}

.tokens-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.tokens-head h1,
.token-success h1 {
  margin: 8px 0 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.tokens-head p,
.token-success p {
  color: var(--muted);
  font-size: 1.08rem;
}

.token-balance-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(20,20,20,.08);
  box-shadow: 0 12px 32px rgba(25,24,21,.08);
}

.token-plan {
  position: relative;
  height: 100%;
  padding: 26px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,248,243,.94)),
    radial-gradient(circle at 86% 12%, rgba(244,201,93,.2), transparent 28%);
  border: 1px solid rgba(20,20,20,.09);
  box-shadow: 0 24px 70px rgba(25,24,21,.12);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.token-plan::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0b6f59, #f4c95d, #1c5ba1);
}

.token-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(20,20,20,.18);
  box-shadow: 0 34px 90px rgba(25,24,21,.17);
}

.token-plan-featured {
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(235,247,241,.94)),
    radial-gradient(circle at 86% 12%, rgba(11,111,89,.16), transparent 30%);
  border-color: rgba(11,111,89,.34);
  box-shadow: 0 30px 86px rgba(11,111,89,.16);
}

.plan-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  color: #0b6f59;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-topline em {
  color: var(--muted);
  font-style: normal;
}

.plan-discount {
  position: absolute;
  right: 18px;
  top: 44px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #111;
  color: #0b6f59;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.token-plan h2 {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.token-plan p {
  color: var(--muted);
  min-height: 48px;
  margin-bottom: 18px;
  line-height: 1.35;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin: 0 0 22px;
  color: #111;
  line-height: 1;
}

.price-currency {
  margin-top: 11px;
  font-size: 1.15rem;
  font-weight: 800;
}

.price-euros {
  font-size: clamp(3.3rem, 7vw, 4.5rem);
  font-weight: 950;
  letter-spacing: 0;
}

.price-cents {
  margin-top: 12px;
  font-size: 1.24rem;
  font-weight: 900;
}

.plan-divider {
  height: 1px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, rgba(20,20,20,.12), rgba(20,20,20,.03));
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: .95rem;
}

.plan-features li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #0b6f59;
  vertical-align: 1px;
}

.token-success {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px;
  text-align: center;
}

.use-card {
  min-height: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 18px 18px 22px;
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 50px rgba(25,24,21,.08);
  overflow: hidden;
}

.use-card h3 {
  font-weight: 800;
  margin-top: 18px;
  margin-bottom: 8px;
}

.use-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.use-illustration {
  min-height: 154px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(245,239,228,.64));
  border: 1px solid rgba(20,20,20,.06);
}

.use-illustration svg {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
}

.cake .use-illustration { background: linear-gradient(145deg, #fff6f3, #f7efe2); }
.flowers .use-illustration { background: linear-gradient(145deg, #f6fff9, #fff3f3); }
.postcard .use-illustration { background: linear-gradient(145deg, #fffaf0, #eef6ff); }
.event .use-illustration { background: linear-gradient(145deg, #f4fbff, #fff6db); }

.use-illustration .table, .use-illustration .stage {
  fill: #202020;
}

.use-illustration .cake-plate {
  fill: #f8f4e8;
  stroke: rgba(20,20,20,.16);
  stroke-width: 2;
}

.use-illustration .cake-base {
  fill: #f5b7aa;
}

.use-illustration .cake-cream {
  fill: #fff7ea;
  stroke: rgba(20,20,20,.12);
  stroke-width: 2;
}

.use-illustration .qr-surface, .use-illustration .gift-tag, .use-illustration .postcard-qr, .use-illustration .screen-qr {
  fill: #fff;
  stroke: #151515;
  stroke-width: 2;
}

.use-illustration .qr-mark {
  fill: #151515;
}

.use-illustration .spark.gold, .use-illustration .flower.gold, .use-illustration .balloon.gold {
  fill: var(--gold);
}

.use-illustration .spark.green {
  fill: #0b6f59;
}

.use-illustration .stem, .use-illustration .tag-string, .use-illustration .postcard-flap, .use-illustration .postcard-line, .use-illustration .event-light, .use-illustration .balloon-string {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.use-illustration .stem {
  stroke: #0b6f59;
  stroke-width: 5;
}

.use-illustration .bouquet-wrap {
  fill: #f8d8b8;
  stroke: rgba(20,20,20,.14);
  stroke-width: 2;
}

.use-illustration .flower.red, .use-illustration .balloon.red, .use-illustration .heart {
  fill: #e85f65;
}

.use-illustration .flower.blue {
  fill: #74a8d8;
}

.use-illustration .gift-tag {
  fill: #fff9ed;
}

.use-illustration .tag-string {
  stroke: #6c513a;
  stroke-width: 2;
}

.use-illustration .postcard-sheet {
  fill: #fffdf7;
  stroke: rgba(20,20,20,.16);
  stroke-width: 2;
}

.use-illustration .postcard-flap {
  stroke: #d9b987;
  stroke-width: 3;
}

.use-illustration .postcard-line {
  stroke: #9a7c54;
  stroke-width: 3;
}

.use-illustration .event-screen {
  fill: #1d2430;
}

.use-illustration .event-light {
  stroke: var(--gold);
  stroke-width: 5;
}

.use-illustration .balloon-string {
  stroke: #6c6f75;
  stroke-width: 2;
}

.use-illustration .music-note {
  fill: var(--gold);
}

.panel {
  padding: 28px;
}

.lyrics-output {
  min-height: 318px;
  white-space: pre-wrap;
  background:
    linear-gradient(145deg, #111 0%, #20201d 100%);
  color: #f8f4e8;
  border-radius: 8px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 48px rgba(17,17,17,.12);
  font-size: .98rem;
  line-height: 1.58;
}

.wait-message {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 0;
  padding: 14px 16px;
  background: linear-gradient(145deg, rgba(223,245,232,.96), rgba(255,255,255,.88));
  border: 1px solid rgba(11,111,89,.16);
  border-radius: 8px;
  color: #0b4639;
  font-weight: 750;
}

.wait-spinner {
  display: none;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  border: 3px solid rgba(11,111,89,.18);
  border-top-color: #0b6f59;
  animation: wait-spin .85s linear infinite;
}

.wait-message.is-loading .wait-spinner {
  display: block;
}

@keyframes wait-spin {
  to {
    transform: rotate(360deg);
  }
}

.qr-preview {
  display: block;
  width: 220px;
  margin: 0 auto 18px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(20,20,20,.1);
  box-shadow: 0 16px 42px rgba(25,24,21,.12);
}

.ready-block {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(20,20,20,.08);
}

.recent-section {
  margin-top: 48px;
}

.recent-head {
  margin-bottom: 18px;
}

.history-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 142px;
  height: 100%;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,248,243,.9)),
    radial-gradient(circle at 88% 10%, rgba(244,201,93,.16), transparent 30%);
  border: 1px solid rgba(20,20,20,.09);
  box-shadow: 0 18px 50px rgba(25,24,21,.1);
  color: inherit;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.history-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0b6f59, #f4c95d);
}

.history-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(25,24,21,.14);
}

.history-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.history-link span {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(11,111,89,.1);
  color: #0b6f59;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-link strong {
  display: block;
  margin-top: 12px;
  line-height: 1.25;
  font-weight: 850;
}

.history-qr {
  position: relative;
  display: grid;
  grid-template-columns: 76px;
  gap: 10px;
  justify-items: center;
}

.history-qr img {
  width: 76px;
  height: 76px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(20,20,20,.1);
  box-shadow: 0 10px 24px rgba(25,24,21,.1);
}

.qr-download-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20,20,20,.12);
  border-radius: 8px;
  color: #111;
  background: #f8f4e8;
  transition: background .18s ease, transform .18s ease;
}

.qr-download-button:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.qr-download-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qr-download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.qr-option {
  min-height: 170px;
  padding: 16px;
  display: block;
  border: 1px solid rgba(20,20,20,.12);
  border-radius: 8px;
  background: #fff;
  color: #111;
  text-align: center;
  text-decoration: none;
}

.qr-option:hover {
  border-color: #111;
  box-shadow: 0 16px 38px rgba(25,24,21,.12);
}

.qr-option-preview {
  width: 116px;
  min-height: 116px;
  margin: 0 auto 12px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.qr-option-preview img {
  width: 116px;
  height: 116px;
  display: block;
  padding: 6px;
  border: 1px solid rgba(20,20,20,.16);
  border-radius: 6px;
  background: #fff;
}

.qr-option-preview.scan-me {
  color: #111;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
}

.qr-option strong {
  display: block;
}

.modal-backdrop {
  z-index: 3000;
}

.modal {
  z-index: 3010;
}

.auth-shell {
  min-height: calc(100vh - 67px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 32px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 24px 0;
}

.divider::before, .divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(0,0,0,.12);
}

.oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.oauth-button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.player-shell {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 28px;
}

.turntable, .karaoke-card {
  padding: 28px;
}

.vinyl {
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 13%, rgba(255,255,255,.05) 13.4% 13.9%, transparent 14.2% 23%),
    radial-gradient(circle at 50% 50%, rgba(70,70,70,.8) 0 24%, rgba(26,26,26,.9) 24.6% 33%, rgba(8,8,8,.98) 33.5% 100%);
  box-shadow:
    inset 0 0 0 10px rgba(255,255,255,.035),
    inset 0 0 0 22px rgba(0,0,0,.2),
    inset 0 0 70px rgba(255,255,255,.06),
    0 32px 80px rgba(0,0,0,.28);
}

.vinyl::before {
  content: '';
  position: absolute;
  inset: 4.5%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(255,255,255,.11) 0 1px,
      rgba(255,255,255,0) 1px 4px,
      rgba(0,0,0,.34) 4px 5px,
      rgba(0,0,0,0) 5px 8px),
    conic-gradient(from 20deg,
      rgba(255,255,255,.03),
      rgba(255,255,255,.12) 18deg,
      rgba(255,255,255,.025) 40deg,
      rgba(0,0,0,.22) 76deg,
      rgba(255,255,255,.035) 118deg,
      rgba(0,0,0,.28) 190deg,
      rgba(255,255,255,.05) 250deg,
      rgba(0,0,0,.18) 320deg,
      rgba(255,255,255,.03));
  opacity: .9;
  z-index: 0;
}

.vinyl::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 17%, rgba(255,255,255,.08) 17.4% 17.8%, transparent 18.2% 27%, rgba(255,255,255,.045) 27.4% 28%, transparent 28.5% 100%),
    linear-gradient(118deg, transparent 0 19%, rgba(255,255,255,.18) 27%, rgba(255,255,255,.02) 36%, transparent 47%),
    linear-gradient(300deg, transparent 0 58%, rgba(255,255,255,.08) 65%, transparent 77%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
}

.vinyl-grooves {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle,
      rgba(255,255,255,.08) 0 1px,
      transparent 1px 7px);
  opacity: .42;
  z-index: 1;
}

.vinyl-highlight {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16) 0 8%, transparent 26% 100%),
    radial-gradient(ellipse at 28% 22%, rgba(255,255,255,.13), transparent 32%);
  transform: rotate(-12deg);
  mix-blend-mode: screen;
  opacity: .9;
  z-index: 2;
}

.vinyl-label {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding-top: 28px;
  position: relative;
  z-index: 4;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.3), transparent 34%),
    radial-gradient(circle, #f6cf67 0 58%, #e8b849 59% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.08),
    0 0 0 22px rgba(255,255,255,.055),
    0 0 0 24px rgba(0,0,0,.28);
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  text-align: center;
}

.vinyl-hole {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 5;
  background: #1c1c1c;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.24);
}

.is-spinning {
  animation: spin 3.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.player-start-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  border: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(244,201,93,.22), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(11,111,89,.18), transparent 32%),
    linear-gradient(145deg, rgba(250,248,243,.98), rgba(237,246,241,.98));
  color: #111;
  cursor: pointer;
  touch-action: manipulation;
}

.player-start-overlay.d-none {
  display: none;
}

.player-start-overlay:focus-visible {
  outline: 4px solid rgba(11,111,89,.34);
  outline-offset: -8px;
}

.player-start-overlay:disabled {
  cursor: progress;
}

.gift-envelope-stage {
  position: relative;
  display: block;
  width: min(76vw, 460px);
  aspect-ratio: 1.06;
}

.gift-vinyl {
  position: absolute;
  left: 50%;
  bottom: 31%;
  width: 70%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 13%, rgba(255,255,255,.05) 13.4% 13.9%, transparent 14.2% 23%),
    radial-gradient(circle at 50% 50%, rgba(70,70,70,.8) 0 24%, rgba(26,26,26,.9) 24.6% 33%, rgba(8,8,8,.98) 33.5% 100%);
  box-shadow:
    inset 0 0 0 10px rgba(255,255,255,.035),
    inset 0 0 0 22px rgba(0,0,0,.2),
    inset 0 0 70px rgba(255,255,255,.06),
    0 28px 70px rgba(0,0,0,.24);
  transform: translate(-50%, 22%) rotate(-8deg);
  animation: gift-record-peek 2.9s ease-in-out infinite;
}

.gift-vinyl::before {
  content: '';
  position: absolute;
  inset: 4.5%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.11) 0 1px, rgba(255,255,255,0) 1px 4px, rgba(0,0,0,.34) 4px 5px, rgba(0,0,0,0) 5px 8px),
    conic-gradient(from 20deg, rgba(255,255,255,.03), rgba(255,255,255,.12) 18deg, rgba(255,255,255,.025) 40deg, rgba(0,0,0,.22) 76deg, rgba(255,255,255,.035) 118deg, rgba(0,0,0,.28) 190deg, rgba(255,255,255,.05) 250deg, rgba(0,0,0,.18) 320deg, rgba(255,255,255,.03));
  opacity: .9;
  z-index: 0;
}

.gift-vinyl::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 17%, rgba(255,255,255,.08) 17.4% 17.8%, transparent 18.2% 27%, rgba(255,255,255,.045) 27.4% 28%, transparent 28.5% 100%),
    linear-gradient(118deg, transparent 0 19%, rgba(255,255,255,.18) 27%, rgba(255,255,255,.02) 36%, transparent 47%),
    linear-gradient(300deg, transparent 0 58%, rgba(255,255,255,.08) 65%, transparent 77%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
}

.gift-vinyl-grooves {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.08) 0 1px, transparent 1px 7px);
  opacity: .42;
  z-index: 1;
}

.gift-vinyl-highlight {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16) 0 8%, transparent 26% 100%),
    radial-gradient(ellipse at 28% 22%, rgba(255,255,255,.13), transparent 32%);
  transform: rotate(-12deg);
  mix-blend-mode: screen;
  opacity: .9;
  z-index: 2;
}

.gift-vinyl-label {
  position: relative;
  z-index: 4;
  width: 37%;
  height: 37%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding-top: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.3), transparent 34%),
    radial-gradient(circle, #f6cf67 0 58%, #e8b849 59% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.08),
    0 0 0 18px rgba(255,255,255,.055),
    0 0 0 20px rgba(0,0,0,.28);
  font-size: clamp(.78rem, 2.5vw, 1.1rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.gift-vinyl-hole {
  position: absolute;
  z-index: 5;
  width: 4%;
  height: 4%;
  border-radius: 50%;
  background: #1c1c1c;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.24);
}

.gift-envelope {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 82%;
  height: 50%;
  padding: 11% 10% 9%;
  transform: translateX(-50%);
  border: 1px solid rgba(20,20,20,.1);
  border-radius: 8px;
  background:
    linear-gradient(34deg, transparent 49.5%, rgba(20,20,20,.09) 50%, transparent 50.5%) left bottom / 50% 100% no-repeat,
    linear-gradient(-34deg, transparent 49.5%, rgba(20,20,20,.09) 50%, transparent 50.5%) right bottom / 50% 100% no-repeat,
    linear-gradient(145deg, #fffaf0, #f4ead8);
  box-shadow: 0 28px 80px rgba(25,24,21,.18);
}

.gift-envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background:
    linear-gradient(150deg, transparent 49%, rgba(20,20,20,.08) 49.5%, transparent 50%) left top / 50% 58% no-repeat,
    linear-gradient(210deg, transparent 49%, rgba(20,20,20,.08) 49.5%, transparent 50%) right top / 50% 58% no-repeat;
  pointer-events: none;
}

.gift-envelope-copy {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 12em;
  font-size: clamp(1.35rem, 5.2vw, 2.45rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
  text-align: center;
}

@keyframes gift-record-peek {
  0%, 100% {
    transform: translate(-50%, 24%) rotate(-10deg);
  }
  50% {
    transform: translate(-50%, -7%) rotate(9deg);
  }
}

.qr-line {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 20px 0;
}

.qr-line img {
  width: 120px;
  border-radius: 8px;
  background: white;
}

.karaoke-text {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.8;
}

.karaoke-text span {
  color: #858585;
  transition: color .15s ease, background-color .15s ease;
}

.karaoke-text span.past {
  color: #262626;
}

.karaoke-text span.active {
  color: #111;
  background: var(--gold);
  border-radius: 4px;
  padding: 1px 4px;
}

.song-share {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.song-share-label {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.song-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.song-share-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(0,0,0,.13);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #171717;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.song-share-button:hover,
.song-share-button:focus-visible {
  color: #111;
  border-color: rgba(0,0,0,.28);
  box-shadow: 0 12px 26px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

.song-share-primary {
  border-color: #151515;
  background: #151515;
  color: #fff;
}

.song-share-primary:hover,
.song-share-primary:focus-visible {
  color: #fff;
}

.song-share-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: currentColor;
}

.song-share-status {
  min-height: 20px;
  display: block;
  margin-top: 10px;
  color: #6a6a6a;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .15s ease;
}

.song-share-status.is-visible {
  opacity: 1;
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 56px;
  }

  .generator-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .studio-balance-card {
    width: 100%;
  }

  .hero-visual {
    min-height: 560px;
  }

  .vinyl-stage {
    right: 50%;
    top: 54px;
    width: min(94%, 420px);
    transform: translateX(50%);
  }

  .player-chip {
    left: 22px;
    top: 22px;
  }

  .qr-ticket {
    left: 22px;
    right: 22px;
    bottom: 22px;
    width: auto;
    grid-template-columns: 112px 1fr;
  }

  .sound-bars {
    display: none;
  }

  .player-shell {
    grid-template-columns: 1fr;
  }

  .song-share-actions {
    gap: 8px;
  }
}

@media (min-width: 992px) {
  .qr-ticket-copy strong {
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .generator-page {
    padding-top: 38px;
  }

  .generator-hero h1 {
    font-size: 2.35rem;
  }

  .panel {
    padding: 22px;
  }

  .panel-topline,
  .result-head {
    display: grid;
  }

  .song-share-button {
    flex: 1 1 calc(50% - 8px);
    padding-inline: 8px;
  }

  .cost-strip {
    grid-template-columns: 1fr;
  }

  .history-card {
    grid-template-columns: 1fr;
  }

  .history-qr {
    grid-template-columns: 76px 36px;
    justify-content: space-between;
    width: 100%;
  }

  .hero-visual {
    min-height: 620px;
  }

  .qr-ticket {
    grid-template-columns: 1fr;
  }

  .qr-ticket-code {
    width: 168px;
  }
}
