/* src/kiosk/kiosk.css
   Tablet-optimized kiosk styling. High contrast for outdoor/oval use,
   large touch targets, locked-down full-screen layout. */

.page-kiosk {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(201,151,34,0.14), transparent 28rem),
    radial-gradient(circle at bottom left, rgba(23,90,151,0.22), transparent 32rem),
    linear-gradient(135deg, #071426 0%, #0b1f38 54%, #12365d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

.kiosk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 42px rgba(7, 20, 38, 0.28);
  backdrop-filter: blur(18px);
}
.kiosk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.kiosk-brand-logo {
  width: 78px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}
.kiosk-status { font-size: 16px; color: #f7e7b4; opacity: 0.92; }
.kiosk-dot { margin: 0 8px; opacity: 0.5; }

.kiosk-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* Full-width, color-block feedback banner — the single primary focus */
.kiosk-banner {
  width: 100%;
  max-width: 900px;
  border-radius: 24px;
  padding: 64px 32px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 24px 64px rgba(7, 20, 38, 0.36), inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(18px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.kiosk-banner h1 {
  font-size: clamp(40px, 8vw, 72px);
  margin: 0 0 16px;
  line-height: 1.2;
}
.kiosk-banner p {
  font-size: clamp(20px, 3.5vw, 30px);
  margin: 0;
  opacity: 0.95;
}

.kiosk-banner--ready {
  background: linear-gradient(180deg, rgba(18,54,93,0.92), rgba(7,20,38,0.88));
}
.kiosk-banner--attract {
  background:
    linear-gradient(135deg, rgba(201,151,34,0.16), transparent 42%),
    linear-gradient(180deg, rgba(18,54,93,0.94), rgba(7,20,38,0.90));
  border-color: rgba(201, 151, 34, 0.56);
  animation: kioskPulse 2s ease-in-out infinite;
}
.kiosk-banner--success {
  background: linear-gradient(180deg, #1f9c58, #126c3d);
  border-color: rgba(255,255,255,0.36);
}
.kiosk-banner--error {
  background: linear-gradient(180deg, #d64535, #9f241b);
  border-color: rgba(255,255,255,0.36);
}

@keyframes kioskPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

/* Hidden input — off-screen but focusable so scanners always land here */
.kiosk-hidden-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.camera-scan-btn {
  margin-top: 20px;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid rgba(247,231,180,0.68);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247,231,180,0.92), rgba(201,151,34,0.84));
  color: #071426;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(7,20,38,0.22);
}

.camera-scan-btn:hover {
  background: linear-gradient(180deg, #fff2c2, #d6a538);
  color: #071426;
}

.camera-scan-panel {
  width: min(92vw, 520px);
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(247,231,180,0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 36px rgba(7,20,38,0.24);
  backdrop-filter: blur(18px);
}

.camera-scan-panel video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #071426;
}

.camera-scan-panel p {
  margin: 8px 0 0;
  color: #f7e7b4;
}

.kiosk-meta {
  margin-top: 32px;
  display: flex;
  gap: 32px;
  font-size: 18px;
  opacity: 0.85;
}

.kiosk-undo {
  margin-top: 28px;
  min-height: 56px;
  padding: 0 36px;
  font-size: 20px;
  font-weight: 600;
  color: #071426;
  background: linear-gradient(180deg, rgba(247,231,180,0.96), #c99722);
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(7,20,38,0.24);
}

.kiosk-undo:hover {
  color: #071426;
  background: linear-gradient(180deg, #fff2c2, #d6a538);
}

.kiosk-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
}
.kiosk-exit {
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(247, 231, 180, 0.45);
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.kiosk-exit:hover {
  color: #071426;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(201,151,34,0.18));
  border-color: rgba(247, 231, 180, 0.74);
}
