/* Responsive Portrait Kiosk Layout (Optimized for 9:16 vertical touch kiosks & mobile/desktop viewports) */
.kiosk-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.kiosk-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  margin-bottom: 18px;
}

.kiosk-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kiosk-brand img {
  height: 40px;
  width: auto;
}

.kiosk-step-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.kiosk-card {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-glow);
}

.kiosk-hero {
  text-align: center;
  margin: auto 0;
  padding: 16px 8px;
}

.kiosk-title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 55%, #f9a8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kiosk-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 24px;
}

/* Welcome Showcase Easel */
.easel-showcase {
  width: 240px;
  height: 310px;
  margin: 18px auto 28px;
  background: var(--paper-ivory);
  border-radius: 18px;
  border: 6px solid #1e293b;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Camera & Portrait Preview Viewport (3:4 Aspect Ratio) */
.portrait-stage {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  margin: 12px auto 20px;
  background: #0f172a;
  border-radius: 20px;
  border: 2px solid var(--border-accent);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.portrait-stage video,
.portrait-stage img,
.portrait-stage canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.face-guide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.face-oval {
  width: 56%;
  height: 58%;
  border: 2px dashed rgba(165, 180, 252, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(9, 13, 22, 0.28);
}

.face-guide-caption {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.75);
  padding: 4px 12px;
  border-radius: 999px;
}

/* Style Selection Grid */
.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0 24px;
}

.style-option-card {
  background: rgba(15, 23, 42, 0.78);
  border: 2px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.style-option-card:hover {
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
}

.style-option-card.selected {
  border-color: var(--accent-pink);
  background: rgba(99, 102, 241, 0.16);
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.25);
}

.style-icon-preview {
  height: 84px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 2rem;
}

.style-option-title {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.style-option-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Live Sketch Canvas Stage */
.sketchpad-container {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 3 / 4;
  margin: 8px auto 18px;
  background: var(--paper-ivory);
  border-radius: 20px;
  border: 6px solid #1e293b;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.sketchpad-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.progress-panel {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 700;
}

.progress-stage-text {
  color: #e2e8f0;
  font-size: 1rem;
}

.progress-percent {
  color: #f472b6;
  font-size: 1.1rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-pink) 60%, var(--accent-amber) 100%);
  transition: width 0.25s ease;
}

.kiosk-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  flex-wrap: wrap;
}

.kiosk-actions > * {
  flex: 1;
  min-width: 140px;
}

.kiosk-footer {
  width: 100%;
  text-align: center;
  padding: 14px 0 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(15, 23, 42, 0.65);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.qr-modal {
  margin-top: 16px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  text-align: center;
  display: none;
}

.qr-modal.visible {
  display: block;
}

.qr-modal img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
  margin: 10px auto;
}

@media (max-width: 520px) {
  .style-grid {
    grid-template-columns: 1fr;
  }
  .kiosk-card {
    padding: 20px 16px;
  }
}
