/* =========================================================
   DAME UN CALL REMIX — campaign microsite
   Page-scoped styles. Nothing here touches the main site.
   ========================================================= */

/* Optional display face for "Dame un Call".
   Drop a self-hosted brush font at assets/dame-un-call/fonts/ and
   uncomment this block; the title falls back to the system stack.
@font-face {
  font-family: "DUC Display";
  src: url("../assets/dame-un-call/fonts/display.woff2") format("woff2");
  font-display: swap;
}
*/

:root {
  --bg: #07030c;
  --bg-2: #120a1c;
  --ink: #f7f0ff;
  --ink-soft: #d6cae6;
  --muted: #a497b8;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --panel: rgba(20, 10, 32, 0.66);
  --red: #b45cff;
  --red-deep: #6b1fb0;
  --red-glow: rgba(160, 70, 240, 0.42);
  --cyan: #e4c9ff;
  --wrong: #ff6bb5;
  --cyan-glow: rgba(205, 140, 255, 0.26);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "DUC Display", "Helvetica Neue", "Arial Black", Arial, sans-serif;
  --font-script: "DUC Script", "Marker Felt", "Segoe Print", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --tile: clamp(42px, 11.4vw, 54px);
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Cinematic background ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, #1c0e2e 0%, transparent 60%),
    var(--bg);
}
.scene-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  transition: opacity 1.2s var(--ease), transform 1.6s var(--ease);
}
.scene-glow--red {
  width: 70vmax; height: 50vmax;
  left: -30vmax; bottom: -18vmax;
  background: radial-gradient(closest-side, var(--red-glow), transparent);
}
.scene-glow--cyan {
  width: 60vmax; height: 46vmax;
  right: -28vmax; top: -16vmax;
  background: radial-gradient(closest-side, var(--cyan-glow), transparent);
}
/* wet street reflection */
.scene-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38vh;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 22px,
      rgba(180, 92, 255, 0.05) 22px 24px,
      transparent 24px 61px,
      rgba(228, 201, 255, 0.045) 61px 63px),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
  filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent);
          mask-image: linear-gradient(to top, #000 10%, transparent);
}
.scene-grain {
  position: absolute;
  inset: -50%;
  opacity: 0.075;
  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='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}
body.is-final .scene-glow--red { opacity: 0.8; transform: scale(1.15); }
body.is-final .scene-glow--cyan { opacity: 0.8; transform: scale(1.15); }

/* ---------- Header ---------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 10px;
}
.topbar-artist {
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 13px;
}
.topbar-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
}
.topbar-mark b { color: var(--red); font-weight: 800; }
.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  min-width: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.topbar-btn:hover { border-color: var(--ink); }
.topbar-lang { border-color: var(--red); color: var(--ink); }
.topbar-lang:hover { background: rgba(180, 92, 255, 0.12); }

/* phones: share collapses to its icon so the language button fits */
@media (max-width: 520px) {
  .topbar { gap: 6px; }
  .topbar-artist { font-size: 12px; letter-spacing: 0.2em; }
  .topbar-mark { font-size: 10.5px; letter-spacing: 0.12em; line-height: 1.25; text-align: center; }
  .topbar-mark b { display: block; }
  .topbar-btn { padding: 0 10px; letter-spacing: 0.12em; }
  .topbar-share { padding: 0; width: 36px; }
  .topbar-share-text {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ---------- Progress ---------- */
.progress { padding: 4px var(--gutter) 6px; }
.progress-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}
/* connector line to previous node */
.step + .step::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  z-index: -1;
}
.step.is-done + .step::before,
.step.is-done + .step.is-active::before {
  background: linear-gradient(90deg, var(--cyan), var(--red));
  box-shadow: 0 0 8px var(--cyan-glow);
}
.step-node {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--muted);
}
.step-node svg { width: 12px; height: 12px; }
.step.is-done .step-node {
  border-color: var(--cyan);
  color: var(--cyan);
  background: #1d1231;
}
.step.is-active .step-node {
  border-color: var(--red);
  background: #26113d;
}
.step.is-active .step-node::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 1.4s ease-in-out infinite;
}
.step-label {
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.step.is-done .step-label { color: var(--ink); }
.step.is-active .step-label { color: var(--red); }
.step.is-unlocked .step-node { border-color: var(--red); color: var(--red); background: #26113d; }
.step.is-unlocked .step-label { color: var(--red); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.55; }
}

/* ---------- Stage / views ---------- */
.stage {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px var(--gutter) 28px;
}
.view { animation: view-in 0.5s var(--ease) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow--cyan { color: var(--cyan); }
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 1.4s ease-in-out infinite;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-user-select: none;
          user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--wide { width: 100%; }
.btn--primary {
  background: var(--red);
  color: #12041f;
  box-shadow: 0 8px 28px -8px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { background: #c57bff; }
.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost {
  color: var(--ink-soft);
  min-height: 44px;
  padding: 0 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
}
.btn--ghost:hover { color: var(--ink); }

/* ---------- Intro ---------- */
.view--intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 4vh;
}
.hero { text-align: center; }
.hero-artist {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6em;
  padding-left: 0.6em;
  color: var(--ink-soft);
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 15vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow:
    -2px 0 0 rgba(180, 92, 255, 0.55),
    2px 0 0 rgba(228, 201, 255, 0.45),
    0 0 40px rgba(180, 92, 255, 0.25);
}
.hero-remix {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 14px 4px calc(14px + 0.5em);
  border: 1px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.intro-panel {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  text-align: center;
}
.intro-question {
  margin: 12px 0 8px;
  font-size: clamp(22px, 6.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}
.intro-copy {
  margin: 0 auto 20px;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Call card ---------- */
.call {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.call.is-ringing { box-shadow: 0 0 0 1px rgba(180, 92, 255, 0.15), 0 18px 50px -24px var(--red-glow); }
.call.is-connected { border-left-color: var(--cyan); box-shadow: 0 18px 50px -24px var(--cyan-glow); }
.call-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.call-icon {
  position: relative;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #26113d;
  color: var(--red);
}
.call.is-ringing .call-icon::before,
.call.is-ringing .call-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--red);
  animation: ring 2s ease-out infinite;
}
.call.is-ringing .call-icon::after { animation-delay: 1s; }
.call.is-ringing .call-icon svg { animation: shake-phone 2s ease-in-out infinite; }
.call.is-connected .call-icon { background: #1d1231; color: var(--cyan); }
@keyframes ring {
  from { transform: scale(1); opacity: 0.8; }
  to   { transform: scale(1.7); opacity: 0; }
}
@keyframes shake-phone {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30%, 50% { transform: rotate(-12deg); }
  20%, 40% { transform: rotate(12deg); }
}
.call-id { min-width: 0; }
.call-label {
  margin: 2px 0 0;
  font-size: clamp(15px, 4.4vw, 19px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.call-label:focus { outline: none; }
.call.is-connected .eyebrow { color: var(--cyan); }
.call-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ---------- Audio player ---------- */
.player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.pl-btn {
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s;
}
.pl-btn:active { transform: scale(0.94); }
.pl-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pl-play {
  width: 56px; height: 56px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
}
.player.is-playing .pl-play { background: var(--red); color: #12041f; }
.pl-replay { width: 44px; height: 44px; color: var(--ink-soft); }
.pl-replay:hover { border-color: var(--ink); color: var(--ink); }
.pl-body { min-width: 0; overflow: hidden; }
.pl-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
}
.pl-bar {
  flex: 1;
  min-width: 1px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  transform-origin: center;
  transition: background 0.15s;
}
.pl-bar.is-on { background: var(--red); }
.player[data-kind="reward"] .pl-bar.is-on,
.player[data-kind="teaser"] .pl-bar.is-on { background: var(--cyan); }
.player.is-playing .pl-bar { animation: bar 0.9s ease-in-out infinite alternate; }
.player.is-playing .pl-bar:nth-child(3n) { animation-duration: 0.7s; }
.player.is-playing .pl-bar:nth-child(4n+1) { animation-duration: 1.1s; }
@keyframes bar {
  from { transform: scaleY(0.7); }
  to   { transform: scaleY(1.08); }
}
.pl-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.pl-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-time { font-family: var(--mono); letter-spacing: 0.02em; white-space: nowrap; }
.player.is-unavailable .pl-wave { opacity: 0.35; }

.player--big {
  margin: 22px 0 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.player--big .pl-wave { height: 64px; }

/* ---------- Puzzle ---------- */
.puzzle { margin-top: 18px; text-align: center; }
.puzzle-instruction {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 22px;
  row-gap: 10px;
  margin-bottom: 20px;
}
.word {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.slot, .tile {
  width: var(--tile);
  height: calc(var(--tile) * 1.12);
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: calc(var(--tile) * 0.48);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s, color 0.2s;
}
.slot {
  position: relative;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}
/* underline marker so empty slots read as blanks, not boxes */
.slot::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  opacity: 0.6;
}
.slot.is-filled {
  border-style: solid;
  border-color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.07);
}
.slot.is-filled::after { opacity: 0; }
.slot.is-next { border-color: var(--red); }
.slot.is-next::after { background: var(--red); opacity: 1; }
.slots.is-wrong .slot.is-filled {
  border-color: var(--wrong);
  border-style: dashed;
  color: var(--wrong);
  animation: shake 0.42s var(--ease);
}
.slots.is-solved .slot {
  border-style: solid;
  border-color: var(--cyan);
  background: #1d1231;
  color: var(--cyan);
  cursor: default;
  animation: pop 0.5s var(--ease) both;
}
.slots.is-solved .slot::after { opacity: 0; }
.slots.is-solved .word:nth-child(1) .slot:nth-child(2) { animation-delay: 0.04s; }
.slots.is-solved .slot:nth-child(3) { animation-delay: 0.08s; }
.slots.is-solved .slot:nth-child(4) { animation-delay: 0.12s; }
.slots.is-solved .slot:nth-child(5) { animation-delay: 0.16s; }
.slots.is-solved .slot:nth-child(6) { animation-delay: 0.2s; }
.slots.is-solved .slot:nth-child(7) { animation-delay: 0.24s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); box-shadow: 0 0 22px var(--cyan-glow); }
  100% { transform: scale(1); }
}

.bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: calc(var(--tile) * 6 + 8px * 5);
  margin: 0 auto;
}
.tile {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #22142f, #130b1d);
  color: var(--ink);
  box-shadow: 0 6px 16px -10px #000, inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tile:hover { border-color: var(--ink-soft); }
.tile:active { transform: translateY(1px) scale(0.96); }
.tile.is-used {
  border-style: dashed;
  background: transparent;
  color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.puzzle-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.feedback {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wrong);
}
.feedback.is-ok { color: var(--cyan); }
.puzzle.is-solved .bank,
.puzzle.is-solved .puzzle-tools,
.puzzle.is-solved .puzzle-instruction { display: none; }
.puzzle.is-solved .slots { margin-bottom: 0; }

/* ---------- Reveal ---------- */
.reveal {
  margin-top: 18px;
  padding: 20px 16px;
  border: 1px solid rgba(228, 201, 255, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(228, 201, 255, 0.1), transparent 70%),
    var(--panel);
  text-align: center;
}
.reveal.is-entering > * { animation: rise 0.6s var(--ease) both; }
.reveal.is-entering > :nth-child(2) { animation-delay: 0.08s; }
.reveal.is-entering > :nth-child(3) { animation-delay: 0.16s; }
.reveal.is-entering > :nth-child(4) { animation-delay: 0.22s; }
.reveal.is-entering > :nth-child(5) { animation-delay: 0.3s; }
.reveal.is-entering > :nth-child(6) { animation-delay: 0.38s; }
.reveal-name {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 12vw, 60px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(228, 201, 255, 0.35);
}
.reveal.is-entering .reveal-name { animation: glitch-in 0.7s steps(1) both, rise 0.6s var(--ease) both; }
@keyframes glitch-in {
  0%   { text-shadow: -4px 0 var(--red), 4px 0 var(--cyan); clip-path: inset(10% 0 55% 0); }
  15%  { text-shadow: 3px 0 var(--red), -3px 0 var(--cyan); clip-path: inset(50% 0 10% 0); }
  30%  { text-shadow: -2px 0 var(--red), 2px 0 var(--cyan); clip-path: inset(0 0 0 0); }
  45%  { text-shadow: 1px 0 var(--red), -1px 0 var(--cyan); }
  100% { text-shadow: 0 0 30px rgba(228, 201, 255, 0.35); clip-path: none; }
}
.reveal-img {
  width: 132px; height: 132px;
  margin: 12px auto 4px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(228, 201, 255, 0.4);
}
.reveal-sub {
  margin: 4px 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
}
.reveal .player { margin-bottom: 18px; text-align: left; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Final ---------- */
.view--final { text-align: center; padding-top: 3vh; }
.final-title {
  margin: 14px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.final-title:focus { outline: none; }
.final-title-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 15.5vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow:
    -2px 0 0 rgba(180, 92, 255, 0.6),
    2px 0 0 rgba(228, 201, 255, 0.5),
    0 0 60px rgba(180, 92, 255, 0.3);
}
.final-title-remix {
  padding: 4px 14px 4px calc(14px + 0.5em);
  border: 1px solid var(--red);
  border-radius: 4px;
  background: var(--red);
  color: #12041f;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.final-lineup {
  margin: 14px 0 0;
  font-size: clamp(12px, 3.5vw, 15px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.final-lineup i { font-style: normal; color: var(--red); padding: 0 0.25em; }
.final-lineup span { white-space: nowrap; }
.puzzle.is-solved .feedback {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.stream { margin-top: 26px; }
.stream-title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stream-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stream-links > :first-child { grid-column: 1 / -1; }
.stream-links .btn--outline { padding: 0 12px; font-size: 12px; letter-spacing: 0.16em; }
.btn.is-soon {
  cursor: not-allowed;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}
.btn.is-soon small {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 700;
}
.final-actions {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

/* final entrance choreography */
body.is-blackout .stage,
body.is-blackout .progress,
body.is-blackout .topbar { opacity: 0; transition: opacity 0.35s ease; }
.view--final.is-entering .final-kicker { animation: rise 0.6s var(--ease) 0.1s both; }
.view--final.is-entering .final-title-main { animation: title-in 1.1s var(--ease) 0.3s both; }
.view--final.is-entering .final-title-remix { animation: rise 0.6s var(--ease) 0.9s both; }
.view--final.is-entering .final-lineup { animation: rise 0.6s var(--ease) 1.1s both; }
.view--final.is-entering .player--big { animation: rise 0.6s var(--ease) 1.3s both; }
.view--final.is-entering .player--big .pl-bar { animation: bar-grow 0.9s var(--ease) both; animation-delay: calc(1.35s + var(--i, 0) * 12ms); }
.view--final.is-entering .stream,
.view--final.is-entering .final-actions { animation: rise 0.6s var(--ease) 1.6s both; }
@keyframes title-in {
  0%   { opacity: 0; letter-spacing: 0.25em; filter: blur(10px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; letter-spacing: -0.02em; }
}
@keyframes bar-grow {
  from { transform: scaleY(0.05); }
  to   { transform: scaleY(1); }
}

/* ---------- Flash + toast ---------- */
.flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.55), rgba(228, 201, 255, 0.15) 45%, transparent 75%);
}
.flash.is-on { animation: flash 0.55s ease-out; }
.flash.is-big { background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.8), rgba(180, 92, 255, 0.3) 40%, rgba(228, 201, 255, 0.12) 70%, transparent); }
@keyframes flash {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 45;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(20, 10, 32, 0.94);
  font-size: 13px;
  font-weight: 600;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  overflow-wrap: anywhere;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  padding: 18px var(--gutter) max(22px, env(safe-area-inset-bottom));
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover, .footer-restart:hover { color: var(--ink); }
.footer-brand { color: var(--ink-soft); }
.footer-restart {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}
.noscript { text-align: center; padding: 20px; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  :root { --gutter: 28px; --tile: 54px; }
  .topbar-mark { font-size: 13px; }
  .step-label { font-size: 10.5px; }
  .call { padding: 20px; }
  .call-label { font-size: 22px; }
}
@media (min-width: 1024px) {
  .stage { max-width: 600px; padding-top: 18px; }
  .progress { padding-top: 10px; }
  .view--intro { padding-top: 6vh; }
}

/* short phones: keep puzzle near the fold */
@media (max-height: 700px) and (max-width: 480px) {
  .view--intro { gap: 16px; padding-top: 1vh; }
  .hero-title { font-size: clamp(38px, 12vw, 60px); }
  .hero-remix { margin-top: 8px; }
  .intro-panel { padding: 16px; }
  .intro-question { margin: 8px 0 6px; }
  .intro-copy { margin-bottom: 14px; font-size: 14px; }
  .call { padding: 12px; }
  .call-head { margin-bottom: 8px; }
  .pl-play { width: 50px; height: 50px; }
  .puzzle { margin-top: 12px; }
  .puzzle-instruction { margin-bottom: 10px; }
  .slots { margin-bottom: 14px; }
}


/* =========================================================
   NEON — Dame un Call Remix cover art treatment
   ========================================================= */
.scene-photo {
  position: absolute;
  inset: 0;
  background:\n    radial-gradient(circle at 52% 25%, rgba(180, 92, 255, 0.32), transparent 28%),\n    radial-gradient(circle at 20% 62%, rgba(255, 107, 181, 0.16), transparent 30%),\n    linear-gradient(180deg, #1c0e2e 0%, #0d0715 52%, #07030c 100%);
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 92%);
  transition: opacity 1s var(--ease), filter 1s var(--ease);
}
body[data-view="round"] .scene-photo { opacity: 0.16; filter: blur(3px); }
body[data-view="final"] .scene-photo { opacity: 0.5; filter: none; }

.hero-title,
.final-title-main {
  color: rgba(247, 240, 255, 0.06);
  -webkit-text-stroke: 2px #f3e4ff;
  text-shadow:
    0 0 6px rgba(214, 160, 255, 0.95),
    0 0 18px rgba(180, 92, 255, 0.85),
    0 0 42px rgba(160, 70, 240, 0.7),
    0 0 80px rgba(140, 50, 230, 0.45);
  animation: neon-on 1.6s steps(1) 0.2s both;
}
@keyframes neon-on {
  0%   { opacity: 0.15; }
  8%   { opacity: 1; }
  12%  { opacity: 0.25; }
  20%  { opacity: 1; }
  24%  { opacity: 0.5; }
  30%, 100% { opacity: 1; }
}
.hero-remix,
.final-title-remix {
  display: inline-block;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(30px, 9vw, 48px);
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f6ecff;
  transform: rotate(-6deg);
  text-shadow:
    0 0 4px rgba(230, 200, 255, 0.95),
    0 0 14px rgba(180, 92, 255, 0.9),
    0 0 32px rgba(160, 70, 240, 0.65);
}
.final-title-remix { font-size: clamp(34px, 10vw, 56px); }
.topbar-mark b { color: var(--cyan); text-shadow: 0 0 10px rgba(180, 92, 255, 0.8); }
.btn--primary { box-shadow: 0 0 0 1px rgba(228, 201, 255, 0.25), 0 8px 30px -6px rgba(180, 92, 255, 0.7); }
.intro-panel, .call, .reveal, .player--big { border-color: rgba(200, 140, 255, 0.18); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .scene-grain { animation: none; }
  .flash { display: none; }
}
