/* Missing Millions booth · the page is the picture.
   The first screen is the same object that goes on the five pictures, at screen size: the box,
   the logo as its label, the tick on its corner. Tokens are the campaign page's. Hard edges only:
   no gradients, no faded edges. Colours named --p-* follow the colour the visitor picks; the
   script fills them from config.js, and the values below are the pink one for the first paint. */

@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/lexend-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lexend Fallback'; src: local('Roboto'), local('Arial'); size-adjust: 109%; ascent-override: 92%; descent-override: 23%; line-gap-override: 0%; }

:root {
  --brand: #5A45B0;
  --brand-deep: #3F2E91;
  --night: #2B1D66;
  --accent: #F0559B;
  --accent-ink: #C41A6C;
  --accent-on-dark: #FFB8D5;
  --lav: #EFEAFB;
  --bg: #fff;
  --text: #2A1A63;
  --muted: #564B82;
  --line: #E6DCF0;
  --line-strong: #C9BCE8;

  --p-bg: #F0559B; --p-head: #fff; --p-text: #2A1A63; --p-frame: #fff; --p-on: #2A1A63; --p-tab: #2B1D66; --p-tick: #fff; --p-stop: #2B1D66;

  --font: 'Lexend', 'Lexend Fallback', system-ui, -apple-system, 'Segoe UI', 'Noto Sans', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-q: cubic-bezier(.25, 1, .5, 1);
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --draft-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.motion-ok { scroll-behavior: smooth; }
html.ax-size-1 { font-size: 112.5%; }
html.ax-size-2 { font-size: 125%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p, ul, figure, fieldset, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.booth :focus-visible { outline-color: var(--p-on); box-shadow: 0 0 0 3px var(--p-frame); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 60; background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; }
.skip:focus { top: 12px; }
.draft { background: var(--night); color: #fff; text-align: center; font-size: .85rem; padding: 8px var(--pad); }
.draft b { font-weight: 600; color: var(--accent-on-dark); }
.nojs { padding: 24px var(--pad); font-weight: 600; }

h1, h2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.03; text-wrap: balance; }
/* the full stop is a square, like the squares cut into the logo's letters */
.stop { display: inline-block; width: .17em; height: .17em; margin-left: .075em; background: var(--accent); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.45; font-weight: 500; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 10px; font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s, transform .35s var(--ease); }
@media (hover: hover) { .btn:not(:disabled):hover { transform: translateY(-2px); } }
.btn:not(:disabled):active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: .98rem; }
.btn-on { background: var(--p-frame); color: var(--p-on); }
.btn-ghost { color: var(--p-text); box-shadow: inset 0 0 0 2px var(--p-frame); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:not(:disabled):hover { background: var(--brand-deep); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
input:focus-visible + label.btn { outline: 3px solid var(--p-on); outline-offset: 3px; box-shadow: inset 0 0 0 2px var(--p-frame), 0 0 0 3px var(--p-frame); }
.plain { padding: 10px 4px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; color: var(--p-text); }

.arrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.arrow::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5 12 8l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

/* icon buttons carry their own small label on hover or focus */
.ib { position: relative; flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 10px; color: var(--p-text); box-shadow: inset 0 0 0 2px currentColor; transition: transform .3s var(--ease); }
.ib:active { transform: scale(.92); }
.ib[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%; padding: 6px 10px; border-radius: 8px; background: var(--night); color: #fff; font-size: .78rem; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s, transform .25s var(--ease); }
.ib:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) { .ib:hover::after { opacity: 1; transform: translate(-50%, 0); } }

/* a prompt beside anything that can be used */
.hint { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; }
.hint::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='3.4'/%3E%3Ccircle cx='10' cy='10' r='7.6' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='3.4'/%3E%3Ccircle cx='10' cy='10' r='7.6' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat; }

/* the campaign's box and tick */
.bx { flex: none; position: relative; width: 24px; height: 24px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1.75px var(--brand); transition: background-color .25s, box-shadow .25s, transform .4s var(--ease); }
.bx::after, .tab::after, .ticks i::after, .sw-box::after, .bigtick::after { content: ""; position: absolute; left: 50%; top: 45%; width: 27%; height: 50%; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(42deg) scale(.3); opacity: 0; transition: opacity .15s, transform .4s var(--ease); }
input:checked ~ .bx { background: var(--accent); box-shadow: inset 0 0 0 1.75px var(--accent); }
input:checked ~ .bx::after { opacity: 1; transform: translate(-50%, -50%) rotate(42deg); }
input:focus-visible ~ .bx, input:focus-visible ~ .sw-box { outline: 3px solid var(--text); outline-offset: 3px; }

/* ---------- the booth: the first screen ---------- */
.booth { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100svh - var(--draft-h)); padding-bottom: 20px; background: var(--p-bg); color: var(--p-text); transition: background-color .45s var(--ease-q), color .45s var(--ease-q); }
/* the way back to the campaign page: top left, where a back button is looked for */
.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 10px; border: 1.75px solid currentColor; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s; }
.back::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 8H4M7.5 4.5 4 8l3.5 3.5' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 8H4M7.5 4.5 4 8l3.5 3.5' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .3s var(--ease); }
.back:hover { background: var(--p-frame); color: var(--p-on); }
.back:hover::before { transform: translateX(-3px); }
.top { display: flex; align-items: center; justify-content: flex-start; width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 16px var(--pad) 0; font-size: .95rem; }
.top-logo { display: none; }

.booth-in { display: grid; align-content: center; width: 100%; max-width: var(--wrap); margin-inline: auto; padding: clamp(10px, 2.2vh, 28px) var(--pad) 0; }
.copy { display: contents; }
.booth h1 { order: 1; max-width: 9em; min-height: 2.06em; align-content: end; font-size: clamp(2.15rem, min(9.6vw, 6.2vh), 4.9rem); color: var(--p-head); transition: color .45s var(--ease-q); }
.booth h1 .stop { background: var(--p-stop); }
.copy .lede { order: 2; max-width: 23em; min-height: 2.9em; margin-top: clamp(10px, 1.6vh, 20px); }
.booth-stage { order: 3; width: min(100%, 52svh, 560px); margin-top: clamp(16px, 2.6vh, 30px); }
.private { order: 4; display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: .9rem; font-weight: 500; }
.private svg { flex: none; }
.booth:not([data-state="empty"]) .private { display: none; }

/* the box, at screen size. Everything inside it is measured in --u, one hundredth of its width.
   Browsers without container units get --u in pixels from the script. */
.booth-stage { --u: 1cqw; }
.stage { position: relative; container-type: inline-size; aspect-ratio: 1; margin: 9.6% 26px 0 0; }
.box { position: absolute; inset: 0; overflow: hidden; border: calc(var(--u) * 2) solid var(--p-frame); border-radius: calc(var(--u) * 4); background: var(--p-bg); transition: background-color .45s var(--ease-q), border-color .45s var(--ease-q); }
.box video, .box canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.box video.mirror { transform: scaleX(-1); }
.start { position: absolute; inset: 0; display: grid; align-content: center; justify-content: center; gap: 12px; padding: calc(var(--u) * 7); }
.start .btn { min-width: min(100%, 236px); }
.booth:not([data-state="empty"]) .start { display: none; }

.tag { position: absolute; left: calc(var(--u) * 5.5); top: 0; width: calc(var(--u) * 37); padding: calc(var(--u) * 3.3); border-radius: calc(var(--u) * 2.2); background: #fff; box-shadow: 0 0 0 calc(var(--u) * 1.7) var(--p-bg); transform: translateY(-50%); transition: box-shadow .45s var(--ease-q); }
.tag img { width: 100%; height: auto; }

/* the tick on the corner: an empty square until someone is in the box */
.tab { --over: min(calc(var(--u) * 9.6), 20px); position: absolute; right: calc(var(--over) * -1); bottom: calc(var(--over) * -1); width: calc(var(--u) * 24); aspect-ratio: 1; border-radius: calc(var(--u) * 3.4); background: var(--p-bg); box-shadow: inset 0 0 0 calc(var(--u) * 1) var(--p-frame), 0 0 0 calc(var(--u) * 1.8) var(--p-bg); transition: background-color .3s, box-shadow .3s; }
.tab::after { border-color: var(--p-tick); border-width: 0 calc(var(--u) * 2) calc(var(--u) * 2) 0; }
.booth[data-state="ready"] .tab { background: var(--p-tab); box-shadow: inset 0 0 0 0 var(--p-frame), 0 0 0 calc(var(--u) * 1.8) var(--p-bg); }
.booth[data-state="ready"] .tab::after { opacity: 1; transform: translate(-50%, -50%) rotate(42deg); }

/* no photo: the box itself is the tick */
.bigtick { position: absolute; inset: 0; display: none; background: var(--p-tab); }
.bigtick::after { border-color: var(--p-tick); border-width: 0 calc(var(--u) * 7.3) calc(var(--u) * 7.3) 0; top: 46%; opacity: 1; transform: translate(-50%, -50%) rotate(42deg) scale(.86); }
.booth[data-photo="none"] .bigtick { display: block; }
.booth[data-photo="none"] .box { border-color: var(--p-tab); }
.booth[data-photo="none"] .tab { display: none; }

/* three ticks, then the picture */
.ticks { position: absolute; left: 0; right: 0; bottom: calc(var(--u) * 6); display: none; justify-content: center; gap: calc(var(--u) * 3); }
.booth.is-counting .ticks { display: flex; }
.ticks i { position: relative; width: calc(var(--u) * 13); aspect-ratio: 1; border-radius: calc(var(--u) * 2); background: var(--night); box-shadow: inset 0 0 0 calc(var(--u) * .8) #fff; }
.ticks i::after { border-width: 0 calc(var(--u) * 1.2) calc(var(--u) * 1.2) 0; }
.ticks i.on { background: var(--accent); }
.ticks i.on::after { opacity: 1; transform: translate(-50%, -50%) rotate(42deg); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

/* under the box: one row of controls for each moment */
.under { min-height: 132px; margin-right: 26px; padding-top: 40px; }
.row { display: none; align-items: center; justify-content: center; gap: 14px; }
.booth[data-state="empty"] .row-empty,
.booth[data-state="live"] .row-live,
.booth[data-state="ready"]:not(.is-adjusting) .row-ready,
.booth.is-adjusting .row-adjust { display: flex; }
.row-live { gap: 26px; }
.row-ready { flex-wrap: wrap; }
.booth[data-photo="none"] #adjust { display: none; }
.under .hint { display: none; justify-content: center; margin-top: 14px; text-align: left; }
.booth[data-state="live"] .hint-live, .booth.is-adjusting .hint-adjust { display: flex; }
.oops, .inapp { margin-top: 12px; font-size: .95rem; font-weight: 500; text-align: center; text-wrap: balance; }
.oops { font-weight: 600; }
.booth:not([data-state="empty"]) :is(.oops, .inapp) { display: none; }

/* the shutter is a box too */
.shutter { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 18px; box-shadow: inset 0 0 0 4px var(--p-frame); }
.shutter span { width: 54px; height: 54px; border-radius: 10px; background: var(--p-frame); transition: transform .25s var(--ease); }
.shutter:active span, .booth.is-counting .shutter span { transform: scale(.8); }

.booth.is-adjusting .box canvas { cursor: grab; touch-action: none; }
.booth.is-adjusting .box canvas:active { cursor: grabbing; }
.zoom { flex: 1; display: flex; align-items: center; min-width: 0; max-width: 240px; }
.zoom input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: none; cursor: pointer; }
.zoom input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--p-frame); }
.zoom input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--p-frame); }
.zoom input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 6px; border: 0; background: var(--p-on); box-shadow: 0 0 0 3px var(--p-frame); }
.zoom input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 6px; border: 0; background: var(--p-on); box-shadow: 0 0 0 3px var(--p-frame); }

/* the way down to the pictures */
.cue { justify-self: center; display: grid; justify-items: center; gap: 6px; margin-top: 18px; padding: 6px 12px 4px; border-radius: 10px; font-size: .86rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; color: var(--p-text); }
.cue-boxes { display: grid; gap: 4px; }
.booth.is-adjusting .cue { visibility: hidden; }
.cue-boxes i { width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1.75px currentColor; }

/* between a phone and a laptop the one column sits in the middle */
@media (min-width: 600px) and (max-width: 859px) {
  .top, .booth-in { max-width: calc(540px + 2 * var(--pad)); }
  .booth-stage { width: min(100%, 56svh); }
}

@media (min-width: 860px) {
  .booth-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(40px, 7vw, 120px); }
  .copy { display: block; }
  .copy .lede { margin-top: 22px; }
  .private { margin-top: 26px; }
  .booth-stage { width: min(46vw, 64svh, 640px); margin-top: 0; }
  .booth h1 { min-height: 0; }
  .stage { margin-right: 54px; }
  .tab { --over: calc(var(--u) * 9.6); }
  .booth-stage { container-type: inline-size; }
  .under { margin-right: 54px; padding-top: calc(calc(var(--u) * 9.6) + 12px); }
}

/* ---------- the five pictures ---------- */
.prints { padding-top: clamp(52px, 7vw, 104px); background: var(--bg); scroll-margin-top: 0; }
.prints h2, .pass h2 { font-size: clamp(1.95rem, 4.6vw, 3.3rem); max-width: 14em; }
.prints .lede, .pass .lede { margin-top: 14px; max-width: 28em; color: var(--muted); }

.opts { display: grid; gap: 22px clamp(36px, 7vw, 96px); margin-top: clamp(22px, 3vw, 36px); }
.opt { min-width: 0; border: 0; padding: 0; }
.opt legend { padding: 0; margin-bottom: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.pick { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; font-weight: 500; line-height: 1.25; cursor: pointer; }
.pick input, .sw input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
@media (hover: hover) { .pick:hover .bx { transform: scale(1.1); } }
.swatches { display: flex; gap: 18px; }
.sw { position: relative; display: grid; justify-items: center; gap: 8px; font-size: .9rem; font-weight: 500; cursor: pointer; }
.sw-box { position: relative; width: 52px; height: 52px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 1.75px var(--line-strong); transition: box-shadow .2s, transform .4s var(--ease); }
.sw-box::after { border-color: var(--k); border-width: 0 3.5px 3.5px 0; }
.sw input:checked ~ .sw-box { box-shadow: inset 0 0 0 1.75px var(--line-strong), 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.sw input:checked ~ .sw-box::after { opacity: 1; transform: translate(-50%, -50%) rotate(42deg); }
@media (min-width: 720px) { .opts { grid-template-columns: auto auto; justify-content: start; } }

.strip { --ph: clamp(220px, min(42svh, 64vw), 420px); --gap: 22px; display: flex; gap: var(--gap); margin: clamp(22px, 4vw, 44px) calc(var(--pad) * -1) 0; padding: 14px var(--pad) 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: none; scroll-snap-align: start; }
.strip-note { display: none; }
.print { position: relative; display: grid; cursor: pointer; }
.print-pic { display: block; height: var(--ph); aspect-ratio: var(--ar); overflow: hidden; border-radius: 12px; background: var(--lav); box-shadow: 0 0 0 1.5px var(--line); transition: opacity .25s; }
.print-pic.round { border-radius: 50%; }
.print-pic img { width: 100%; height: 100%; }
/* the tick that chooses a picture sits beside its name, so nothing covers the picture */
.print-cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; width: 0; min-width: 100%; margin-top: 14px; }
.print input { position: absolute; left: -9px; bottom: -9px; z-index: 2; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.print .bx { width: 26px; height: 26px; border-radius: 4px; }
.print input:checked ~ .print-cap .bx { background: var(--accent); box-shadow: inset 0 0 0 1.75px var(--accent); }
.print input:checked ~ .print-cap .bx::after { opacity: 1; transform: translate(-50%, -50%) rotate(42deg); }
.print input:focus-visible ~ .print-cap .bx { outline: 3px solid var(--text); outline-offset: 3px; }
.print input:not(:checked) ~ .print-pic { opacity: .35; }
.print-name, .print-note { display: block; }
.print-name { font-weight: 600; line-height: 1.3; }
.print-note { margin-top: 2px; font-size: .85rem; line-height: 1.35; color: var(--muted); }
.hint-strip { margin-top: 8px; color: var(--accent-ink); }
/* on a phone the five pictures run down the page, two across, so nothing has to be slid sideways */
@media (max-width: 599px) {
  .strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; align-items: start; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .print-pic { width: 100%; height: auto; }
  .strip li:nth-child(5) { order: 1; } .strip li:nth-child(n+2):nth-child(-n+4) { order: 2; } .strip li.strip-note { display: block; order: 3; align-self: center; }   /* the two squares side by side, then the two tall ones */
  .strip-note .hint { display: grid; gap: 10px; padding-bottom: 56px; color: var(--accent-ink); line-height: 1.4; }
  .hint-strip { display: none; }
}
@media (min-width: 1000px) {
  .strip { --ph: calc((min(100vw, var(--wrap)) - 2 * var(--pad) - 4 * var(--gap)) / 3.925); justify-content: space-between; overflow: visible; }
  .hint-strip { display: none; }
  .opts { margin-top: 30px; }
}

.save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 24px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1.5px solid var(--line); }
/* on a phone the save button stays in reach while the pictures are on screen */
@media (max-width: 999px) { .save { position: sticky; bottom: 0; z-index: 5; } }
.save .btn { min-width: min(100%, 290px); }
.save-note { font-size: .92rem; color: var(--muted); }
.save-note:empty { display: none; }
.saved { flex-basis: 100%; font-weight: 600; color: var(--accent-ink); }
.saved:empty { display: none; }

/* ---------- pass it on ---------- */
.pass { margin-top: clamp(28px, 4vw, 48px); padding-block: clamp(56px, 8vw, 112px); background: var(--lav); }
.pass-in { display: grid; gap: 36px clamp(40px, 7vw, 104px); align-items: center; }
.pass-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
.cap { padding: clamp(22px, 3vw, 32px); border-radius: 14px; background: var(--bg); }
.cap figcaption { font-size: .9rem; font-weight: 600; color: var(--muted); }
.cap blockquote { white-space: pre-line; margin: 10px 0 18px; font-size: 1.1rem; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.alt { margin-top: 26px; padding-top: 22px; border-top: 1.5px solid var(--line); }
.alt label { display: block; font-size: .9rem; font-weight: 600; line-height: 1.4; color: var(--muted); }
.alt textarea { display: block; width: 100%; min-height: 8.6em; margin: 10px 0 18px; padding: 12px 14px; border: 0; border-radius: 9px; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--bg); font: inherit; font-size: 1rem; line-height: 1.5; color: var(--text); resize: vertical; field-sizing: content; }
.alt textarea:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.cap-done { margin-left: 14px; font-size: .92rem; font-weight: 600; color: var(--accent-ink); }
@media (min-width: 860px) { .pass-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.foot { padding-block: clamp(36px, 5vw, 56px); background: var(--night); color: #D9CFF3; font-size: .95rem; }
.foot-in { display: grid; gap: 14px; }
.foot img { width: 60px; height: auto; }
.foot p { max-width: 36em; color: #fff; }
.foot .foot-note { color: #D9CFF3; }

/* ---------- movement. Everything is visible without it. ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes nudgeO { 0% { outline: 2.5px solid var(--nudge, #fff); outline-offset: 0; } 100% { outline: 2.5px solid transparent; outline-offset: 12px; } }
@keyframes cueFall { 0%, 58%, 100% { background-color: transparent; } 18%, 38% { background-color: currentColor; } }
@keyframes cueBob { 50% { transform: translateY(4px); } }
@keyframes flash { from { opacity: .92; } to { opacity: 0; } }
@keyframes medal { 0% { transform: scale(.3) rotate(-18deg); } 60% { transform: scale(1.12) rotate(4deg); } }
@keyframes bump { 40% { transform: scale(1.18); } }
@keyframes develop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes drop { from { transform: translateY(-14px); } }

.motion-ok .booth h1 { animation: rise 1s var(--ease) .1s backwards; }
.motion-ok .copy .lede { animation: rise 1s var(--ease) .22s backwards; }
.motion-ok .booth-stage { animation: rise 1.1s var(--ease) .3s backwards; }
.motion-ok .nudge { animation: nudgeO 1.9s var(--ease-q) infinite; }
.motion-ok .prints .nudge { --nudge: var(--accent); }
.motion-ok .booth.is-flash .flash { animation: flash .55s ease-out; }
.motion-ok .booth[data-state="ready"] .tab { animation: medal .7s var(--ease); }
.motion-ok .ticks i.on { animation: bump .45s var(--ease); }
.motion-ok .cue-boxes { animation: cueBob 1.9s var(--ease-q) infinite; }
.motion-ok .cue-boxes i { animation: cueFall 1.9s var(--ease-q) infinite; }
.motion-ok .cue-boxes i:nth-child(2) { animation-delay: .22s; }
.motion-ok .cue-boxes i:nth-child(3) { animation-delay: .44s; }
.motion-ok .cue { animation: rise .8s var(--ease) .5s backwards; }
/* each picture slides out of the booth like a print */
.motion-ok .print-pic.dev img { animation: develop .7s var(--ease-q) calc(var(--k) * 90ms) backwards; }
.motion-ok .strip.first .print { animation: drop .7s var(--ease) calc(var(--k) * 90ms) backwards; }
.motion-ok .print input:checked ~ .print-cap .bx { animation: bump .45s var(--ease); }
.motion-ok .saved:not(:empty) { animation: rise .6s var(--ease); }

/* ---------- high contrast, from the campaign page's reading settings or the system ---------- */
html.ax-contrast { --p-bg: #000; --p-head: #fff; --p-text: #fff; --p-frame: #fff; --p-on: #000; --p-tab: #FFE500; --p-tick: #000; --p-stop: #FFE500; --brand: #fff; --brand-deep: #fff; --night: #000; --accent: #FFE500; --accent-ink: #FFE500; --lav: #000; --bg: #000; --text: #fff; --muted: #fff; --line: #fff; --line-strong: #fff; }
html.ax-contrast .btn-solid { color: #000; }
html.ax-contrast :is(.prints, .pass, .foot) { border-top: 1px solid #fff; }
html.ax-contrast .cap { border: 1px solid #fff; }
html.ax-contrast .bx::after, html.ax-contrast .ticks i::after { border-color: #000; }
html.ax-contrast .foot p { color: #fff; }
html.ax-links a { text-decoration: underline; }
@media (forced-colors: active) {
  .box, .tab, .shutter, .sw-box, .bx, .print-pic { border: 2px solid CanvasText; }
  .stop { background: CanvasText; }
}
