/* 99 LUCIANO: the 99 mark on black, everything else in bold uppercase Montserrat. */
:root {
  --bg: #000;
  --bg-2: #0d0d0d;
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --soft: #bdbdbd;
  --muted: #7d7d7d;
  --font: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; }
em, i { font-style: normal; }
[hidden] { display: none !important; }

::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transition: padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { padding-block: 14px; border-color: var(--line); }
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.nav__brand img { width: 34px; height: auto; }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
}
.hero__mark { width: clamp(180px, 34vw, 380px); }
.hero__word {
  margin-top: 22px;
  font-size: clamp(1.8rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  /* letter-spacing adds space after the last letter; pull it back to stay centred */
  margin-right: -0.22em;
}
.hero__meta {
  margin: 16px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.hero__cta { margin-top: 44px; }

/* Shared type */
.label {
  margin: 0 0 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--muted);
}
.display {
  font-size: clamp(2.2rem, 10vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 30px;
  border: 2px solid var(--text);
  background: none;
  color: var(--text);
  font: 800 0.8rem/1.2 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: none; color: var(--text); }
.btn:disabled { opacity: 0.3; cursor: default; }
.btn:disabled:hover { background: var(--text); color: var(--bg); }
.btn--wide { width: 100%; }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px var(--gutter) calc(32px + var(--sab));
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.footer img { width: 33px; }
.footer p { margin: 0; flex: 1; }
.footer__family { display: flex; gap: 24px; }
.footer a:hover { color: var(--text); }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 680px) {
  .footer { flex-direction: column; text-align: center; }
  .footer p { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}


/* ---------------- Giveaway (the front page) ---------------- */

.vote {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px var(--gutter) 48px;
}
.vote__intro { margin: 22px 0 0; max-width: 40ch; color: var(--soft); }
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 36px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 800; }

/* The prize as a gift card: white, card proportions, a slow sheen */
/* When the top three songs come out */
.podium { list-style: none; display: grid; gap: 0; margin: 24px 0 0; padding: 0; max-width: 460px; border-top: 1px solid var(--line); }
.podium li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.podium b { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; white-space: nowrap; }
.podium span { font-size: 0.72rem; font-weight: 700; color: var(--soft); text-align: right; }
.podium li:first-child b, .podium li:first-child span { color: var(--text); }
#done .podium { margin: 4px 0 24px; }

/* Countdown to the end of the vote */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin: 18px 0 0; }
.countdown div { display: grid; justify-items: center; gap: 6px; padding: 14px 4px 12px; border: 2px solid var(--line); }
.countdown b { font-size: clamp(1.5rem, 7vw, 2.1rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.2em; color: var(--muted); }

/* The draw on Instagram Live, and its rule */
.draw { margin: 22px 0 0; padding: 16px 0 0 16px; border-left: 2px solid var(--text); max-width: 46ch; }
.draw p { margin: 0; }
.draw__when { font-weight: 800; font-size: 0.9rem; line-height: 1.4; }
.draw__rule { margin-top: 8px !important; font-size: 0.74rem; line-height: 1.5; color: var(--soft); }
.done .draw, #done .draw { margin-bottom: 18px; }

/* Double chance: share on your Instagram story */
.story { margin: 34px 0 28px; padding: 24px; border: 2px solid var(--text); max-width: 520px; }
.story .label { margin: 0 0 10px; }
.story__title { margin: 0; font-size: clamp(1.2rem, 5vw, 1.55rem); line-height: 1.15; }
.story__steps { margin: 16px 0 0; padding-left: 1.3em; font-size: 0.76rem; line-height: 1.55; color: var(--soft); }
.story__steps li + li { margin-top: 4px; }
.story__preview { display: block; width: 46%; max-width: 200px; height: auto; margin: 20px 0 0; border: 1px solid var(--line); }
.story__actions { display: flex; flex-wrap: wrap; gap: 0 10px; }
.story__actions .btn { margin-top: 16px; }
.story .follow-link { margin-top: 18px; }
.story .step__note:empty { display: none; }

/* "Tell me when the winner is drawn" */
.winner-notify { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 520px; }
.winner-notify .label { margin-bottom: 14px; }
#open .winner-notify { margin: 8px 0 32px; }

.giftcard { margin: 34px 0 0; }
.giftcard__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 290px);
  aspect-ratio: 1.586;
  padding: clamp(16px, 5vw, 22px);
  border-radius: 14px;
  background: #fff;
  color: #000;
  overflow: hidden;
  transform: rotate(-2.5deg);
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.08), 0 2px 0 rgba(255, 255, 255, 0.25) inset;
}
.giftcard__card::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
  transform: rotate(18deg);
  animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.giftcard__label { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.24em; }
.giftcard__mark { width: 30px; height: auto; filter: invert(1); align-self: start; }
.giftcard__amount {
  grid-column: 1 / -1;
  align-self: end;
  font-size: clamp(2.4rem, 12vw, 3.1rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.giftcard__amount.is-long { font-size: clamp(1.3rem, 6vw, 1.7rem); letter-spacing: 0; }
.giftcard__note { grid-column: 1 / -1; margin-top: 8px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.2em; color: #555; }
@media (prefers-reduced-motion: reduce) { .giftcard__card::after { animation: none; display: none; } }

/* Lock: follower count toward the goal */
.lock { margin: 48px 0 0; }
.lock .label { margin-bottom: 14px; }
.lock__count {
  display: flex;
  margin: 0;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(3.4rem, 18vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.lock__count small { font-size: 0.32em; color: var(--muted); letter-spacing: 0; }
.lock__bar { height: 3px; margin: 22px 0 14px; background: var(--line); overflow: hidden; }
.lock__bar i {
  display: block;
  height: 100%;
  background: var(--text);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lock__note { margin: 0; font-size: 0.75rem; color: var(--muted); }
.lock__live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--text);
  animation: live 2s ease-in-out infinite;
}
@keyframes live { 50% { opacity: 0.25; } }

/* Steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; }
.step { padding: 0 0 44px; }
.step__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.step__num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); min-width: 22px; }
.step__title { font-size: clamp(1.3rem, 5.4vw, 1.8rem); font-weight: 800; line-height: 1.1; }
.step__body { padding-left: 38px; }
.step__note { margin: 12px 0 0; font-size: 0.75rem; color: var(--muted); }
.step__note.is-error { color: var(--text); }
.step__note.is-error::before { content: "— "; }
.step__body .btn + .btn { margin-top: 12px; }

/* Instagram link row */
.follow-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.follow-link__go { font-size: 0.72rem; letter-spacing: 0.2em; white-space: nowrap; }
.follow-link__go::after { content: " \2197"; }
.follow-link.is-done .follow-link__go { color: var(--muted); }
.follow-link__state { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--muted); }

/* Text fields */
.field {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-bottom: 2px solid var(--line);
  transition: border-color 0.25s;
}
.field:focus-within { border-color: var(--text); }
.field span { font-size: 1.3rem; font-weight: 800; color: var(--muted); }
.field input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: 800 1.3rem/1.3 var(--font); /* above 16px, so iPhone doesn't zoom in */
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.22); }
.form-row .btn { margin-top: 18px; }

/* Record sleeves: three per row. Tapping one makes it grow and squeezes the other two aside,
   while its record slides out of the sleeve and spins. */
.art { background: #151515 center / cover no-repeat; }

/* No cover: a white sleeve with a black record printed on it */
.cover__art.is-blank, .m-cover.is-blank {
  background:
    radial-gradient(circle closest-side, #111 0 3%, #f2f2f2 3.5% 24%, transparent 24.5%),
    repeating-radial-gradient(circle closest-side, #0b0b0b 0 1.4%, #181818 1.4% 2.2%);
  background-color: #fff;
}
.cover__art.is-blank::after, .m-cover.is-blank::after {
  /* white around the printed record */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle closest-side, transparent 0 80%, #fff 80.5%);
}
/* …and the record that comes out of it has a plain white label, no logo */
.record__label.is-blank { background: #f2f2f2; }

.crate { display: grid; gap: 26px; }
.crate__row { display: flex; gap: 10px; align-items: flex-start; }

.cover {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: flex-grow 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
}
.cover--empty { visibility: hidden; cursor: default; }
.cover.is-active { flex-grow: 2.7; }
.crate__row:has(.is-active) .cover:not(.is-active):not(.cover--empty) { opacity: 0.55; }

.cover__deck {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  transition: width 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cover.is-active .cover__deck { width: 60%; }

.cover__art {
  position: absolute;
  inset: 0;
  z-index: 2;
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: 8px 0 18px rgba(0, 0, 0, 0.7), 0 10px 24px rgba(0, 0, 0, 0.55);
  transition: outline-color 0.25s;
}
.cover:active .cover__deck { transform: scale(0.98); }
.cover[aria-checked="true"] .cover__art { outline-color: var(--text); }

.cover__record {
  position: absolute;
  top: 3%;
  left: 3%;
  z-index: 1;
  width: 94%;
  height: 94%;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cover.is-active .cover__record { transform: translateX(68%); transition-delay: 0.12s; }

.record__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 30deg, transparent 0 8%, rgba(255, 255, 255, 0.09) 12%, transparent 18% 50%, rgba(255, 255, 255, 0.07) 62%, transparent 68%),
    repeating-radial-gradient(circle, #0b0b0b 0 1px, #161616 1px 2px);
  box-shadow: 0 0 0 1px #222, 0 8px 22px rgba(0, 0, 0, 0.7);
}
.record__label {
  position: absolute;
  top: 31%;
  left: 31%;
  width: 38%;
  height: 38%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #0b0b0b;
}
.record__label::after {
  /* the hole in the middle */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10%;
  height: 10%;
  margin: -5% 0 0 -5%;
  border-radius: 50%;
  background: var(--bg);
}
.cover.is-spinning .record__disc { animation: spin 1.8s linear infinite; }
.cover.is-spinning.is-paused .record__disc { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

.cover__pick {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  padding: 4px 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.cover[aria-checked="true"] .cover__pick { opacity: 1; transform: none; }

.cover__title, .cover__artist {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cover__title { margin-top: 10px; font-size: 0.72rem; font-weight: 800; line-height: 1.3; }
.cover__artist { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }

/* Now playing, under the sleeves */
.now { margin: 30px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.now__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.now__text { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; }
.now__text span { color: var(--muted); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; margin-right: 10px; }
.now__text b { font-weight: 800; }
.now__toggle {
  flex: none;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 800 0.7rem/1 var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.now__bar { height: 2px; margin: 12px 0 8px; background: var(--line); overflow: hidden; }
.now__bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }
.now__time { margin: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .cover, .cover__deck, .cover__record { transition: none; }
  .cover.is-spinning .record__disc { animation: none; }
}

/* Submit bar: sticks to the bottom of the screen while you scroll */
.submit {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin: 8px calc(-1 * var(--gutter)) 0;
  padding: 16px var(--gutter) calc(16px + var(--sab));
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.submit .btn { width: 100%; }
.submit__msg { margin: 0 0 12px; font-size: 0.78rem; }
.submit__msg::before { content: "— "; }

/* Done / closed */
.done__list { margin: 44px 0 36px; border-top: 1px solid var(--line); }
.done__list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.done__list dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; color: var(--muted); }
.done__list dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.done__note { margin: 0 0 12px; color: var(--soft); max-width: 44ch; font-size: 0.8rem; }

@media (max-width: 480px) {
  .step__body { padding-left: 0; }
}

/* Portfolio (no giveaway running): the mark, the name and app icons */
.folio {
  min-height: calc(100svh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0 40px;
}
.folio__mark { width: clamp(170px, 46vw, 320px); }
.folio__word {
  margin: 20px -0.22em 0 0;
  font-size: clamp(1.8rem, 8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
}
.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 44px; }
.app {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22%;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.06);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app svg { width: 30px; height: 30px; }
.app:hover { transform: translateY(-3px); }
.app:active { transform: scale(0.94); }
.footer__socials { display: contents; }
.apps--left { justify-content: flex-start; margin-top: 36px; }
.folio__cta {
  display: grid;
  gap: 6px;
  margin-top: 40px;
  padding: 18px 26px;
  background: var(--text);
  color: var(--bg);
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.folio__cta strong { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.12em; }
.folio__cta span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: #555; }
.folio__cta:hover { transform: translateY(-2px); }
.folio__cta:active { transform: scale(0.98); }
main.vote:has(> .folio) { padding-top: 64px; }

/* Preview mode bar (giveaway/demo.js) */
.demo-bar {
  position: fixed;
  top: 86px;
  right: var(--gutter);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.85);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.demo-bar b { padding: 0 6px; color: var(--muted); }
.demo-bar button {
  padding: 7px 9px;
  border: 0;
  background: none;
  color: var(--soft);
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
}
.demo-bar button.is-on { background: var(--text); color: var(--bg); }
