/* Booth UI. Brand-neutral: the admin sets --accent and the display font; everything else is ink, glass and type. */
:root {
  --accent: #f5b841;
  --on-accent: #111;
  --accent-text: color-mix(in srgb, var(--accent) 50%, #fff); /* small accent-coloured text stays above 4.5:1 on dark, even for deep brand colours */
  --bg: #0b0b0d;
  --surface: rgba(18, 18, 22, .72);
  --surface-solid: #141418;
  --text: #f4f2ee;
  --muted: rgba(244, 242, 238, .68);
  --line: rgba(255, 255, 255, .13);
  --danger: #ff6b5e;
  --glow2: color-mix(in srgb, var(--accent) 55%, #fff); /* second backdrop light; the NTHBD style uses its gold */
  --sans: Inter, Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  /* set from the brand font in the admin */
  --display: var(--sans); --display-weight: 800; --display-style: normal; --display-case: none; --display-track: -.025em;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
  --r: 28px;
  --fast: 160ms; --med: 320ms; --slow: 600ms;
  --spring: cubic-bezier(.2, .9, .25, 1.12);
  --out: cubic-bezier(.4, 0, 1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.display { font-family: var(--display); font-weight: var(--display-weight); font-style: var(--display-style); text-transform: var(--display-case); letter-spacing: var(--display-track); }

/* Designed backdrop: deep black, slow-drifting brand-colour light, film grain. The live camera only takes over on the capture screen. */
#backdrop { position: fixed; inset: -10%; background:
    radial-gradient(46% 52% at 12% 10%, color-mix(in srgb, var(--accent) 78%, transparent), transparent 72%),
    radial-gradient(42% 46% at 90% 94%, color-mix(in srgb, var(--glow2) 50%, transparent), transparent 72%),
    radial-gradient(34% 38% at 80% 14%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 72%),
    radial-gradient(36% 32% at 32% 98%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 72%),
    #070709;
  animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1) } 50% { transform: translate(-3%, 2%) scale(1.05) } 100% { transform: translate(2%, -2%) scale(1.02) } }
#grain { position: fixed; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#live { position: fixed; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--med); }
body[data-screen=capture] #live { opacity: 1; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.7) 100%); }
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 50; }
#flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: .95 } 100% { opacity: 0 } }

/* Header */
#top { position: fixed; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--s3) var(--s4); z-index: 5; pointer-events: none; }
#brand { justify-self: start; width: fit-content; display: flex; flex-direction: column; align-items: flex-start; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; font-size: clamp(13px, 1.7vmin, 20px); }
#brand small { font-size: .55em; letter-spacing: .5em; color: var(--muted); margin-top: 4px; font-weight: 600; }
#brand small:empty { display: none; }
#brand img { height: clamp(36px, 6.5vh, 72px); width: auto; display: block; }
#status { display: flex; gap: var(--s1); justify-content: flex-end; }
#status [data-icon=camera] { cursor: pointer; pointer-events: auto; }
#status span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid rgba(255, 107, 94, .45); color: #ffc2bb; backdrop-filter: blur(12px); }
#steps { list-style: none; display: flex; gap: var(--s1); opacity: 0; transform: translateY(-8px); transition: opacity var(--med), transform var(--med); }
body:is([data-screen=review], [data-screen=done], [data-screen=scan]) #steps { opacity: 1; transform: none; } /* capture stays distraction-free */
#steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#steps li + li::before { content: ''; order: -2; width: 28px; height: 2px; border-radius: 2px; background: var(--line); }
#steps li.on { color: var(--text); }
#steps li.on::after { content: ''; order: -1; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
#steps li.done { color: var(--accent-text); }

/* Screens: enter with a spring, leave faster than they arrived */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3);
  padding: 12vh 5vw 6vh; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.985);
  transition: opacity var(--fast) var(--out), transform var(--fast) var(--out), visibility 0s var(--fast); z-index: 2; }
.screen:not(.on) { pointer-events: none; } /* a fading-out screen must never catch taps */
.screen.on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--med), transform var(--slow) var(--spring), visibility 0s; }

.eyebrow { font-size: clamp(12px, 1.5vmin, 17px); letter-spacing: .32em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
h1, h2 { line-height: .95; }
h2 { font-size: clamp(38px, 6.6vmin, 88px); text-align: center; }
h3 { font-size: clamp(20px, 2.6vmin, 30px); font-weight: 800; letter-spacing: -.01em; }
.lede { color: var(--muted); font-size: clamp(18px, 2.4vmin, 26px); line-height: 1.4; }

/* Buttons */
.cta { display: inline-flex; align-items: center; gap: var(--s3); background: var(--accent); color: var(--on-accent); border-radius: 999px;
  padding: 0 14px 0 44px; height: clamp(80px, 12vh, 112px); font-weight: 800; font-size: clamp(24px, 3.6vmin, 40px); letter-spacing: .01em;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); transition: transform var(--fast); }
.cta i { display: grid; place-items: center; width: clamp(56px, 8.6vh, 84px); aspect-ratio: 1; border-radius: 50%; background: var(--on-accent); color: var(--accent); font-size: .9em; }
.cta:active { transform: scale(.96); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
/* Roulette: random poses, no live view. Red and text-only, so it reads as the wild card next to Start. */
.cta.roulette, body[data-style=nthbd] .cta.roulette { background: #c8102e; color: #fff; padding: 0 44px; }
.roulette-note { margin: 10px 0 0; font-size: clamp(12px, 1.4vmin, 16px); color: var(--muted); letter-spacing: .02em; }
.ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 32px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--muted); letter-spacing: .18em; text-transform: uppercase; font-size: 14px; font-weight: 700; transition: background var(--fast); }
.ghost:active { background: rgba(255,255,255,.08); }
.act { min-height: 84px; padding: 0 var(--s3); border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; gap: var(--s2); font-size: clamp(18px, 2.4vmin, 26px); font-weight: 800; text-align: left;
  transition: transform var(--fast), background var(--fast); }
.act > svg { font-size: 1.5em; }
.act span { display: flex; flex-direction: column; gap: 2px; }
.act small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.act.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.act.primary small { color: color-mix(in srgb, var(--on-accent) 72%, transparent); }
.act:active { transform: scale(.97); }
.act:disabled { opacity: .5; }

/* Attract */
#attract { align-items: flex-start; justify-content: flex-end; padding: 0 0 13vh 6vw; }
.hero { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); max-width: 44vw; }
#attract h1 { font-size: clamp(60px, 11vmin, 160px); }
#attract .lede { margin-top: -6px; }
#attract.on .hero > * { animation: rise .9s var(--spring) both; }
#attract.on .hero > :nth-child(2) { animation-delay: .05s } #attract.on .hero > :nth-child(3) { animation-delay: .1s } #attract.on .hero > :nth-child(4) { animation-delay: .15s }
#attract.on .hero > :nth-child(6) { animation-delay: .25s }
#attract.on .hero #startBtn { animation: glow 2.8s ease-out 1.4s infinite; } /* by class: the glow belongs to the button, whatever its position */
@keyframes rise { from { opacity: 0; transform: translateY(28px) } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent), 0 24px 60px rgba(0,0,0,.45) }
  70%, 100% { box-shadow: 0 0 0 30px transparent, 0 24px 60px rgba(0,0,0,.45) } }
.chips { display: flex; gap: var(--s1); flex-wrap: wrap; }
.chip { padding: 12px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(12px); font-weight: 700; letter-spacing: .06em; font-size: clamp(14px, 1.8vmin, 19px); }
.chip b { color: var(--accent-text); }
.how { position: absolute; left: 6vw; bottom: 4.5vh; list-style: none; display: flex; gap: var(--s4); color: var(--muted); font-size: clamp(13px, 1.7vmin, 17px); font-weight: 600; letter-spacing: .06em; }
.how li { display: flex; align-items: center; gap: 10px; }
.how b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px; }
/* With no photos yet, the attract screen shows passers-by inside a real print, live */
#mirror { position: absolute; right: 9vw; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--s2); pointer-events: none; }
#mirror canvas { height: 66vh; width: auto; border-radius: 6px; box-shadow: 0 40px 90px rgba(0,0,0,.7); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(3deg) translateY(0) } 50% { transform: rotate(1.5deg) translateY(-12px) } }

/* Full-screen venue advert ("Your deal at …"): covers the start screen; a tap still starts a session */
#takeover { position: absolute; inset: 0; z-index: 4; animation: fade .7s ease both; }
.tk-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#takeover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 45%, transparent 75%); }
.tk-copy { position: absolute; z-index: 1; left: 6vw; bottom: 11vh; max-width: 64vw; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
#tkTitle { font-size: clamp(56px, 10vmin, 140px); line-height: .95; }
.tk-cta { display: flex; align-items: center; gap: 12px; font-size: clamp(16px, 2.2vmin, 22px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tk-cta svg { color: var(--accent-text); font-size: 1.4em; }

/* Between sessions: tonight's boomerangs on the right half */
#reel { position: absolute; left: 50%; right: 3vw; top: 12vh; bottom: 8vh; pointer-events: none; }
#reel video { position: absolute; aspect-ratio: 4 / 5; border: 6px solid #fff; border-radius: 14px; background: #000; object-fit: cover;
  box-shadow: 0 40px 90px rgba(0,0,0,.7); transition: opacity .6s ease; }
#reel.one video { left: 50%; top: 50%; height: 88%; translate: -50% -50%; rotate: 2.5deg; }
#reel.two video { height: 76%; }
#reel.two video:nth-of-type(1) { left: 0; top: 0; rotate: -3.5deg; }
#reel.two video:nth-of-type(2) { right: 0; bottom: 4%; rotate: 3deg; }
#reel > * { animation: fade .6s ease both; }
#reel.ad > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.showtag { font-size: 15px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
#reel .showtag { position: absolute; left: 50%; bottom: -3vh; translate: -50% 0; white-space: nowrap; z-index: 2; }
.when { font-size: clamp(20px, 2.8vmin, 30px); font-weight: 700; letter-spacing: .01em; }
.when:empty { display: none; }

/* Pay */
#payTitle { font-size: clamp(54px, 10vmin, 130px); }
.meter { width: min(640px, 70vw); height: 14px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
#payBar { height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width var(--slow) var(--spring); }
.paysub { color: var(--muted); font-size: clamp(16px, 2.2vmin, 24px); }
.payways { display: flex; gap: var(--s3); margin-top: var(--s1); max-width: 94vw; }
.payways div { width: clamp(190px, 24vw, 340px); flex: 0 1 auto; min-width: 0; padding: var(--s4) var(--s3); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; align-items: center; gap: var(--s1); text-align: center; }
.payways b { font-size: clamp(19px, 2.6vmin, 28px); }
.payways small { color: var(--muted); font-size: 15px; }
#payQr { width: clamp(120px, 17vmin, 190px); height: auto; aspect-ratio: 1; background: #fff; padding: 8px; border-radius: 6px; margin-bottom: 4px; }
.ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: 38px; margin-bottom: 4px; }

/* Capture: a framing window shows exactly what lands on the print */
#capture { justify-content: flex-start; padding: var(--s3) 4vw var(--s3); }
.lookup { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(12px); font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: clamp(13px, 1.8vmin, 18px); z-index: 3; }
.lookup svg { color: var(--accent); font-size: 1.4em; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) } }
#frame { position: absolute; left: 50%; top: 48%; height: 74vh; aspect-ratio: var(--frame, .757); transform: translate(-50%, -50%); border-radius: 18px;
  box-shadow: 0 0 0 100vmax rgba(5, 5, 7, .62); pointer-events: none; transition: aspect-ratio var(--med); }
#frame i { position: absolute; width: 46px; height: 46px; border: 4px solid var(--text); opacity: .9; }
#frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
#frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
#frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
#frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
#freeze { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 18px; opacity: 0; }
#freeze.on { animation: freeze 1.1s ease-out; }
@keyframes freeze { 0%, 70% { opacity: 1 } 100% { opacity: 0 } }
#countWrap { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); width: 34vmin; aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); opacity: 0; }
.ring circle { fill: rgba(0,0,0,.35); stroke: var(--accent); stroke-width: 6; stroke-dasharray: 339.3; stroke-dashoffset: 0; }
#countWrap.tick .ring { opacity: 1; }
#countWrap.tick .ring circle { animation: drain 1s linear forwards; }
#count { font-size: 22vmin; line-height: 1; text-shadow: 0 10px 50px rgba(0,0,0,.6); position: relative; }
#count.pop { animation: pop .9s var(--spring); }
#count.word { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 11vmin; color: var(--accent-text); white-space: nowrap; } /* wider than the ring: centre on the frame */
@keyframes pop { 0% { transform: scale(1.8); opacity: 0 } 25% { transform: scale(1); opacity: 1 } 100% { transform: scale(.94) } }
#prompt { position: absolute; bottom: 17vh; font-size: clamp(30px, 5vmin, 60px); text-shadow: 0 6px 30px rgba(0,0,0,.7); }
#prompt.swap { animation: rise .5s var(--spring); }
#prompt::before { content: attr(data-step); display: block; margin-bottom: 1.6vh; font-size: max(13px, .3em); letter-spacing: .3em; color: var(--accent-text); text-shadow: none; }
#prompt[data-step=""]::before { display: none; }
/* Pose prompts: no live view, just the pose to pull, big, and the countdown */
body[data-screen=capture][data-capture=prompts] #live { visibility: hidden; }
body[data-capture=prompts] #capture :is(#frame, .lookup) { display: none; }
body[data-capture=prompts] #prompt { top: 13vh; bottom: auto; left: 5vw; right: 5vw; text-align: center; text-transform: uppercase; line-height: .92; font-size: clamp(56px, 13vmin, 180px); }
body[data-capture=prompts] #countWrap { top: 66%; }
#rec { position: absolute; top: var(--s4); right: var(--s4); display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; }
#rec i { width: 14px; height: 14px; border-radius: 50%; background: #ff3b30; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2 } }
#shots { position: absolute; bottom: var(--s3); display: flex; gap: 12px; }
#shots i, #shots canvas { width: clamp(64px, 9vh, 104px); aspect-ratio: .757; border-radius: 10px; border: 2px dashed rgba(255,255,255,.4); background: rgba(0,0,0,.3); }
#shots canvas { border: 3px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: snap .6s var(--spring); }
@keyframes snap { from { transform: translateY(-40vh) scale(2.2) rotate(-8deg); opacity: 0 } }
#shots .boom { display: grid; place-items: center; font-size: 30px; color: var(--muted); }
#shots .boom.now { border-style: solid; border-color: var(--accent); color: var(--accent); }

/* Review + Done share the stage/panel layout */
#done { flex-direction: row; gap: 4.5vw; padding: 13vh 5vw 4vh; }
.stage { position: relative; height: 80vh; aspect-ratio: 2 / 3; flex-shrink: 0; display: grid; place-items: center; }
.stage img { height: 100%; width: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 40px 100px rgba(0,0,0,.7); transform: rotate(-2deg); }
#done.on #preview { animation: eject 1.1s var(--spring) both; }
@keyframes eject { from { transform: translateY(-105vh) rotate(6deg) } }
#loop { position: absolute; left: -14%; bottom: 21%; width: 44%; height: auto; border-radius: 16px; border: 5px solid #fff; transform: rotate(-5deg); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
#done.on #loop { animation: rise .8s var(--spring) .6s both; }
.panel { width: min(580px, 42vw); display: flex; flex-direction: column; gap: 14px; }
.panel:has(#frames:not([hidden])) .copies { display: none; } /* frames row takes the space; 1 copy per tap */
.on .panel { animation: rise .8s var(--spring) .2s both; }
.panel h2 { text-align: left; font-size: clamp(38px, 5.8vmin, 72px); }
.panel h3 { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
/* look toggle: one segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.seg button { min-height: 50px; padding: 0 8px; font-size: clamp(12px, 1.6vmin, 15px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background var(--fast), color var(--fast); }
.seg button + button { border-left: 1.5px solid var(--line); }
.seg button[aria-pressed=true] { background: #fff; color: #000; }
#frames button[aria-pressed=true] { background: var(--accent); color: var(--on-accent); }
.link { font-family: ui-monospace, "Roboto Mono", Menlo, monospace; font-size: 14px; color: var(--accent-text); word-break: break-all; }
.retakes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.retakes button { position: relative; border-radius: 14px; overflow: hidden; }
.retakes canvas { width: 100%; aspect-ratio: .757; display: block; }
.retakes svg { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; }
.retakes button:disabled { opacity: .35; }
#retakesLeft { color: var(--accent-text); }
.ringbtn { width: 38px; height: 38px; transform: rotate(-90deg); }
.ringbtn circle { fill: none; stroke: currentColor; stroke-width: 3; stroke-dasharray: 100.5; stroke-dashoffset: 0; opacity: .8; }
.tick .ringbtn circle { animation: drain var(--t, 30s) linear forwards; }
@keyframes drain { to { stroke-dashoffset: 100.5 } }
.done .ringbtn circle { stroke: var(--accent); }

.qrbox { display: flex; align-items: center; gap: var(--s3); padding: var(--s2); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(18px); }
#qr { width: clamp(110px, 16vh, 180px); height: auto; border-radius: 14px; background: #fff; }
.qrbox p { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.qrbox b { color: var(--text); font-size: clamp(21px, 2.8vmin, 30px); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions .primary { grid-column: 1 / -1; min-height: 92px; font-size: clamp(26px, 3.8vmin, 40px); }
#fbBtn { grid-column: 1 / -1; }
.copies { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: var(--s3); font-weight: 800; font-size: 24px; }
.copies button { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); font-size: 30px; }
.copies small { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .1em; margin-left: 6px; }
.done { background: none; }

/* Printing moment */
#printing { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2);
  background: rgba(8, 8, 10, .86); backdrop-filter: blur(10px); animation: fade var(--med); text-align: center; }
#printing .slot { position: relative; width: 32vh; height: 36vh; overflow: hidden; display: flex; justify-content: center; padding-top: 10px; }
#printing .slot::before { content: ''; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 16px; border-radius: 10px; background: linear-gradient(#3a3a42, #1c1c21); box-shadow: 0 6px 18px rgba(0,0,0,.6), inset 0 -4px 0 #000; }
#printing .slot img { width: 26vh; height: auto; box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: feed var(--eta, 20s) linear forwards; }
@keyframes feed { from { transform: translateY(-100%) } to { transform: translateY(0) } }
#printing h3 { font-size: clamp(34px, 5vmin, 60px); }
#printing p { color: var(--muted); font-size: 20px; }
#printing p b { color: var(--text); }
#printing .down { font-size: 54px; color: var(--accent); animation: bob 1s ease-in-out infinite; }

/* Scan to download */
#scan { flex-direction: row; gap: 5vw; padding: 11vh 5vw 5vh; }
.qrbig { flex-shrink: 0; padding: 2.2vh; background: #fff; border-radius: 24px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent), 0 40px 100px rgba(0,0,0,.7); }
#bigqr { display: block; width: 66vh; height: 66vh; }
#scan.on .qrbig { animation: rise .8s var(--spring) both; }
.scancopy { display: flex; flex-direction: column; gap: 18px; max-width: 42vw; }
.scancopy h2 { text-align: left; font-size: clamp(40px, 6.6vmin, 84px); }
.link.big { font-size: clamp(16px, 2.2vmin, 24px); font-weight: 700; color: var(--text); padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: 12px; width: fit-content; }
.scanthumbs { display: flex; align-items: flex-end; gap: 14px; }
#scanPrint { height: 20vh; border-radius: 3px; box-shadow: 0 14px 36px rgba(0,0,0,.6); transform: rotate(-2deg); }
#scanLoop { height: 15vh; width: auto; border-radius: 10px; border: 3px solid #fff; transform: rotate(3deg); box-shadow: 0 14px 36px rgba(0,0,0,.6); }
.scansteps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: clamp(15px, 1.9vmin, 19px); font-weight: 700; }
.scansteps li { display: flex; align-items: center; gap: 10px; }
.scansteps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 16px; flex-shrink: 0; }
.reviewnote { color: var(--muted); font-size: 15px; }
.reviewnote::before { content: '★ '; color: #f5c518; }
.scancopy .row { display: flex; gap: 12px; margin-top: var(--s1); }
.scancopy .row .act { flex: 1; min-height: 80px; }
.scancopy .row .ghost { min-height: 80px; }
#scanDone .ringbtn circle { stroke: var(--on-accent); }
.thanks { color: var(--muted); font-size: 16px; letter-spacing: .04em; }
.qrbox[role=button] { cursor: pointer; }

/* Oops */
.big-check, .big-alert { width: 120px; height: 120px; padding: 26px; border-radius: 50%; stroke-width: 2.4; }
.big-check { background: var(--accent); color: var(--on-accent); }
.big-alert { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
#oops .lede { text-align: center; max-width: 60vw; }

/* Develop */
.spinner { width: 84px; height: 84px; border-radius: 50%; border: 6px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* Sheets */
.sheet { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); animation: fade var(--fast); }
@keyframes fade { from { opacity: 0 } }
.card { width: min(720px, 90vw); padding: var(--s5); border-radius: 32px; background: var(--surface-solid); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s3); animation: rise .5s var(--spring); }
.card p { color: var(--muted); font-size: 18px; line-height: 1.45; }
.card p b { color: var(--text); }
.card .row { display: flex; gap: 12px; justify-content: flex-end; }
.card .row .act { min-width: 200px; min-height: 72px; }
#emailInput, .card input, .card select { width: 100%; height: 80px; padding: 0 var(--s3); border-radius: 20px; border: 2px solid var(--line); background: var(--bg); font-size: 28px; outline: none; }
#emailInput:focus { border-color: var(--accent); }
.domains { display: flex; flex-wrap: wrap; gap: 10px; }
.domains button { min-height: 52px; padding: 0 18px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 17px; font-weight: 600; }
#sentList { list-style: none; display: flex; flex-direction: column; gap: 6px; }
#sentList li { color: var(--accent); font-weight: 700; }
#sentList li::before { content: '✓  '; }
.fine { font-size: 14px !important; }

/* Staff */
.card.staff { width: min(820px, 94vw); max-height: 92vh; overflow: auto; }
#pinDots { display: flex; gap: var(--s2); justify-content: center; height: 24px; }
#pinDots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); }
#pinDots i.on { background: var(--accent); border-color: var(--accent); }
.pad { display: grid; grid-template-columns: repeat(3, 96px); gap: 14px; justify-content: center; }
.pad button { height: 96px; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 34px; font-weight: 700; }
.pad button:active { background: var(--accent); color: var(--on-accent); }
.staff label { display: flex; flex-direction: column; gap: var(--s1); color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.staff .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#serialBox h4 { margin: var(--s2) 0 var(--s1); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#serialLog { margin: 12px 0 0; max-height: 220px; overflow: auto; padding: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre; color: var(--fg, #fff); }
/* The big outline NTHBD above the headline; it stands in for the corner logo on the start screen. */
.promo { position: absolute; top: 11vh; left: 5vw; z-index: 0; pointer-events: none; font: 900 clamp(120px, 22vmin, 280px)/.85 var(--display-font, Roboto, Inter, sans-serif); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.28); animation: rise 1.1s var(--spring) .2s both; }
body[data-screen=attract]:has(#promo:not([hidden])) #brand { visibility: hidden; }
@media (max-height: 700px) { .promo { display: none; } }
#attract .consent { max-width: 46vw; margin: 14px 0 0; font-size: clamp(11px, 1.25vmin, 14px); line-height: 1.45; color: var(--muted); opacity: .85; }
#diag { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 16px; }
#diag dt { color: var(--muted); } #diag dd { font-weight: 700; }

#hot { position: fixed; top: 0; left: 0; width: 100px; height: 100px; z-index: 40; opacity: 0; }
#toast { position: fixed; left: 50%; bottom: 5vh; transform: translate(-50%, 40px); opacity: 0; z-index: 60; padding: 18px 28px; border-radius: 99px;
  background: var(--text); color: #111; font-weight: 700; font-size: 18px; transition: var(--med) var(--spring); pointer-events: none; max-width: 86vw; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- NTHBD brand style (as on nthbd.ca): boxed headlines, tilted brand-colour labels, square corners, doodles ---------- */
#doodles { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--slow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 32c10-14 22 8 34-6'/%3E%3Cpath d='M150 18c6 12 20 2 24 16'/%3E%3Cpath d='M92 96c12 4 10 20 26 16'/%3E%3Cpath d='M214 104c-8 12 4 22-6 34'/%3E%3Cpath d='M28 170c14-8 22 8 36-2'/%3E%3Cpath d='M136 180c4 14 20 8 22 24'/%3E%3Cpath d='M196 226c10-8 22 4 32-4'/%3E%3Cpath d='M60 236l8-10 8 10'/%3E%3Ccircle cx='74' cy='60' r='3'/%3E%3Ccircle cx='226' cy='54' r='3'/%3E%3Ccircle cx='112' cy='238' r='3'/%3E%3Ccircle cx='182' cy='140' r='2.5'/%3E%3C/svg%3E"); }
body[data-style=nthbd]:not([data-screen=capture]) #doodles { opacity: .1; }
body[data-screen=capture] #grain { opacity: 0; }
body[data-style=nthbd] { --sans: Roboto, Inter, "Helvetica Neue", Arial, sans-serif; --r: 2px; --glow2: #c8b48c; }
body[data-style=nthbd] :is(h1, h2).display { width: fit-content; background: #fff; color: #000; padding: .1em .24em .06em; line-height: 1; transform: rotate(-1.5deg); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
body[data-style=nthbd] .panel h2.display { margin-left: 6px; }
body[data-style=nthbd] #pay h2, body[data-style=nthbd] #oops h2, body[data-style=nthbd] #develop h2 { margin: 0 auto; }
body[data-style=nthbd] #attract h1 { font-size: clamp(56px, 9vmin, 130px); }
body[data-style=nthbd] .when { text-transform: uppercase; }
body[data-style=nthbd] .eyebrow { display: inline-block; width: fit-content; background: var(--accent); color: var(--on-accent); padding: .7em 1.1em; letter-spacing: .14em; transform: rotate(-1.5deg); }
body[data-style=nthbd] #brand { background: #fff; color: #222; padding: 10px 16px 9px; letter-spacing: .2em; font-weight: 400; font-size: clamp(20px, 2.8vmin, 30px); line-height: 1; }
body[data-style=nthbd] #brand:has(img) { background: none; padding: 0; }
body[data-style=nthbd] #brand small { color: #c8b48c; font-weight: 500; letter-spacing: .55em; font-size: .32em; margin-top: 5px; }
body[data-style=nthbd] .qrbig, body[data-style=nthbd] .seg, body[data-style=nthbd] .link.big { border-radius: 2px; }
body[data-style=nthbd] .scansteps b { border-radius: 2px; }
body[data-style=nthbd] :is(.cta, .act, .ghost, .chip, .payways div, .qrbox, .card, .domains button, #status span, .copies button, .retakes button, #qr, #emailInput, .card input, .card select) { border-radius: 2px; }
body[data-style=nthbd] .cta { padding: 0 12px 0 40px; text-transform: uppercase; font-weight: 900; letter-spacing: .02em; }
body[data-style=nthbd] .cta i { border-radius: 2px; }
body[data-style=nthbd] .act b { text-transform: uppercase; font-weight: 900; letter-spacing: -.01em; }
body[data-style=nthbd] .ghost { border-color: #fff; color: #fff; }
body[data-style=nthbd] .how b { border-radius: 2px; background: var(--accent); color: var(--on-accent); border: 0; }
body[data-style=nthbd] #steps li.on::after { border-radius: 0; }
body[data-style=nthbd] .showtag { background: var(--accent); color: var(--on-accent); padding: .6em 1em; transform: rotate(-1.5deg); }

/* Portrait screens stack */
@media (orientation: portrait) {
  #done, #scan { flex-direction: column; padding-top: 9vh; } .stage { height: 40vh; } .panel { width: 88vw; } #bigqr { width: 44vh; height: 44vh; } .scancopy { max-width: 88vw; }
  .payways { flex-direction: column; } #reel, .how, #mirror { display: none; } .hero { max-width: 90vw; } #steps { display: none; }
}

/* Printing via the Android dialog: only the 4x6 goes to paper */
#printArea { display: none; }
@page { size: 4in 6in; margin: 0; }
@media print {
  body > *:not(#printArea) { display: none !important; }
  html, body { background: #fff; height: auto; overflow: visible; }
  #printArea { display: block; width: 4in; height: 6in; } #printArea img { width: 100%; height: 100%; display: block; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
