/* ============================================================
   PYTHON ADVENTURE — Stylesheet
   Target audience: Kids ages 10-12
   Theme: Dark fantasy / RPG adventure
   ============================================================ */

/* ---- FONTS (loaded via HTML <link>) ---- */
/* Press Start 2P — retro pixel font for headings */
/* Nunito — friendly rounded font for body text   */

/* ---- TOKENS ---- */
:root {
  --bg:          #0d0d1a;
  --bg-card:     #14142a;
  --bg-step:     #0f1830;
  --bg-code:     #080812;
  --text:        #e4e4f4;
  --text-dim:    #8888aa;
  --gold:        #ffd700;
  --radius:      18px;
  --radius-sm:   10px;
  /* per-chapter accent colours */
  --c1:          #8b5cf6;   /* purple  */
  --c2:          #06b6d4;   /* cyan    */
  --c3:          #f97316;   /* orange  */
  --c4:          #22c55e;   /* green   */
  --c5:          #ec4899;   /* rose    */
  --c6:          #eab308;   /* yellow  */
  --c7:          #ef4444;   /* red     */
  --c8:          #6366f1;   /* indigo  */
  --pixel: 'Press Start 2P', monospace;
  --body:  'Nunito', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar              { width: 8px; }
::-webkit-scrollbar-track        { background: var(--bg-card); }
::-webkit-scrollbar-thumb        { background: var(--c1); border-radius: 4px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #190a40 0%, #0d0d1a 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-snake {
  font-size: 5.5rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
  animation: float 3.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--pixel);
  font-size: clamp(1.3rem, 4.5vw, 2.8rem);
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.7));
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 800;
  color: #c4b5fd;
  margin-bottom: 0.4rem;
}

.hero-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.scroll-hint {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  animation: bounce 2s ease-in-out infinite;
}

/* ============================================================
   PROGRESS MAP
   ============================================================ */
.progress-map {
  background: var(--bg-card);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid #1e1e3a;
}

.progress-map h2 {
  font-family: var(--pixel);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
}

.map-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.map-connector {
  font-size: 1.1rem;
  color: #333355;
  letter-spacing: -6px;
  user-select: none;
}

.map-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.25s, transform 0.25s;
}
.map-node:hover { color: var(--text); transform: translateY(-5px); }

.node-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #333355;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pixel);
  font-size: 1rem;
  transition: all 0.25s;
}
.map-node:hover .node-circle { transform: scale(1.12); }
.map-node:nth-child(1) .node-circle { border-color: var(--c1); }
.map-node:nth-child(2) .node-circle { border-color: var(--c2); }
.map-node:nth-child(3) .node-circle { border-color: var(--c3); }
.map-node:nth-child(4) .node-circle { border-color: var(--c4); }
.map-node:nth-child(5) .node-circle { border-color: var(--c5); }
.map-node:nth-child(6) .node-circle { border-color: var(--c6); }
.map-node:nth-child(7) .node-circle { border-color: var(--c7); }
.map-node:nth-child(8) .node-circle { border-color: var(--c8); }

.map-node span {
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

/* ============================================================
   CHAPTERS CONTAINER
   ============================================================ */
.chapters-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* ============================================================
   CHAPTER CARD
   ============================================================ */
.chapter-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #1e1e3a;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}
.chapter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.55);
}

/* Chapter headers — coloured gradient banners */
.chapter-1 .chapter-header { background: linear-gradient(135deg, #4c1d95, #1e1b4b); border-bottom: 2px solid rgba(139,92,246,.6); }
.chapter-2 .chapter-header { background: linear-gradient(135deg, #164e63, #0c1a2e); border-bottom: 2px solid rgba(6,182,212,.6); }
.chapter-3 .chapter-header { background: linear-gradient(135deg, #7c2d12, #1c1110); border-bottom: 2px solid rgba(249,115,22,.6); }
.chapter-4 .chapter-header { background: linear-gradient(135deg, #14532d, #0a1f12); border-bottom: 2px solid rgba(34,197,94,.6); }

.chapter-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
}

.chapter-badge {
  font-family: var(--pixel);
  font-size: 0.6rem;
  background: rgba(0,0,0,.4);
  border: 2px solid rgba(255,255,255,.25);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 1px;
}

.chapter-title-group { flex: 1; }
.chapter-title-group h2 {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.2rem;
}

.chapter-concept {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
}
.chapter-concept code {
  background: rgba(0,0,0,.35);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
  color: #fde68a;
}

.chapter-icon { font-size: 2.4rem; flex-shrink: 0; }

/* Chapter body */
.chapter-body {
  padding: 2rem;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---- Story box ---- */
.story-box {
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255,255,255,.03);
}
.chapter-1 .story-box { border-left: 4px solid var(--c1); }
.chapter-2 .story-box { border-left: 4px solid var(--c2); }
.chapter-3 .story-box { border-left: 4px solid var(--c3); }
.chapter-4 .story-box { border-left: 4px solid var(--c4); }

.story-box p { font-size: 1rem; }
.chapter-1 .story-box strong { color: var(--c1); }
.chapter-2 .story-box strong { color: var(--c2); }
.chapter-3 .story-box strong { color: var(--c3); }
.chapter-4 .story-box strong { color: var(--c4); }

/* ---- Section headings ---- */
.story-box h3,
.concept-box h3,
.pycharm-steps h3,
.look-for-box h3,
.you-learned h3 {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
}
.chapter-1 .story-box h3,
.chapter-1 .concept-box h3,
.chapter-1 .pycharm-steps h3,
.chapter-1 .look-for-box h3,
.chapter-1 .you-learned h3 { color: var(--c1); }

.chapter-2 .story-box h3,
.chapter-2 .concept-box h3,
.chapter-2 .pycharm-steps h3,
.chapter-2 .look-for-box h3,
.chapter-2 .you-learned h3 { color: var(--c2); }

.chapter-3 .story-box h3,
.chapter-3 .concept-box h3,
.chapter-3 .pycharm-steps h3,
.chapter-3 .look-for-box h3,
.chapter-3 .you-learned h3 { color: var(--c3); }

.chapter-4 .story-box h3,
.chapter-4 .concept-box h3,
.chapter-4 .pycharm-steps h3,
.chapter-4 .look-for-box h3,
.chapter-4 .you-learned h3 { color: var(--c4); }

/* ---- Concept box ---- */
.concept-box {
  background: var(--bg-step);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  border: 1px solid #1e1e3a;
}

.code-preview {
  margin-top: 1rem;
  background: var(--bg-code);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  border: 1px solid #1e1e3a;
  overflow-x: auto;
}
.code-line        { display: block; }
.code-line.indent { padding-left: 1.5rem; }
.code-output      { color: #4ade80; font-size: 0.82rem; opacity: 0.85; }
.kw    { color: #c084fc; }   /* keywords: if, for, print, def */
.str   { color: #fbbf24; }   /* strings   */
.var   { color: #67e8f9; }   /* variables */
.num   { color: #fb923c; }   /* numbers   */
.bl    { color: #f97316; }   /* booleans  */
.fn    { color: #a5f3fc; }   /* functions */

/* ---- PyCharm steps ---- */
.pycharm-steps {
  background: var(--bg-step);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  border: 1px solid #1e1e3a;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.chapter-1 .step-num { background: var(--c1); box-shadow: 0 0 14px rgba(139,92,246,.55); }
.chapter-2 .step-num { background: var(--c2); box-shadow: 0 0 14px rgba(6,182,212,.55); }
.chapter-3 .step-num { background: var(--c3); box-shadow: 0 0 14px rgba(249,115,22,.55); }
.chapter-4 .step-num { background: var(--c4); box-shadow: 0 0 14px rgba(34,197,94,.55); }

.step-text { font-size: 0.97rem; padding-top: 0.35rem; }
.step-text strong { font-weight: 800; }
.chapter-1 .step-text strong { color: var(--c1); }
.chapter-2 .step-text strong { color: var(--c2); }
.chapter-3 .step-text strong { color: var(--c3); }
.chapter-4 .step-text strong { color: var(--c4); }

.step-text code {
  background: rgba(0,0,0,.4);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: #fde68a;
}

/* ---- Look-for callout ---- */
.look-for-box {
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
}
.chapter-1 .look-for-box { background: rgba(139,92,246,.06);  border: 2px dashed rgba(139,92,246,.45); }
.chapter-2 .look-for-box { background: rgba(6,182,212,.06);   border: 2px dashed rgba(6,182,212,.45); }
.chapter-3 .look-for-box { background: rgba(249,115,22,.06);  border: 2px dashed rgba(249,115,22,.45); }
.chapter-4 .look-for-box { background: rgba(34,197,94,.06);   border: 2px dashed rgba(34,197,94,.45); }

.look-for-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.look-for-content ul li { font-size: 0.97rem; }

.success-signal {
  margin-top: 0.8rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--c4);
}

/* ---- Skills learned badges ---- */
.you-learned {
  background: rgba(255,255,255,.025);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  border: 1px solid #1e1e3a;
}

.learned-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.badge {
  padding: 0.38rem 0.9rem;
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 800;
}
.chapter-1 .badge { background: rgba(139,92,246,.15); border: 1.5px solid var(--c1); color: #c4b5fd; }
.chapter-2 .badge { background: rgba(6,182,212,.15);  border: 1.5px solid var(--c2); color: #a5f3fc; }
.chapter-3 .badge { background: rgba(249,115,22,.15); border: 1.5px solid var(--c3); color: #fed7aa; }
.chapter-4 .badge { background: rgba(34,197,94,.15);  border: 1.5px solid var(--c4); color: #bbf7d0; }

/* ============================================================
   COMPLETION SECTION
   ============================================================ */
.completion-section {
  background: linear-gradient(160deg, #1a0a3e 0%, #0a1f14 100%);
  padding: 6rem 2rem;
  text-align: center;
  border-top: 1px solid #1e1e3a;
}

.completion-content h2 {
  font-family: var(--pixel);
  font-size: clamp(1rem, 3vw, 1.6rem);
  background: linear-gradient(135deg, var(--gold), #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.completion-content > p {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.completion-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.comp-badge {
  background: rgba(255,215,0,.06);
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 900;
  font-size: 1rem;
  animation: pulse-gold 2.5s ease-in-out infinite;
}
.comp-badge:nth-child(2) { animation-delay: .6s; }
.comp-badge:nth-child(3) { animation-delay: 1.2s; }
.comp-badge:nth-child(4) { animation-delay: 1.8s; }

.next-steps {
  font-size: 1.05rem;
  color: #c4b5fd;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-card);
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.84rem;
  border-top: 1px solid #1e1e3a;
}
footer p + p { margin-top: 0.4rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes twinkle {
  from { opacity: 0.2; }
  to   { opacity: 0.95; }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,.2); }
  50%       { box-shadow: 0 0 26px rgba(255,215,0,.55); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .chapter-header  { flex-direction: column; text-align: center; gap: 0.8rem; }
  .chapter-icon    { font-size: 2rem; }
  .chapter-body    { padding: 1.25rem 1rem; }
  .map-nodes       { gap: 0.75rem; }
  .steps-list li   { flex-direction: column; align-items: flex-start; }
  .hero-title      { font-size: 1.1rem; }
  .completion-section { padding: 4rem 1.25rem; }
}

/* ============================================================
   CHAPTERS 5–8 EXTENSION
   ============================================================ */

/* Header gradients */
.chapter-5 .chapter-header { background: linear-gradient(135deg, #831843, #1a0510); border-bottom: 2px solid rgba(236,72,153,.6); }
.chapter-6 .chapter-header { background: linear-gradient(135deg, #713f12, #1a0e00); border-bottom: 2px solid rgba(234,179,8,.6); }
.chapter-7 .chapter-header { background: linear-gradient(135deg, #7f1d1d, #1c0808); border-bottom: 2px solid rgba(239,68,68,.6); }
.chapter-8 .chapter-header { background: linear-gradient(135deg, #1e1b4b, #0d0b24); border-bottom: 2px solid rgba(99,102,241,.6); }

/* Story box left borders */
.chapter-5 .story-box { border-left: 4px solid var(--c5); }
.chapter-6 .story-box { border-left: 4px solid var(--c6); }
.chapter-7 .story-box { border-left: 4px solid var(--c7); }
.chapter-8 .story-box { border-left: 4px solid var(--c8); }

/* Story box strong text */
.chapter-5 .story-box strong { color: var(--c5); }
.chapter-6 .story-box strong { color: var(--c6); }
.chapter-7 .story-box strong { color: var(--c7); }
.chapter-8 .story-box strong { color: var(--c8); }

/* Section headings */
.chapter-5 .story-box h3, .chapter-5 .concept-box h3,
.chapter-5 .pycharm-steps h3, .chapter-5 .look-for-box h3,
.chapter-5 .you-learned h3 { color: var(--c5); }
.chapter-6 .story-box h3, .chapter-6 .concept-box h3,
.chapter-6 .pycharm-steps h3, .chapter-6 .look-for-box h3,
.chapter-6 .you-learned h3 { color: var(--c6); }
.chapter-7 .story-box h3, .chapter-7 .concept-box h3,
.chapter-7 .pycharm-steps h3, .chapter-7 .look-for-box h3,
.chapter-7 .you-learned h3 { color: var(--c7); }
.chapter-8 .story-box h3, .chapter-8 .concept-box h3,
.chapter-8 .pycharm-steps h3, .chapter-8 .look-for-box h3,
.chapter-8 .you-learned h3 { color: var(--c8); }

/* Step number circles */
.chapter-5 .step-num { background: var(--c5); box-shadow: 0 0 14px rgba(236,72,153,.55); }
.chapter-6 .step-num { background: var(--c6); box-shadow: 0 0 14px rgba(234,179,8,.55); }
.chapter-7 .step-num { background: var(--c7); box-shadow: 0 0 14px rgba(239,68,68,.55); }
.chapter-8 .step-num { background: var(--c8); box-shadow: 0 0 14px rgba(99,102,241,.55); }

/* Step text strong */
.chapter-5 .step-text strong { color: var(--c5); }
.chapter-6 .step-text strong { color: var(--c6); }
.chapter-7 .step-text strong { color: var(--c7); }
.chapter-8 .step-text strong { color: var(--c8); }

/* Look-for callout boxes */
.chapter-5 .look-for-box { background: rgba(236,72,153,.06);  border: 2px dashed rgba(236,72,153,.45); }
.chapter-6 .look-for-box { background: rgba(234,179,8,.06);   border: 2px dashed rgba(234,179,8,.45); }
.chapter-7 .look-for-box { background: rgba(239,68,68,.06);   border: 2px dashed rgba(239,68,68,.45); }
.chapter-8 .look-for-box { background: rgba(99,102,241,.06);  border: 2px dashed rgba(99,102,241,.45); }

/* Skill badges */
.chapter-5 .badge { background: rgba(236,72,153,.15); border: 1.5px solid var(--c5); color: #fbcfe8; }
.chapter-6 .badge { background: rgba(234,179,8,.15);  border: 1.5px solid var(--c6); color: #fef08a; }
.chapter-7 .badge { background: rgba(239,68,68,.15);  border: 1.5px solid var(--c7); color: #fecaca; }
.chapter-8 .badge { background: rgba(99,102,241,.15); border: 1.5px solid var(--c8); color: #c7d2fe; }

/* Extra completion badge delays */
.comp-badge:nth-child(5)  { animation-delay: 2.4s; }
.comp-badge:nth-child(6)  { animation-delay: 3.0s; }
.comp-badge:nth-child(7)  { animation-delay: 3.6s; }
.comp-badge:nth-child(8)  { animation-delay: 4.2s; }

/* ============================================================
   CHAPTERS 9–11 EXTENSION
   ============================================================ */

/* Extra colour tokens */
:root {
  --c9:  #14b8a6;   /* teal  */
  --c10: #f59e0b;   /* amber */
  --c11: #ffd700;   /* gold — capstone */
}

/* Map node border colours */
.map-nodes .map-node:nth-child(9)  .node-circle { border-color: var(--c9);  }
.map-nodes .map-node:nth-child(10) .node-circle { border-color: var(--c10); }
.map-nodes .map-node:nth-child(11) .node-circle { border-color: var(--c11); }

/* Header gradients */
.chapter-9  .chapter-header { background: linear-gradient(135deg, #134e4a, #042f2e); border-bottom: 2px solid rgba(20,184,166,.6); }
.chapter-10 .chapter-header { background: linear-gradient(135deg, #78350f, #1c0d00); border-bottom: 2px solid rgba(245,158,11,.6); }
.chapter-11 .chapter-header { background: linear-gradient(135deg, #78350f, #3b1f00); border-bottom: 4px solid rgba(255,215,0,.8); box-shadow: 0 4px 30px rgba(255,215,0,.2); }

/* Story box left borders */
.chapter-9  .story-box { border-left: 4px solid var(--c9);  }
.chapter-10 .story-box { border-left: 4px solid var(--c10); }
.chapter-11 .story-box { border-left: 4px solid var(--c11); }

/* Story box strong text */
.chapter-9  .story-box strong { color: var(--c9);  }
.chapter-10 .story-box strong { color: var(--c10); }
.chapter-11 .story-box strong { color: var(--c11); }

/* Section headings */
.chapter-9  .story-box h3, .chapter-9  .concept-box h3,
.chapter-9  .pycharm-steps h3, .chapter-9  .look-for-box h3,
.chapter-9  .you-learned h3 { color: var(--c9); }
.chapter-10 .story-box h3, .chapter-10 .concept-box h3,
.chapter-10 .pycharm-steps h3, .chapter-10 .look-for-box h3,
.chapter-10 .you-learned h3 { color: var(--c10); }
.chapter-11 .story-box h3, .chapter-11 .concept-box h3,
.chapter-11 .pycharm-steps h3, .chapter-11 .look-for-box h3,
.chapter-11 .you-learned h3 { color: var(--c11); }

/* Step number circles */
.chapter-9  .step-num { background: var(--c9);  box-shadow: 0 0 14px rgba(20,184,166,.55); }
.chapter-10 .step-num { background: var(--c10); box-shadow: 0 0 14px rgba(245,158,11,.55); }
.chapter-11 .step-num { background: var(--c11); box-shadow: 0 0 14px rgba(255,215,0,.55); color: #111; }

/* Step text strong */
.chapter-9  .step-text strong { color: var(--c9);  }
.chapter-10 .step-text strong { color: var(--c10); }
.chapter-11 .step-text strong { color: var(--c11); }

/* Look-for callout boxes */
.chapter-9  .look-for-box { background: rgba(20,184,166,.06);  border: 2px dashed rgba(20,184,166,.45); }
.chapter-10 .look-for-box { background: rgba(245,158,11,.06);  border: 2px dashed rgba(245,158,11,.45); }
.chapter-11 .look-for-box { background: rgba(255,215,0,.06);   border: 2px dashed rgba(255,215,0,.5); }

/* Skill badges */
.chapter-9  .badge { background: rgba(20,184,166,.15);  border: 1.5px solid var(--c9);  color: #99f6e4; }
.chapter-10 .badge { background: rgba(245,158,11,.15);  border: 1.5px solid var(--c10); color: #fde68a; }
.chapter-11 .badge { background: rgba(255,215,0,.15);   border: 1.5px solid var(--c11); color: #ffd700; }

/* Capstone chapter card special glow */
.chapter-11.chapter-card { box-shadow: 0 0 50px rgba(255,215,0,.13), 0 4px 24px rgba(0,0,0,.6); }

/* Extra completion badge delays */
.comp-badge:nth-child(9)  { animation-delay: 4.8s; }
.comp-badge:nth-child(10) { animation-delay: 5.4s; }
.comp-badge:nth-child(11) { animation-delay: 6.0s; }


/* ============================================================
   DOWNLOAD BANNER
   ============================================================ */
.download-banner {
  background: rgba(255,215,0,.04);
  border-top: 1px solid rgba(255,215,0,.12);
  border-bottom: 1px solid rgba(255,215,0,.12);
  padding: 0.9rem 1.5rem;
  text-align: center;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,215,0,.09);
  border: 1.5px solid rgba(255,215,0,.45);
  color: var(--gold);
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.55rem 1.4rem;
  border-radius: 99px;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}
.download-btn:hover {
  background: rgba(255,215,0,.18);
  box-shadow: 0 0 20px rgba(255,215,0,.28);
}
/* ── Chapter meta strip (difficulty + time + teaser) ── */
.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  padding: 0.55rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.8rem;
  align-items: center;
}
.meta-difficulty { color: var(--gold); font-weight: 700; letter-spacing: 0.02em; }
.meta-time { color: #94a3b8; }
.meta-teaser { color: #a5b4c8; font-style: italic; }
