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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
}

/* Screens */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none !important;
}

/* Enrollment Screen */
#enrollment-screen {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.enrollment-container {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.enrollment-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 2rem;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.enrollment-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.enrollment-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.enrollment-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.enrollment-instructions {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

#enrollment-code {
  background: #fff;
  color: #000;
  font-size: 2.5rem;
  font-weight: bold;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  letter-spacing: 0.5rem;
  display: inline-block;
}

.enrollment-footer {
  font-size: 0.875rem;
  opacity: 0.75;
}

.status-text {
  font-size: 1.25rem;
  margin-top: 1rem;
  font-weight: 600;
}

.status-text.success {
  color: #10b981;
  animation: pulse 1s infinite;
}

/* Viewer Screen */
#viewer-screen {
  background: #000;
}

.viewer-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Content Container */
#content-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 300ms ease-in-out;
}

.media-content {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Default Content */
.default-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.default-logo {
  height: 160px;
  margin-bottom: 2rem;
  object-fit: contain;
}

.default-title {
  font-size: 6rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.default-subtitle {
  font-size: 2rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.default-info {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.clock-widget {
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.weather-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.weather-widget img {
  width: 80px;
  height: 80px;
}

.weather-temp {
  font-size: 2.5rem;
  font-weight: bold;
}

.weather-desc {
  font-size: 1.25rem;
  opacity: 0.9;
  text-transform: capitalize;
}

/* Patron Experience */
.patron-experience {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.patron-emoji {
  font-size: 8rem;
  margin-bottom: 2rem;
  animation: bounce 1s infinite;
}

.patron-message {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

.patron-from {
  font-size: 2rem;
  opacity: 0.9;
}

/* Progress Bar */
.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  transition: width 100ms linear;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Connection Status */
.status-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

.status {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.status.online {
  color: #10b981;
  text-shadow: 0 0 8px #10b981;
}

.status.offline {
  color: #ef4444;
  text-shadow: 0 0 8px #ef4444;
}

/* Verification Overlay */
#verification-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#verification-overlay.hidden {
  display: none;
}

.verification-container {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3rem;
  border-radius: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: background 0.5s ease;
}

.verification-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
  letter-spacing: -0.02em;
}

.verification-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 500;
}

.verification-qr {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  min-height: 350px;
  min-width: 350px;
}

.verification-instructions {
  font-size: 1.125rem;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.verification-rotating-indicator {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(251, 191, 36, 0.2);
  border-radius: 0.5rem;
  display: inline-block;
  color: #fbbf24;
  font-weight: 600;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.verification-timer-display {
  font-size: 1.25rem;
  padding: 1rem 1.5rem;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 0.75rem;
  margin-top: 1.5rem;
  color: #fef3c7;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.verification-timer-display #verification-timer {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  color: #fef3c7;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .default-title {
    font-size: 4rem;
  }

  .default-subtitle {
    font-size: 1.5rem;
  }

  .patron-message {
    font-size: 3rem;
  }

  .enrollment-title {
    font-size: 2rem;
  }

  #enrollment-code {
    font-size: 2rem;
  }
}