/* Quiz Critical CSS - Above-the-fold styles only */
/* Inline or load this before main CSS for instant rendering */

:root {
  --primary: 174 30% 26%;
  --primary-foreground: 0 0% 100%;
  --background: 40 14% 98%;
  --foreground: 174 30% 26%;
  --accent: 42 70% 67%;
  --muted-foreground: 174 20% 40%;
  --border: 40 15% 88%;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-gradient-accent {
  background: linear-gradient(180deg, hsl(var(--accent) / 0.2) 0%, hsl(var(--background)) 100%);
}

/* Header */
.quiz-header {
  padding: 1.5rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.quiz-logo {
  height: 2rem;
  width: auto;
}

/* Main Container */
.quiz-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

/* Age Selector Section */
.age-section {
  text-align: center;
  padding: 3rem 0;
}

.age-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.age-subtitle {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
}

/* Age Grid */
.age-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .age-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .age-title {
    font-size: 2.25rem;
  }
}

/* Age Buttons */
.age-btn {
  height: 5rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 1rem;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-btn:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  transform: scale(1.05);
}

.age-btn:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}
