/* 7-segment font for Polaroid date stamps (falls back to monospace if the CDN is unreachable). */
@font-face { font-family: 'DSEG7 Classic'; font-weight: 700; font-display: swap; src: url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff2') format('woff2'); }
/* ── Guest Page Styles ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f1a;
  --accent: #6c63ff;
  --card: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.08);
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --approved: #10b981;
  --pending: #f59e0b;
  --played: #3b82f6;
  --rejected: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.18s ease;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

#app {
  min-height: 100vh;
  min-height: 100dvh; /* dynamic vh: accounts for mobile address bar so nothing is clipped */
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ── Album-art mosaic background ─────────────────────────────────────────── */
.mosaic-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transition: opacity 0.6s ease; }
.mosaic-track {
  position: absolute; inset: -15%;
  display: grid; gap: 0; grid-auto-rows: 1fr;
  will-change: transform;
  animation: mosaicDrift 70s ease-in-out infinite alternate;
}
.mosaic-tile { background-size: cover; background-position: center; }
@keyframes mosaicDrift {
  0%   { transform: scale(1.12) translate3d(0%, 0%, 0); }
  100% { transform: scale(1.22) translate3d(-4%, -5%, 0); }
}
@media (prefers-reduced-motion: reduce) { .mosaic-track { animation: none; } }
/* Let the mosaic glow through a showing lock screen */
body.mosaic-on .kiosk-lock { background: rgba(8,8,18,0.6); }
/* Polaroid-wall mosaic: scattered photos on the DJ's background, captioned in a handwritten font. */
.mosaic-polaroid { background-color: #14101c; background-repeat: no-repeat; }
/* Darkening veil over the wall so the kiosk title/CTA stay readable (above the photos, below #app). */
.mosaic-polaroid::after { content: ''; position: absolute; inset: 0; z-index: 1000; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(8,6,16,0.62) 0%, rgba(8,6,16,0.44) 55%, rgba(8,6,16,0.36) 100%); }
.polaroid { position: absolute; transform: translate(-50%, -50%); }
.polaroid-inner { background: #fff; padding: 7% 7% 0; border-radius: 3px; box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  transform: rotate(var(--rot, 0deg)); animation: pbSway var(--dur, 7s) ease-in-out infinite; animation-delay: var(--delay, 0s); will-change: transform; }
.polaroid-photo { width: 100%; aspect-ratio: 1 / 1; background-size: cover; background-position: center; background-color: #ccc; position: relative; }
.polaroid-cap { display: flex; align-items: center; gap: 0.2em; color: #2a2a2a; font-size: 1em; line-height: 1.05; padding: 0.34em 0.16em 0.46em; }
.polaroid .pol-name { flex: 1 1 auto; min-width: 0; font-family: 'Caveat', 'Segoe Script', cursive; text-align: center; font-size: calc(1em * var(--pol-scale, 1)); }
.polaroid .pol-event { flex: 0 1 auto; max-width: 34%; font-size: calc(0.56em * var(--pol-scale, 1)); color: #444; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid .pol-logo { flex: 0 0 auto; height: calc(1.45em * var(--pol-scale, 1)); width: auto; max-width: 28%; object-fit: contain; }
.polaroid .pol-date { font-size: calc(0.55em * var(--pol-scale, 1)); }
/* Camera-style 7-segment date stamp on the photo — corner + size come from inline style (shared) */
.pol-date { position: absolute; font-family: 'DSEG7 Classic', 'Courier New', monospace; font-weight: 700; letter-spacing: 0.03em; text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 6px rgba(0,0,0,0.5); pointer-events: none; white-space: nowrap; }
/* Guest name: word-wrap at spaces (default, up to 3 lines) vs single-line ellipsis (shared) */
.pol-name.pol-wrap { white-space: normal; overflow-wrap: break-word; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pol-name:not(.pol-wrap) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Gentle "resting on a table" drift — each Polaroid sways around its own tilt, desynced. */
@keyframes pbSway {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%      { transform: rotate(calc(var(--rot, 0deg) + var(--sway, 1deg))) translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) { .polaroid-inner { animation: none; } }
.mosaic-polaroid.pol-still .polaroid-inner { animation: none; } /* DJ set drift duration to 0 */

/* Hidden kiosk-unlock keypad (long-press the logo) */
.pinpad-backdrop { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(8,8,18,0.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pinpad { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.5rem; width: 100%; max-width: 300px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.pinpad-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.pinpad-dots { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.pinpad-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text3); transition: background var(--transition), border-color var(--transition); }
.pinpad-dot.filled { background: var(--accent); border-color: var(--accent); }
.pinpad-err { color: var(--rejected); font-size: 13px; font-weight: 600; min-height: 1.2em; margin-bottom: 0.75rem; }
.pinpad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.pinpad-key { font-size: 1.4rem; font-weight: 600; padding: 0.9rem 0; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; transition: background var(--transition); user-select: none; -webkit-user-select: none; }
.pinpad-key:hover { background: rgba(255,255,255,0.10); }
.pinpad-key:active { background: var(--accent); border-color: var(--accent); }
.pinpad-muted { color: var(--text2); font-size: 1.2rem; }
@keyframes pinpadShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }
.pinpad-shake { animation: pinpadShake 0.4s; }

/* ── Photo Booth ─────────────────────────────────────────────────────────── */
.kiosk-cta-secondary { margin-top: 1rem; font-size: clamp(1rem, 2.5vw, 1.4rem); padding: 0.7rem 1.6rem; opacity: 0.95; }
.g-selfie-fab {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 90;
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 0.7rem 1.1rem; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.pb-overlay {
  position: fixed; inset: 0; z-index: 260; background: rgba(6,6,14,0.96);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: auto;
}
.pb-close { position: fixed; top: 0.9rem; right: 1rem; z-index: 2; background: rgba(255,255,255,0.1); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.pb-stage { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.pb-video-wrap { position: relative; width: 100%; aspect-ratio: 4/3; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
#pbVideo { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.pb-frame-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
/* Native live preview (Android kiosk, Push 2): the camera + background composite is drawn by the app
   on a surface UNDER the transparent WebView. Hide the page content and null every opaque background
   in the booth so that surface shows through; the app fills the margins with the overlay colour, and
   the frame / countdown / buttons keep rendering on top. Removing backdrop-filter is essential — it
   would blur the native surface behind the (now transparent) overlay. */
html.pb-native-live, html.pb-native-live body { background: transparent !important; }
html.pb-native-live #app, html.pb-native-live #guestBgOverlay { visibility: hidden !important; }
html.pb-native-live .pb-overlay { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.pb-native-live .pb-video-wrap { background: transparent !important; }
html.pb-native-live #pbVideo { visibility: hidden; }
/* "Saved area" crop guide — bright framed region is kept; the darkened margin is cropped away. */
.pb-crop-guide { position: absolute; box-sizing: border-box; border: 2px dashed rgba(255,255,255,0.92); border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0,0,0,0.5); pointer-events: none; transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease; }
.pb-crop-label { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); background: var(--accent, #6366f1); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.pb-countdown { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(5rem, 22vw, 11rem); font-weight: 900; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.7); }
.pb-countdown.pb-leadin { color: var(--accent); font-size: clamp(4rem, 18vw, 9rem); }
/* Between-photo "different pose" prompt — a wrapping sentence, not a single huge digit. */
.pb-countdown.pb-posetext { font-size: clamp(1.6rem, 6vw, 3.2rem); font-weight: 800; line-height: 1.25; text-align: center; padding: 0 1.2rem; }
/* Camera-style capture flash — a full-screen white wash that fades out. */
.pb-flash { position: fixed; inset: 0; background: #fff; z-index: 100000; opacity: 1; pointer-events: none; }
.pb-flash.pb-flash-out { opacity: 0; transition: opacity 0.3s ease-out; }
/* Kiosk-mode chooser shown after the PIN is accepted. */
.pinpad-modes { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.25rem; }
.pinpad-modes .pb-btn { width: 100%; justify-content: center; }
.pb-instr { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 700; color: #fff; }
.pb-consent { gap: 1.25rem; }
.pb-consent-icon { font-size: clamp(2.5rem, 8vw, 4rem); }
.pb-consent-text { font-size: clamp(0.95rem, 2.4vw, 1.2rem); font-weight: 500; color: var(--text); line-height: 1.5; max-width: 30rem; }
/* Kiosk data-collection form + email prompt */
.pb-form { display: flex; flex-direction: column; gap: 0.6rem; width: min(92vw, 360px); }
.pb-input { width: 100%; padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #fff; }
.pb-input::placeholder { color: rgba(255,255,255,0.5); }
.pb-input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.1); }
.pb-form-err { color: #fca5a5; font-size: 0.9rem; font-weight: 600; min-height: 1.1em; text-align: center; }
.pb-email-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(6,6,14,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pb-email-box { background: var(--card, #14141f); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 1.4rem; width: min(92vw, 400px); display: flex; flex-direction: column; gap: 0.9rem; box-shadow: 0 20px 60px rgba(0,0,0,0.55); }
.pb-email-title { font-size: 1.2rem; font-weight: 800; color: #fff; text-align: center; }
.pb-email-note { font-size: 1rem; line-height: 1.5; color: var(--text2, #cbd5e1); text-align: center; }
/* In-booth rating */
.pb-rate { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin-top: 0.5rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.12); }
.pb-rate-label { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.pb-rate-stars { display: flex; gap: 0.25rem; }
.pb-star { font-size: 2rem; cursor: pointer; filter: grayscale(1) opacity(0.55); transition: filter 0.12s, transform 0.12s; }
.pb-star:hover { transform: scale(1.12); }
.pb-star.on { filter: none; }
.pb-rate-msg { font-size: 0.85rem; font-weight: 600; color: var(--accent, #a5b4fc); min-height: 1.1em; }
.pb-frames { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; max-height: 25vh; overflow: auto; }
.pb-frame-chip { width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--card-border); background: rgba(255,255,255,0.06); color: var(--text2); font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px; overflow: hidden; flex-shrink: 0; }
.pb-frame-chip img { width: 100%; height: 100%; object-fit: contain; }
.pb-frame-chip.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pb-bgs { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; max-height: 20vh; overflow: auto; }
.pb-bg-chip { width: 52px; height: 52px; border-radius: 999px; border: 2px solid var(--card-border); background: rgba(255,255,255,0.06); background-size: cover; background-position: center; cursor: pointer; padding: 0; flex-shrink: 0; }
.pb-bg-chip.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
/* Dedicated "pick your background" step (before the camera) */
.pb-bgpick { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.pb-bgpick-title { font-size: clamp(1.3rem, 4.5vw, 2rem); font-weight: 800; }
.pb-bgpick-sub { color: var(--text2); font-size: clamp(0.85rem, 2.2vw, 1.05rem); margin-bottom: 0.7rem; }
.pb-bgpick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(90px, 26vw, 150px), 1fr)); gap: clamp(0.6rem, 2vw, 1rem); width: min(92vw, 640px); max-height: 66vh; overflow: auto; padding: 2px; }
.pb-bgpick-tile { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; border: 3px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); background-size: cover; background-position: center; cursor: pointer; padding: 0; box-shadow: 0 6px 18px rgba(0,0,0,0.4); transition: transform 0.12s ease, border-color 0.12s ease; }
.pb-bgpick-tile:hover, .pb-bgpick-tile:active { border-color: var(--accent); transform: scale(1.03); }
.pb-bgpick-num { position: absolute; top: 5px; left: 8px; font-weight: 800; font-size: 0.9rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.85); }
.pb-bgpick-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; border-style: dashed; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); color: var(--text); text-align: center; }
.pb-bgpick-none-ico { font-size: clamp(1.5rem, 6vw, 2.4rem); line-height: 1; opacity: 0.85; }
.pb-bgpick-none-txt { font-size: clamp(0.72rem, 2.2vw, 0.95rem); font-weight: 700; padding: 0 0.4rem; line-height: 1.2; }
.pb-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.pb-btn { font-size: 1rem; font-weight: 700; padding: 0.8rem 1.4rem; border-radius: 999px; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.pb-btn-primary { background: var(--accent); color: #fff; }
.pb-btn-ghost { background: rgba(255,255,255,0.1); color: #fff; }
/* Guest-book caption (optional, on the review screen) — a note saved to the host's photo book, never printed. */
.pb-caption-block { width: 100%; max-width: 460px; text-align: left; display: flex; flex-direction: column; gap: 0.4rem; }
.pb-caption-label { font-size: 0.98rem; font-weight: 700; color: #fff; }
.pb-caption-input { width: 100%; resize: none; font: inherit; font-size: 1rem; line-height: 1.4; color: #fff;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.16); border-radius: 14px; padding: 0.7rem 0.85rem; outline: none; }
.pb-caption-input::placeholder { color: rgba(255,255,255,0.5); }
.pb-caption-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); background: rgba(255,255,255,0.12); }
.pb-caption-hint { font-size: 0.78rem; color: rgba(255,255,255,0.62); line-height: 1.35; }
.pb-caption-hint strong { color: rgba(255,255,255,0.85); }
.pb-preview-wrap { width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.pb-preview-wrap.small { max-width: 280px; }
.pb-preview { width: 100%; display: block; }
/* Multi-shot (photos per session) preview strip */
.pb-strip { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; max-height: 60vh; overflow: auto; }
.pb-preview-multi { width: auto; max-height: 28vh; max-width: 46%; border-radius: var(--radius-sm, 10px); box-shadow: 0 8px 28px rgba(0,0,0,0.45); }
.pb-saved { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; color: #fff; }
.pb-saved-icon { font-size: 3rem; }
.pb-saved-title { font-size: 1.4rem; font-weight: 800; }
.pb-loop-hint { font-size: 1.05rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-top: 0.2rem; }
.pb-print-status { font-size: 0.85rem; color: rgba(255,255,255,0.7); min-height: 1em; text-align: center; }
.pb-qr-row { display: flex; align-items: center; justify-content: center; gap: 0.85rem; background: #fff; padding: 0.85rem 1rem; border-radius: var(--radius); max-width: 320px; }
.pb-qr { width: 130px; height: 130px; flex-shrink: 0; }
.pb-qr canvas, .pb-qr img { width: 130px !important; height: 130px !important; display: block; } /* qrcodejs ignores container size — clamp it */
.pb-qr-cap { color: #0f0f1a; font-size: 13px; font-weight: 600; text-align: left; }
.pb-retry { margin-top: 0.85rem; }

/* ── Header ───────────────────────────────────────────────────────────── */
.guest-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
}
.guest-logo {
  max-height: 80px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.guest-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.guest-tagline { color: var(--text2); font-size: 15px; font-weight: 500; margin-bottom: 0.25rem; }
.guest-subtitle { color: var(--text3); font-size: 13px; }

/* ── Privacy notice on registration ───────────────────────────────────── */
.g-privacy {
  margin-top: 1rem;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text3);
  text-align: center;
}

/* ── Footer (customizable copyright) ──────────────────────────────────── */
.guest-footer {
  text-align: center;
  color: var(--text3);
  font-size: 12px;
  padding: 1.5rem 1.25rem 2rem;
  margin-top: auto;
}

/* ── Container ────────────────────────────────────────────────────────── */
.guest-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  width: 100%;
  flex: 1;
}

/* ── Card ─────────────────────────────────────────────────────────────── */
.g-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

/* ── Broadcast Banner ─────────────────────────────────────────────────── */
.broadcast-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.15));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.broadcast-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Closed Banner ────────────────────────────────────────────────────── */
.closed-banner {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  color: var(--rejected);
  font-weight: 600;
  margin-bottom: 1rem;
}
.closed-banner p { font-size: 13px; color: var(--text2); font-weight: 400; margin-top: 0.35rem; }
.g-name-note {
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.30);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 1rem;
}

/* ── Forms ────────────────────────────────────────────────────────────── */
.g-field { margin-bottom: 1rem; }
.g-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.g-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* 16px keeps iOS Safari from auto-zooming the page on focus */
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.g-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
}
.g-input::placeholder { color: var(--text3); }
textarea.g-input { resize: vertical; min-height: 80px; }
.g-optional { font-size: 11px; font-weight: 400; color: var(--text3); text-transform: none; letter-spacing: 0; }

/* ── Song Autocomplete ────────────────────────────────────────────────── */
.song-search-field { position: relative; }
.song-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: 4px;
  background: #1a1a2e;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  max-height: 320px;
  overflow-y: auto;
}
.song-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition);
}
.song-suggest-item:last-child { border-bottom: none; }
.song-suggest-item:hover, .song-suggest-item.active { background: rgba(108,99,255,0.18); }
.song-suggest-art {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.song-suggest-art-empty { display: flex; align-items: center; justify-content: center; font-size: 18px; }
.song-suggest-meta { min-width: 0; flex: 1; }
.song-suggest-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-suggest-artist { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Karaoke sign-up ──────────────────────────────────────────────────── */
.kar-browse {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1rem;
  background: rgba(0,0,0,0.2);
}
.kar-browse-loading { padding: 1rem; text-align: center; color: var(--text3); font-size: 13px; }
.kar-artist {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 0.6rem 0.85rem; cursor: pointer; text-align: left;
}
.kar-artist:hover { background: rgba(108,99,255,0.12); }
.kar-artist-count { color: var(--text3); font-size: 11px; font-weight: 400; }
.kar-artist-songs { background: rgba(0,0,0,0.25); padding: 0.25rem 0; }
.kar-song {
  display: block; width: 100%; text-align: left;
  background: none; border: none; color: var(--text2);
  font-family: inherit; font-size: 13px; padding: 0.45rem 0.85rem 0.45rem 1.5rem; cursor: pointer;
}
.kar-song:hover { background: rgba(108,99,255,0.15); color: var(--text); }
.kar-selected {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; margin-bottom: 1rem;
}
.kar-sel-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--approved); font-weight: 700; }
.kar-sel-song { font-weight: 600; font-size: 15px; }
.kar-sel-artist { font-size: 13px; color: var(--text2); }
.kar-change { background: none; border: none; color: var(--text3); font-size: 12px; cursor: pointer; text-decoration: underline; flex-shrink: 0; }

/* "Can't find your song?" link that reveals the YouTube field */
.g-cantfind { margin: -0.25rem 0 1rem; font-size: 12.5px; }
.g-cantfind a { color: var(--accent); text-decoration: none; }
.g-cantfind a:hover { text-decoration: underline; }

/* Brief highlight when the artist field is auto-filled from a suggestion */
.field-autofilled {
  border-color: var(--approved) !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2) !important;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.g-btn-primary { background: var(--accent); color: #fff; }
.g-btn-primary:hover { filter: brightness(1.1); }
.g-btn-primary:active { transform: scale(0.98); }
.g-btn-secondary {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--card-border);
}
.g-btn-secondary:hover { border-color: var(--accent); color: var(--text); }
.g-btn-sm { width: auto; padding: 0.5rem 1rem; font-size: 13px; }
.g-btn-ghost { background: rgba(255,255,255,0.05); color: var(--text2); border: 1px solid var(--card-border); }

/* ── Error ────────────────────────────────────────────────────────────── */
.g-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-sm);
  color: var(--rejected);
  font-size: 13px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.75rem;
}

/* ── Request Queue ────────────────────────────────────────────────────── */
.queue-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.5rem 0 0.75rem;
}
.queue-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.queue-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-pending { background: var(--pending); box-shadow: 0 0 6px var(--pending); animation: pulse 1.5s infinite; }
.dot-approved { background: var(--approved); box-shadow: 0 0 6px var(--approved); }
.dot-played { background: var(--played); }
.dot-rejected { background: var(--rejected); }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:0.4 } }

.queue-item-info { flex: 1; min-width: 0; }
.queue-item-song { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item-artist { font-size: 12px; color: var(--text2); }
.queue-item-status { font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-pending { color: var(--pending); }
.status-approved { color: var(--approved); }
.status-played { color: var(--played); }
.status-rejected { color: var(--rejected); }

/* ── Post-Request Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.25rem;
}
.modal-card {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-title { font-size: 1.2rem; font-weight: 700; text-align: center; margin-bottom: 0.4rem; }
.modal-sub { color: var(--text2); font-size: 13px; text-align: center; margin-bottom: 1.5rem; }

/* ── Star Rating ──────────────────────────────────────────────────────── */
.star-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.star {
  font-size: 2rem;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
  filter: grayscale(1) opacity(0.4);
}
.star:hover, .star.selected { filter: grayscale(0) opacity(1); transform: scale(1.15); }

/* ── Tip Links ────────────────────────────────────────────────────────── */
.tip-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}
.tip-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.tip-link-btn:hover { background: rgba(108,99,255,0.2); border-color: var(--accent); }

/* ── Contact Card Button ──────────────────────────────────────────────── */
.contact-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  width: 100%;
  margin-top: 1rem;
}
.contact-download:hover { border-color: var(--accent); color: var(--text); }

/* ── Step indicator ───────────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--card-border); transition: background var(--transition); }
.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--approved); }

/* ── Section heading ──────────────────────────────────────────────────── */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ── Utilities ────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--text3); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
hr.g-divider { border: none; border-top: 1px solid var(--card-border); margin: 1.25rem 0; }

/* ── Guest Chat Float Button ─────────────────────────────────────────── */
.g-chat-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  z-index: 50;
  transition: transform var(--transition), filter var(--transition);
}
.g-chat-float:hover { transform: scale(1.1); filter: brightness(1.1); }
.g-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Guest Chat View ─────────────────────────────────────────────────── */
.g-chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.25rem 1rem;
  min-height: 0; /* fills the remaining flex space; messages scroll internally, input stays pinned */
}
.g-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 0.5rem;
}
.g-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}
.g-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.g-chat-msg-me { align-self: flex-end; align-items: flex-end; }
.g-chat-msg-dj { align-self: flex-start; align-items: flex-start; }
.g-chat-bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.g-chat-msg-me .g-chat-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.g-chat-msg-dj .g-chat-bubble {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--card-border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.g-chat-meta { font-size: 11px; color: var(--text3); margin-top: 3px; }
.g-chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--card-border);
}
.g-chat-input-row .g-input { flex: 1; }

/* Read receipt on own (guest) messages */
.g-chat-receipt { margin-left: 4px; color: rgba(255,255,255,0.85); font-size: 11px; }

/* DJ typing indicator */
.g-chat-typing {
  font-size: 12px; color: var(--accent); font-style: italic;
  padding: 0.25rem 0.25rem 0.5rem; flex-shrink: 0;
}
.g-chat-typing::after {
  content: ''; display: inline-block; width: 4px; height: 4px; margin-left: 3px;
  border-radius: 50%; background: var(--accent); animation: gTypingDot 1s infinite;
}
@keyframes gTypingDot { 0%,100% { opacity: 0.3 } 50% { opacity: 1 } }

/* Blocked note in chat input area */
.g-chat-blocked-note {
  padding: 0.85rem 1rem; font-size: 13px; color: var(--rejected); text-align: center;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-sm); line-height: 1.4;
}
.g-chat-blocked-note span { color: var(--text2); font-size: 12px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .guest-container { padding: 0 2rem 4rem; }
  .guest-header { padding: 3rem 2rem 1.5rem; }
  .guest-title { font-size: 2.2rem; }
}

/* Small phones — tighten spacing so everything fits without overflow */
@media (max-width: 480px) {
  .guest-header { padding: 1.75rem 1.1rem 1.1rem; }
  .guest-title { font-size: 1.55rem; }
  .guest-logo { max-height: 64px; margin-bottom: 0.75rem; }
  .guest-container { padding: 0 1rem 3rem; }
  .g-card { padding: 1.25rem; }
  .section-title { font-size: 1.05rem; margin-bottom: 1rem; }
  .modal-overlay { padding: 0.85rem; }
  .modal-card { padding: 1.5rem 1.25rem; }
  .star { font-size: 1.85rem; }
  .star-row { gap: 0.35rem; }
  .tip-link-btn { font-size: 13px; }
  /* keep the floating chat button clear of the home-indicator / screen edge */
  .g-chat-float { bottom: 1rem; right: 1rem; }
}

/* Very narrow / older devices that don't support dvh: cap the chat view height */
@supports not (height: 100dvh) {
  .g-chat-view { max-height: calc(100vh - 120px); }
}

/* ═══════════════════════════════════════════════════════════════════════
   Kiosk mode (full-screen venue tablet / touchscreen)
   ═══════════════════════════════════════════════════════════════════════ */
html.kiosk, html.kiosk body { height: 100%; margin: 0; }
html.kiosk { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
html.kiosk body { overflow-x: hidden; }

/* Bigger, touch-friendly controls on the reused register/request screens */
html.kiosk .guest-container { max-width: 680px; }
html.kiosk .g-input { font-size: 18px; padding: 1rem 1.1rem; }
html.kiosk .g-input::placeholder { font-size: 16px; }
html.kiosk .g-btn { font-size: 18px; padding: 1.05rem; }
html.kiosk .section-title { font-size: 22px; }
html.kiosk .g-field label { font-size: 14px; }

.kiosk-screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 2rem; padding: clamp(1.5rem, 4vw, 3.5rem); box-sizing: border-box;
  max-width: 1100px; margin: 0 auto; text-align: center;
}

/* ── Welcome screen ── */
.kiosk-welcome { justify-content: center; gap: clamp(2rem, 6vh, 4.5rem); }
.kiosk-welcome-left { display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 4vh, 2.75rem); }
.kiosk-welcome-main { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.kiosk-cta-group { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; width: 100%; }
/* On a landscape karaoke TV, put the rotation board beside the sign-up/QR (not below). */
@media (min-width: 900px) {
  .kiosk-welcome.kiosk-has-board { flex-direction: row; align-items: center; justify-content: center; gap: clamp(2rem, 5vw, 5rem); max-width: 1500px; }
  .kiosk-welcome.kiosk-has-board .kiosk-welcome-left { flex: 0 1 auto; }
  .kiosk-welcome.kiosk-has-board .kiosk-chips { margin-top: 0; flex: 0 1 480px; align-self: center; }
  .kiosk-welcome.kiosk-has-board .kiosk-up-list { max-height: 64vh; }
}
.kiosk-logo { max-width: 260px; max-height: 200px; object-fit: contain; }
.kiosk-logo-fallback { font-size: 5rem; }
.kiosk-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1; }
.kiosk-tagline { font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--text2); font-weight: 500; }
.kiosk-endtime { font-size: clamp(0.95rem, 2vw, 1.2rem); color: var(--text2); font-weight: 600; }
.g-wait-note { background: rgba(108,99,255,0.14); border: 1px solid var(--accent); color: var(--text); font-size: 13px; font-weight: 600; border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; margin: 0.6rem 0; text-align: center; }
.kiosk-wait-note { font-size: clamp(1rem, 2.6vw, 1.5rem); font-weight: 700; color: #fff; background: rgba(108,99,255,0.18); border: 1px solid var(--accent); border-radius: var(--radius); padding: 0.7rem 1.1rem; margin-top: 0.6rem; }
/* Static now-playing / up-next / queue info, styled like buttons. */
.kiosk-chips { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; width: 100%; max-width: 540px; margin-top: 0.5rem; }
.kiosk-chip {
  width: 100%; box-sizing: border-box; text-align: center;
  display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.3;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 12px;
  padding: 0.7rem 1.2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.28);
}
.kiosk-chip-label { font-size: clamp(0.75rem, 1.6vw, 0.95rem); font-weight: 700; letter-spacing: 0.03em; color: var(--text2); text-transform: uppercase; }
.kiosk-chip-val { font-size: clamp(1rem, 2.4vw, 1.4rem); font-weight: 700; color: #fff; }
.kiosk-chip-now { background: rgba(108,99,255,0.18); border-color: var(--accent); box-shadow: 0 4px 20px -6px var(--accent); }
.kiosk-chip-sub { font-size: clamp(0.85rem, 1.9vw, 1.15rem); font-weight: 600; color: var(--text2); }
/* Full multi-singer "Up Next" board (Song-boss karaoke rotation). */
.kiosk-upnext { align-items: stretch; text-align: left; }
.kiosk-upnext > .kiosk-chip-label { text-align: center; margin-bottom: 0.45rem; }
.kiosk-up-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; max-height: 34vh; overflow-y: auto; }
.kiosk-up-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.35rem 0.15rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.kiosk-up-row:last-child { border-bottom: none; }
.kiosk-up-pos { flex: none; align-self: center; text-align: center; min-width: 5.6em;
  font-size: clamp(0.62rem, 1.25vw, 0.82rem); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: rgba(108,99,255,0.16); border: 1px solid rgba(108,99,255,0.4);
  border-radius: 999px; padding: 0.2rem 0.5rem; }
.kiosk-up-text { display: flex; flex-direction: column; min-width: 0; }
.kiosk-up-singer { font-weight: 700; color: #fff; font-size: clamp(0.95rem, 2vw, 1.25rem); line-height: 1.2; }
.kiosk-up-song { color: var(--text2); font-size: clamp(0.75rem, 1.5vw, 0.95rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kiosk-up-more { color: var(--text2); font-style: italic; padding: 0.3rem 0.15rem 0; font-size: clamp(0.8rem, 1.6vw, 1rem); }

.kiosk-cta {
  margin-top: 1rem; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.9rem); font-weight: 700;
  padding: clamp(1.1rem, 3vw, 1.8rem) clamp(2rem, 6vw, 3.5rem);
  border-radius: 999px; box-shadow: 0 14px 40px -10px var(--accent);
  transition: transform var(--transition), filter var(--transition);
  animation: kioskPulse 2.4s ease-in-out infinite;
}
.kiosk-cta:hover { filter: brightness(1.08); }
.kiosk-cta:active { transform: scale(0.97); }
@keyframes kioskPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.kiosk-closed {
  margin-top: 1rem; font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; color: var(--text2);
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 1.25rem 2rem;
}

/* ── QR blocks (event link on welcome, tip link on thank-you) ── */
.kiosk-qr-block { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.kiosk-qr {
  background: #fff; padding: 14px; border-radius: var(--radius);
  width: 200px; height: 200px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6);
}
.kiosk-qr img, .kiosk-qr canvas { display: block; width: 100% !important; height: 100% !important; }
.kiosk-qr-caption { font-size: 15px; color: var(--text2); line-height: 1.4; }
.kiosk-qr-caption strong { color: var(--text); }
.kiosk-qr-fallback { font-size: 10px; color: #333; word-break: break-all; padding: 4px; }

/* ── Thank-you screen ── */
.kiosk-thankyou { justify-content: space-between; }
.kiosk-thankyou-main { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; flex: 1; justify-content: center; }
.kiosk-check {
  width: 84px; height: 84px; border-radius: 50%; background: var(--approved); color: #fff;
  font-size: 3rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem;
  animation: kioskPop 0.4s ease;
}
.kiosk-check-merge { background: #eab308; } /* duplicate merged → yellow, not green */
@keyframes kioskPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.kiosk-sub { font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--text2); margin-bottom: 0.5rem; }
.kiosk-thankyou-cols {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem); margin-top: 1.5rem;
}
.kiosk-rate { display: flex; flex-direction: column; align-items: center; }
.kiosk-rate-label { font-size: 1.1rem; font-weight: 600; color: var(--text2); }
.kiosk-stars { margin: 0.75rem 0 0.25rem; gap: 0.65rem; }
.kiosk-stars .star { font-size: 2.75rem; }
.kiosk-rate-msg { font-size: 14px; color: var(--approved); min-height: 20px; }
.kiosk-tip { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.kiosk-tip-msg { font-size: 1.1rem; font-weight: 600; }

.kiosk-actions {
  display: flex; gap: 1rem; width: 100%; max-width: 720px;
}
.kiosk-btn { flex: 1; font-size: clamp(1.05rem, 2.5vw, 1.4rem) !important; padding: clamp(1rem, 2.5vw, 1.5rem) !important; }
.kiosk-btn-primary { background: var(--accent); color: #fff; }
.kiosk-btn-secondary { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--card-border); }

@media (max-width: 560px) {
  .kiosk-actions { flex-direction: column-reverse; }
  .kiosk-thankyou-cols { gap: 2rem; }
}

/* ── Kiosk DJ messages: persistent banner + full-screen lock ── */
.kiosk-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--accent); color: #fff;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem); font-weight: 600; line-height: 1.35;
  text-align: center; padding: 0.8rem 1.25rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
/* DJ-pushed screen message — top strip; sits above the lock (z 200) so it's seen even when locked. */
.kiosk-flash {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(180deg, #1f2937, #111827); color: #fff;
  font-size: clamp(1rem, 2.4vw, 1.45rem); font-weight: 700; line-height: 1.35;
  text-align: center; padding: 0.9rem 1.35rem;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  animation: kioskFlashIn 0.35s ease;
}
.kiosk-flash > span { max-width: 90%; }
.kiosk-flash-emerg {
  background: linear-gradient(180deg, #c81111, #7a0000); border-bottom-color: #ff8080;
  animation: kioskFlashIn 0.35s ease, kioskFlashPulse 1.4s ease-in-out infinite;
}
@keyframes kioskFlashIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes kioskFlashPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
body.kiosk-banner-on .kiosk-screen, body.kiosk-flash-on .kiosk-screen { padding-top: var(--kiosk-top-pad, 5rem); }
body.kiosk-banner-on .guest-header, body.kiosk-flash-on .guest-header { padding-top: var(--kiosk-top-pad, 5rem); }

.kiosk-lock {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,8,18,0.97);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center;
  overflow: auto;
}
.kiosk-lock-inner {
  max-width: 860px; animation: kioskPop 0.35s ease;
  display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 3vh, 2rem);
}
.kiosk-lock-icon { font-size: clamp(3rem, 7vw, 5rem); }
.kiosk-lock-logo { max-width: 240px; max-height: 160px; object-fit: contain; }
.kiosk-lock-clock { font-size: clamp(3rem, 11vw, 6rem); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -0.02em; }
.kiosk-lock-text { font-size: clamp(1.5rem, 4.5vw, 2.75rem); font-weight: 700; line-height: 1.3; color: #fff; white-space: pre-wrap; }
.kiosk-lock-image { max-width: min(560px, 80vw); max-height: 40vh; object-fit: contain; border-radius: var(--radius); }
.kiosk-lock-contact { color: #fff; }
.kiosk-lock-contact-name { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; }
.kiosk-lock-contact-sub { font-size: clamp(0.9rem, 2vw, 1.15rem); color: rgba(255,255,255,0.75); margin-top: 0.25rem; }
.kiosk-lock-qrs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 3rem); }
.kiosk-lock-qr { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.kiosk-lock-qr .kiosk-qr { width: 160px; height: 160px; padding: 12px; }

/* ── Photo-booth kiosk: live stats bar ─────────────────────────────────────── */
.pb-stats { position: fixed; left: 0; right: 0; bottom: 0; z-index: 240; display: flex; align-items: center; gap: 1.2rem;
  padding: 0.55rem clamp(1rem, 3vw, 2rem); padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(6,6,14,0.94), rgba(6,6,14,0.68)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1); }
.pb-stats-scope { font-size: clamp(0.9rem, 2vw, 1.15rem); font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; color: var(--accent, #6c63ff); }
.pb-stats-items { display: flex; gap: clamp(0.8rem, 4vw, 3rem); flex: 1 1 auto; justify-content: space-evenly; }
.pb-stat { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.pb-stat-ico { font-size: clamp(1rem, 2.4vw, 1.5rem); }
.pb-stat-num { font-size: clamp(1.3rem, 3.6vw, 2.3rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.pb-stat-lbl { font-size: clamp(0.6rem, 1.5vw, 0.85rem); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.72; }
@keyframes pbStatsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Photo-booth kiosk: phone-upload QR (lower-right) + waiting screen ─────── */
.pb-upload-qr { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(4.5rem, 12vh, 7rem) + env(safe-area-inset-bottom)); z-index: 241;
  background: #fff; color: #12132a; border-radius: 16px; padding: 0.7rem; box-shadow: 0 12px 40px rgba(0,0,0,0.5); text-align: center; }
.pb-live-qr { right: auto; left: clamp(1rem, 3vw, 2rem); } /* lower-left, opposite the upload QR */
.pb-upload-qr-code { line-height: 0; }
.pb-upload-qr-code canvas, .pb-upload-qr-code img { display: block; border-radius: 6px; margin: 0 auto; }
.pb-upload-qr-cap { font-size: 0.72rem; margin-top: 0.4rem; font-weight: 600; color: #333; line-height: 1.25; }
.pb-upload-wait { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center; padding: 2rem; }
.pb-upload-wait-ico { font-size: 3.5rem; animation: pbPulse 1.6s ease-in-out infinite; }
.pb-upload-wait-sub { color: var(--text-muted, #94a3b8); max-width: 24rem; }
@keyframes pbPulse { 0%,100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.12); opacity: 1; } }
.ab-spinner-lite { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.18); border-top-color: var(--accent, #6c63ff); animation: abSpin 0.8s linear infinite; margin-top: 0.4rem; }
@keyframes abSpin { to { transform: rotate(360deg); } }
