/* Yersong — one page, mobile first, everything that matters above the fold.
   Dark ground throughout: the logo is drawn for it, the videos are dark, and
   album artwork sits better on it than on white. No framework and no CDN — the
   page is opened from a social feed on a phone, so weight is the feature. */

:root {
  --bg:        #17121A;
  --bg-lift:   #221A28;
  --surface:   #2A2032;
  --line:      #3A2C42;
  --ink:       #FFF3E8;
  --ink-mute:  #B7A7B5;
  --ink-faint: #7E7080;
  --accent:    #F2699A;
  --accent-hi: #FF8FB4;
  --gold:      #F5B942;
  --danger:    #FF8A7A;

  --body: ui-rounded, "SF Pro Rounded", "Segoe UI", Candara, system-ui, -apple-system, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

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

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---- brand ---- */
.brand { text-align: center; margin-bottom: 18px; }
.brand img { width: 218px; max-width: 62vw; height: auto; display: inline-block; }
.brand--small img { width: 152px; }

/* ---- type ---- */
h1 {
  font-size: clamp(27px, 7.2vw, 34px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  text-wrap: balance;
  text-align: center;
}
.sub {
  text-align: center;
  color: var(--ink-mute);
  margin: 0 0 22px;
  font-size: 16px;
}
.fine {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13.5px;
  margin: 14px 0 0;
}

/* ---- form ---- */
.field { margin-bottom: 12px; }
label {
  display: block;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
  font-weight: 700;
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--bg-lift);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;      /* 16px+ stops iOS zooming the page on focus */
  padding: 14px 16px;
  transition: border-color .15s ease;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 128px; resize: vertical; line-height: 1.45; }
::placeholder { color: #6B5E6C; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- age bands ---- */
.hintline {
  margin: -2px 0 9px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink-faint);
}
.bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.band {
  background: var(--bg-lift);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 4px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.band:hover { border-color: var(--accent); }
.band.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #2A0A16;
}
.bandhint {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--gold);
  min-height: 1.2em;
  text-align: center;
}

/* ---- house promo on the waiting screen ---- */
.promo {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-lift);
  text-align: left;
}
.promo-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 7px;
}
.promo-head {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.promo-body {
  margin: 0 0 13px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-mute);
}
.promo-cta {
  display: inline-block;
  border: 1.5px solid var(--accent);
  border-radius: 22px;
  padding: 10px 20px 11px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
}
.promo-cta:hover { background: var(--accent); color: #2A0A16; }
/* Says plainly that the link is safe and where it goes. People are rightly
   wary of a link that appears mid-wait on a page they have never used before. */
.promo-safe {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  opacity: .78;
  margin-top: 2px;
}

button.go {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #2A0A16;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  padding: 16px 20px;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease;
}
button.go:hover:not(:disabled) { background: var(--accent-hi); }
button.go:active:not(:disabled) { transform: scale(.985); }
button.go:disabled { opacity: .55; cursor: default; }

button.ghost {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
}
button.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- states ---- */
.state { display: none; }
.state.on { display: block; animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.err {
  background: #3A1A22;
  border: 1px solid #6B2A38;
  color: #FFC9D4;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  margin-bottom: 14px;
}

/* ---- lyrics ---- */
.lyrics {
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  white-space: pre-wrap;
  font-size: 16.5px;
  line-height: 1.62;
  margin-bottom: 18px;
  max-height: 46svh;
  overflow-y: auto;
}
.lyrics .tag {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 14px 0 4px;
}
.lyrics .tag:first-child { margin-top: 0; }

/* ---- progress ---- */
.working { text-align: center; padding: 8px 0 4px; }
.bar {
  height: 8px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 12px;
}
.bar span {
  display: block;
  height: 100%;
  width: 6%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: 999px;
  transition: width 1.1s ease;
}
.stage { color: var(--ink-mute); font-size: 15.5px; min-height: 1.5em; }

.peek {
  margin: 20px auto 0;
  max-width: 300px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.85);
  opacity: 0;
  transform: scale(.96);
  transition: opacity .5s ease, transform .5s ease;
}
.peek.in { opacity: 1; transform: none; }
.peek img { width: 100%; display: block; }

/* ---- result ---- */
.player {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  display: block;
  margin-bottom: 16px;
  box-shadow: 0 22px 50px -22px rgba(0,0,0,.9);
}
.stack { display: flex; flex-direction: column; gap: 10px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.give {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-lift);
  text-align: center;
  font-size: 15px;
  color: var(--ink-mute);
}
.give strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 16px; }

footer {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  padding: 26px 20px 34px;
}
footer a { color: var(--ink-faint); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--accent);
  color: #2A0A16;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 20;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
