:root {
  --ink: #15121c;
  --pink: #ff027d;
  --off-white: #faf9fb;
  --dim: #6b6875;
  --line: #2a2533;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--off-white); }
body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kicker { color: var(--dim); margin: 0; font-size: 13px; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); line-height: 1.1; text-transform: lowercase; }
.prompt { color: var(--pink); }
.idea { margin: 0; color: var(--dim); }
.stage { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
button {
  font: inherit;
  background: var(--pink);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}
button.ghost { background: transparent; color: var(--pink); border: 2px solid var(--pink); }
input, textarea, select {
  font: inherit;
  color: var(--off-white);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.card { border: 2px solid var(--line); border-radius: 16px; padding: 16px; }
.pink { color: var(--pink); }
.foot { color: var(--dim); font-size: 13px; }

/* photo booth */
[hidden] { display: none !important; }
.step { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.label { margin: 0; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.small button { font-size: 13px; padding: 8px 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pink); color: var(--ink); font-weight: 700;
  border-radius: 999px; padding: 12px 20px; min-height: 44px; cursor: pointer;
}
.vh { position: absolute; width: 1px; height: 1px; padding: 0; min-height: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.vh:focus + button, .btn:focus-within { outline: 2px solid var(--pink); }
button:disabled { opacity: .35; cursor: not-allowed; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs:empty { display: none; }
.thumbs canvas { width: 100%; height: auto; aspect-ratio: 4 / 3; border: 2px solid var(--pink); border-radius: 8px; display: block; }
.msg, .note, .hint { margin: 0; color: var(--dim); font-size: 13px; }
.note { color: var(--pink); }
.hint { color: var(--off-white); }
.opt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.k { color: var(--dim); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  background: transparent; color: var(--pink); border: 2px solid var(--pink);
  font-size: 14px; padding: 8px 12px; font-weight: 700;
}
.chips button[aria-pressed="true"] { background: var(--pink); color: var(--ink); }
.stickers button { font-size: 22px; padding: 4px; width: 48px; min-height: 48px; line-height: 1; }
.cv-wrap { display: flex; justify-content: center; min-width: 0; }
#cv, #final {
  display: block; max-width: 100%; height: auto; border-radius: 6px;
  border: 2px solid var(--line);
}
#cv { touch-action: none; cursor: crosshair; }
.is-strip #cv, .is-strip #final { max-height: 72vh; width: auto; }
#final { -webkit-touch-callout: default; user-select: auto; }

.booth {
  position: fixed; inset: 0; z-index: 10; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 16px;
}
.shot { margin: 0; color: var(--pink); font-weight: 700; }
.pv-box { position: relative; width: min(100%, 560px); border: 4px solid var(--pink); border-radius: 12px; overflow: hidden; }
#pv { display: block; width: 100%; height: auto; }
.count {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: clamp(56px, 22vw, 160px); font-weight: 700; color: var(--off-white);
  background: rgba(21, 18, 28, .55);
}
.count.flashy { font-size: clamp(36px, 13vw, 100px); color: var(--pink); }
.count.gone { opacity: 0; }
.count.pop { animation: pop .6s ease-out; }
@keyframes pop { from { transform: scale(1.6); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); } }
.flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .count.pop, .flash.on { animation-duration: .01s; } }
