/* ============================================
   Level Unlocked - 27 on the 27th
   Global Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #10101c;
  --bg-card: #161628;
  --bg-card-hover: #1e1e38;
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #555570;
  --accent-purple: #7b2ff7;
  --accent-blue: #00c8ff;
  --accent-pink: #ff2d95;
  --accent-green: #00e676;
  --glow-purple: 0 0 20px rgba(123, 47, 247, 0.4), 0 0 60px rgba(123, 47, 247, 0.15);
  --glow-blue: 0 0 20px rgba(0, 200, 255, 0.4), 0 0 60px rgba(0, 200, 255, 0.15);
  --glow-pink: 0 0 20px rgba(255, 45, 149, 0.4);
  --glow-green: 0 0 20px rgba(0, 230, 118, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-main: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-purple);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Background Pattern ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(123, 47, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 200, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 45, 149, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Layout ---------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 60px;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */
.top-bar {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-back:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-purple);
}

.btn-back::before {
  content: '←';
  font-size: 1rem;
}

/* ---------- Page Title ---------- */
.page-title {
  text-align: center;
  margin-bottom: 10px;
}

.page-title h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-title .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

.room-title {
  text-align: center;
  margin-bottom: 30px;
}

.room-title h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.room-title .room-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

/* ---------- Room Grid (Home) ---------- */
.room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}

.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
}

.room-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background var(--transition);
}

.room-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-purple);
}

.room-card:hover::before {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
}

.room-card .room-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.room-card .room-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.room-card .room-status {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
}

.room-card .room-status.locked {
  color: var(--text-muted);
  background: rgba(85, 85, 112, 0.15);
  border: 1px solid rgba(85, 85, 112, 0.2);
}

.room-card .room-status.completed {
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

/* ---------- Hints Section (Home) ---------- */
.hints-section {
  margin: 30px 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.hints-section h2 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hint-slot {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  transition: all 0.5s ease;
}

.hint-slot:last-child {
  margin-bottom: 0;
}

.hint-slot.revealed {
  border-style: solid;
  border-color: rgba(123, 47, 247, 0.2);
  background: rgba(123, 47, 247, 0.05);
  color: var(--text-primary);
  font-style: normal;
}

/* ---------- Final Input (Home) ---------- */
.final-input-section {
  margin-top: 30px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-align: center;
}

.final-input-section.locked {
  opacity: 0.4;
  pointer-events: none;
}

.final-input-section h2 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.final-input-section .input-group {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: all var(--transition);
}

/* ---------- Inputs & Buttons ---------- */
input[type="text"],
input[type="number"] {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
  outline: none;
}

input[type="text"]:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.15);
}

input[type="text"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #9b4dff);
  color: #fff;
  box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(123, 47, 247, 0.45);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-hint {
  background: rgba(0, 200, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 200, 255, 0.2);
  font-size: 0.85rem;
  padding: 8px 18px;
}

.btn-hint:hover:not(:disabled) {
  background: rgba(0, 200, 255, 0.2);
  box-shadow: var(--glow-blue);
}

.btn-hint:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-check {
  background: linear-gradient(135deg, var(--accent-green), #2bff88);
  color: #0a0a12;
  font-weight: 700;
}

.btn-check:hover {
  box-shadow: var(--glow-green);
}

/* ---------- Slider ---------- */
.slider-container {
  margin-top: 12px;
}

.slider-container label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  outline: none;
  transition: background var(--transition);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(123, 47, 247, 0.4);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(123, 47, 247, 0.4);
}

/* ---------- Hint List ---------- */
.hints-list {
  margin-top: 16px;
}

.hint-item {
  padding: 10px 14px;
  margin-bottom: 6px;
  background: rgba(0, 200, 255, 0.04);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
  font-size: 0.9rem;
  animation: fadeSlideIn 0.3s ease;
}

/* ---------- Messages ---------- */
.message {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-top: 16px;
  animation: fadeSlideIn 0.4s ease;
  text-align: center;
}

.message-success {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--accent-green);
}

.message-error {
  background: rgba(255, 45, 149, 0.1);
  border: 1px solid rgba(255, 45, 149, 0.25);
  color: var(--accent-pink);
}

.message-info {
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.2);
  color: var(--accent-blue);
}

/* ---------- Room Challenge Area ---------- */
.challenge-area {
  margin: 20px 0;
}

.answer-section {
  margin-top: 24px;
  text-align: center;
}

.answer-section .input-group {
  display: flex;
  gap: 10px;
  max-width: 450px;
  margin: 12px auto 0;
}

.answer-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* ---------- Completion Overlay ---------- */
.completion-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 18, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.5s ease;
  padding: 20px;
}

.completion-overlay .completion-message {
  font-size: 1.3rem;
  color: var(--text-primary);
  text-align: center;
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 30px;
  animation: fadeSlideIn 0.6s ease 0.2s both;
}

.completion-overlay .completion-message em {
  color: var(--accent-purple);
  font-style: normal;
  font-weight: 700;
}

.completion-overlay .btn {
  animation: fadeSlideIn 0.6s ease 0.5s both;
}

/* ========== MUSIC ROOM ========== */
.audio-controls {
  text-align: center;
  margin-bottom: 20px;
}

.btn-sound {
  background: rgba(123, 47, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(123, 47, 247, 0.25);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  font-weight: 600;
}

.btn-sound:hover {
  background: rgba(123, 47, 247, 0.25);
  box-shadow: var(--glow-purple);
}

.btn-sound.playing {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border-color: rgba(0, 230, 118, 0.25);
}

/* ========== PHOTO ROOM ========== */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-viewport {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-viewport img,
.photo-viewport .placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.1s ease, transform 0.1s ease;
}

.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  background-size: cover;
  background-position: center;
}

.photo-card .photo-controls {
  padding: 16px;
}

.photo-card .photo-caption {
  text-align: center;
  padding: 0 16px 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.photo-word {
  text-align: center;
  padding: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: none;
  animation: fadeSlideIn 0.4s ease;
}

.photo-word.visible {
  display: block;
}

/* ========== MOON ROOM ========== */
.moon-source {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 20px;
  min-height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.moon-source-label,
.moon-target-label {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 600;
}

.moon-target {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.moon-slot {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 80px;
  position: relative;
}

.moon-slot:hover {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
}

.moon-slot .slot-number {
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.moon-slot.filled {
  border-style: solid;
  border-color: rgba(123, 47, 247, 0.3);
  background: rgba(123, 47, 247, 0.05);
}

.moon-slot.correct-hint {
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.05);
  pointer-events: none;
}

.moon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
  user-select: none;
}

.moon-item:hover {
  background: rgba(123, 47, 247, 0.1);
  border-color: rgba(123, 47, 247, 0.3);
}

.moon-item.selected {
  background: rgba(123, 47, 247, 0.2);
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.moon-item .moon-emoji {
  font-size: 2rem;
  line-height: 1;
}

.moon-item .moon-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.moon-check-row {
  text-align: center;
  margin-top: 16px;
}

/* ========== F1 ROOM ========== */
.f1-tracks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}

.track-card.solved {
  border-color: rgba(0, 230, 118, 0.3);
}

.track-image {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--bg-secondary);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.track-image svg {
  width: 80%;
  height: 80%;
}

.track-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.track-hints {
  margin-top: 10px;
}

.track-hint-item {
  padding: 8px 12px;
  margin-bottom: 4px;
  background: rgba(0, 200, 255, 0.04);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
  font-size: 0.85rem;
  animation: fadeSlideIn 0.3s ease;
}

.track-solved-msg {
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========== FINAL PAGE ========== */
.final-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 40px 20px;
}

.sky-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #0a0a2e 0%, #1a1a4e 30%, #2d1b69 60%, #4a1a7a 100%);
  z-index: 0;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.cloud {
  position: fixed;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  filter: blur(30px);
  animation: floatCloud linear infinite;
  z-index: 2;
}

.cloud-1 { width: 300px; height: 80px; top: 30%; animation-duration: 45s; }
.cloud-2 { width: 400px; height: 100px; top: 50%; animation-duration: 60s; animation-delay: -20s; }
.cloud-3 { width: 250px; height: 60px; top: 70%; animation-duration: 50s; animation-delay: -10s; }

.final-content {
  position: relative;
  z-index: 10;
  animation: fadeSlideIn 1s ease 0.3s both;
}

.final-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  background-size: 200% 200%;
}

.final-reveal {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 30px 0;
  animation: fadeSlideIn 1s ease 1s both;
}

.final-reveal .plane {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
  animation: planeFly 3s ease-in-out infinite;
}

.final-birthday {
  font-size: 1.8rem;
  color: var(--accent-pink);
  margin: 30px 0;
  animation: fadeSlideIn 1s ease 1.8s both;
  text-shadow: var(--glow-pink);
}

.final-participants {
  margin-top: 40px;
  animation: fadeSlideIn 1s ease 2.5s both;
}

.final-participants h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.participants-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.participants-list li {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes floatCloud {
  from { transform: translateX(-120%); }
  to { transform: translateX(120vw); }
}

@keyframes planeFly {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(123, 47, 247, 0.3); }
  50% { box-shadow: 0 0 20px rgba(123, 47, 247, 0.6), 0 0 40px rgba(123, 47, 247, 0.2); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.4s ease;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease; }

/* ---------- Helper Text ---------- */
.helper-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.6;
}

/* ---------- Reset Button ---------- */
.btn-reset {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-reset:hover {
  color: var(--accent-pink);
  border-color: rgba(255, 45, 149, 0.3);
  background: rgba(255, 45, 149, 0.06);
}

/* ---------- Early guess ---------- */
.early-guess {
  animation: fadeSlideIn 0.8s ease 0.1s both;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 20px 14px 40px;
  }

  .page-title h1 {
    font-size: 1.5rem;
  }

  .room-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .room-card {
    padding: 20px 14px;
  }

  .room-card .room-icon {
    font-size: 1.8rem;
  }

  .final-input-section .input-group {
    flex-direction: column;
  }

  .answer-section .input-group {
    flex-direction: column;
  }

  .photo-viewport {
    aspect-ratio: 1;
  }

  .moon-target {
    grid-template-columns: repeat(3, 1fr);
  }

  .moon-item .moon-emoji {
    font-size: 1.5rem;
  }

  .track-input-row {
    flex-direction: column;
  }

  .final-content h1 {
    font-size: 1.8rem;
  }

  .final-reveal {
    font-size: 1.5rem;
  }

  .final-birthday {
    font-size: 1.4rem;
  }
}

@media (min-width: 601px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .moon-target {
    grid-template-columns: repeat(9, 1fr);
  }

  .moon-item .moon-label {
    font-size: 0.5rem;
  }
}
