/* apps/booth/booth.css — PHOTO BOOTH, token-styled, phone-first.
   One column ~560px, the house dark stage, lime accents. No other deps. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --booth-max: 560px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--booth-max); margin: 0 auto; padding: 24px 18px 72px; }

/* ── header ────────────────────────────────────────────────────────────── */
.booth-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.booth-brand { display: flex; flex-direction: column; gap: 3px; }
.booth-brand b { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .18em; color: var(--lime); }
.booth-brand span { color: var(--faint); font-size: .72rem; letter-spacing: .06em; }
.booth-back {
  color: var(--muted); text-decoration: none; font-size: .8rem;
  border: 1px solid var(--line); border-radius: var(--pill); padding: 7px 13px; white-space: nowrap;
  transition: var(--ease);
}
.booth-back:hover { color: var(--lime); border-color: var(--lime-dim); }

h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.04; margin-bottom: 12px; letter-spacing: .01em; }
h1 em { font-style: normal; color: var(--lime); }
.lede { color: var(--muted); font-size: .92rem; line-height: 1.6; margin-bottom: 18px; }

/* ── privacy banner — the promise, PROMINENT ───────────────────────────── */
.privacy-banner {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--lime-dim); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(198,243,46,.07), rgba(198,243,46,.02));
  padding: 13px 15px; margin-bottom: 22px;
}
.privacy-shield { color: var(--lime); font-size: 1.15rem; line-height: 1.3; }
.privacy-banner p { color: var(--muted); font-size: .84rem; line-height: 1.55; }
.privacy-banner b { color: var(--text); }
.privacy-banner p b { color: var(--lime); }

/* ── cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 18px 20px; margin-bottom: 18px;
}
.step-tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}

/* ── step 1 · capture ──────────────────────────────────────────────────── */
.cam-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a0c10; aspect-ratio: 3 / 3.4; margin-bottom: 14px; }
.cam-frame video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); } /* mirror = selfie feel */
.frame-guide { position: absolute; inset: 0; pointer-events: none; }
.guide-oval {
  position: absolute; left: 50%; top: 12%; width: 52%; aspect-ratio: 3 / 4;
  transform: translateX(-50%);
  border: 2px dashed rgba(198,243,46,.55); border-radius: 50%;
  box-shadow: 0 0 0 1000px rgba(6,7,10,.18);
}
.guide-shoulder {
  position: absolute; left: 8%; right: 8%; bottom: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(198,243,46,.5) 0 10px, transparent 10px 18px);
}
.guide-hint {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(198,243,46,.85); background: rgba(6,7,10,.6); padding: 4px 10px; border-radius: var(--pill);
  white-space: nowrap;
}
.shutter {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 58px; height: 58px; border-radius: 50%;
  border: 3px solid var(--lime); background: rgba(10,11,13,.55); color: var(--lime);
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: var(--ease);
}
.shutter:hover { background: var(--lime); color: #0a0b0d; }

.cam-denied {
  border: 1px solid var(--line-bright); border-radius: var(--radius);
  background: var(--surface-2); color: var(--muted); font-size: .85rem; line-height: 1.55;
  padding: 12px 14px; margin-bottom: 14px;
}
.cam-denied b { color: var(--text); }

.preview img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line-bright);
  display: block; margin-bottom: 12px; max-height: 420px; object-fit: contain; background: #0a0c10;
}

.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; }
button, .upload-btn {
  font: 600 .84rem var(--font-body); letter-spacing: .02em;
  border-radius: var(--pill); padding: 11px 18px; cursor: pointer;
  border: 1px solid var(--line-bright); background: var(--surface-2); color: var(--text);
  transition: var(--ease);
}
button:hover, .upload-btn:hover { border-color: var(--lime-dim); color: var(--lime); }
button.primary { background: var(--lime); border-color: var(--lime); color: #0a0b0d; }
button.primary:hover { filter: brightness(1.08); color: #0a0b0d; }
button.ghost { background: transparent; }
button:disabled { opacity: .45; cursor: wait; }
.upload-btn { display: inline-flex; align-items: center; }

.capture-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── step 2 · generating ───────────────────────────────────────────────── */
.gen-title { font-size: 1.05rem; margin-bottom: 14px; }
.stages { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.stages li { display: flex; align-items: center; gap: 11px; color: var(--faint); font-size: .86rem; transition: var(--ease); }
.stages li i {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-bright); position: relative; transition: var(--ease);
}
.stages li.active { color: var(--text); }
.stages li.active i { border-color: var(--lime); }
.stages li.active i::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--lime);
  animation: boothPulse 1.1s var(--ease) infinite alternate;
}
.stages li.done { color: var(--muted); }
.stages li.done i { border-color: var(--lime-dim); background: var(--lime-dim); }
.stages li.done i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #0a0b0d; font-size: .7rem; font-weight: 700; }
@keyframes boothPulse { from { opacity: .35; } to { opacity: 1; } }
.gen-note { color: var(--faint); font-size: .76rem; }
.gen-note b { color: var(--muted); }

.gen-error { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.gen-error p { color: var(--muted); font-size: .86rem; line-height: 1.55; margin-bottom: 12px; }
.gen-error-sub { color: var(--faint); font-size: .74rem !important; margin-top: 10px !important; }

/* ── step 3 · reveal ───────────────────────────────────────────────────── */
.reveal-stage {
  height: 340px; border-radius: var(--radius); border: 1px solid var(--line-bright);
  background: radial-gradient(120% 90% at 50% 20%, #171a21 0%, #0e0f13 70%);
  position: relative; cursor: grab; touch-action: none; overflow: hidden; margin-bottom: 12px;
}
.reveal-stage:active { cursor: grabbing; }
.reveal-stage canvas { width: 100% !important; height: 100% !important; display: block; }
#revealName { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.palette-row { display: flex; gap: 7px; margin-bottom: 10px; }
.palette-row i {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-bright);
}
.reveal-blurb { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-bottom: 14px; }
.added-note { margin-top: 12px; color: var(--muted); font-size: .82rem; }
.added-note a { color: var(--lime); }

/* ── footer ────────────────────────────────────────────────────────────── */
.booth-foot { border-top: 1px solid var(--line); padding-top: 16px; }
.booth-foot p { color: var(--faint); font-size: .72rem; line-height: 1.7; }
.booth-foot code { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }

@media (max-width: 420px) {
  .preview-actions, .capture-actions { flex-direction: column; }
  button, .upload-btn { width: 100%; text-align: center; justify-content: center; }
}
