/* =============================================
   AI Baby Steps — Shared Stylesheet
   Warm dark theme, big text, mobile-first
   ============================================= */

:root {
  --bg:         #1c1a17;
  --bg2:        #252320;
  --card:       #2e2b26;
  --card2:      #373330;
  --border:     #4a4540;
  --gold:       #f5a623;
  --gold-light: #ffc654;
  --gold-dim:   #a06c10;
  --text:       #f0ebe0;
  --text-muted: #a09880;
  --text-soft:  #c8bfad;
  --green:      #52c47a;
  --red:        #e05a5a;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.35);
}

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

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Typography ── */
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem);   line-height: 1.3; font-weight: 700; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); line-height: 1.4; font-weight: 600; }
p  { font-size: 1.05rem; margin-bottom: 1rem; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }
a  { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }
strong { color: var(--text); font-weight: 700; }

/* ── Layout ── */
.container { max-width: 860px; margin: 0 auto; padding: 0 1.2rem; }
.section    { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Navigation ── */
nav {
  background: rgba(28,26,23,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span { font-size: 1.3rem; }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1500;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,166,35,0.4);
  text-decoration: none;
  color: #1a1500;
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #1a1500;
  text-decoration: none;
}
.btn-big {
  padding: 1.1rem 2.5rem;
  font-size: 1.2rem;
}
.btn-full { width: 100%; justify-content: center; }

/* ── Hero ── */
.hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(245,166,35,0.12) 0%, transparent 70%),
              var(--bg);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--text); margin-bottom: 1.2rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.hero-proof {
  background: rgba(245,166,35,0.08);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  color: var(--text-soft);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { color: var(--text); margin-bottom: 0.6rem; }
.section-header p { max-width: 540px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ── Story Card ── */
.story-section { background: var(--bg2); }
.story-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.story-card::before {
  content: '"';
  position: absolute;
  top: -0.3rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}
.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.55rem;
}
.timeline-item p { margin: 0; font-size: 1rem; }
.story-byline {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}
.story-byline strong { color: var(--gold); font-style: normal; }

/* ── Benefits Grid ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.benefit-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}
.benefit-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.benefit-card h3 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--text); }
.benefit-card p  { font-size: 0.9rem; margin: 0; }

/* ── Quiz ── */
.quiz-section { background: var(--bg2); }
.quiz-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-progress-wrap {
  height: 6px;
  background: var(--bg2);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.quiz-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-soft);
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.quiz-option:hover {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(245,166,35,0.07);
}
.quiz-option.selected {
  border-color: var(--gold);
  background: rgba(245,166,35,0.12);
  color: var(--text);
}
.quiz-result { display: none; text-align: center; }
.quiz-result.active { display: block; }
.result-level {
  display: inline-block;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.result-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.result-desc { margin-bottom: 1.5rem; }

/* ── Four Colors ── */
.four-colors-section { background: var(--bg); }
.colors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.color-card {
  border-radius: var(--radius);
  padding: 1.3rem;
  border: 1px solid transparent;
}
.color-red    { background: rgba(220,60,60,0.12);  border-color: rgba(220,60,60,0.3);  }
.color-green  { background: rgba(60,160,80,0.12);  border-color: rgba(60,160,80,0.3);  }
.color-blue   { background: rgba(60,120,220,0.12); border-color: rgba(60,120,220,0.3); }
.color-yellow { background: rgba(240,180,30,0.12); border-color: rgba(240,180,30,0.3); }
.color-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.color-red .color-label    { color: #f57070; }
.color-green .color-label  { color: #60c87a; }
.color-blue .color-label   { color: #6090e0; }
.color-yellow .color-label { color: var(--gold); }
.color-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.3rem; }
.color-card p  { font-size: 0.88rem; margin: 0; }
.four-colors-cta { text-align: center; }

/* ── Module Cards ── */
.modules-section { background: var(--bg2); }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-decoration: none;
  display: block;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.module-card::after {
  content: '→';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.2s;
}
.module-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.module-card:hover::after { opacity: 1; right: 1.2rem; }
.module-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.module-badge {
  display: inline-block;
  background: rgba(82,196,122,0.15);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(82,196,122,0.3);
  margin-left: 0.5rem;
  vertical-align: middle;
}
.module-card h3 { color: var(--text); margin-bottom: 0.5rem; font-size: 1.05rem; }
.module-card p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.module-card.locked { opacity: 0.7; }
.module-card.locked::after { content: '🔒'; font-size: 1rem; }

/* ── Email Signup ── */
.signup-section { background: var(--bg); }
.signup-box {
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.signup-box h2 { margin-bottom: 0.5rem; }
.signup-box p  { margin-bottom: 1.5rem; }
.signup-form { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.signup-input {
  flex: 1;
  min-width: 220px;
  padding: 0.9rem 1.2rem;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.signup-input:focus { border-color: var(--gold); }
.signup-input::placeholder { color: var(--text-muted); }
.signup-privacy { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.8rem; }
.signup-success { display: none; }
.signup-success.show { display: block; }
.signup-success h3 { color: var(--green); margin-bottom: 0.5rem; }

/* ── Footer ── */
footer {
  background: #141210;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.disclosure {
  background: rgba(245,166,35,0.06);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 1rem auto 0;
  max-width: 600px;
}

/* ── Progress Bar (modules) ── */
.lesson-progress {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}
.progress-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.progress-label { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.progress-track {
  flex: 1;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.progress-pct { font-size: 0.85rem; color: var(--gold); font-weight: 700; white-space: nowrap; }

/* ── Lesson Styles ── */
.lesson-page { padding: 2.5rem 0 5rem; }
.lesson-hero { padding: 3rem 0 2rem; text-align: center; }
.lesson-hero h1 { margin-bottom: 0.5rem; }
.lesson-section {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.lesson-section h2 {
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.lesson-section p { margin-bottom: 0.9rem; }
.lesson-section p:last-child { margin-bottom: 0; }

.callout {
  background: rgba(245,166,35,0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}
.callout p { color: var(--text); margin: 0; font-size: 1rem; }

.callout-blue {
  background: rgba(60,120,220,0.08);
  border-left: 4px solid #6090e0;
}

.not-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.not-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--text-soft);
}
.not-list .icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

.ai-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.ai-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.ai-list .icon { font-size: 1.3rem; }

.timeline-story {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin: 1.2rem 0;
}

/* ── AI or Not Game ── */
.game-section { background: var(--bg2); }
.game-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
}
.game-counter {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-align: center;
}
.game-item {
  display: none;
  text-align: center;
}
.game-item.active { display: block; }
.game-item-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.game-item-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 1.4em;
}
.game-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.game-btn {
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid;
  transition: all 0.2s;
  min-width: 140px;
}
.game-btn-ai {
  background: rgba(82,196,122,0.1);
  border-color: var(--green);
  color: var(--green);
}
.game-btn-ai:hover {
  background: var(--green);
  color: #0a1f13;
}
.game-btn-not {
  background: rgba(224,90,90,0.1);
  border-color: var(--red);
  color: var(--red);
}
.game-btn-not:hover {
  background: var(--red);
  color: #1a0505;
}
.game-feedback {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}
.game-feedback.correct { background: rgba(82,196,122,0.15); color: var(--green); display: flex; }
.game-feedback.wrong   { background: rgba(224,90,90,0.15); color: var(--red); display: flex; }
.game-next-btn {
  margin-top: 1rem;
  display: none;
}
.game-results { display: none; text-align: center; }
.game-results.show { display: block; }
.game-score { font-size: 3rem; font-weight: 800; color: var(--gold); margin-bottom: 0.5rem; }

/* ── Homework ── */
.homework-section {
  background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(245,166,35,0.03));
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.homework-section h2 { color: var(--gold); margin-bottom: 1rem; }
.homework-section p  { max-width: 520px; margin: 0 auto 1.5rem; }
.homework-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }

/* ── Module 2: Steps ── */
.step-list {
  counter-reset: steps;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}
.step-item {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1500;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.step-item p { margin: 0; }

.prompt-box {
  background: var(--bg);
  border: 2px dashed var(--gold-dim);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: var(--gold-light);
  margin: 1rem 0;
  position: relative;
}
.prompt-box .copy-hint {
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.4rem;
}

.magic-phrase {
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(245,166,35,0.05));
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.2rem 0;
}
.magic-phrase .phrase {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin: 0.5rem 0;
}

/* ── Checklist ── */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.check-item:hover { border-color: var(--gold-dim); }
.check-item.done  { border-color: var(--green); background: rgba(82,196,122,0.08); }
.check-box {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  margin-top: 0.1rem;
}
.check-item.done .check-box {
  background: var(--green);
  border-color: var(--green);
  color: #0a1f13;
}
.check-text { font-size: 0.95rem; color: var(--text-soft); }
.check-item.done .check-text { text-decoration: line-through; color: var(--text-muted); }

.celebration {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(82,196,122,0.08);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.celebration.show { display: block; }
.celebration h3 { color: var(--green); font-size: 1.4rem; margin-bottom: 0.5rem; }

/* ── Nav Next/Prev ── */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.lesson-nav .btn { flex: 1; justify-content: center; min-width: 160px; }

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

/* ── Utilities ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.emoji-big { font-size: 3rem; display: block; margin-bottom: 0.5rem; }

/* ── Four Colors Selector ── */
.color-selector {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(28, 26, 23, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 166, 35, 0.2);
  padding: 10px 16px;
  text-align: center;
  font-size: 0.9rem;
}
.color-selector p {
  color: #8b827a;
  margin-bottom: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.color-btn {
  display: inline-block;
  padding: 7px 15px;
  margin: 3px;
  border-radius: 50px;
  border: 2px solid #3a3630;
  background: transparent;
  color: #f3ead6;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
  font-family: inherit;
}
.color-btn:hover { border-color: #5a5248; background: rgba(255,255,255,0.04); }
.color-btn.active-red    { border-color: #e63946; background: rgba(230,57,70,0.18);   color: #f5a0a6; }
.color-btn.active-green  { border-color: #2a9d8f; background: rgba(42,157,143,0.18);  color: #60c8bb; }
.color-btn.active-blue   { border-color: #457b9d; background: rgba(69,123,157,0.18);  color: #6fa8cc; }
.color-btn.active-yellow { border-color: #f5a623; background: rgba(245,166,35,0.18);  color: #f5c060; }

/* Color-adapted content blocks */
.for-red, .for-green, .for-blue, .for-yellow { display: none; }
body.mode-red    .for-red    { display: block; }
body.mode-red    .for-default { display: none; }
body.mode-green  .for-green  { display: block; }
body.mode-green  .for-default { display: none; }
body.mode-blue   .for-blue   { display: block; }
body.mode-blue   .for-default { display: none; }
body.mode-yellow .for-yellow { display: block; }
body.mode-yellow .for-default { display: none; }

/* Color mode callout variants */
.color-mode-block {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
  line-height: 1.7;
}
.color-mode-block p { color: var(--text-soft); margin-bottom: 0.6rem; }
.color-mode-block p:last-child { margin-bottom: 0; }
.color-mode-block ul {
  list-style: none;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.color-mode-block ul li {
  display: flex;
  gap: 0.5rem;
  color: var(--text-soft);
  font-size: 1rem;
}
.color-mode-block ul li::before { content: '•'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.for-red .color-mode-block    { background: rgba(230,57,70,0.07);   border-left: 3px solid #e63946; }
.for-green .color-mode-block  { background: rgba(42,157,143,0.07);  border-left: 3px solid #2a9d8f; }
.for-blue .color-mode-block   { background: rgba(69,123,157,0.07);  border-left: 3px solid #457b9d; }
.for-yellow .color-mode-block { background: rgba(245,166,35,0.07);  border-left: 3px solid #f5a623; }

/* ── Mobile ── */
@media (max-width: 600px) {
  html { font-size: 17px; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.82rem; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .story-card { padding: 1.8rem 1.3rem; }
  .colors-grid { grid-template-columns: 1fr 1fr; }
  .signup-form { flex-direction: column; }
  .signup-input { min-width: unset; width: 100%; }
  .game-buttons { flex-direction: column; }
  .game-btn { width: 100%; }
  .lesson-nav { flex-direction: column; }
  .lesson-nav .btn { width: 100%; }
}
