:root {
  --sun: #F4B860; --tangerine: #E8743B; --rose: #D9897C;
  --cream: #F6EBD9; --night: #1B1A2E; --teal: #2F6F73;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--night); color: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; z-index: 5;
  background: radial-gradient(ellipse at 50% 30%, rgba(27,26,46,.35), rgba(27,26,46,.8)); }
.hidden { display: none !important; }
.card { width: min(440px, 100%); background: rgba(27,26,46,.82); border: 1px solid rgba(246,235,217,.18);
  border-radius: 28px; padding: 28px 24px; text-align: center; backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35); max-height: calc(100% - 32px); overflow-y: auto; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 700; margin: .2em 0 .4em; }
h1 { font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1; color: var(--sun); }
h2 { font-size: 2rem; color: var(--sun); }
.lede { line-height: 1.5; margin: 0 0 1.2em; opacity: .92; }
.dots { display: flex; gap: 8px; justify-content: center; margin: 0; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.dots span:nth-child(2) { background: var(--tangerine); } .dots span:nth-child(3) { background: var(--rose); }
.dots span:nth-child(4) { background: var(--cream); } .dots span:nth-child(5) { background: var(--teal); }
button { font: inherit; color: inherit; cursor: pointer; }
.songs { display: grid; gap: 10px; margin-bottom: 14px; }
.song { display: grid; gap: 2px; text-align: left; padding: 14px 18px; border-radius: 18px;
  border: 1px solid rgba(244,184,96,.45); background: linear-gradient(120deg, rgba(232,116,59,.25), rgba(47,111,115,.25)); }
.song:hover, .song:focus-visible { border-color: var(--sun); outline: none; background: linear-gradient(120deg, rgba(232,116,59,.45), rgba(47,111,115,.35)); }
.song strong { font-family: "Fraunces", serif; font-style: italic; font-size: 1.2rem; }
.song span { font-size: .9rem; opacity: .8; } .song em { font-style: normal; font-size: .8rem; color: var(--sun); min-height: 1em; }
.primary { display: block; width: 100%; padding: 14px; border-radius: 999px; border: 0; background: var(--sun);
  color: var(--night); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.primary:focus-visible, .link:focus-visible, .chip:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.link { background: none; border: 0; text-decoration: underline; opacity: .85; padding: 8px; }
.how { text-align: left; padding-left: 1.1em; line-height: 1.55; margin: 0 0 1.2em; }
.how li { margin-bottom: .5em; }
kbd { font-family: inherit; font-size: .85em; padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(246,235,217,.4); background: rgba(246,235,217,.08); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.stats div { background: rgba(246,235,217,.06); border-radius: 16px; padding: 10px; }
.stats dt { font-size: .8rem; opacity: .75; } .stats dd { margin: 0; font-family: "Fraunces", serif; font-style: italic; font-size: 1.5rem; color: var(--sun); }
.chip { position: fixed; top: max(12px, env(safe-area-inset-top)); z-index: 8; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(246,235,217,.35); background: rgba(27,26,46,.6); font-size: .85rem; }
.mute { right: 12px; } .pause { left: 12px; }
.credits { position: fixed; bottom: max(6px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center;
  font-size: .72rem; opacity: .7; z-index: 6; pointer-events: none; padding: 0 16px; }
body.playing .credits { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .card { backdrop-filter: none; } }
