/* Story Booth: halaman operator, layar booth tamu, halaman unduh foto (token warna dari app.css) */
.sb-body #sb { min-height: 100vh; }
.sb-body .login { min-height: 100vh; }
.sb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.sb-brand { display: flex; align-items: center; gap: 12px; }
.sb-brand .logo { height: 40px; width: auto; filter: var(--logo-filter); }
.sb-brand strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.sb-home { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; padding: 20px 24px 40px; max-width: 1400px; margin: 0 auto; align-items: start; }
@media (max-width: 960px) { .sb-home { grid-template-columns: minmax(0, 1fr); padding: 16px; } }
.sb-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 10px; }
.sb-event h3 { margin: 0; color: var(--ink); font-size: 1.05rem; }
.sb-event p { margin: 4px 0; }
.sb-event.is-want { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sb-q { font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-setup { position: sticky; top: 84px; }
.sb-cam video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #111; border-radius: 12px; display: block; }
.is-mirror { transform: scaleX(-1); }
.sb-help { margin-top: 12px; }
.sb-help summary { cursor: pointer; font-weight: 600; }
.sb-help li { margin: 6px 0; }
.sb-help code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: .85em; }
.sb-sync { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.sb-sync.is-ok { background: var(--good-soft); color: var(--good); border-color: transparent; }
.sb-sync.is-wait { background: var(--gold-soft); color: var(--warn); border-color: transparent; }
.sb-sync.is-off { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.sb-op-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }

/* ---------- layar booth (tamu) ---------- */
.sb-kiosk-on { overflow: hidden; }
.sb-kiosk { position: fixed; inset: 0; background: #0E1512; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sb-kiosk .live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 4vmin; }
.k-layer.is-attract::before, .k-layer.is-card::before, .k-layer.is-review::before { content: ''; position: absolute; inset: 0; background: rgba(10, 18, 15, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.k-layer.is-review::before { background: rgba(10, 18, 15, .82); }
.k-layer > * { position: relative; }
.k-attract { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; position: absolute !important; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vmin; text-align: center; padding: 6vmin; }
.k-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 8vmin, 6rem); line-height: 1.05; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.k-sub { font-size: clamp(1.1rem, 3vmin, 2rem); opacity: .9; }
.k-cta { margin-top: 4vmin; font-size: clamp(1.2rem, 3.4vmin, 2.2rem); font-weight: 700; padding: 2vmin 5vmin; border-radius: 99px; background: #fff; color: #1F3A33; animation: k-pulse 1.8s ease-in-out infinite; }
.k-price { font-size: clamp(1rem, 2.6vmin, 1.6rem); opacity: .95; }
.k-quota { font-size: 1rem; padding: 4px 14px; border-radius: 99px; background: rgba(184, 145, 58, .9); }
@keyframes k-pulse { 50% { transform: scale(1.04); } }
.k-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: clamp(20px, 4vmin, 48px); width: min(640px, 92vw); text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: stretch; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.k-card h2 { font-size: clamp(1.4rem, 4vmin, 2.4rem); margin: 0; }
.k-amount { font-size: clamp(2rem, 7vmin, 4rem); font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.k-big { min-height: 64px; font-size: 1.15rem; border-radius: 16px; flex-direction: column; gap: 2px; }
.k-big small { font-weight: 500; font-size: .8rem; opacity: .75; }
.k-pay { display: grid; gap: 10px; }
.k-qr { background: #fff; padding: 12px; border-radius: 16px; width: min(320px, 60vmin); margin: 0 auto; }
.k-qr svg { display: block; width: 100%; height: auto; }
.k-shot { position: absolute !important; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4vmin; gap: 1vmin; pointer-events: none; }
.k-step { font-weight: 700; font-size: clamp(1.1rem, 3vmin, 1.8rem); padding: 1vmin 3vmin; border-radius: 99px; background: rgba(0,0,0,.45); }
.k-hint { font-size: clamp(1rem, 2.6vmin, 1.5rem); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.k-thumbs { position: absolute; bottom: 3vmin; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.k-thumbs img { height: 12vmin; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.k-count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 38vmin; color: #fff; text-shadow: 0 8px 40px rgba(0,0,0,.5); animation: k-count 1s ease-out; pointer-events: none; }
@keyframes k-count { from { transform: scale(1.4); opacity: 0; } 20% { opacity: 1; } to { transform: scale(.9); opacity: .85; } }
.k-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.k-flash.on { animation: k-flash .45s ease-out; }
@keyframes k-flash { from { opacity: 1; } to { opacity: 0; } }
.k-review { display: flex; gap: 4vmin; align-items: center; justify-content: center; width: 100%; height: 100%; }
.k-result { display: flex; gap: 2vmin; align-items: center; justify-content: center; flex: 0 1 auto; min-width: 0; height: 88vh; }
.k-area { max-height: 88vh; max-width: 100%; min-width: 0; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; }
.k-area.k-grid4, .k-area.k-single { max-width: calc(100vw - 300px - 18vw - 10vmin); max-height: 80vh; }
.k-gif { max-height: 36vh; max-width: 18vw; flex: none; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.k-actions { display: flex; flex-direction: column; gap: 12px; width: 260px; flex: none; }
.k-copies { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255,255,255,.12); border-radius: 14px; padding: 8px; font-weight: 700; font-size: 1.1rem; }
.k-copies .icon-btn { width: 48px; height: 48px; color: #fff; border-color: rgba(255,255,255,.4); font-size: 1.4rem; }
.k-actions .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); min-height: 52px; }
.k-done p { margin: 0; }
.k-op { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.25); color: rgba(255,255,255,.55); font-size: 1.2rem; cursor: pointer; z-index: 5; transition: background .9s; }
.k-op.is-hold { background: rgba(184, 145, 58, .9); color: #fff; }
.k-sync { position: absolute; left: 12px; bottom: 12px; z-index: 5; opacity: .85; }
@media (max-aspect-ratio: 1/1) {
  .k-review { flex-direction: column; padding: 3vmin 0; }
  .k-result { height: auto; max-height: 68vh; max-width: 92vw; }
  .k-area { max-height: 64vh; }
  .k-gif { max-width: 30vw; max-height: 24vh; }
  .k-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; width: auto; }
  .k-area.k-grid4, .k-area.k-single { max-width: 92vw; }
}
@media (prefers-reduced-motion: reduce) { .k-cta, .k-count, .k-flash.on { animation: none; } }

/* ---------- formulir event & pratinjau desain ---------- */
.bf-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .9fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .bf-grid { grid-template-columns: minmax(0, 1fr); } }
.bf-h { margin: 14px 0 0; color: var(--ink); }
.bf-h:first-child { margin-top: 0; }
.bf-side { position: sticky; top: 0; }
.bf-preview { background: repeating-conic-gradient(var(--bg) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; place-items: center; min-height: 260px; }
.bf-preview-img { max-width: 100%; max-height: 62vh; height: auto; box-shadow: 0 4px 18px rgba(0,0,0,.18); border-radius: 4px; }
.bc-kpis { margin-bottom: 8px; }

/* ---------- halaman unduh foto ---------- */
.sh-main { padding-bottom: 40px; }
.sh-foot { padding-bottom: 32px; }
.sh-fig { margin: 18px 0; text-align: center; }
.sh-main-img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.sh-gif { max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.sh-h { margin-top: 28px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sh-thumb { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--link); font-weight: 600; font-size: .86rem; text-align: center; }
.sh-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.sh-note { text-align: center; margin-top: 24px; }

/* ---------- halaman Photobooth di dashboard ---------- */
.pb-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pb-event h3 { margin: 0; color: var(--ink); font-size: 1.02rem; }
.pb-event p { margin: 4px 0; }
.pb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pb-gallery a { display: block; }
.pb-gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--bg); }
