/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a1128;
  --neon-green: #00ff66;
  --cyber-blue: #00f0ff;
  --purple: #b44aff;
  --gold: #ffd700;
  --blue: #00aaff;
  --text: #e8edf5;
  --text-dim: #6b7fa3;
}

html, body {
  height: 100dvh;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  background: #031121;
  color: var(--text);
}

/* ===== BACKGROUND IMAGE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/bg.jpg') center center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* ===== PAGE: 100vh flex ===== */
.page {
  position: relative;
  z-index: 1;
  height: 100dvh;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== TOP: Title ===== */
.top {
  flex: 0 0 auto;
  padding-top: clamp(40px, 8vh, 70px);
  text-align: center;
}

.title {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: clamp(1.4rem, 5.5vw, 2.2rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 3px;
  line-height: 1.15;
  color: #fff;
  text-shadow:
    0 0 12px rgba(0, 240, 255, 0.5),
    0 0 40px rgba(0, 240, 255, 0.15);
}

.title span {
  color: var(--neon-green);
  text-shadow:
    0 0 12px rgba(0, 255, 102, 0.5),
    0 0 40px rgba(0, 255, 102, 0.15);
}

.subtitle {
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  color: rgba(200, 220, 255, 0.7);
  letter-spacing: 2px;
  margin-top: 8px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

/* ===== CENTER: Radar ===== */
.center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vh, 24px);
}

.radar {
  position: relative;
  width: clamp(80px, 20vw, 120px);
  height: clamp(80px, 20vw, 120px);
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 255, 102, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.1);
  animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 255, 102, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.1); }
  50% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 60px rgba(0, 255, 102, 0.25), inset 0 0 20px rgba(0, 240, 255, 0.2); }
}

@keyframes heartbeat {
  0% { transform: translate(-50%, -50%) scale(1); }
  30% { transform: translate(-50%, -50%) scale(1.4); }
  60% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  z-index: 10;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 10px var(--neon-green),
    0 0 20px var(--cyber-blue),
    0 0 40px rgba(0, 240, 255, 0.2);
  line-height: 1;
  width: 100%;
  text-align: center;
}

.countdown.pulse {
  animation: heartbeat 0.6s ease-out;
}

.countdown.done {
  color: var(--neon-green);
  text-shadow:
    0 0 10px var(--neon-green),
    0 0 30px var(--neon-green),
    0 0 60px rgba(0, 255, 102, 0.3);
}

.hint-text {
  font-size: clamp(0.65rem, 2.2vw, 0.78rem);
  color: rgba(200, 220, 255, 0.9);
  letter-spacing: 0.5px;
  text-align: center;
  padding: 8px 20px;
  margin-top: 12px;
  background: rgba(3, 17, 33, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
}

/* Email form */
.email-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 0 20px;
  max-width: 400px;
  width: 100%;
}

.email-form input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(3, 17, 33, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s ease;
}

.email-form input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.email-form input::placeholder {
  color: rgba(200, 220, 255, 0.5);
}

.confirm-message {
  margin-top: 16px;
  padding: 12px 20px;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--neon-green);
  border-radius: 20px;
  color: var(--neon-green);
  font-size: 0.85rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.error-message {
  margin-bottom: 12px;
  padding: 10px 16px;
  background: rgba(255, 51, 51, 0.1);
  border: 1px solid #ff3333;
  border-radius: 20px;
  color: #ff3333;
  font-size: 0.85rem;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.email-form button {
  padding: 10px 24px;
  background: var(--neon-green);
  color: #000;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.email-form button:hover {
  background: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.5);
  transform: translateY(-1px);
}

.email-form button:active {
  transform: translateY(0);
}

.hint-text.unlocked {
  color: var(--neon-green);
  border-color: rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.1);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
  font-weight: 700;
}

/* ===== BOTTOM: 3 Luxury Item Squares ===== */
.bottom {
  flex: 0 0 auto;
  display: flex;
  gap: clamp(8px, 3vw, 14px);
  padding-bottom: clamp(20px, 5vh, 40px);
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}

.item-wrapper {
  flex: 1;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 240, 255, 0.2);
  overflow: hidden;
  transition: all 0.15s ease;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Highlight effect for lottery animation */
.item.highlight {
  border-color: var(--neon-green);
  box-shadow: 
    0 0 15px rgba(0, 255, 102, 0.6),
    0 0 30px rgba(0, 255, 102, 0.3),
    inset 0 0 10px rgba(0, 255, 102, 0.1);
  transform: scale(1.05);
}

.item-label {
  font-size: clamp(0.6rem, 2.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  color: rgba(220, 235, 255, 0.95);
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ===== ANIMATIONS ===== */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FONT ===== */
/* Custom fonts removed - using system font fallbacks */
