/* ─────────────────────────────────────────────
   Play — the unified guest journey
   States: welcome → signin → selfie → lobby → playing → final
   ───────────────────────────────────────────── */

.play-body { overflow-x: hidden; }

/* Force hidden to win over flex/grid display rules below */
[hidden] { display: none !important; }

/* ── Loading dots ────────────────────────────── */
.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: inherit;
  letter-spacing: inherit;
}
.loading-dots-label { display: inline-block; }
.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  display: inline-block;
  animation: loading-bounce 1.2s infinite ease-in-out;
}
.loading-dot:nth-child(2) { animation-delay: 0.15s; }
.loading-dot:nth-child(3) { animation-delay: 0.3s; }
.loading-dot:nth-child(4) { animation-delay: 0.45s; }
@keyframes loading-bounce {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.35; }
  35% { transform: translateY(-4px); opacity: 1; }
}

.play {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4.5rem 1.5rem 6rem;
  position: relative;
  z-index: 5;
}

/* ── Persistent header (only when signed in) ── */
.play-header {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(245, 241, 230, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.4rem 0.65rem 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.play-header-l { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; gap: 2px; }
.play-header-label {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
  font-weight: 600;
}
.play-header-name { font-weight: 600; color: #1a1a1a; }
.play-header-out {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  opacity: 0.45;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: opacity 0.15s, background 0.15s;
}
.play-header-out:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.play-header-reset { opacity: 0.3; font-size: 0.65rem; }
.play-header-reset:hover { opacity: 1; background: rgba(184, 54, 42, 0.1); color: #b8362a; }

/* ── State container ────────────────────────── */
.state {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: state-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes state-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.state-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
  margin: 0.4rem 0 0.85rem;
  letter-spacing: -0.015em;
}
.state-title em { color: var(--ink); font-style: italic; }

.state-sub {
  font-size: 0.98rem;
  opacity: 0.7;
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 440px;
}

.state-footnote {
  font-size: 0.82rem;
  opacity: 0.55;
  margin-top: 1.75rem;
}
.state-footnote a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Welcome: how it works ──────────────────── */
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 460px;
}
.how-step {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: center;
  position: relative;
}
.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 0.8rem;
  box-shadow: 0 3px 10px rgba(26, 53, 128, 0.25);
}
.how-step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  line-height: 1.15;
}
.how-step-desc {
  font-size: 0.92rem;
  opacity: 0.7;
  line-height: 1.5;
  margin-bottom: 1.1rem;
}
.how-step-cta { display: inline-block; }

/* QR card */
.qr-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1rem 0.65rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  margin-bottom: 1rem;
}
.qr-canvas {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-canvas canvas, .qr-canvas img { display: block; width: 100%; height: auto; }
.qr-caption {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.5;
}

.btn-text {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.8;
  padding: 0.5rem 0.25rem;
}
.btn-text:hover { opacity: 1; }

/* ── Sign-in ────────────────────────────────── */
.signin-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 360px;
}
.signin-form input[type="email"] {
  padding: 0.95rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  letter-spacing: 0.01em;
}
.signin-form input[type="email"]:focus {
  outline: none;
  border-color: var(--label-color);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(184, 54, 42, 0.1);
}
.signin-error {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--label-color);
  font-weight: 500;
}
.signin-error a { color: inherit; text-decoration: underline; }

/* ── Selfie ─────────────────────────────────── */
.selfie-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 360px;
  align-items: center;
}
.photo-picker {
  display: block;
  cursor: pointer;
  width: 100%;
  position: relative;
}
.photo-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.photo-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 2px dashed rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.photo-preview.has-image { border-style: solid; border-color: rgba(0, 0, 0, 0.1); padding: 0; }
.photo-preview.has-image .photo-prompt { display: none; }
.photo-preview:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.55;
}
.photo-icon { font-size: 2rem; }
.photo-label { font-size: 0.9rem; }
.photo-retake {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Lobby (waiting room) ───────────────────── */
.lobby-countdown {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  font-family: 'DM Serif Display', serif;
  line-height: 0.9;
  margin: 0.5rem 0 1.5rem;
}
.lcd-cell { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.lcd-num {
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1;
  line-height: 0.9;
  color: #1a1a1a;
}
.lcd-unit {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.45;
}
.lcd-sep {
  font-size: clamp(1.6rem, 6vw, 3rem);
  color: var(--ink);
  font-style: italic;
  opacity: 0.5;
  align-self: center;
  margin-bottom: 0.7rem;
}

.lobby-selfie-link {
  margin-top: 1.25rem;
}

/* ── Side quest card ─────────────────────────── */
.sidequest-card {
  width: 100%;
  max-width: 460px;
  margin: 1.25rem 0 1.5rem;
  padding: 1.4rem 1.5rem 1.6rem;
  background: linear-gradient(135deg, rgba(184, 54, 42, 0.08) 0%, rgba(232, 168, 56, 0.1) 100%);
  border: 1px solid rgba(184, 54, 42, 0.25);
  border-radius: 14px;
  text-align: center;
  position: relative;
}
.sidequest-eyebrow {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--label-color);
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.sidequest-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}
.sidequest-title em { color: var(--ink); font-style: italic; }
.sidequest-desc {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}
.sidequest-btn { cursor: pointer; }
.sidequest-btn.is-disabled { pointer-events: none; opacity: 0.5; }
.sidequest-status {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  opacity: 0.85;
}
.sidequest-status--ok { color: var(--green-deep); }
.sidequest-status--err { color: var(--label-color); }

/* ── Mini leaderboard (between-round preview) ─ */
.lobby-leaderboard {
  width: 100%;
  max-width: 520px;
  margin: 0.5rem 0 1.5rem;
  text-align: left;
}
.ll-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.ll-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.55;
}
.ll-fulllink {
  font-size: 0.8rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.8;
}
.ll-fulllink:hover { opacity: 1; }

.ll-boards {
  display: grid;
  gap: 1rem;
}
.ll-board {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.95rem;
}
.ll-board-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.ll-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ll-row {
  display: grid;
  grid-template-columns: 22px 28px 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}
.ll-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.ll-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ll-avatar--fallback {
  background: var(--ink);
  color: var(--bg);
  font-family: 'DM Serif Display', serif;
  font-size: 0.85rem;
  font-style: italic;
  text-transform: uppercase;
}
.ll-row:last-child { border-bottom: 0; }

.ll-rank {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
}
.ll-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ll-total {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 28px;
  text-align: right;
}

/* Rank delta badges (mini) */
.ll-badge {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
.ll-badge--up    { background: rgba(149, 182, 44, 0.22); color: var(--green-deep); }
.ll-badge--down  { background: rgba(184, 54, 42, 0.16); color: var(--label-color); }
.ll-badge--flat  { background: rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, 0.45); }
.ll-badge--new   { background: rgba(26, 53, 128, 0.14); color: var(--ink); font-size: 0.55rem; }

.lobby-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
  max-width: 560px;
  width: 100%;
}
.wall-card {
  width: 92px;
  height: 116px;
  background: #fff;
  padding: 5px 5px 18px;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transform: rotate(var(--rot, 0deg));
  display: flex;
  flex-direction: column;
  position: relative;
}
.wall-card img { width: 100%; height: 82px; object-fit: cover; }
.wall-name {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  font-family: 'Caveat', cursive;
  font-size: 0.82rem;
  text-align: center;
  color: #1a1a1a;
  line-height: 1;
}

.quip {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--ink);
  opacity: 0.75;
  margin-top: 0.5rem;
}
.quip--small { font-size: 1rem; }

/* ── Playing a round ─────────────────────────── */
.play-top {
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 640px;
}
.round-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  margin: 0.5rem 0 0.6rem;
  letter-spacing: -0.015em;
}
.round-desc {
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

/* Final-answers countdown pill (sticky at top of round) */
.final-countdown {
  position: sticky;
  top: 0.8rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem 0.55rem 1.1rem;
  margin: 0 auto 1.25rem;
  background: var(--label-color);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(184, 54, 42, 0.4);
  animation: fc-pulse 1.6s infinite ease-in-out;
}
.fc-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}
.fc-digits {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-feature-settings: 'tnum' 1;
}
@keyframes fc-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(184, 54, 42, 0.4); }
  50%      { box-shadow: 0 6px 28px rgba(184, 54, 42, 0.7); }
}
.final-countdown.is-critical { animation: fc-flash 0.6s infinite alternate ease-in-out; }
@keyframes fc-flash {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

/* Banner for "X of Y locked" status */
.round-banner {
  display: inline-block;
  margin: 0 auto 1.25rem;
  padding: 0.5rem 1rem;
  background: rgba(26, 53, 128, 0.08);
  border: 1px solid rgba(26, 53, 128, 0.18);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
}
.round-banner.is-complete {
  background: rgba(149, 182, 44, 0.15);
  border-color: rgba(149, 182, 44, 0.3);
  color: var(--green-deep);
}

/* ── Question list ───────────────────────────── */
.round-form { width: 100%; max-width: 640px; }
.round-questions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.q-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  text-align: left;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

/* "Now playing" — host has pointed at this question from admin Live tab */
.q-card.is-now-playing {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 3px rgba(26, 53, 128, 0.12),
    0 8px 22px rgba(26, 53, 128, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  animation: nowplaying-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.q-card.is-now-playing::before {
  content: '🎵 Now playing';
  position: absolute;
  top: -11px;
  right: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(26, 53, 128, 0.35);
  animation: nowplaying-pulse 2.2s infinite ease-in-out;
}
@keyframes nowplaying-in {
  from { transform: translateY(2px); }
  to   { transform: translateY(0); }
}
@keyframes nowplaying-pulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(26, 53, 128, 0.35); }
  50%      { box-shadow: 0 3px 16px rgba(26, 53, 128, 0.55); }
}
.q-prompt {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.q-note {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}
.q-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.q-card[data-single] .q-inputs { grid-template-columns: 1fr; }

.q-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: stretch;
}
.q-input[data-wide] { grid-column: 1 / -1; }

.q-input input,
.q-input textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.65);
  color: #1a1a1a;
  width: 100%;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, opacity 0.2s;
  resize: vertical;
}
.q-input input:focus,
.q-input textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(26, 53, 128, 0.1);
}
.q-input input[readonly],
.q-input textarea[readonly] {
  background: rgba(149, 182, 44, 0.12);
  border-color: rgba(149, 182, 44, 0.35);
  color: #1a1a1a;
  cursor: default;
}
.q-input textarea { min-height: 140px; line-height: 1.5; grid-column: 1 / -1; }
.q-input textarea + .q-lock { grid-column: 1 / -1; justify-self: end; }

/* Lock button */
.q-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 78px;
  padding: 0 0.85rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.q-lock:hover { background: var(--ink-2); }
.q-lock:disabled { opacity: 0.6; cursor: wait; }
.q-lock.is-locked {
  background: var(--green);
  border-color: var(--green-deep);
  color: #1a1a1a;
  cursor: default;
  pointer-events: none;
}
.q-lock-mark { font-size: 0.95rem; line-height: 1; }
.q-lock-text { white-space: nowrap; }

/* Field shake on empty-lock attempt */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.q-input input.shake,
.q-input textarea.shake { animation: shake 0.35s; border-color: var(--label-color); }

/* Help text */
.round-help {
  font-size: 0.82rem;
  opacity: 0.55;
  font-style: italic;
  margin-top: 1.25rem;
  text-align: center;
  max-width: 500px;
  line-height: 1.6;
}
.round-help-hint {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-style: normal;
}
.round-help-hint:hover { opacity: 1; }

/* ── Buttons ──────────────────────────────────── */
.btn-primary {
  padding: 0.95rem 1.5rem;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(26, 53, 128, 0.25);
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26, 53, 128, 0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.45; pointer-events: none; box-shadow: none; }

/* ── Final / thanks note ─────────────────────── */
.thanks-note {
  position: relative;
  background: #f8f3e4;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2.05rem,
      rgba(26, 53, 128, 0.06) 2.05rem,
      rgba(26, 53, 128, 0.06) 2.1rem
    );
  border-radius: 3px;
  padding: 2.4rem 2.1rem 2rem;
  max-width: 420px;
  width: 100%;
  margin: 1rem 0 2.25rem;
  text-align: left;
  transform: rotate(-1.2deg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 14px 30px rgba(0, 0, 0, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.08);
  animation: thanks-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes thanks-in {
  0%   { opacity: 0; transform: rotate(2deg) translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: rotate(-1.2deg) translateY(0) scale(1); }
}

/* Washi tape at the top */
.thanks-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2.5deg);
  width: 90px;
  height: 22px;
  background: rgba(184, 54, 42, 0.6);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.18) 0 6px,
    transparent 6px 12px
  );
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.thanks-line {
  font-family: 'Caveat', cursive;
  font-size: 1.95rem;
  line-height: 2.1rem;
  color: #1a2848;
  margin: 0 0 0.25rem;
  letter-spacing: 0.005em;
}
.thanks-line:nth-child(3) { padding-left: 0.5rem; }
.thanks-line:nth-child(4) { padding-left: 1rem; }
.thanks-line--small {
  font-size: 1.55rem;
  line-height: 2.1rem;
  opacity: 0.85;
  margin-top: 0.6rem;
}

.thanks-signoff {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 2.1rem;
  color: var(--label-color);
  margin-top: 1.1rem;
  text-align: right;
  transform: rotate(-2deg);
}
.thanks-x {
  display: inline-block;
  margin-left: 0.15rem;
  font-size: 1.9rem;
  vertical-align: -2px;
}

.thanks-cta {
  margin-top: 0.5rem;
}

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 600px) {
  .play { padding: 4rem 1rem 5rem; }
  .play-header { top: 0.7rem; right: 0.7rem; }
  .how-steps { gap: 1rem; }
  .how-step { padding: 1.25rem 1.15rem 1.4rem; }
  .qr-canvas { width: 180px; height: 180px; }
  .wall-card { width: 78px; height: 100px; }
  .wall-card img { height: 68px; }
  .thanks-note { padding: 2rem 1.6rem 1.7rem; }
  .thanks-line { font-size: 1.65rem; line-height: 1.9rem; }
  .thanks-line--small { font-size: 1.35rem; }
  .thanks-signoff { font-size: 1.4rem; }
}
