/* ==========================================================================
   FLAPPY BIRTHDAY - SITE CSS
   Theme: Arcade Party / Mobile-First Responsive
   ========================================================================== */

:root {
  --bg-primary: #121026;
  --bg-card: rgba(26, 22, 54, 0.92);
  --accent-gold: #ffd700;
  --accent-pink: #ff2a74;
  --accent-cyan: #00f0ff;
  --accent-green: #00e676;
  --text-main: #ffffff;
  --text-muted: #b3b9c9;
  --font-family: 'Fredoka', 'Segoe UI', Roboto, -apple-system, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-glow: 0 0 25px rgba(255, 42, 116, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 42, 116, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0, 240, 255, 0.15) 0%, transparent 40%);
  font-family: var(--font-family);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main Container */
#app-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  max-height: 900px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* Screen Sections */
.screen {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.4s ease-out forwards;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card Styling */
.card {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-gold), var(--accent-cyan));
}

/* Typography */
h1.title-main {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 20%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

h2.title-sub {
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

p.description {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
}

p.highlight {
  color: #fff;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-pink) 0%, #d81b60 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 42, 116, 0.5);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 42, 116, 0.7);
  outline: none;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(255, 42, 116, 0.4);
}

.btn-secondary {
  width: 100%;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.2);
}

/* Location Badge */
.location-box {
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 16px 0;
}

.location-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.location-address {
  font-size: 1.1rem;
  color: #ffffff;
}

.location-datetime {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Video Player */
.video-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  margin: 16px 0;
  background: #000;
}

video {
  width: 100%;
  max-height: 50vh;
  display: block;
  object-fit: contain;
}

/* Form Styles */
.form-group {
  width: 100%;
  margin: 16px 0;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent-pink);
  background: rgba(255, 255, 255, 0.12);
}

.form-error {
  color: #ff5252;
  font-size: 0.9rem;
  margin-top: 6px;
  display: none;
}

/* Confetti Canvas Overlay */
#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Emoji Icons */
.emoji-banner {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
