/* Public demo only: the landing page, and the sing-screen controls that need the local server hidden.
   The build inlines this file (and style.css) into index.html, so the page never shows unstyled. */
.public-demo .player, .public-demo #recBtn { display: none !important; }
.public-demo nav a.dm-ext::after { content: " \2197"; font-size: 0.85em; opacity: 0.7; }

/* hero: words and the button on the left, a preview of the sing screen on the right */
.dm-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; padding: 26px 0 8px; }
.dm-kicker { color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; margin: 0 0 10px; }
.dm-hero h1 { font-size: clamp(36px, 4.2vw, 54px); line-height: 1.02; margin: 0 0 16px; }
.dm-lede { font-size: 18px; color: var(--text); margin: 0 0 26px; max-width: 34em; }
.dm-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dm-go { font-size: 21px; padding: 16px 34px; border-radius: 999px; font-weight: 800; box-shadow: 0 8px 28px rgba(255, 79, 154, 0.28); }
.dm-go:hover { filter: brightness(1.07); border-color: var(--accent); }
.dm-note { color: var(--dim); font-size: 14px; padding-left: 6px; }
.dm-msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; max-width: 34em; }
.dm-msg:empty { min-height: 0; margin: 0; }
.dm-msg.bad { color: var(--off); }

/* the preview: the first line of Twinkle drawn like the sing screen, with a made-up voice line */
.dm-preview { margin: 0; }
.dm-lane { position: relative; aspect-ratio: 16 / 10; border: 1px solid #3a2a5c; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #24183f 0%, #1a1130 100%); }
.dm-lane canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dm-preview figcaption { color: var(--dim); font-size: 13px; margin-top: 8px; text-align: center; }

/* three tips, as a row of small panels */
.dm-tips { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dm-tips li { padding: 14px 16px 14px 18px; border-left: 3px solid var(--accent); background: rgba(33, 22, 58, 0.7); border-radius: 4px 12px 12px 4px; color: var(--dim); font-size: 15px; line-height: 1.45; }
.dm-tips b { display: block; color: var(--text); font-size: 16px; margin-bottom: 3px; }

/* the tunes: a setlist of cards, two across */
.dm-h2 { margin: 40px 0 12px; font-size: 30px; }
.dm-songs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dm-song { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 18px; min-height: 96px; padding: 16px 18px 16px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color 0.15s, background 0.15s; }
.dm-song:hover, .dm-song:focus-visible { border-color: var(--accent); background: #291b47; }
.dm-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dm-title { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; }
.dm-song:hover .dm-title { color: var(--accent); }
.dm-by { color: var(--dim); font-size: 14px; }
.dm-facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; }
.dm-facts span { font-size: 12.5px; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.dm-facts .dm-best { border-color: transparent; padding-left: 0; }
.dm-facts .dm-best b { color: var(--good); }
.dm-play { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #2a0618; font-size: 18px; padding-left: 3px; box-sizing: border-box; }

.dm-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.dm-foot a { color: var(--text); }

@media (prefers-reduced-motion: reduce) { .dm-song { transition: none; } }
@media (max-width: 900px) {
  .dm-hero { grid-template-columns: 1fr; padding-top: 12px; }
  .dm-tips { grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .dm-songs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  header { padding: 12px 16px 4px; gap: 18px; }
  main { padding: 12px 16px 48px; }
  .dm-hero { gap: 22px; }
  .dm-cta { align-items: stretch; }
  .dm-go { width: 100%; padding: 16px 20px; }
  .dm-note { text-align: center; padding-left: 0; }
  .dm-lede { font-size: 16px; margin-bottom: 20px; }
  .dm-lane { aspect-ratio: 16 / 9; }
  .dm-h2 { font-size: 26px; margin-top: 32px; }
  .dm-title { font-size: 24px; }
  .dm-song { min-height: 0; padding: 14px 14px 14px 18px; }
  .dm-play { width: 42px; height: 42px; font-size: 16px; }
}
