:root {
  --bg: #0b0b12;
  --card: #15151f;
  --fg: #f2f2f7;
  --muted: #a0a0b0;
  --accent: #6c5ce7;
  --accent-2: #00d2a8;
  --line: #2a2a38;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: grid;
  place-items: center;
  padding: 24px;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
/* Fixed pseudo-element rather than background-attachment: fixed, which iOS
   Safari ignores and Android repaints on every scroll. The scrim keeps the
   card legible over the bright laser web at the center of the photo. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(11, 11, 18, 0.35), rgba(11, 11, 18, 0.72)),
    url("/bg-small.webp") center / cover no-repeat;
}
@media (min-width: 768px) {
  body::before { background-image: linear-gradient(rgba(11, 11, 18, 0.35), rgba(11, 11, 18, 0.72)), url("/bg.webp"); }
}
.card {
  width: 100%;
  max-width: 460px;
  background: rgba(17, 17, 26, 0.82);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
h1 {
  margin: 0 0 4px;
  font-size: 30px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { color: var(--fg); margin: 0 0 20px; }
/* Live setlist panel. Sits above the signup pitch: someone who tapped a notification
   came for the songs, not the radio buttons. */
.now {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  padding: 14px 16px;
  margin: 0 0 18px;
}
.now-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.now-where { font-size: 13px; color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.live {
  color: var(--accent-2);
  border-color: rgba(0, 210, 168, 0.35);
  background: rgba(0, 210, 168, 0.1);
}
.badge.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  .badge.live::before { animation: none; }
}
.sets:not(:empty) { margin-top: 14px; }
.set + .set { margin-top: 14px; }
.set h2 {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.songs { margin: 0; font-size: 15px; line-height: 1.65; }
.songs .mark { color: var(--muted); }
/* The song they're playing right now. */
.songs .cur { color: var(--accent-2); font-weight: 600; }
.now-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.now-foot:empty { display: none; }

.note {
  background: #241f0e;
  border: 1px solid #4a3f16;
  color: #f0e0a8;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
}
.note p { margin: 6px 0 0; opacity: 0.85; }
.note ol { margin: 10px 0 2px; padding-left: 20px; }
.note li { margin-bottom: 6px; }
.note li:last-child { margin-bottom: 0; }
.note .ico {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  margin: 0 1px;
}
.note button { margin-top: 12px; padding: 10px; font-size: 14px; }
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.help { margin-top: 20px; }
.help summary {
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.help summary:hover { color: var(--fg); }
.help dl { margin: 10px 0 0; font-size: 13px; }
.help dt { color: var(--fg); font-weight: 600; margin-top: 12px; }
.help dt:first-child { margin-top: 0; }
.help dd { color: var(--muted); margin: 3px 0 0; line-height: 1.45; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 14px 14px;
  margin: 0 0 18px;
}
legend { color: var(--muted); font-size: 13px; padding: 0 6px; }
.tier {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 4px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.tier:last-child { border-bottom: 0; }
.tier input { margin-top: 4px; accent-color: var(--accent); }
.tier span { display: flex; flex-direction: column; }
.tier small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.tier .eg {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
  color: var(--accent-2);
  opacity: 0.85;
}
.tier small em { font-style: italic; color: var(--fg); }
/* Per-show picker: a scrollable list of upcoming dates, revealed when the user
   chooses "Only shows I pick". Mirrors the .tier look so the two fieldsets read alike. */
.show-list {
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.show {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 4px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.show:last-child { border-bottom: 0; }
.show input { accent-color: var(--accent); }
.show span { display: flex; flex-direction: column; }
.show .show-date { font-weight: 600; }
.show .show-where { color: var(--muted); font-size: 13px; margin-top: 2px; }
.show-list .empty { color: var(--muted); font-size: 13px; padding: 10px 4px; }

/* Standalone opt-in toggle (LTP), styled like a single .tier row without the fieldset. */
.toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 0 0 18px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.toggle input { margin-top: 3px; accent-color: var(--accent); }
.toggle span { display: flex; flex-direction: column; }
.toggle small { color: var(--muted); font-size: 13px; margin-top: 2px; }

button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, var(--accent), #8b7cf0);
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: default; }
button.secondary { background: transparent; border: 1px solid var(--line); color: var(--muted); margin-top: 10px; }
.status { min-height: 20px; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.status.ok { color: var(--accent-2); }
.status.err { color: #ff6b81; }
.hidden { display: none; }
footer { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
footer p { color: var(--muted); font-size: 12px; margin: 0; }
footer a { color: var(--muted); }
.bmc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg) !important;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.bmc:hover { border-color: var(--accent); background: rgba(108, 92, 231, 0.12); }
.bmc-emoji { font-size: 15px; }
