:root {
  --bg: #0b0807;
  --bg-2: #120d0b;
  --panel: #18120f;
  --panel-2: #1f1713;
  --line: rgba(246, 231, 207, 0.09);
  --line-2: rgba(246, 231, 207, 0.16);
  --cream: #f6e7cf;
  --muted: #a8977f;
  --dim: #6f6253;
  --amber: #ffb547;
  --ember: #ff6a3d;
  --teal: #35e0c2;
  --rose: #ff5c8a;
  --violet: #b48bff;
  --chord: #ffb547;
  --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-neon: 'Monoton', var(--f-display);
  --r-lg: 24px;
  --r-md: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(255, 140, 50, 0.13), transparent 60%),
    radial-gradient(900px 600px at 105% 20%, rgba(53, 224, 194, 0.06), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(255, 92, 138, 0.06), transparent 60%), var(--bg);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-1%, 3%); }
  80% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ───────── Top bar ───────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 36px;
  background: linear-gradient(to bottom, rgba(11, 8, 7, 0.92), rgba(11, 8, 7, 0.6));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  text-decoration: none;
}

.logo-neon {
  font-family: var(--f-neon);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: #ffe2b0;
  text-shadow:
    0 0 4px rgba(255, 226, 176, 0.9),
    0 0 12px rgba(255, 181, 71, 0.85),
    0 0 26px rgba(255, 106, 61, 0.7),
    0 0 48px rgba(255, 106, 61, 0.4);
  animation: flicker 7s infinite;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.55; text-shadow: none; }
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.topnav a {
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
}

.topnav a:hover {
  color: var(--amber);
}

.topnote {
  color: var(--muted);
  font-family: var(--f-serif);
  font-style: italic;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ffc76a, var(--ember));
  color: #1a0f0a;
  border-color: transparent;
  box-shadow: 0 10px 30px -8px rgba(255, 106, 61, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px -8px rgba(255, 106, 61, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--amber);
  background: rgba(255, 181, 71, 0.07);
}

.btn-small {
  padding: 8px 14px;
  font-size: 13px;
  border-color: var(--line-2);
}

.btn-small svg {
  width: 12px;
  height: 12px;
}

.btn-small.on,
.btn-small:hover {
  border-color: var(--chord);
  color: var(--chord);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(53, 224, 194, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 194, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(53, 224, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 194, 0); }
}

/* ───────── Chord names / chips ───────── */
.cn {
  font-family: var(--f-display);
  font-weight: 900;
  color: var(--c, var(--cream));
  letter-spacing: 0.01em;
  line-height: 1;
}

.cn sup {
  font-size: 0.55em;
  font-weight: 800;
  margin-left: 1px;
  vertical-align: 0.55em;
}

.cn.chip {
  display: inline-flex;
  align-items: baseline;
  padding: 5px 10px 4px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  font-size: 15px;
}

.lvl {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.lvl-beginner {
  color: var(--teal);
  background: rgba(53, 224, 194, 0.1);
  border: 1px solid rgba(53, 224, 194, 0.35);
}

.lvl-kids {
  color: var(--rose);
  background: rgba(255, 92, 138, 0.1);
  border: 1px solid rgba(255, 92, 138, 0.4);
}

.lvls {
  display: flex;
  gap: 6px;
}

.lvl-intermediate {
  color: var(--ember);
  background: rgba(255, 106, 61, 0.1);
  border: 1px solid rgba(255, 106, 61, 0.4);
}

/* ───────── Home: hero ───────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 40px 48px 70px;
  min-height: calc(100vh - 64px);
}

.hero-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.84;
  font-size: clamp(56px, 6.3vw, 118px);
  letter-spacing: -0.01em;
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: rise 0.9s var(--ease) forwards;
}

.ht-1 {
  animation-delay: 0.05s !important;
}

.ht-2 {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 0.62em;
  line-height: 1.05;
  color: var(--amber);
  padding: 0.08em 0 0.02em 0.06em;
  animation-delay: 0.18s !important;
}

.ht-3 {
  background: linear-gradient(100deg, #fff1d8 0%, #ffc76a 40%, var(--ember) 75%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-delay: 0.3s !important;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-sub {
  max-width: 540px;
  margin: 28px 0 32px;
  color: #d9c8ae;
  font-size: 18px;
  opacity: 0;
  animation: rise 0.9s 0.45s var(--ease) forwards;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s 0.55s var(--ease) forwards;
}

.hero-stats {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  opacity: 0;
  animation: rise 0.9s 0.7s var(--ease) forwards;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats b {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-stage {
  position: relative;
  height: min(78vh, 700px);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow:
    0 40px 120px -40px rgba(255, 106, 61, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.6) inset;
  background: #090606;
  opacity: 0;
  animation: rise 1.1s 0.25s var(--ease) forwards;
}

.hero-canvas,
.highway {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-stage-tag {
  position: absolute;
  top: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stage-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.hero-chord {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 116px;
  padding: 10px 8px 4px;
  border-radius: 18px;
  background: rgba(16, 11, 9, 0.75);
  border: 1px solid color-mix(in srgb, var(--c, var(--amber)) 45%, transparent);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s;
}

/* ───────── Home: setlist ───────── */
.setlist {
  padding: 30px 48px 40px;
}

.setlist-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.setlist-head .eyebrow {
  margin-bottom: 0;
  font-family: var(--f-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 26px;
  font-weight: 400;
}

.section-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.82;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 8px;
}

.pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
}

.pill.on,
.pill:hover {
  color: #170f0b;
  background: var(--cream);
  border-color: var(--cream);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 190px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}

.card.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.card.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--d) var(--ease), transform 0.7s var(--d) var(--ease), border-color 0.3s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 26px 60px -30px var(--c);
}

.card.hide {
  display: none;
}

.card-art {
  position: relative;
  overflow: hidden;
}

.cover-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.8s var(--ease);
}

.card-art .cover-svg {
  position: absolute;
  inset: 0;
  height: 100%;
  width: auto;
  min-width: 100%;
  object-fit: cover;
}

.card:hover .cover-svg {
  transform: scale(1.08) rotate(-4deg);
}

.done-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0b1a16;
  background: var(--teal);
}

.card-body {
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.num {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--dim);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.card h3 {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 34px;
  line-height: 0.95;
  text-transform: uppercase;
}

.by {
  margin: 2px 0 10px;
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-meta {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.card-go {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--c);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease);
}

.card-go svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.card:hover .card-go {
  opacity: 1;
  transform: none;
}

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 50px 48px 30px;
}

.how-step {
  position: relative;
  padding: 26px 26px 26px 26px;
  border-top: 1px solid var(--line-2);
}

.how-n {
  font-family: var(--f-neon);
  font-size: 42px;
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 181, 71, 0.6);
}

.how-step h3 {
  margin: 8px 0 6px;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
}

.how-step p {
  margin: 0;
  color: var(--muted);
}

.foot {
  padding: 30px 48px 50px;
  color: var(--dim);
  font-size: 13px;
  font-family: var(--f-serif);
  font-style: italic;
}

/* ───────── Song page ───────── */
.song-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'id meta tabs';
  align-items: center;
  gap: 10px 28px;
  padding: 12px 36px 12px;
}

.back {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s;
}

.back:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.song-id {
  grid-area: id;
  display: flex;
  align-items: center;
  gap: 18px;
}

.song-cover {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 10px 30px -10px var(--chord);
  transition: box-shadow 0.4s;
}

.song-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 0.86;
  text-transform: uppercase;
  white-space: nowrap;
}

.song-artist {
  margin: 4px 0 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

.song-artist span {
  color: var(--dim);
}

.song-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  font-size: 13px;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.meta-chip b {
  color: var(--cream);
}

.capo-chip {
  color: var(--amber);
  border-color: rgba(255, 181, 71, 0.45);
  box-shadow: 0 0 16px -4px rgba(255, 181, 71, 0.6);
}

.capo-chip b {
  color: var(--amber);
}

.meta-chords {
  display: flex;
  gap: 6px;
  margin-left: 6px;
}

.tabs {
  grid-area: tabs;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s;
}

.tab.on {
  background: var(--cream);
  color: #170f0b;
}

.tab-play {
  padding: 0 36px 24px;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  height: clamp(380px, calc(100vh - 428px), 780px);
}

.highway-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #090606;
  box-shadow: 0 30px 90px -50px var(--chord);
  transition: box-shadow 0.5s;
}

.hud {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.hud-sec {
  display: flex;
  flex-direction: column;
}

.hud-sec-name {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  color: var(--chord);
  text-shadow: 0 0 22px color-mix(in srgb, var(--chord) 60%, transparent);
  transition: color 0.3s;
}

.hud-bar {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.hud-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--muted);
}

.hud-capo {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.start-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(closest-side, rgba(10, 7, 6, 0.55), rgba(10, 7, 6, 0.78));
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.start-overlay.gone {
  opacity: 0;
  visibility: hidden;
}

.so-btn {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--chord) 40%, #fff), var(--chord));
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--chord) 15%, transparent), 0 0 70px color-mix(in srgb, var(--chord) 70%, transparent);
  transition: transform 0.25s var(--ease);
}

.so-btn svg {
  width: 40px;
  height: 40px;
  fill: #170f0b;
  margin-left: 6px;
}

.start-overlay:hover .so-btn {
  transform: scale(1.07);
}

.start-overlay.loading .so-btn {
  animation: spinpulse 0.9s infinite;
}

@keyframes spinpulse {
  50% {
    transform: scale(0.92);
    opacity: 0.7;
  }
}

.so-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 40px;
  text-transform: uppercase;
  margin-top: 10px;
}

.so-sub {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.jam-hud {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-end;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(10, 7, 6, 0.75);
  border: 1px solid rgba(53, 224, 194, 0.35);
}

.jam-hud div {
  display: flex;
  flex-direction: column;
}

.jam-hud b {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1;
  color: var(--teal);
}

.jam-hud span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.jam-meter {
  width: 70px;
  height: 6px;
  border-radius: 3px;
  background: var(--line-2);
  overflow: hidden;
  align-self: center;
}

.jam-meter i {
  display: block;
  height: 100%;
  background: var(--teal);
  transform-origin: left;
  transform: scaleX(0);
}

/* Karaoke lyrics: one phrase at a time under the hit line; bare words, sung word popped in the accent */
.lyrics {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.kara {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 16px;
  max-width: 94%;
  padding-top: 22px;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.18s ease, transform 0.24s var(--ease);
}

.kara.on {
  opacity: 1;
  transform: none;
}

.kara.on.out {
  opacity: 0;
  transition: opacity 0.23s ease;
}

.k-w {
  position: relative;
  display: inline-block;
  color: #f5efe8;
  opacity: 0.62;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
  transition: transform 0.22s cubic-bezier(0.34, 1.8, 0.5, 1), color 0.1s, opacity 0.1s;
}

.k-w.past {
  opacity: 1;
}

.k-w.active {
  opacity: 1;
  color: var(--amber);
  transform: scale(1.16);
  text-shadow: 0 0 18px rgba(255, 181, 71, 0.75), 0 3px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.k-ch {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 1px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 0.6em;
  letter-spacing: 0.02em;
  color: var(--c, var(--amber));
  white-space: nowrap;
  text-shadow: 0 0 10px color-mix(in srgb, var(--c, var(--amber)) 55%, transparent), 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Sidecar */
.sidecar {
  display: grid;
  grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.now-card,
.next-card {
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.now-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: 'label label' 'diag name' 'hint hint';
  align-items: center;
  column-gap: 8px;
  border-color: color-mix(in srgb, var(--chord) 40%, transparent);
  transition: border-color 0.3s;
}

.now-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 200px at 50% 0%, color-mix(in srgb, var(--chord) 18%, transparent), transparent 70%);
  transition: background 0.3s;
  pointer-events: none;
}

.sc-label {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.now-card .sc-label {
  grid-area: label;
}

.now-diagram {
  grid-area: diag;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 90px;
  margin: 4px 0;
}

.now-diagram .chord-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.now-name {
  grid-area: name;
  font-size: 68px;
  line-height: 0.9;
  padding-right: 6px;
}

.now-name .cn {
  color: var(--chord);
  text-shadow: 0 0 30px color-mix(in srgb, var(--chord) 55%, transparent);
}

.now-hint {
  grid-area: hint;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.next-card {
  min-height: 0;
  padding-top: 12px;
  padding-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.next-card.imminent {
  border-color: var(--cream);
  box-shadow: 0 0 30px -6px rgba(246, 231, 207, 0.35);
}

.next-card.imminent .next-in {
  color: var(--cream);
  animation: blink 0.3s infinite;
}

.next-in {
  color: var(--amber);
  letter-spacing: 0.1em;
}

.next-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.next-diagram {
  width: 76px;
  flex: none;
}

.next-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.next-name {
  font-size: 40px;
}

.next-ring {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}

.nr-bg {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 4;
}

.nr-fg {
  fill: none;
  stroke: var(--chord);
  stroke-width: 4;
  stroke-linecap: round;
}

.next-tip {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 6px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.next-card.empty .next-diagram {
  opacity: 0.25;
}

/* Chord diagram SVG */
.chord-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  font-family: var(--f-body);
}

.cd-fret {
  stroke: rgba(246, 231, 207, 0.25);
  stroke-width: 1.4;
}

.cd-nut {
  fill: #f2dfc0;
  transition: opacity 0.2s;
}

.cd-string {
  stroke: rgba(246, 231, 207, 0.55);
}

.cd-marker {
  fill: var(--cream);
  font-size: 13px;
  font-weight: 700;
}

.cd-marker.muted {
  fill: var(--rose);
  font-size: 12px;
}

.cd-base {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cd-dot-fill,
.cd-barre {
  fill: var(--cd-color, var(--amber));
  transition: fill 0.3s;
}

.cd-dot-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.0);
  stroke-width: 2;
}

.cd-dot.anchor .cd-dot-ring {
  stroke: #fff;
  animation: anchorPulse 1.4s infinite;
}

@keyframes anchorPulse {
  50% {
    stroke-opacity: 0.2;
  }
}

.cd-dot-num {
  fill: #170f0b;
  font-size: 11px;
  font-weight: 800;
}

.chord-svg .cd-dot {
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--cd-color) 70%, transparent));
}

/* Pattern strip */
.strip {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: var(--panel);
  border: 1px solid var(--line);
}

.strip-label {
  display: flex;
  flex-direction: column;
  width: 320px;
  flex: none;
}

.strip-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
}

.strip-about {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pattern-strip {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.ps-cell {
  flex: 1;
  min-width: 26px;
  max-width: 64px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #130e0c;
  border: 1px solid var(--line);
  transition: background 0.08s, transform 0.12s var(--ease), box-shadow 0.12s;
}

.ps-cell.beat {
  background: #1a1310;
}

.ps-g {
  height: 24px;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
}

.ps-g .ar {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ps-cell.down .ps-g {
  color: var(--cream);
}

.ps-cell.up .ps-g {
  color: var(--teal);
}

.ps-cell.up .ar {
  width: 19px;
  height: 19px;
}

.ps-cell.soft .ps-g {
  opacity: 0.55;
}

.ps-cell.mute .ps-g {
  color: var(--muted);
  font-size: 18px;
}

.ps-cell.pick .ps-g {
  color: var(--amber);
}

.ps-g .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
}

.ps-n {
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
}

.ps-cell.beat .ps-n {
  color: var(--muted);
  font-weight: 800;
}

.ps-cell.cur {
  background: var(--chord);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px -8px var(--chord);
}

.ps-cell.cur .ps-g,
.ps-cell.cur .ps-n {
  color: #170f0b;
  opacity: 1;
}

.ps-cell.cur .dot {
  background: #170f0b;
}

/* Song map */
.songmap {
  margin-top: 10px;
}

.sm-track {
  position: relative;
  height: 28px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
}

.sm-sec {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.5);
  padding: 0 8px;
  background: color-mix(in srgb, var(--sc) 14%, transparent);
  text-align: left;
  overflow: hidden;
  transition: background 0.2s;
}

.sm-sec span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb, var(--sc) 80%, #fff);
  opacity: 0.75;
}

.sm-sec:hover {
  background: color-mix(in srgb, var(--sc) 26%, transparent);
}

.sm-sec.on {
  background: color-mix(in srgb, var(--sc) 34%, transparent);
}

.sm-sec.on span {
  opacity: 1;
}

.sm-loop {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 2px solid var(--teal);
  border-radius: 10px;
  background: rgba(53, 224, 194, 0.08);
  pointer-events: none;
  box-shadow: 0 0 20px rgba(53, 224, 194, 0.35) inset;
}

.sm-head {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 3px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 12px #fff, 0 0 24px var(--chord);
  pointer-events: none;
}

/* Deck */
.deck {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #1c1512, #130e0c);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.deck-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.deck-label output {
  color: var(--cream);
  letter-spacing: 0.05em;
}

.transport {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ibtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.ibtn svg {
  width: 16px;
  height: 16px;
  fill: var(--cream);
}

.ibtn:hover {
  border-color: var(--chord);
}

.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--chord) 45%, #fff), var(--chord));
  box-shadow: 0 0 30px -4px var(--chord);
  transition: transform 0.2s var(--ease), background 0.3s;
}

.play-btn svg {
  width: 26px;
  height: 26px;
  fill: #170f0b;
}

.play-btn:hover {
  transform: scale(1.06);
}

.time {
  margin-left: 8px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  gap: 6px;
  min-width: 110px;
}

.time b {
  color: var(--cream);
}

.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #0d0908;
  border: 1px solid var(--line);
  margin-bottom: 4px;
}

.seg button {
  border: 0;
  background: transparent;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.seg button.on {
  background: var(--cream);
  color: #170f0b;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--chord), var(--line-2));
}

input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 3px #170f0b, 0 0 12px var(--chord);
}

input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
}

.speed {
  width: 210px;
}

.capo select {
  appearance: none;
  background: #0d0908 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a8977f' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center / 10px;
  color: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 8px 30px 8px 12px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
}

.capo small {
  display: block;
  color: var(--dim);
  font-size: 11px;
  margin-top: 4px;
}

.pedals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pedal {
  width: 63px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, #2d2420, #1a1411);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 0 #0a0706, 0 6px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--muted);
  transition: transform 0.08s, box-shadow 0.08s, color 0.2s;
}

.pedal:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 #0a0706;
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a2c25;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: all 0.2s;
}

.pedal.on {
  color: var(--cream);
}

.pedal.on .led {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber), 0 0 16px var(--ember);
}

.pedal-jam.on .led {
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal), 0 0 16px var(--teal);
}

.mixer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 150px;
  margin-left: auto;
}

.fader {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────── Learn ───────── */
.learn {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 36px 90px;
}

.learn-intro {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  max-width: 900px;
  margin: 10px 0 20px;
  color: #ead7b9;
}

.path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: p;
}

.path li {
  counter-increment: p;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.path li::before {
  content: counter(p);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #170f0b;
  font-size: 12px;
  font-weight: 800;
}

.lb {
  margin-top: 64px;
}

.lb-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.9;
  text-transform: uppercase;
}

.lb-title span {
  font-family: var(--f-neon);
  font-weight: 400;
  font-size: 0.6em;
  color: var(--amber);
  text-shadow: 0 0 16px rgba(255, 181, 71, 0.6);
}

.lb-sub {
  color: var(--muted);
  max-width: 720px;
  margin: 12px 0 24px;
}

.chord-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.chord-card {
  position: relative;
  text-align: left;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--c);
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.chord-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -24px var(--c);
}

.chord-card.ping {
  animation: ping 0.6s var(--ease);
}

@keyframes ping {
  30% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent), 0 0 60px -10px var(--c);
  }
}

.cc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 50px;
  font-size: 46px;
}

.cc-play svg {
  width: 26px;
  height: 26px;
  fill: var(--c);
  color: var(--c);
  opacity: 0.8;
}

.cc-diagram {
  width: 160px;
  margin: 6px auto 8px;
  --cd-color: var(--c);
}

.cc-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #d9c8ae;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cc-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fdot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #170f0b;
  background: var(--c);
}

.cc-strum {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c);
}

.patterns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
}

.pattern-card {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  --chord: var(--amber);
}

.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pc-head h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
}

.pattern-card p {
  margin: 12px 0 0;
  color: #d9c8ae;
  font-size: 14px;
}

.pattern-card .pc-used {
  color: var(--dim);
  font-size: 12px;
  margin-top: 6px;
}

.pattern-strip.big .ps-cell {
  height: 74px;
}

.changes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 16px;
}

.change {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  align-items: center;
}

.ch-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.ch-d {
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 28px;
  --cd-color: var(--c);
}

.ch-arrow {
  font-size: 24px;
  color: var(--muted);
}

.ch-body p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #d9c8ae;
}

.ch-body .ch-count {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.rm-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--panel);
  border-left: 4px solid var(--sc);
}

.rm-name b {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sc) 70%, #fff);
  line-height: 1;
}

.rm-name span {
  font-size: 12px;
  color: var(--muted);
}

.rm-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.rm-bar {
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #0f0b09;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 18px;
}

.rm-bar i {
  color: var(--dim);
  margin: 0 4px;
  font-style: normal;
}

.rm-rep {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--amber);
  margin-left: 6px;
}

.tips {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.tips li {
  position: relative;
  padding: 16px 18px 16px 50px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: #e3d1b4;
  font-size: 15px;
}

.tips li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 19px;
  width: 18px;
  height: 20px;
  background: linear-gradient(135deg, var(--amber), var(--ember));
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
}

.learn-cta {
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 34px;
  border-radius: 28px;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(255, 181, 71, 0.18), transparent 70%),
    linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255, 181, 71, 0.3);
}

.learn-cta h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}

.learn-cta p {
  margin: 6px 0 0;
  color: var(--muted);
}

.lc-btns {
  display: flex;
  gap: 12px;
}

/* ───────── Modal ───────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(6, 4, 3, 0.72);
  backdrop-filter: blur(8px);
  animation: fade 0.3s;
}

.modal[hidden] {
  display: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.modal-card {
  position: relative;
  width: min(620px, 92vw);
  padding: 44px 40px 36px;
  border-radius: 30px;
  background: radial-gradient(500px 260px at 50% 0%, rgba(255, 181, 71, 0.2), transparent 70%), var(--panel-2);
  border: 1px solid rgba(255, 181, 71, 0.35);
  text-align: center;
  overflow: hidden;
  animation: pop 0.5s var(--ease);
}

@keyframes pop {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
}

.modal-card .eyebrow {
  justify-content: center;
}

.modal-card h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 54px;
  line-height: 0.95;
  text-transform: uppercase;
}

.modal-card h2 em {
  font-family: var(--f-serif);
  font-weight: 400;
  text-transform: none;
  color: var(--amber);
}

.mc-sub {
  color: var(--muted);
  margin: 14px 0 0;
}

.mc-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 22px;
}

.mc-stats div {
  display: flex;
  flex-direction: column;
}

.mc-stats b {
  font-family: var(--f-display);
  font-size: 46px;
  line-height: 1;
  color: var(--teal);
}

.mc-stats span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mc-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: fall var(--t) var(--d) ease-in forwards;
}

@keyframes fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translateY(520px) rotate(var(--r));
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translate(-50%, 30px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--cream);
  color: #170f0b;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ───────── Responsive ───────── */
@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-stage {
    height: 520px;
  }
  .song-head {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'id tabs' 'meta meta';
  }
  .tabs {
    width: fit-content;
  }
  .stage {
    grid-template-columns: 1fr;
    height: auto;
  }
  .highway-wrap {
    height: 62vh;
    min-height: 420px;
  }
  .sidecar {
    flex-direction: row;
  }
  .now-card,
  .next-card {
    flex: 1;
  }
  .now-diagram {
    max-width: 150px;
  }
  .mixer {
    margin-left: 0;
  }
  .strip {
    flex-direction: column;
    align-items: stretch;
  }
  .strip-label {
    width: auto;
  }
}

@media (max-width: 760px) {
  .topbar,
  .hero,
  .setlist,
  .how,
  .tab-play,
  .song-head,
  .learn {
    padding-left: 18px;
    padding-right: 18px;
  }
  .topnote {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    grid-template-columns: 110px 1fr;
  }
  .how {
    grid-template-columns: 1fr;
  }
  .song-title {
    white-space: normal;
  }
  .song-head {
    grid-template-columns: 1fr;
    grid-template-areas: 'id' 'meta' 'tabs';
  }
  .song-artist span {
    display: none;
  }
  .tabs {
    width: 100%;
  }
  .tab {
    flex: 1;
  }
  .highway-wrap {
    height: 56vh;
    min-height: 360px;
  }
  .so-sub {
    display: none;
  }
  .deck {
    gap: 14px;
  }
  .mixer {
    width: 100%;
  }
  .sidecar {
    flex-direction: column;
  }
  .patterns,
  .changes {
    grid-template-columns: 1fr;
  }
  .change {
    flex-direction: column;
  }
  .rm-row {
    grid-template-columns: 1fr;
  }
}
