/* SP2 STUDIO photobooth – works on a portrait kiosk, a tablet and a phone. */
.booth { width: 100%; max-width: 820px; background: color-mix(in srgb, var(--card) 90%, transparent); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.booth-head { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 18px; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 18px; }
.theme { border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-height: 170px; text-align: left; color: #fff; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font: inherit; }
.theme .emo { font-size: 44px; line-height: 1; margin-bottom: auto; }
.theme b { font: 700 19px 'Outfit', Inter, sans-serif; }
.theme small { color: rgba(255,255,255,.85); font-size: 13px; }
.theme:focus-visible, .theme:hover { outline: 2px solid var(--sec); outline-offset: 2px; }
.stage { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #000; }
.stage video, .stage canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage video { transform: scaleX(-1); }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font: 800 160px 'Outfit', sans-serif; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); pointer-events: none; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.flash.on { opacity: .9; transition: none; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.btn-primary.big { font-size: 20px; }
.file-pick { display: grid; place-items: center; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-top: 14px; }
.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.spinner { width: 72px; height: 72px; margin: 40px auto 10px; border-radius: 50%; border: 6px solid var(--line); border-top-color: var(--sec); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#s-busy { text-align: center; }
.result-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr); gap: 16px; align-items: center; }
.result-img canvas { width: 100%; height: auto; border-radius: 14px; display: block; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.qr-box svg { width: 100%; max-width: 220px; height: auto; border-radius: 10px; }
@media (max-width: 600px) { .result-wrap { grid-template-columns: 1fr; } .qr-box svg { max-width: 200px; } .booth { padding: 18px; } }
.as-link { display: grid; place-items: center; text-decoration: none; }
