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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #f0e6ff;
  -webkit-font-smoothing: antialiased;
}

body {
  background: linear-gradient(135deg, #0c0a2a 0%, #1a0a3e 50%, #2d1b69 100%);
  position: relative;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ff6b9d;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ff8fab;
  text-align: center;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffb3c6;
  margin-bottom: 8px;
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d4c5f0;
  text-align: center;
  max-width: 500px;
}

/* ============================================
   APP CONTAINER
   ============================================ */
#app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ============================================
   CODE DISPLAY (for laptop waiting screen)
   ============================================ */
.code-display {
  font-family: 'Courier New', monospace;
  font-size: 2.8rem;
  font-weight: bold;
  letter-spacing: 12px;
  color: #ff6b9d;
  background: rgba(255, 107, 157, 0.08);
  border: 2px solid rgba(255, 107, 157, 0.25);
  border-radius: 16px;
  padding: 20px 40px;
  margin: 24px 0;
  text-align: center;
  user-select: all;
}

/* ============================================
   INPUT STYLES
   ============================================ */
.input-code {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  letter-spacing: 10px;
  text-align: center;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 107, 157, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  color: #ff6b9d;
  outline: none;
  width: 300px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-code:focus {
  border-color: #ff6b9d;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
}

.input-code::placeholder {
  color: rgba(255, 107, 157, 0.3);
  letter-spacing: 6px;
}

/* ============================================
   SELFIE DISPLAY
   ============================================ */
.selfie-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #ff6b9d;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 107, 157, 0.3);
  margin: 20px 0;
}

.selfie-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   CAMERA VIEW (mobile)
   ============================================ */
.camera-container {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ff6b9d;
  margin: 20px auto;
}

.camera-container video,
.camera-container canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   QUIZ STYLES
   ============================================ */
.quiz-option {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 14px 20px;
  margin: 8px auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 12px;
  color: #f0e6ff;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.quiz-option:hover {
  background: rgba(255, 107, 157, 0.1);
  border-color: rgba(255, 107, 157, 0.5);
  transform: translateX(4px);
}

.quiz-option.correct {
  background: rgba(255, 215, 0, 0.15);
  border-color: #ffd700;
  color: #ffe066;
}

.quiz-option.wrong {
  background: rgba(255, 99, 99, 0.15);
  border-color: #ff6363;
  color: #ff6363;
}

/* ============================================
   TRAIT CARDS
   ============================================ */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 450px;
  margin: 20px auto;
}

.trait-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 107, 157, 0.15);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
}

.trait-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 107, 157, 0.1);
  border-color: rgba(255, 107, 157, 0.4);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.15);
}

.trait-card .icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.trait-card .label {
  font-size: 0.95rem;
  color: #d4c5f0;
}

/* ============================================
   DRAG & DROP (Build a Day)
   ============================================ */
.day-builder {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  width: 100%;
  margin: 20px auto;
}

.day-category {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 107, 157, 0.15);
  border-radius: 12px;
  padding: 16px;
}

.day-category h3 {
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff8fab;
}

.day-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 107, 157, 0.2);
  color: #d4c5f0;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.day-chip:hover {
  background: rgba(255, 107, 157, 0.15);
  border-color: #ff6b9d;
}

.day-chip.selected {
  background: rgba(255, 215, 0, 0.15);
  border-color: #ffd700;
  color: #ffe066;
}

/* ============================================
   PASSWORD INPUT
   ============================================ */
.password-section {
  text-align: center;
}

.password-input {
  font-family: 'Courier New', monospace;
  font-size: 1.4rem;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 107, 157, 0.3);
  border-radius: 12px;
  padding: 14px 24px;
  color: #ff6b9d;
  outline: none;
  width: 280px;
  margin: 16px 0;
  transition: border-color 0.3s ease;
}

.password-input:focus {
  border-color: #ff6b9d;
}

.password-hint {
  font-style: italic;
  color: rgba(255, 107, 157, 0.6);
  font-size: 0.95rem;
  margin: 8px 0;
}

.password-error {
  color: #ff6363;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-error.show {
  opacity: 1;
}

/* ============================================
   SLIDESHOW
   ============================================ */
.slideshow {
  position: relative;
  width: 350px;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  margin: 20px auto;
}

.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slideshow img.active {
  opacity: 1;
}

/* ============================================
   MESSAGE OVERLAY (for emotional moments)
   ============================================ */
.message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 10, 42, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.message-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.message-overlay p {
  font-size: 1.5rem;
  color: #ff6b9d;
  font-style: italic;
  max-width: 600px;
  text-align: center;
  line-height: 2;
}

/* ============================================
   UTILITY
   ============================================ */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-pink { color: #ff6b9d; }
.text-yellow { color: #ffe066; }
.text-soft { color: #d4c5f0; }
.text-small { font-size: 0.85rem; }
.hidden { display: none !important; }
