/* GreenBooth — sized for a phone in landscape mirrored to a touch monitor.
   1rem ≈ 1/41 of the screen height (≈10px on a Pixel in landscape), so everything scales with the display. */

@font-face { font-family: "Montserrat"; font-weight: 400; src: url(../fonts/montserrat-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 600; src: url(../fonts/montserrat-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 800; src: url(../fonts/montserrat-800.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Playfair Display"; font-weight: 400; src: url(../fonts/playfair-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Playfair Display"; font-weight: 700; src: url(../fonts/playfair-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Great Vibes"; font-weight: 400; src: url(../fonts/great-vibes.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; src: url(../fonts/cormorant-600.woff2) format("woff2"); }
@font-face { font-family: "Pacifico"; font-weight: 400; src: url(../fonts/pacifico.woff2) format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-weight: 400; src: url(../fonts/bebas-neue.woff2) format("woff2"); }
@font-face { font-family: "Mountains of Christmas"; font-weight: 700; src: url(../fonts/mountains-of-christmas-700.woff2) format("woff2"); }
@font-face { font-family: "Creepster"; font-weight: 400; src: url(../fonts/creepster.woff2) format("woff2"); }

:root {
  --ink: #0b0b0e; --panel: #16161b; --panel-hi: #24242c; --line: rgba(255,255,255,.16);
  --text: #f5f1e8; --muted: #a7a29a; --accent: #ffc857; --good: #3ddc97; --bad: #ff6b6b;
  --sans: "Montserrat", system-ui, sans-serif; --display: "Playfair Display", Georgia, serif;
  color-scheme: dark;
}
html { font-size: calc(min(calc(100vh / 41.2), calc(100vw / 80)) * var(--sk, 1)); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--sans); overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
#video { position: fixed; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: -10px; top: -10px; }

.screen { position: fixed; inset: 0; display: none; }
/* Phones and tablets: every screen stays inside the safe area (clear of the clock / Dynamic Island, rounded corners and
   the home bar), and uses the height that's actually visible as the browser's bars come and go. */
.screen { top: env(safe-area-inset-top, 0px); right: env(safe-area-inset-right, 0px); bottom: env(safe-area-inset-bottom, 0px); left: env(safe-area-inset-left, 0px); }
@supports (height: 100dvh) { .screen { bottom: auto; height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); } }
.screen.on { display: flex; animation: fadeIn .26s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.center-col { flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.center-row { align-items: center; justify-content: center; gap: 5rem; }
.display { font-family: var(--display); font-weight: 400; margin: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 1.2rem; }
.error { color: var(--bad); font-size: 1.4rem; min-height: 1.6rem; margin: .4rem 0; }
.eyebrow { font-size: 1.3rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 5.4rem; padding: .8rem 2rem;
  border-radius: 1.6rem; border: 0; background: var(--accent); color: #111; font-weight: 800; font-size: 1.7rem; transition: transform .08s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { background: var(--panel-hi); color: var(--muted); }
.btn.ghost { background: transparent; color: var(--text); border: .15rem solid var(--line); font-weight: 600; }
.btn.big { min-height: 6.4rem; font-size: 1.9rem; }
.btn.small { min-height: 4.2rem; font-size: 1.4rem; padding: .6rem 1.4rem; border-radius: 1.2rem; }
.close { position: absolute; top: 1rem; left: 1rem;
  width: max(4.6rem, 48px); height: max(4.6rem, 48px); border-radius: 50%; border: .15rem solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.14); color: #fff; font-size: max(1.8rem, 20px); font-weight: 700; z-index: 5;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.4); -webkit-tap-highlight-color: transparent; }
.close:active { background: rgba(255,255,255,.28); }
.close.flip { left: auto; right: 1rem; font-size: max(2.2rem, 24px); }

.spin { width: 5.6rem; height: 5.6rem; border-radius: 50%; border: .45rem solid rgba(255,255,255,.14); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.render-msg { font-size: 2rem; font-weight: 600; }

/* ---------------------------------------------------------- connect */
#s-connect { align-items: center; justify-content: center; }
.connect-card { width: min(46rem, 90vw); display: flex; flex-direction: column; gap: 1.2rem; text-align: center; }
.connect-card h1 { font-size: 4.4rem; }
.connect-card input, .field input, .field select, .field textarea { width: 100%; padding: 1.2rem 1.4rem; border-radius: 1.2rem; border: .15rem solid var(--line);
  background: var(--panel); color: var(--text); font-size: 1.6rem; outline: none; user-select: text; -webkit-user-select: text; }
.connect-card input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

/* ---------------------------------------------------------- attract */
#s-attract { overflow: hidden; cursor: pointer; }
.slides, .slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide { object-fit: cover; opacity: 0; transition: opacity 1.4s ease; animation: kenburns 14s ease-in-out infinite alternate; }
.slide.show { opacity: 1; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6) 55%, rgba(0,0,0,.9)); }
.attract-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 4rem; }
#aTitle { font-size: 7rem; font-weight: 400; margin: 0; line-height: 1.1; text-shadow: 0 .4rem 2.4rem rgba(0,0,0,.5); max-width: 90vw; }
#aSub { color: rgba(255,255,255,.85); margin-top: 1rem; }
.cta { margin-top: 3.4rem; padding: 1.7rem 3.6rem; border-radius: 99rem; background: var(--accent); color: #111; font-weight: 800;
  font-size: 1.9rem; letter-spacing: .12em; text-transform: uppercase; animation: pulse 1.8s ease-in-out infinite; box-shadow: 0 1rem 4rem rgba(255,200,87,.25); }
@keyframes pulse { 50% { transform: scale(1.06); } }
.attract-foot { position: absolute; bottom: 3.8rem; left: 0; right: 0; padding: 0 2rem; text-align: center; font-size: 1.35rem; line-height: 1.35; color: rgba(255,255,255,.78); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
#corner { position: absolute; top: 0; left: 0; width: 8rem; height: 8rem; }
.offline-badge { position: absolute; top: 1.4rem; right: 1.4rem; padding: .6rem 1.2rem; border-radius: 99rem; background: rgba(0,0,0,.6);
  font-size: 1.2rem; color: var(--accent); border: .1rem solid var(--line); }

/* ---------------------------------------------------------- mode */
#s-mode { flex-direction: column; align-items: center; padding: 2rem 2rem 2.4rem; gap: 1.6rem; }
#s-mode h2 { font-size: 3.4rem; }
.mode-row { flex: 1; display: flex; gap: 2rem; width: 100%; min-height: 0; }
.mode-card { flex: 1.4; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.4rem; border-radius: 2.2rem;
  background: var(--panel); border: .1rem solid var(--line); min-height: 0; }
.mode-card:active { transform: scale(.98); }
.mode-art { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.mode-art canvas { max-width: 100%; max-height: 100%; box-shadow: 0 .8rem 2.4rem rgba(0,0,0,.5); }
.mode-card b { font-size: 2rem; font-weight: 800; margin-top: .8rem; }
.mode-card span { color: var(--muted); font-size: 1.3rem; }

/* ---------------------------------------------------------- shoot */
#s-shoot { padding: 1rem; gap: 1.2rem; }
.stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.frame-box { position: relative; background: #000; border-radius: .6rem; overflow: hidden; box-shadow: 0 1.6rem 4rem rgba(0,0,0,.6); }
.photo-win { position: absolute; overflow: hidden; }
.photo-win canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#countdown { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  font-weight: 800; font-size: 17rem; color: #fff; text-shadow: 0 .6rem 3rem rgba(0,0,0,.6); }
#countdown.tick { animation: tick .9s ease-out; }
@keyframes tick { from { transform: scale(1.8); opacity: 0; } 20% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
.busy { position: absolute; inset: 0; background: rgba(0,0,0,.65); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  font-size: 2rem; font-weight: 600; }
.stage-msg { position: absolute; color: var(--muted); font-size: 1.6rem; text-align: center; max-width: 80%; pointer-events: none; }

.panel { width: 27rem; display: flex; flex-direction: column; min-height: 0; }
.panel-top { display: flex; align-items: center; justify-content: space-between; min-height: 1.8rem; }
.dots { display: flex; gap: .5rem; }
.dots i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--panel-hi); }
.dots i.done { background: var(--accent); }
#shootTitle { font-size: 2.4rem; margin: .4rem 0 .8rem; }
.bg-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; gap: .8rem; align-content: start; padding: .2rem; }
.bg-grid button { position: relative; display: block; padding: 0; border: .15rem solid var(--line); border-radius: 1.2rem; overflow: hidden; background: #222; }
.bg-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; pointer-events: none; }
.bg-grid button.sel { border: .3rem solid var(--accent); }
.bg-grid button.sel::after { content: "✓"; position: absolute; top: .5rem; right: .5rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: #111; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.panel-actions { display: flex; gap: .8rem; margin-top: 1rem; }
.panel-actions .btn { flex: 1; }
#nextBtn { flex: 1.4; }
#reviewActions .btn { font-size: 1.55rem; white-space: nowrap; padding: .8rem 1.2rem; }

/* ---------------------------------------------------------- share */
#s-share { padding: 1.2rem; gap: 1.4rem; }
.result { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.result img { max-width: 100%; max-height: 100%; box-shadow: 0 1.6rem 5rem rgba(0,0,0,.7); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.share-panel { width: 31rem; gap: 1rem; overflow-y: auto; }
.share-panel h3 { font-size: 3rem; }
.qr-card { display: flex; gap: 1.2rem; align-items: center; padding: 1.2rem; border-radius: 1.8rem; background: var(--panel); border: .1rem solid var(--line); }
.qr-card > div:last-child { display: flex; flex-direction: column; gap: .4rem; font-size: 1.5rem; }
.qr-card .muted { font-size: 1.2rem; }
.qr { width: 14rem; height: 14rem; flex: none; background: #fff; border-radius: 1rem; padding: .6rem; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.status { font-size: 1.3rem; color: var(--muted); min-height: 1.6rem; }
.status.good { color: var(--good); }
.status.bad { color: var(--bad); }
.print-row { display: flex; gap: .8rem; }
.print-row .btn { flex: 1; }
.stepper { display: flex; align-items: center; background: var(--panel-hi); border-radius: 1.6rem; }
.stepper button { width: 4.4rem; height: 5.4rem; border: 0; background: none; font-size: 2.4rem; }
.stepper span { min-width: 1.6rem; text-align: center; font-weight: 800; font-size: 1.8rem; }

/* ---------------------------------------------------------- pin + keypad */
.pin-side { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.pin-side h2 { font-size: 3rem; }
.pin-dots { display: flex; gap: 1.2rem; }
.pin-dots i { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--panel-hi); }
.pin-dots i.on { background: var(--accent); }
.keypad { display: grid; grid-template-columns: repeat(3, 8.4rem); gap: .8rem; }
.keypad button { height: 5.8rem; border-radius: 1.4rem; border: 0; background: var(--panel-hi); font-size: 2.4rem; font-weight: 600; }
.keypad button:active { background: var(--line); }
.keypad .blank { visibility: hidden; }

/* ---------------------------------------------------------- overlays */
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 50; }
#flash.go { animation: flash .55s ease-out; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
#toast { position: fixed; bottom: 2.4rem; left: 50%; transform: translateX(-50%); background: rgba(30,30,34,.96); padding: 1rem 2rem;
  border-radius: 99rem; font-weight: 600; font-size: 1.5rem; z-index: 60; border: .1rem solid var(--line); max-width: 80vw; text-align: center; }

/* ---------------------------------------------------------- settings */
#s-settings { background: var(--ink); }
.set-nav { width: 22rem; background: var(--panel); padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; overflow-y: auto; }
.set-nav h2 { font-size: 2.2rem; padding: .6rem; }
.set-nav button.tab { text-align: left; padding: 1.1rem 1.2rem; border-radius: 1rem; border: 0; background: none; font-weight: 600; font-size: 1.45rem; }
.set-nav button.tab.on { background: var(--accent); color: #111; }
.set-nav .btn { margin-top: auto; position: sticky; bottom: 0; flex: none; box-shadow: 0 -1rem 1.6rem var(--panel); }
.set-nav button.tab { flex: none; }
.set-body { flex: 1; overflow-y: auto; padding: 1.6rem 2.4rem 6rem; user-select: text; }
.set-body h2 { font-size: 2.6rem; margin-bottom: 1.2rem; }
.set-body h4 { color: var(--accent); font-size: 1.5rem; font-weight: 800; margin: 2rem 0 .6rem; }
.label { font-size: 1.2rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin: 1.2rem 0 .6rem; }
.hint { color: var(--muted); font-size: 1.25rem; line-height: 1.5; margin: .4rem 0; }
.cols { display: flex; gap: 2rem; align-items: flex-start; }
.cols > .grow { flex: 1; min-width: 0; }
.cols > .side { flex: 0 0 36rem; min-width: 0; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .8rem; }
.field > span { font-size: 1.25rem; color: var(--muted); }
.row { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 0; }
.row > .txt { flex: 1; }
.row b { font-weight: 600; font-size: 1.45rem; display: block; }
.row small { color: var(--muted); font-size: 1.2rem; }
.switch { position: relative; width: 5.2rem; height: 3rem; border-radius: 99rem; background: var(--panel-hi); border: 0; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: .4rem; left: .4rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #ddd; transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(2.2rem); background: #111; }
.seg { display: flex; background: var(--panel); border-radius: 1.2rem; overflow: hidden; flex: none; }
.seg button { border: 0; background: none; padding: .9rem 1.6rem; font-weight: 600; font-size: 1.4rem; }
.seg button.on { background: var(--accent); color: #111; border-radius: 1.2rem; }
.slider { padding: .6rem 0; }
.slider .top { display: flex; justify-content: space-between; font-size: 1.45rem; font-weight: 600; }
.slider .top span:last-child { color: var(--accent); }
.slider input { width: 100%; accent-color: var(--accent); height: 3rem; }
.themes { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .6rem; }
.theme-card { flex: none; width: 17.6rem; padding: .8rem; border-radius: 1.4rem; background: var(--panel); border: .1rem solid var(--line); text-align: left; }
.theme-card.on { border: .25rem solid var(--accent); background: var(--panel-hi); }
.theme-card canvas { width: 100%; aspect-ratio: 3 / 2; display: block; border-radius: .6rem; background: #000; }
.theme-card b { display: block; font-size: 1.4rem; margin-top: .6rem; }
.theme-card small { color: var(--muted); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.swatches { display: flex; flex-wrap: wrap; gap: .8rem; }
.swatches button { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: .1rem solid var(--line); font-size: 1.1rem; font-weight: 800; }
.swatches button.on { border: .3rem solid var(--accent); }
.preview-pair { display: flex; gap: .8rem; align-items: flex-start; }
.preview-pair canvas { box-shadow: 0 .6rem 2rem rgba(0,0,0,.5); }
.cam-preview { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: #000; }
.cam-preview canvas { width: 100%; height: 100%; display: block; }
.bg-manage { display: flex; flex-wrap: wrap; gap: 1rem; }
.bg-manage .item { width: 15rem; }
.bg-manage .thumb { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 1rem; overflow: hidden; border: .25rem solid var(--accent); padding: 0; background: #222; }
.bg-manage .thumb.hidden-bg { border: .1rem solid var(--line); }
.bg-manage .thumb.hidden-bg img { opacity: .35; }
.bg-manage .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-manage .thumb em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 1.3rem; }
.bg-manage .meta { display: flex; justify-content: space-between; font-size: 1.15rem; color: var(--muted); padding-top: .3rem; }
.bg-manage .meta button { border: 0; background: none; color: var(--bad); font-weight: 700; font-size: 1.15rem; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.sync-stats { display: flex; gap: 1rem; margin: 1rem 0; }
.sync-stats .stat { flex: 1; background: var(--panel); border: .1rem solid var(--line); border-radius: 1.4rem; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .2rem; }
.sync-stats b { font-size: 2.4rem; font-weight: 800; }
.sync-stats span { color: var(--muted); font-size: 1.2rem; }
.info-card { background: var(--panel); border: .1rem solid var(--line); border-radius: 1.6rem; padding: 1.4rem 1.8rem; margin: .4rem 0 1rem; }
.info-title { font-family: var(--display); font-size: 2.4rem; margin-bottom: .6rem; }
.info-row { display: flex; gap: 1.6rem; padding: .5rem 0; font-size: 1.4rem; border-top: .1rem solid var(--line); }
.info-row span { width: 14rem; color: var(--muted); flex: none; }
.set-body .field input { margin-top: .4rem; }

.attract-version { position: absolute; bottom: 1.2rem; left: 1.6rem; font-size: 1rem; color: rgba(255,255,255,.4); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.attract-legal { position: absolute; bottom: 1.2rem; right: 1.6rem; font-size: 1rem; color: rgba(255,255,255,.4); letter-spacing: .04em; }
.legal-line { margin-top: 2rem; padding-top: 1.2rem; border-top: .1rem solid var(--line); color: var(--muted); font-size: 1.2rem; }

/* ---------------------------------------------------------- vertical screen (2.2.0)
   For a touch monitor mounted upright. The booth picks this up automatically whenever the screen is taller than wide;
   the operator chooses Landscape / Portrait / Follow the phone in Settings ▸ Kiosk & help. */
@media (orientation: portrait) {
  html { font-size: calc(min(calc(100vh / 80), calc(100vw / 41.2)) * var(--sk, 1)); }
  @supports (height: 100dvh) { html { font-size: calc(min(calc((100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) / 80), calc(100vw / 41.2)) * var(--sk, 1)); } }
  .attract-center { padding: 0 2.4rem; }
  .attract-foot { bottom: 4.2rem; padding: 0 2rem; }
  #s-mode { padding: 6rem 2rem 2rem; }
  .mode-row { flex-direction: column; gap: 1.6rem; }
  #s-shoot { flex-direction: column; padding: 1rem 1rem 1.4rem; }
  #s-shoot .stage { flex: 1 1 auto; min-height: 0; }
  #s-shoot .panel { width: 100%; flex: 0 0 auto; max-height: 34vh; }
  #s-shoot .bg-grid { grid-template-columns: repeat(4, 1fr); flex: 0 1 auto; }
  #s-shoot .panel-actions .btn { min-height: 6.4rem; font-size: 2.2rem; }
  #s-share { flex-direction: column; padding: 1.4rem; }
  #s-share .result { flex: 1 1 auto; min-height: 0; }
  .share-panel { width: 100%; flex: 0 0 auto; overflow: visible; }
  .share-panel h3 { text-align: center; }
  .qr-card { justify-content: center; }
  .center-row { flex-direction: column; gap: 3rem; }
  #s-settings { flex-direction: column; }
  .set-nav { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; flex: none; max-height: 30vh; }
  .set-nav h2 { width: 100%; }
  .set-nav .btn { margin-top: 0; margin-left: auto; position: static; box-shadow: none; }
  .set-body { width: 100%; min-width: 0; min-height: 0; padding: 1.6rem 1.6rem 6rem; }
  .set-body .row { flex-wrap: wrap; }
  .set-body .seg { flex: 1 1 100%; flex-wrap: wrap; }
  .set-body .seg button { flex: 1 1 auto; }
  .cols { flex-direction: column; align-items: stretch; }
  .cols > .side { flex: none; width: 100%; }
}
#nextBtn.auto { font-variant-numeric: tabular-nums; box-shadow: 0 0 0 .3rem rgba(255,200,87,.35); }

/* booth disconnected by the organiser (2.2.2) */
#s-connect.paused .link-intro, #s-connect.paused #pairBox, #s-connect.paused #linkAlt, #s-connect.paused #linkError { display: none; }
.disc-msg { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.disc-icon { font-size: 4.4rem; opacity: .8; }
.disc-msg h2 { font-size: 3.2rem; }

/* reminder above the shutter while guests get ready */
.pose-tip { margin: .9rem 0 .2rem; padding: .9rem 1.2rem; border-radius: 1rem; background: rgba(255,200,87,.12); border: 1px solid rgba(255,200,87,.35); color: var(--accent, #ffc857); font-weight: 700; font-size: 1.5rem; text-align: center; }

/* Printing on this booth's own printer: only the 4×6 sheet(s) print, edge to edge. */
#printArea { display: none; }
@media print {
  @page { size: 4in 6in; margin: 0; }
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  #printArea img { display: block; width: 4in; height: 6in; object-fit: contain; break-after: page; page-break-after: always; }
  #printArea img:last-child { break-after: auto; page-break-after: auto; }
}

/* dual-screen booths: the touch screen shows photos, ads or pose ideas where the camera would be */
.touch-alt { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  padding: 2rem 2.4rem 6.4rem; background: radial-gradient(120% 90% at 50% 0%, #22202b, var(--ink) 70%); overflow: hidden; }
#countdown { z-index: 3; }
.busy, .stage-msg { z-index: 4; }
.touch-alt .ta-h { font-family: var(--display); font-size: 3.2rem; text-align: center; margin-bottom: 1.4rem; }
.ta-film { width: 100%; display: flex; flex-direction: column; align-items: center; }
.ta-row { position: relative; display: flex; gap: 1.2rem; align-items: center; justify-content: center; width: 100%; padding: 3rem 1.2rem; background: #050506; }
.ta-row::before, .ta-row::after { content: ''; position: absolute; left: 0; right: 0; height: 1.1rem;
  background: repeating-linear-gradient(90deg, transparent 0 .9rem, #f5f1e8cc .9rem 2.1rem, transparent 2.1rem 3rem); border-radius: .2rem; }
.ta-row::before { top: .9rem; } .ta-row::after { bottom: .9rem; }
.ta-frame { margin: 0; flex: 0 1 auto; min-width: 0; animation: taIn .5s ease both; }
.ta-frame img { display: block; height: 22rem; max-width: 100%; width: auto; object-fit: cover; border-radius: .3rem; }
.ta-frame figcaption { text-align: center; font-weight: 700; font-size: 1.5rem; margin-top: .6rem; }
@keyframes taIn { from { opacity: 0; transform: translateY(1rem); } }
.ta-empty { color: var(--muted); font-size: 1.6rem; margin: 6rem 0; }
.ta-slides { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.ta-slide { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; animation: taIn .6s ease both; }
.ta-slide img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: .8rem; box-shadow: 0 1.6rem 4rem rgba(0,0,0,.6); }
.ta-cap { font-size: 1.8rem; font-weight: 600; }
.ta-slide.pose { gap: 1rem; }
.ta-emoji { font-size: 14rem; line-height: 1; }
.ta-slide.pose b { font-family: var(--display); font-size: 4.4rem; font-weight: 400; }
.ta-slide.pose span { color: var(--muted); font-size: 2rem; }
.ta-dots { display: flex; gap: .6rem; margin-top: 1.2rem; }
.ta-dots i { width: .9rem; height: .9rem; border-radius: 50%; background: #ffffff33; }
.ta-dots i.on { background: var(--accent); }
.ta-look { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #111; font-weight: 700; font-size: 1.6rem;
  padding: .7rem 1.6rem; border-radius: 99rem; white-space: nowrap; }

/* lead capture: delivery choice and email form */
.dl-panel { overflow-y: auto; }
#dlChoose { display: flex; flex-direction: column; gap: 1.4rem; }
#dlChoose .btn { width: 100%; justify-content: center; }
.btn.dl-alt { background: var(--panel-hi); color: var(--text); border: 1px solid var(--line); }
#dlForm { display: flex; flex-direction: column; gap: 1rem; }
#dlForm input[type=text], #dlForm input[type=email] { width: 100%; box-sizing: border-box; font-size: 2rem; padding: 1.1rem 1.3rem; border-radius: 1rem; border: 1.5px solid var(--line); background: #0f0f13; color: var(--text); }
#dlForm input:focus { outline: none; border-color: var(--accent); }
.dl-doms { display: flex; gap: .8rem; flex-wrap: wrap; }
.dl-doms button { font-size: 1.6rem; padding: .8rem 1.2rem; border-radius: 99rem; border: 1px solid var(--line); background: var(--panel-hi); color: var(--text); }
.dl-ck { display: flex; gap: 1rem; align-items: center; font-size: 1.6rem; color: var(--text); }
.dl-ck input { width: 2.4rem; height: 2.4rem; accent-color: var(--accent); flex: none; }
.dl-fine { font-size: 1.3rem; color: var(--muted); margin: 0; }
.dl-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.dl-actions .btn { flex: 1 1 14rem; justify-content: center; }
.dl-phone { background: none; border: 0; color: var(--accent); font-size: 1.6rem; font-weight: 600; padding: .6rem 0; text-align: left; }
.dl-qr { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
.dl-qr .qr { width: 22rem; height: 22rem; background: #fff; border-radius: 1.2rem; padding: 1rem; }
.dl-qr .qr svg { width: 100%; height: 100%; display: block; }
.dl-note { font-size: 1.8rem; margin: 0 0 1rem; color: var(--text); }
.dl-panel h3.display { font-size: 2.6rem; line-height: 1.15; margin: 0 0 .4rem; }
#dlForm { gap: .8rem; }
#dlForm input[type=text], #dlForm input[type=email] { font-size: 1.8rem; padding: .9rem 1.1rem; }
.dl-doms { gap: .6rem; flex-wrap: nowrap; overflow-x: auto; }
.dl-doms button { font-size: 1.4rem; padding: .6rem 1rem; white-space: nowrap; }
.dl-ck { font-size: 1.5rem; }
.dl-fine { font-size: 1.2rem; }
#dlErr:empty { display: none; }

/* ---- setup: lighting check and backdrop note */
.light-check { margin-top: .6rem; padding: .55rem .8rem; border-radius: 10px; font-size: .95rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.light-check.good { border-color: rgba(80, 200, 120, .5); }
.light-check.dark, .light-check.backlit, .light-check.bright { border-color: rgba(255, 200, 87, .7); background: rgba(255, 200, 87, .1); }
.bd-note { margin-bottom: .8rem; padding: .7rem .9rem; border-radius: 10px; background: rgba(255, 200, 87, .1); border: 1px solid rgba(255, 200, 87, .45); font-size: .95rem; line-height: 1.4; }

/* "As is" tile: keep the real background (no green-screen swap or cut-out) */
.bg-grid button.asis { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; aspect-ratio: 3 / 2;
  background: repeating-linear-gradient(135deg, #26252b 0 .9rem, #1d1c21 .9rem 1.8rem); color: #f4f1ea; font: inherit; cursor: pointer; }
.asis-ic { font-size: 2.4rem; line-height: 1; }
.asis-t { font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }

/* website demo booth: "Printing is disabled in demo mode" */
.demo-notice { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 24px; }
.demo-notice[hidden] { display: none; }
.demo-notice-box { background: #fff; color: #1a1a1a; border-radius: 22px; padding: 28px 30px; max-width: 420px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.demo-notice-ico { font-size: 40px; margin-bottom: 6px; }
.demo-notice-box p { font-size: 19px; line-height: 1.4; margin: 0 0 18px; }
.hint.warn { color: #ffb86b; } .sync-problems h4 { margin: 1.2rem 0 .4rem; }

/* kiosk booth code */
.code-form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.connect-card .code-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(30px, 8vw, 44px); font-weight: 800; letter-spacing: .35em; text-align: center; text-transform: uppercase; padding: 14px 10px 14px calc(10px + .35em); }
.connect-card .code-input::placeholder { opacity: .35; }
.link-alt { width: 100%; margin-top: 6px; text-align: left; }
.link-alt summary { cursor: pointer; color: var(--muted, #9a948a); font-size: 14px; text-align: center; list-style: none; padding: 6px; }
.link-alt summary::-webkit-details-marker { display: none; }
.link-alt[open] { display: flex; flex-direction: column; gap: 10px; }

/* pair with a phone: QR code + pairing code on the unlinked booth */
.connect-card:has(.pair) { width: min(78rem, 94vw); }
.pair { display: flex; align-items: center; justify-content: center; gap: 3.2rem; flex-wrap: wrap; text-align: left; }
.connect-card:has(.pair) { gap: .9rem; }
.connect-card:has(.pair) h1 { font-size: 3.4rem; }
.pair-qr { background: #fff; padding: 1.2rem; border-radius: 1.4rem; width: min(24rem, 64vw); aspect-ratio: 1; display: grid; place-items: center; color: #111; }
.pair-qr svg { width: 100%; height: 100%; display: block; }
.pair-txt { flex: 1 1 28rem; max-width: 38rem; }
.pair-steps { margin: 0 0 1.4rem; padding-left: 2.2rem; font-size: 1.8rem; line-height: 1.6; }
.pair-or { margin: 0; font-size: 1.5rem; }
.pair-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(36px, 7vw, 64px); font-weight: 800; letter-spacing: .3em; margin: .4rem 0; }
.pair-exp { margin: 0; font-size: 1.3rem; }
.pair.done .pair-qr { opacity: .3; }
@media (max-width: 700px) { .pair { gap: 1.6rem; text-align: center; } .pair-steps { text-align: left; } }
.pair-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 2rem; }
.pair-sheet { background: var(--panel, #15151a); border-radius: 2rem; padding: 2.4rem; width: min(78rem, 94vw); max-height: 94vh; overflow: auto; text-align: center; }
.pair-sheet h3 { margin: 0 0 1.6rem; font-size: 2.6rem; }
.connect-card:has(.pair) .link-intro { font-size: 1.7rem; margin: 0; }
/* instant booth at its photo limit */
.cap-banner { position: absolute; left: 50%; bottom: 8rem; transform: translateX(-50%); max-width: min(60rem, 90vw); background: #ffc857; color: #111; font: inherit; font-weight: 800; padding: 1.2rem 2rem; border: 0; border-radius: 1.4rem; text-align: center; font-size: 1.8rem; z-index: 5; cursor: pointer; }
.cap-banner small { display: block; font-size: 1.15rem; font-weight: 600; margin-top: .3rem; }
.cap-banner span { font-weight: 700; margin-left: .6rem; text-decoration: underline; text-underline-offset: .2em; }
/* 45 photos: a quiet note in the corner, not in the guests' way. */
.cap-banner.soft { left: auto; right: 1.4rem; bottom: 1.4rem; transform: none; background: rgba(0,0,0,.55); color: #fff; font-size: 1.05rem; font-weight: 600; padding: .65rem 1rem; border-radius: 99px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
/* 90 photos: amber, still smaller than the limit banner. */
.cap-banner.warn { font-size: 1.3rem; padding: .85rem 1.4rem; bottom: 1.4rem; white-space: nowrap; max-width: 94vw; }
.up-sheet .up-qr { width: 15rem; height: 15rem; margin: 1.2rem auto 1.4rem; }
.up-sheet .gs-close { position: static; padding: .8rem 2.2rem; border-radius: 99px; border: 1px solid #6b5d50; background: transparent; color: #f6efe6; font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
/* Setup assistant (Automatic backdrop) in the booth settings */
.bd-note.assist { display: flex; flex-direction: column; gap: .35rem; }
.bd-note.assist .assist-row { font-size: .92rem; }
.bd-note.assist .assist-row.warn { color: #ffd38a; }
.bd-note.assist .assist-actions { margin-top: .3rem; }

/* StudioSolo: a remembered booth waiting for its next event */
.solo-wait { display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.solo-wait[hidden] { display: none; }
.solo-badge { display: inline-block; padding: .5rem 1.2rem; border-radius: 99rem; border: .15rem solid var(--accent); color: var(--accent); font-size: 1.5rem; letter-spacing: .04em; }
.solo-wait h2 { font-size: 3.4rem; margin: .4rem 0 0; }
.solo-wait p { margin: 0; font-size: 1.7rem; }
.solo-wait .solo-or { margin-top: 1rem; font-size: 1.4rem; }
#s-connect.solo-waiting .connect-card > h1, #s-connect.solo-waiting .link-intro { display: none; }
#s-connect.solo-waiting .pair-steps, #s-connect.solo-waiting .link-alt { display: none; }
#s-connect.solo-waiting .pair-qr { width: min(20rem, 30vh); }

/* Studio: Booth Monitor start screen (pairing QR, iPad status, between-guests screens) */
#duoPair { position: absolute; right: 1.6rem; top: 1.6rem; z-index: 5; display: flex; gap: 1rem; align-items: center; padding: .9rem 1.2rem; border-radius: 1.2rem; background: rgba(12,12,16,.78); border: .1rem solid rgba(255,255,255,.12); color: #f1ede4; max-width: 24rem; text-align: left; }
#duoPair .duo-qr { width: 7rem; height: 7rem; padding: .5rem; border-radius: .7rem; background: #fff; color: #111; flex: none; }
#duoPair .duo-qr svg { width: 100%; height: 100%; display: block; }
#duoPair b { display: block; font-size: 1.4rem; margin-bottom: .3rem; }
#duoPair span { font-size: 1.1rem; color: #c8c1b4; line-height: 1.35; }
/* iPad connected: a small, quiet corner tag; the code stays scannable from about an arm's length for a QR sign iPad */
#duoPair.ok { padding: .4rem .7rem .4rem .4rem; gap: .6rem; border-radius: .8rem; background: rgba(12,12,16,.6); max-width: none; white-space: nowrap; }
#duoPair .duo-qr.mini { width: 3.6rem; height: 3.6rem; padding: .25rem; border-radius: .4rem; }
#duoPair.ok b { font-size: .8rem; display: flex; align-items: center; gap: .4rem; margin-bottom: .1rem; } #duoPair.ok span { font-size: .7rem; } #duoPair.ok .duo-dot { width: .6rem; height: .6rem; }
.duo-dot { width: 1rem; height: 1rem; border-radius: 50%; background: #5ad19a; display: inline-block; }
.duo-dot.off { background: #c8a24a; }
#s-attract.duo-title .slides { display: none; }
.duo-show { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; background: #000; }
#s-attract .duo-show ~ .scrim, #s-attract .duo-show ~ .attract-center, #s-attract .duo-show ~ .attract-foot { display: none; }

/* Studio Booth Monitor: nobody touches this screen, so its touch controls are folded away (the iPad shows them).
   They stay in the page (zero height, invisible) because the iPad's buttons are read from them. */
html.duo-run #bgGrid, html.duo-run #shootActions, html.duo-run #reviewActions, html.duo-run #shootTitle,
html.duo-run .screen .close, html.duo-run #flipCam, html.duo-run #modeRow,
html.duo-run #dlChoose button, html.duo-run #dlForm, html.duo-run #dlQr button, html.duo-run #s-deliver .dl-phone,
html.duo-run #printRow, html.duo-run #doneBtn, html.duo-run #s-share .stepper {
  height: 0 !important; min-height: 0 !important; max-height: 0 !important; margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
  border-top-width: 0 !important; border-bottom-width: 0 !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; flex: 0 0 0 !important;
}
.duo-hint { display: none; }
html.duo-run .duo-hint { display: block; margin: 1.6rem 0; padding: 1.4rem 1.8rem; border-radius: 1.6rem; background: rgba(255,200,87,.12); border: .15rem solid rgba(255,200,87,.45); color: #ffd98a; font-size: 2rem; font-weight: 600; text-align: center; }
html.duo-run #s-mode .duo-hint { align-self: center; font-size: 2.6rem; padding: 2rem 3rem; }
html.duo-run .duo-hint[hidden] { display: none; }
.duo-paused { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #0a0a0c; color: #f1ede4; text-align: center; }
.duo-paused b { display: block; font-family: var(--display, Georgia, serif); font-weight: 400; font-size: 6rem; }
.duo-paused span { display: block; margin-top: 1rem; font-size: 2.2rem; color: #c8c1b4; }

/* 💌 Leave a greeting (2.97): a button on the start screen, then a sheet with a QR code and "Record here" */
.greet-btn { position: absolute; top: 1.6rem; right: 1.6rem; z-index: 6; display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.6rem; border-radius: 99px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(20,16,14,.55); color: #fff; font: 700 1.3rem/1 inherit; font-family: inherit; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.greet-btn span { font-size: 1.5rem; }
.greet-sheet { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(8,6,5,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gs-card { position: relative; width: min(56rem, 92vw); background: #1d1714; color: #f6efe6; border-radius: 2rem; padding: 2.6rem 3rem 2.4rem; text-align: center; box-shadow: 0 2rem 6rem rgba(0,0,0,.6); }
.gs-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: #f0c987; font-weight: 700; }
.gs-card h2 { font-size: 2.2rem; margin: .5rem 0 .4rem; }
.gs-sub { color: #cbbfb2; font-size: 1.15rem; margin: 0 0 1.8rem; }
.gs-row { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.gs-opt { display: flex; flex-direction: column; align-items: center; gap: .5rem; flex: 1; }
.gs-opt b { font-size: 1.25rem; }
.gs-opt span { color: #b6a99c; font-size: 1rem; max-width: 16rem; }
.gs-qr { width: 12rem; height: 12rem; background: #fff; border-radius: 1rem; padding: .5rem; }
.gs-qr svg { width: 100%; height: 100%; display: block; }
.gs-or { color: #8f8276; font-size: 1.1rem; }
.gs-rec { padding: 1.3rem 2.2rem; border-radius: 99px; border: 0; background: #f0c987; color: #1d1714; font: 800 1.5rem/1 inherit; font-family: inherit; cursor: pointer; }
.gs-close { position: absolute; top: 1rem; right: 1rem; }

/* StudioCast (2.99, beta): "Connect the camera phone" while no phone is sending */
.cast-pair { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; display: flex; align-items: center; gap: 2.4rem; width: min(70rem, 92vw);
  padding: 2.4rem 2.8rem; border-radius: 2rem; background: #1b1714f2; color: #f6efe6; box-shadow: 0 2rem 6rem rgba(0,0,0,.6); }
.cast-pair[hidden] { display: none; }
.cast-pair .cp-qr { flex: none; width: 15rem; height: 15rem; background: #fff; border-radius: 1.2rem; padding: .6rem; }
.cast-pair .cp-qr svg { width: 100%; height: 100%; display: block; }
.cast-pair .cp-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: #f0c987; font-weight: 700; }
.cast-pair h2 { font-size: 2.2rem; margin: .4rem 0 .6rem; }
.cast-pair p { margin: 0 0 .6rem; color: #d3c8bb; font-size: 1.15rem; line-height: 1.4; }
.cast-pair .cp-state { color: #f0c987; font-weight: 600; }
/* 2.100.2: the Studio pairing code on every screen until an iPad is connected */
body > #duoPair.float { position: fixed; z-index: 60; top: auto; bottom: 1.6rem; }

/* Booth Helper (2.110.0) in Settings ▸ Printing */
.helper-block { border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 1.2rem; padding: 1.2rem 1.4rem; margin: 1rem 0 1.4rem; }
.helper-block h4 { margin-top: 0; }
.helper-steps { padding-left: 1.6rem; display: grid; gap: .6rem; }
.helper-steps a { color: var(--accent); font-weight: 700; }
.helper-steps .btn { margin: 0 .3rem; }
.check-row { display: flex; align-items: center; gap: .8rem; margin: .6rem 0 1rem; font-size: 1.3rem; cursor: pointer; }
.check-row input { width: 1.6rem; height: 1.6rem; accent-color: var(--accent); }

/* 2.112.0: Booth Monitor (not a touch screen) — its QR codes together at the top right of the start screen */
#duoCorner { position: fixed; right: 1.6rem; top: 1.6rem; z-index: 60; display: flex; flex-direction: column; align-items: stretch; gap: .8rem; width: min(30rem, 62vw); pointer-events: none; }
#duoCorner > * { pointer-events: auto; }
#duoCorner #duoPair { position: static; max-width: none; }
#duoPair.plan { border-color: rgba(255,200,87,.7); }
.duo-greet { display: flex; gap: 1.1rem; align-items: center; padding: 1rem 1.2rem; border-radius: 1.2rem; background: rgba(12,12,16,.78); border: .1rem solid rgba(255,255,255,.12); color: #f1ede4; text-align: left; }
.duo-greet .duo-qr.big { width: 10.5rem; height: 10.5rem; padding: .6rem; border-radius: .8rem; background: #fff; flex: none; }
.duo-greet .duo-qr svg { width: 100%; height: 100%; display: block; }
.duo-greet b { display: block; font-size: 1.6rem; margin-bottom: .35rem; }
.duo-greet span { font-size: 1.15rem; color: #c8c1b4; line-height: 1.35; }
/* away from the start screen: only the setup code (until an iPad is connected), small, bottom right; none in settings */
body:not(:has(#s-attract.on)) #duoCorner { top: auto; bottom: 1.6rem; }
body:not(:has(#s-attract.on)) #duoCorner .duo-greet, body:not(:has(#s-attract.on)) #duoCorner #duoPair.ok, body:not(:has(#s-attract.on)) #duoCorner #duoPair.connected,
body:has(#s-settings.on) #duoCorner, body:has(#s-pin.on) #duoCorner { display: none; }
html.duo-run #s-attract .cta { pointer-events: none; }
html.duo-run #s-attract.duo-noipad .cta { background: rgba(255,255,255,.12); color: #f1ede4; box-shadow: none; font-size: 1.5rem; }

/* 2.113.0: one small code on the Booth Monitor for guests (greeting, photos) and staff (set up the iPad) */
#duoCorner:has(#duoPair.one) { width: auto; max-width: min(calc(19.6rem + var(--qr-corner, 6.4rem)), 60vw); }
#duoPair.one { gap: .9rem; padding: .7rem .9rem; }
#duoPair.one .duo-qr { width: var(--qr-corner, 6.4rem); height: var(--qr-corner, 6.4rem); padding: .4rem; } /* 2.120.0: ~6.5 cm when the screen's size is known */
#duoPair.one b { font-size: 1.25rem; margin-bottom: .15rem; }
#duoPair.one span { font-size: 1rem; }
#duoPair.one .duo-staff { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; font-style: normal; font-size: .85rem; color: #a39d92; }
#duoPair.one .duo-staff .duo-dot { width: .6rem; height: .6rem; }

/* 2.114.0: pose ideas in the Booth Monitor's free space (Studio) */
#poseIdeas { display: none; }
#poseIdeas:not([hidden]) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin-top: 1.4rem; }
#poseIdeas.none { visibility: hidden; }
.pi-head { font-size: 1.25rem; letter-spacing: .16em; text-transform: uppercase; color: #c8c1b4; margin: 0 0 .9rem; font-weight: 700; text-align: center; }
.pi-grid { display: grid; grid-template-columns: repeat(var(--pi-cols, 2), minmax(0, 1fr)); grid-auto-rows: 12rem; gap: .8rem; overflow: hidden; min-height: 0; align-content: start; }
/* 2.118.0: sized in rem like the rest of the screen (fixed pixels overlapped on big portrait monitors); text clamped to 2 lines */
.pi-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4rem; border-radius: 1.2rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: .8rem; min-width: 0; overflow: hidden; }
.pi-ico { font-size: 3rem; line-height: 1; flex: none; }
.pi-card b, .pi-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; }
.pi-card b { font-size: 1.45rem; line-height: 1.15; flex: none; }
.pi-sub { font-size: 1.05rem; color: #c8c1b4; line-height: 1.3; flex: none; }
#poseIdeas.compact .pi-grid { grid-auto-rows: 7.5rem; }
#poseIdeas.compact .pi-card { gap: .2rem; padding: .5rem .8rem; }
#poseIdeas.compact .pi-ico { font-size: 2rem; }
#poseIdeas.compact .pi-card b, #poseIdeas.compact .pi-sub { -webkit-line-clamp: 1; }
.pi-grid.in .pi-card { animation: piIn .55s ease both; }
.pi-grid.in .pi-card:nth-child(2) { animation-delay: .06s; } .pi-grid.in .pi-card:nth-child(3) { animation-delay: .12s; } .pi-grid.in .pi-card:nth-child(4) { animation-delay: .18s; }
@keyframes piIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pi-grid.in .pi-card { animation: none; } }
/* the small setup code (until an iPad connects) sits at the bottom right: keep the ideas clear of it */
body:has(#duoCorner #duoPair:not(.connected)):has(#s-shoot.on) #poseIdeas { padding-bottom: 9.5rem; }
/* 2.115.0: the Booth Monitor turning off from the iPad */
#powerOff { position: fixed; inset: 0; z-index: 9999; background: #000; color: #f1ede4; display: flex; align-items: center; justify-content: center; text-align: center; }
#powerOff b { display: block; font-size: 4rem; margin-bottom: 1rem; } #powerOff span { font-size: 1.8rem; color: #a39d92; }
/* 2.119.0: Turn off / Restart in the booth's settings */
.btn.danger { background: #e5534b; color: #fff; border-color: #e5534b; }
/* 2.121.0: touch screen calibration */
#touchCal { position: fixed; inset: 0; z-index: 9999; background: #0d0d10; color: #f1ede4; touch-action: none; cursor: crosshair; }
#touchCal .tc-msg { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: .6rem; max-width: 80vw; }
#touchCal .tc-msg b { font-size: 2.4rem; } #touchCal .tc-msg span { font-size: 1.4rem; color: #b3ac9f; }
#touchCal .tc-t { position: absolute; width: 6rem; height: 6rem; transform: translate(-50%, -50%); pointer-events: none; }
#touchCal .tc-t::before, #touchCal .tc-t::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6rem; height: .3rem; background: #ffc857; transform: translate(-50%, -50%) rotate(45deg); }
#touchCal .tc-t::after { transform: translate(-50%, -50%) rotate(-45deg); }
#touchCal .tc-done { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
#touchCal .tc-done b { font-size: 2.2rem; } #touchCal .tc-left { color: #b3ac9f; font-size: 1.3rem; }
#touchCal .tc-keep { font: inherit; font-size: 2.4rem; font-weight: 800; padding: 1.6rem 4rem; border-radius: 99rem; border: 0; background: #ffc857; color: #111; }
/* 2.121.1: a touch screen the computer treats as a mouse, once calibrated: hide the arrow (it shows the uncorrected spot) */
html.touch-as-mouse, html.touch-as-mouse * { cursor: none !important; }
/* 2.122.1: a touch screen with the corner QR code: guests use the screen, so the code shows only on the start screen
   (it sat on top of Retake / All done) */
html.duo-touch body:not(:has(#s-attract.on)) #duoCorner { display: none; }
/* 2.122.2: quick tools under Back to booth */
.set-quick { display: flex; flex-wrap: wrap; gap: .5rem; flex: none; width: 100%; margin-top: .4rem; }
.set-nav .set-quick .btn { position: static; margin: 0; box-shadow: none; font-size: .95rem; padding: .55rem .9rem; flex: none; }
@media (orientation: landscape) { .set-nav .set-quick { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; } .set-nav .set-quick .btn { padding: .5rem .4rem; font-size: .9rem; } .set-nav .set-quick + .btn { margin-top: .6rem; position: static; box-shadow: none; } }
@media (orientation: portrait) { .set-nav { max-height: 42vh; } .set-quick { order: 9; justify-content: flex-end; } }
@media (orientation: landscape) { .set-nav:has(.set-quick button) button.tab { padding: .7rem 1.2rem; } }

/* 2.125.2: foil finishes for the event name (gold, rose gold, silver, champagne) */
#aTitle.foil { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 .25rem .2rem rgba(0,0,0,.45)) drop-shadow(0 .6rem 2rem rgba(0,0,0,.45)); padding: 0 .15em .1em; }
#aTitle.gold { background-image: linear-gradient(175deg, #fff6d5 0%, #f6dc8a 18%, #d7a640 42%, #b98322 52%, #f3d27a 68%, #fff1bf 82%, #c08a2a 100%); }
#aSub.gold { color: #f3d58a; }
#aTitle.rose { background-image: linear-gradient(175deg, #fff0ea 0%, #f6c9bb 20%, #d98f7c 44%, #b96a5a 54%, #f2b8a6 70%, #ffe6dd 84%, #c27866 100%); }
#aSub.rose { color: #f2bfb0; }
#aTitle.silver { background-image: linear-gradient(175deg, #ffffff 0%, #e6e9ee 20%, #a9b0ba 44%, #858d98 54%, #d9dde3 70%, #ffffff 84%, #9aa1ab 100%); }
#aSub.silver { color: #dfe3e8; }
#aTitle.champagne { background-image: linear-gradient(175deg, #fffaf0 0%, #f3e6c8 20%, #d9c49a 44%, #bfa77a 54%, #efe0bd 70%, #fff7e6 84%, #c9b28a 100%); }
#aSub.champagne { color: #efe2c2; }
.kara-note { flex-basis: 100%; display: grid; gap: .4rem; text-align: center; padding: 1rem 1.4rem; border-radius: 1rem; background: rgba(255, 200, 87, .14); border: 1px solid rgba(255, 200, 87, .5); }
.kara-note b { font-size: 1.8rem; } .kara-note small { font-size: 1.1rem; opacity: .85; }

/* 2.134.0: "Make this computer keyboardless" on the setup page */
.helper-setup { margin: 1rem auto 0; max-width: 60rem; text-align: left; display: grid; gap: .45rem; padding: .8rem 1.2rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); font-size: 1.05rem; }
.helper-setup > b { font-size: 1.3rem; } .helper-setup p { margin: 0; } .helper-setup ol { margin: 0; padding-left: 1.4rem; display: grid; gap: .5rem; }
.helper-setup.ok { border-color: rgba(120, 220, 150, .6); }
.hs-cmd { display: flex; gap: .5rem; align-items: center; margin-top: .4rem; } .hs-cmd code { flex: 1; overflow-x: auto; white-space: nowrap; padding: .5rem .7rem; border-radius: .5rem; background: rgba(0, 0, 0, .35); font-size: .95rem; }
.hs-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; } .hs-msg { margin: 0; opacity: .85; font-size: .95rem; }
.hs-how summary { cursor: pointer; } .hs-how[open] { display: grid; gap: .5rem; } .helper-setup .small { font-size: .95rem; }
#s-connect.on { overflow-y: auto; align-items: safe center; justify-content: safe center; }
#s-connect .connect-card { padding: 1rem 0; }
.hs-cmd { max-width: 100%; min-width: 0; } .hs-cmd code { min-width: 0; } .hs-how, .hs-how ol, .hs-how li { min-width: 0; } .helper-setup { grid-template-columns: minmax(0, 1fr); } .hs-cmd .btn { flex: none; }
