/* Sole Mate — celestial foot-fortune aesthetic.
   Deep midnight purple, gold, crescent moon, serif display type. */

:root {
  --midnight: #140a2e;
  --midnight-2: #1f1147;
  --purple: #2d1b4e;
  --purple-soft: #3c2668;
  --gold: #e8c765;
  --gold-deep: #c9a13f;
  --cream: #f3ecdd;
  --cream-dim: #cdc3b6;
  --line: rgba(232, 199, 101, 0.25);
  --radius: 18px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--purple-soft) 0%, transparent 60%),
    radial-gradient(900px 500px at 80% 110%, var(--midnight-2) 0%, transparent 55%),
    linear-gradient(180deg, var(--midnight) 0%, #0d0620 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* faint starfield */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(255,255,255,0.35), transparent);
  opacity: 0.7;
}

#app {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen, .moon { animation: none; }
}

/* ---- crescent moon ---- */
.moon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset -16px 6px 0 0 var(--gold);
  filter: drop-shadow(0 0 14px rgba(232, 199, 101, 0.45));
  transform: rotate(18deg);
  animation: glow 5s ease-in-out infinite;
}
@keyframes glow {
  50% { filter: drop-shadow(0 0 22px rgba(232, 199, 101, 0.7)); }
}

/* ---- home ---- */
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 14vw, 4.6rem);
  letter-spacing: 0.5px;
  margin: 6px 0 0;
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(232, 199, 101, 0.25);
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  color: var(--gold);
  margin: 0 0 8px;
}

/* ---- home descriptor ---- */
.home-blurb {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 30ch;
  margin: 2px 0 0;
}

/* ---- home foot emblem ---- */
.home-hero {
  width: 130px;
  height: 130px;
  margin: 4px 0 2px;
  filter: drop-shadow(0 0 18px rgba(232, 199, 101, 0.25));
}
.home-hero img { width: 100%; height: 100%; object-fit: contain; }

/* ---- buttons ---- */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin-top: 6px;
}
.btn {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 500;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: var(--midnight);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #241533;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(201, 161, 63, 0.35);
}
.btn-ghost {
  background: rgba(243, 236, 221, 0.06);
  border-color: var(--line);
  color: var(--cream);
}
.btn-quiet {
  background: transparent;
  color: var(--cream-dim);
  font-size: 0.92rem;
  padding: 10px;
}
.btn-ghost:hover { background: rgba(243, 236, 221, 0.12); }

/* ---- quiz ---- */
.progress { display: flex; gap: 8px; margin-bottom: 4px; }
.dot {
  width: 26px; height: 4px; border-radius: 4px;
  background: rgba(243, 236, 221, 0.16);
  transition: background 0.3s ease;
}
.dot.on { background: var(--gold); }

.who-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  margin: 0;
  font-size: 1.1rem;
}
.step-kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold-deep);
  margin: 0;
}
.question-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  margin: 0;
  line-height: 1.1;
}
.question-prompt {
  color: var(--cream-dim);
  margin: 0 0 4px;
  font-size: 1rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(243, 236, 221, 0.04);
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.option:hover { background: rgba(243, 236, 221, 0.09); }
.option:active { transform: scale(0.99); }
.option.selected {
  border-color: var(--gold);
  background: rgba(232, 199, 101, 0.14);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.option-figure {
  flex: 0 0 auto;
  width: 58px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-figure img, .detected-fig img { width: 100%; height: 100%; object-fit: contain; }

/* gentle life: the sole breathes; side profiles rock softly as if flexing */
@keyframes footBreath {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.03) rotate(-1.2deg); }
}
@keyframes footRock {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(2.4deg); }
}
.foot-img.foot {
  transform-origin: 50% 70%;
  animation: footBreath 5.6s ease-in-out infinite;
}
.foot-img.foot-side {
  transform-origin: 30% 80%;
  animation: footRock 4.6s ease-in-out infinite;
}
.option.selected .foot-img.foot { animation-duration: 3s; }
.option.selected .foot-img.foot-side { animation-duration: 2.6s; }

@media (prefers-reduced-motion: reduce) {
  .foot-img.foot,
  .foot-img.foot-side { animation: none; }
}

/* ---- "what your feet showed" trio on the result ---- */
.detected-wrap {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.detected-title {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.66rem;
  color: var(--gold-deep);
  margin: 0;
}
.detected {
  display: flex;
  gap: 10px;
  width: 100%;
}
.detected-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 12px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(243, 236, 221, 0.04);
}
.detected-fig { width: 100%; height: 58px; }
.detected-fig svg { width: 100%; height: 100%; }
.detected-cap { display: flex; flex-direction: column; gap: 1px; text-align: center; }
.detected-aspect {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6rem;
  color: var(--cream-dim);
}
.detected-label {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.1;
  color: var(--gold);
}
.option-body { display: flex; flex-direction: column; gap: 2px; }
.option-label {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}
.option-hint { color: var(--cream-dim); font-size: 0.86rem; }

.nav-row { width: 100%; display: flex; justify-content: center; }

/* ---- intro / handoff ---- */
.intro-copy {
  color: var(--cream-dim);
  max-width: 34ch;
  line-height: 1.5;
  margin: 0;
}
.name-form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 4px 0;
}
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field-label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
}
.field input {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(243, 236, 221, 0.05);
  color: var(--cream);
}
.field input::placeholder { color: rgba(205, 195, 182, 0.5); }
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 199, 101, 0.18);
}

/* ---- result ---- */
.result-kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold-deep);
  margin: 0;
}
.archetype-symbol { font-size: 4rem; line-height: 1; filter: drop-shadow(0 0 16px rgba(232,199,101,0.35)); }
.archetype-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 3rem);
  margin: 0;
  color: var(--gold);
}
.element-chip {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  margin: 0;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.archetype-blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.26rem;
  line-height: 1.45;
  max-width: 32ch;
  margin: 0;
  color: var(--gold);
}
.reading-line.insight {
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
}
.reading-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 40ch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 4px 0;
}
.reading-line { color: var(--cream-dim); line-height: 1.5; margin: 0; font-size: 0.98rem; }

/* ---- rarity + matches ---- */
.rarity-chip {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--cream-dim);
}
.rarity-tier {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}
.matches {
  width: 100%;
  max-width: 40ch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.match-symbol { font-size: 1.5rem; line-height: 1; }
.match-body { display: flex; flex-direction: column; flex: 1; }
.match-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.match-name { font-family: var(--serif); font-size: 1.1rem; color: var(--cream); }
.match-score {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
}
.match-note {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--cream-dim);
  text-align: center;
}

/* ---- the fifteen soles ---- */
.gallery-screen { max-width: 640px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
}
.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.gallery-card.is-mine {
  border-color: var(--gold);
  background: rgba(232, 199, 101, 0.1);
}
.gallery-symbol { font-size: 1.9rem; line-height: 1; }
.gallery-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--gold);
}
.gallery-mine {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.gallery-blurb {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--cream-dim);
}
.home-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---- invite links ---- */
.invite-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}
.invite-link {
  margin: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-all;
  text-align: center;
}
.invite-status {
  margin: 0;
  font-size: 0.86rem;
  color: var(--gold);
  text-align: center;
}

/* ---- static prose page (about.html) ---- */
.prose-page {
  max-width: 62ch;
  text-align: left;
  gap: 0;
}
.prose-page .moon,
.prose-page .wordmark,
.prose-page .tagline { align-self: center; }
.prose-page h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin: 34px 0 10px;
}
.prose-page p {
  margin: 0 0 14px;
  line-height: 1.62;
  color: var(--cream-dim);
  font-size: 1rem;
}
.prose-cta { margin: 30px 0 10px; text-align: center; }
.prose-cta .btn { display: inline-block; width: auto; padding: 14px 30px; text-decoration: none; }
.prose-page .fine-print { text-align: center; margin-top: 18px; }
.about-link {
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px;
  opacity: 0.75;
}
.about-link:hover { opacity: 1; color: var(--gold); }

/* ---- reading of the day (returning visitor, home screen) ---- */
.daily-card {
  width: 100%;
  max-width: 38ch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(232, 199, 101, 0.06);
  text-align: center;
}
.daily-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
}
.daily-omen {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.45;
  color: var(--cream);
}
.daily-nudge {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--cream-dim);
}
.daily-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.daily-share {
  width: auto;
  padding: 9px 22px;
  font-size: 0.9rem;
}
.daily-recall {
  width: auto;
  padding: 4px;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.daily-foot {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---- couples depth: dynamic, meters, shared sole, clash ---- */
.section-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.pair-dynamic,
.shared-sole,
.clash-box,
.meters {
  width: 100%;
  max-width: 40ch;
  text-align: center;
}
.pair-dynamic,
.shared-sole,
.clash-box {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.dynamic-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
}
.dynamic-blurb,
.shared-blurb,
.clash-line {
  margin: 0;
  color: var(--cream-dim);
  line-height: 1.5;
  font-size: 0.96rem;
}
.shared-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--cream);
}
.clash-box { border-style: dashed; }

.unlock-list {
  width: 100%;
  max-width: 34ch;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}
.unlock-list ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.unlock-list li {
  color: var(--cream-dim);
  font-size: 0.94rem;
  line-height: 1.4;
}
.unlock-list li::marker { color: var(--gold-deep); }

.meters {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.meter-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 2px;
  font-size: 0.82rem;
  color: var(--cream-dim);
}
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
/* The track markers are absolutely placed; in the legend they sit inline. */
.meter-dot.legend-dot {
  position: static;
  width: 13px;
  height: 13px;
  margin: 0;
  transform: none;
}
.meter { display: flex; flex-direction: column; gap: 7px; }
.meter-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.meter-track {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(232, 199, 101, 0.15),
    rgba(232, 199, 101, 0.45),
    rgba(232, 199, 101, 0.15));
  margin: 11px 0;
}
.meter-dot {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.meter-dot.dot-a {
  background: var(--gold);
  color: #1b1040;
  box-shadow: 0 0 12px rgba(232, 199, 101, 0.45);
}
.meter-dot.dot-b {
  background: rgba(20, 10, 46, 0.95);
  color: var(--cream);
  border: 1.5px solid var(--gold);
}
.meter-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cream-dim);
}

/* ---- share-to-unlock bonus line ---- */
.bonus-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 40ch;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(232, 199, 101, 0.06);
  transition: background 0.4s ease, border-style 0.4s ease;
}
.bonus-block.locked { color: var(--cream-dim); }
.bonus-block:not(.locked) {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(232, 199, 101, 0.1);
  animation: bonus-in 0.5s ease;
}
.bonus-lock-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}
.bonus-line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--cream);
}
.bonus-block.locked .bonus-line { color: var(--cream-dim); font-style: normal; }
@keyframes bonus-in {
  from { transform: scale(0.97); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}

/* ---- couple result ---- */
.pair-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.sole-card {
  flex: 1;
  max-width: 150px;
  padding: 16px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(243, 236, 221, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sole-symbol { font-size: 2.4rem; }
.sole-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
}
.sole-arch { color: var(--gold); font-size: 0.9rem; }
.pair-amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-deep);
  flex: 0 0 auto;
}

.score-ring {
  margin-top: 6px;
  width: 128px; height: 128px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(232,199,101,0.18), transparent 70%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 26px rgba(232, 199, 101, 0.3), inset 0 0 20px rgba(232,199,101,0.15);
}
.score-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.score-cap {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  color: var(--cream-dim);
  margin-top: 4px;
}
.verdict {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--cream);
  margin: 2px 0;
  max-width: 30ch;
}

/* ---- reveal paywall ---- */
.score-ring.locked {
  border-style: dashed;
  border-color: var(--gold-deep);
  box-shadow: none;
}
.score-lock { font-size: 2.6rem; line-height: 1; filter: saturate(0.6); }
.code-box:empty { display: none; }
.code-box {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 2px 0;
}
.code-input {
  font-family: var(--sans);
  font-size: 1rem;
  text-align: center;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(243, 236, 221, 0.05);
  color: var(--cream);
}
.code-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 199, 101, 0.18);
}
.paywall-error {
  color: #f0a5a5;
  font-size: 0.86rem;
  margin: 0;
  text-align: center;
}

/* ---- fine print ---- */
.fine-print {
  margin-top: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(205, 195, 182, 0.55);
}

/* ---- photo flow ---- */
.file-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.photo-drop {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 20px;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background: rgba(243, 236, 221, 0.04);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.photo-drop:hover { border-color: var(--gold); background: rgba(232, 199, 101, 0.08); }
.photo-drop-icon { font-size: 2.6rem; }
.cam-stage {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05030c;
  margin: 2px 0;
}
.cam-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 5%;
}
.cam-guide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
  filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.75));
}
.cam-error { color: #f0a5a5; }

.photo-preview {
  width: 100%;
  max-width: 300px;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.photo-note {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--cream-dim);
  max-width: 34ch;
  margin: 2px 0;
}
.intro-copy.small { font-size: 0.9rem; }
.moon.spin { animation: glow 5s ease-in-out infinite, spinMoon 2.4s linear infinite; }
@keyframes spinMoon {
  from { transform: rotate(18deg); }
  to   { transform: rotate(378deg); }
}
@media (prefers-reduced-motion: reduce) {
  .moon.spin { animation: glow 5s ease-in-out infinite; }
}

/* ---- share preview modal ---- */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 3, 20, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.share-modal.show { opacity: 1; }
.share-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
}
.share-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.share-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--cream-dim);
  font: 500 0.82rem/1 'Jost', system-ui, sans-serif;
  letter-spacing: 0.03em;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.share-tab.is-active {
  background: var(--gold);
  color: #1b1040;
}
.share-card-img {
  width: 100%;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
}
.share-hint {
  color: var(--cream-dim);
  font-size: 0.86rem;
  text-align: center;
  margin: 0;
  max-width: 30ch;
}
.share-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

/* ---- floating sound toggle ---- */
.sound-toggle {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 15;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 10, 46, 0.7);
  backdrop-filter: blur(4px);
  color: var(--cream);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
.sound-toggle:hover { opacity: 1; }
.sound-toggle:active { transform: scale(0.94); }
.sound-toggle.is-on {
  opacity: 0.95;
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(232, 199, 101, 0.35);
}

/* ---- toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--gold);
  color: #241533;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 10;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
