:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #ff0000;
  --font-family: "Inter", sans-serif;
  --transition-speed: 0.8s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  font-family: var(--font-family);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  color: white;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Global Video Background */
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease, filter 2s ease;
}

.video-bg.visible {
  opacity: 1;
}

/* Screen Styles */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease-in-out;
  padding: 2rem;
  text-align: center;
  z-index: 1; /* Above video */
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Background Utilities */
.bg-black {
  background-color: #000000;
  z-index: 2; /* Ensure intros cover video if needed, or video is hidden */
}

.transparent-bg {
  background-color: transparent;
}

.content-center {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  justify-content: center;
}

/* Typography & Animations (Keep existing) */
h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
h2 {
  font-size: 2.5rem;
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
p {
  font-size: 1.125rem;
  line-height: 1.6;
}

.fade-in-text {
  animation: fadeIn 1.5s ease-out forwards;
  opacity: 0;
}
.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}
.delay-1 {
  animation-delay: 0.5s;
}
.delay-2 {
  animation-delay: 1s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--accent-color);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  margin-top: 2rem;
}
.btn-primary:hover {
  transform: scale(1.05);
  background-color: #cc0000;
}

/* Selection Specifics */
.curtain-bg {
  /* Optional: Add a subtle overlay if the video itself isn't enough */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 90%
  );
  pointer-events: none;
  z-index: 1;
}

.cards-container {
  display: flex;
  gap: 48px;
  justify-content: center;
}

.card {
  background: rgba(0, 0, 0, 0.7);
  border: 4px solid white;
  border-radius: 12px;
  padding: 36px 34px 32px 34px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, background-color 0.3s;
  backdrop-filter: blur(8px);
  gap: 32px;
}
.card:hover {
  transform: translateY(-10px);
  background: rgba(40, 0, 0, 0.8);
}
.card-icon {
}
.btn-card {
  background-color: var(--accent-color);
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: auto;
  width: 100%;
}
.btn-card:hover {
  background-color: #cc0000;
}

/* Hand Gesture UI Styles */
.gesture-card {
  background: white;
  color: black;
  border-radius: 12px;
  width: 100%;
  max-width: 444px;
  display: flex;
  padding: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
}

.gesture-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.gesture-subtitle {
  font-size: 1rem;
  text-align: center;
}

.camera-permission-box {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.permission-header {
  background: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.permission-icon {
  font-size: 1.2rem;
}

.permission-text {
  flex: 1;
  font-size: 0.9rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.permission-body {
  padding: 1rem;
  background: white;
}

.permission-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.permission-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.permission-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-permission {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-permission.block {
  background: #f0f0f0;
}

.btn-permission.block:hover {
  background: #e0e0e0;
}

.btn-permission.allow {
  background: #1a73e8;
}

.btn-permission.allow:hover {
  background: #1557b0;
}

.camera-instruction,
.hand-instruction {
  text-align: center;
}

.camera-instruction h3,
.hand-instruction h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.camera-instruction p,
.hand-instruction p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.hand-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
}

.hand-arrow {
  font-size: 3rem;
  animation: arrowPulse 1.5s infinite;
}

.hand-arrow.left {
  animation-delay: 0s;
}

.hand-arrow.right {
  animation-delay: 0.75s;
}

@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.hand-image {
  font-size: 5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.btn-ready {
  background-color: var(--accent-color);
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-ready:hover {
  transform: scale(1.02);
  background-color: #cc0000;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .cards-container {
    flex-direction: column;
  }
}
