:root {
  --bg: #070608;
  --paper: #f7efe4;
  --muted: #b6aaa1;
  --pink: #ff2e9a;
  --acid: #d2df2f;
  --purple: #9b31ff;
  --line: rgba(247, 239, 228, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--paper);
  font-family: "Segoe UI", system-ui, sans-serif;
}

body.vote-body {
  background:
    radial-gradient(circle at 78% 8%, rgba(255,46,154,.22), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(155,49,255,.24), transparent 34%),
    var(--bg);
}

.vote-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vote-grain {
  position: absolute;
  inset: 0;
  opacity: .2;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.vote-wrap {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 11px;
  background: var(--acid);
  color: #050406;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  box-shadow: 4px 4px 0 var(--pink);
  transform: rotate(-2deg);
}

h1 {
  margin: 0 0 10px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(40px, 11vw, 72px);
  line-height: .86;
  letter-spacing: -.02em;
  text-transform: uppercase;
  -webkit-text-stroke: 2px #050406;
  paint-order: stroke fill;
  text-shadow:
    4px 4px 0 var(--pink),
    8px 8px 0 rgba(155, 49, 255, .4);
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 34ch;
}

.progress {
  margin: 0 0 22px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(18px, 4vw, 26px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--acid);
  text-shadow: 2px 2px 0 var(--pink);
}

.artist-block {
  margin: 0 0 22px;
  padding: 18px 16px 16px;
  border: 2px solid var(--line);
  background: rgba(255,255,255,.035);
  box-shadow: 8px 8px 0 rgba(255,46,154,.22);
}

.artist-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.artist-head h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(28px, 7vw, 42px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.artist-head span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.song-list {
  display: grid;
  gap: 10px;
}

.song-btn {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px 12px 10px;
  border: 2px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}

.song-btn:hover {
  border-color: rgba(255,46,154,.55);
  transform: translateY(-1px);
}

.song-btn.is-selected {
  border-color: var(--acid);
  box-shadow: 4px 4px 0 var(--pink);
}

.song-btn.is-selected .song-title {
  color: var(--acid);
}

.song-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  position: relative;
  z-index: 1;
}

.song-title {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(18px, 4.5vw, 24px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.song-meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.song-bar {
  position: relative;
  z-index: 1;
  height: 8px;
  background: rgba(247,239,228,.08);
  overflow: hidden;
}

.song-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pink), var(--acid));
  transition: width .45s ease;
}

.song-btn.is-leading .song-bar > i {
  box-shadow: 0 0 12px rgba(210,223,47,.45);
}

.vote-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 2px solid;
  line-height: 1.4;
}

.vote-alert.ok {
  border-color: var(--acid);
  background: rgba(210,223,47,.1);
  color: #edf5b7;
}

.vote-alert.error {
  border-color: var(--pink);
  background: rgba(255,46,154,.1);
  color: #ffd0df;
}

.vote-alert[hidden] { display: none; }

.back-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 700;
}

.back-link:hover { color: var(--acid); }

.done-banner {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--acid);
  color: #050406;
  box-shadow: 8px 8px 0 var(--pink);
  transform: rotate(-1deg);
}

.done-banner strong {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(24px, 6vw, 36px);
  text-transform: uppercase;
  line-height: .95;
}

.done-banner span {
  display: block;
  margin-top: 6px;
  font-weight: 700;
}

@media (max-width: 520px) {
  .artist-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
