.booth-page .hero-panel,
.booth-page .camera-panel {
  min-height: calc(100dvh - 32px);
}

.booth-page .hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

body.is-kiosk .app-shell {
  width: min(100vw - 24px, 1480px);
  padding: 12px 0;
}

body.is-kiosk .booth-page {
  grid-template-columns: 0.74fr 1.26fr;
  gap: 16px;
}

body.is-kiosk .hero-copy,
body.is-kiosk .shot-plan {
  display: none;
}

body.is-kiosk .hero-panel,
body.is-kiosk .camera-panel {
  min-height: calc(100dvh - 24px);
}

body.is-kiosk .camera-stage {
  height: min(74dvh, 840px);
}

.camera-stage {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: min(64dvh, 680px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.1), rgba(12, 10, 9, 0.38)),
    #1b1714;
}

#cameraFeed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-overlay {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.camera-empty {
  position: absolute;
  inset: auto 18px 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: #fff;
  background: rgba(16, 14, 11, 0.54);
}

.camera-empty.is-hidden {
  display: none;
}

.camera-toolbar {
  margin-top: 12px;
}

.strip-frame {
  display: flex;
  justify-content: center;
  padding: 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.84), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.38));
}

body.result-themed .strip-frame {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--result-accent) 12%, white), transparent 28%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--result-panel) 88%, white),
      color-mix(in srgb, var(--result-bg) 64%, white)
    );
}

.result-inline-preview {
  margin-top: 40px;
}

.result-carousel {
  display: grid;
  gap: 18px;
}

.result-carousel-header,
.result-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.result-carousel-eyebrow {
  margin: 0;
}

.result-carousel-actions {
  display: flex;
  gap: 10px;
}

.result-carousel-nav {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--result-accent, var(--accent)) 20%, rgba(31, 26, 23, 0.1));
  background: rgba(255, 255, 255, 0.68);
  color: var(--result-text, var(--text));
  cursor: pointer;
}

.result-carousel-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.result-carousel-viewport {
  overflow: hidden;
}

.result-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 46%);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.result-slide {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 10px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: color-mix(in srgb, var(--result-panel, var(--surface)) 90%, white);
  cursor: pointer;
  scroll-snap-align: center;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.result-slide:hover {
  transform: translateY(-1px);
}

.result-slide.is-active {
  box-shadow: 0 18px 32px rgba(32, 22, 14, 0.12);
}

.result-slide-frame {
  padding: 14px;
}

.result-slide-canvas {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 36px rgba(42, 28, 17, 0.16);
}

.result-slide-meta {
  display: grid;
  gap: 4px;
}

.result-slide-meta strong {
  font-size: 1rem;
}

.result-slide-meta span,
.result-carousel-caption {
  color: var(--result-muted, var(--muted));
  font-size: 0.9rem;
  line-height: 1.4;
}

.result-carousel-caption {
  margin: 0;
}

.result-carousel-dots {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.result-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, var(--result-accent, var(--accent)) 22%, white);
  opacity: 0.5;
  cursor: pointer;
}

.result-dot.is-active {
  opacity: 1;
  background: var(--result-accent, var(--accent));
}

@media (max-width: 980px) {
  .booth-page .hero-panel,
  .booth-page .camera-panel {
    min-height: auto;
  }

  .camera-stage {
    height: min(58dvh, 560px);
  }

  .result-carousel-track {
    grid-auto-columns: minmax(240px, 72%);
  }
}

@media (max-width: 680px) {
  .result-carousel-header,
  .result-carousel-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .result-carousel-actions {
    justify-content: space-between;
  }

  .result-carousel-track {
    grid-auto-columns: 88%;
    gap: 12px;
  }
}
