:root {
  --navy: #0b234a;
  --navy-soft: #153b70;
  --red: #df1f3f;
  --red-dark: #bd1733;
  --white: #ffffff;
  --cloud: #f4f7fb;
  --sky: #eaf3ff;
  --ink: #14213a;
  --muted: #5f6e82;
  --line: #d9e3ef;
  --gold: #d3a93d;
  --green: #13806f;
  --shadow: 0 24px 70px rgba(11, 35, 74, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-rounded, "Segoe UI", Arial, sans-serif; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 300;
  top: -70px;
  left: 18px;
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

.permission-gate {
  position: fixed;
  z-index: 250;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 14%, rgba(255,255,255,.14) 0 8%, transparent 8.2%),
    radial-gradient(circle at 84% 82%, rgba(223,31,63,.25) 0 13%, transparent 13.2%),
    linear-gradient(145deg, #081b3a, var(--navy) 58%, #153e73);
}
.permission-gate[hidden] { display: none; }
.permission-card {
  width: min(100%, 650px);
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 32px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 35px 100px rgba(0,0,0,.34);
  text-align: center;
}
.permission-card > img { width: 144px; height: 98px; object-fit: contain; }
.permission-kicker, .eyebrow {
  margin: 16px 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.permission-card h1 {
  max-width: 540px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(30px, 5vw, 45px);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.permission-card > p:not(.permission-kicker) {
  max-width: 530px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.permission-check {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 13px;
  margin: 25px 0 14px;
  padding: 18px;
  border: 2px solid #cad8e9;
  border-radius: 18px;
  color: var(--navy);
  background: #f4f8fd;
  text-align: left;
  cursor: pointer;
}
.permission-check:hover { border-color: #8eaed2; }
.permission-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-shape {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid #8ca2bd;
  border-radius: 9px;
  background: var(--white);
}
.permission-check input:checked + .check-shape { border-color: var(--green); background: var(--green); }
.permission-check input:checked + .check-shape::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 9px;
  width: 7px;
  height: 13px;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.permission-check input:focus-visible + .check-shape { outline: 4px solid rgba(21,59,112,.2); outline-offset: 3px; }
.permission-check strong { font-size: 16px; line-height: 1.4; }
.permission-button, .quiz-primary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 24px;
  border: 0;
  border-radius: 15px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 30px rgba(223,31,63,.24);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.permission-button { width: 100%; }
.permission-button:hover:not(:disabled), .quiz-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.permission-button:disabled { color: #8a96a6; background: #dce3eb; box-shadow: none; cursor: not-allowed; }
.permission-exit { display: inline-block; margin-top: 18px; color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.noscript-note { color: var(--red) !important; font-weight: 800; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px max(24px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid rgba(11,35,74,.1);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 98px; height: 67px; object-fit: contain; }
.brand span, .brand strong, .brand small { display: block; }
.brand strong { color: var(--navy); font-size: 13px; letter-spacing: .04em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.site-header nav { display: flex; align-items: center; gap: 5px; }
.site-header nav a { padding: 11px 13px; border-radius: 12px; color: var(--navy); font-size: 13px; font-weight: 800; }
.site-header nav a:hover { background: var(--sky); }
.site-header .nav-game { color: var(--white); background: var(--navy); }
.site-header .nav-game:hover { background: var(--navy-soft); }

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr);
  align-items: center;
  gap: clamp(35px, 6vw, 88px);
  padding: clamp(60px, 8vw, 105px) max(24px, calc((100% - 1240px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, rgba(211,169,61,.14), transparent 24%),
    linear-gradient(155deg, #fff 0 58%, #f3f7fc 58% 100%);
}
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { margin-top: 0; }
.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(48px, 6.2vw, 83px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1:focus { outline: none; }
.hero-lead { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--red); box-shadow: 0 13px 27px rgba(223,31,63,.22); }
.button-secondary { border: 2px solid #cdd9e7; color: var(--navy); background: var(--white); }
.adult-reminder { display: flex; align-items: flex-start; gap: 9px; margin-top: 23px; color: var(--navy); font-size: 13px; font-weight: 700; }
.adult-reminder span { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 7px; color: var(--white); background: var(--green); font-size: 11px; }

.hero-visual {
  position: relative;
  width: min(100%, 590px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid #d7e3f0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 28%, #eef5fc 28.5% 48%, #fff 48.5% 61%, #eaf2fa 61.5% 100%);
  box-shadow: var(--shadow);
}
.orbit { position: absolute; inset: 13%; border: 2px dashed rgba(21,59,112,.15); border-radius: 50%; }
.orbit-two { inset: 31%; border-style: solid; }
.community-center {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 8px solid var(--white);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 20px 44px rgba(11,35,74,.25);
  transform: translate(-50%, -50%);
  text-align: center;
}
.community-center img { width: 82px; height: 82px; object-fit: contain; }
.community-center span { color: var(--white); font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.city-card {
  position: absolute;
  z-index: 4;
  width: 110px;
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 15px 32px rgba(11,35,74,.13);
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.city-card:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 21px 42px rgba(11,35,74,.2); }
.city-card span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--white); background: var(--red); font-size: 23px; font-weight: 900; }
.city-card strong { color: var(--navy); font-size: 12px; }
.city-card small { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.school-card { top: 3%; left: 41%; }
.health-card { top: 39%; right: -4%; }
.park-card { right: 13%; bottom: 5%; }
.road-card { bottom: 8%; left: 5%; }
.sun { position: absolute; top: 12%; right: 16%; width: 39px; height: 39px; border-radius: 50%; background: #f1c857; box-shadow: 0 0 0 10px rgba(241,200,87,.18); }
.cloud { position: absolute; z-index: 2; width: 59px; height: 22px; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 7px 16px rgba(11,35,74,.08); }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 6px; border-radius: 50%; background: inherit; }
.cloud::before { left: 11px; width: 25px; height: 25px; }
.cloud::after { right: 8px; width: 18px; height: 18px; }
.cloud-one { top: 23%; left: 4%; }
.cloud-two { right: 4%; bottom: 31%; transform: scale(.76); }

.privacy-banner {
  width: min(1180px, calc(100% - 40px));
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: -28px auto 0;
  padding: 24px 30px;
  border: 1px solid #bfe2d9;
  border-radius: 23px;
  color: #184f46;
  background: #eefaf6;
  box-shadow: 0 15px 40px rgba(11,35,74,.08);
}
.privacy-icon { position: relative; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 17px; background: var(--green); }
.privacy-icon::before { content: ""; position: absolute; left: 16px; top: 11px; width: 22px; height: 27px; border: 3px solid white; border-radius: 12px 12px 15px 15px; }
.privacy-icon i { position: absolute; z-index: 2; left: 25px; top: 20px; width: 7px; height: 12px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.privacy-banner strong { display: block; font-size: 17px; }
.privacy-banner p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }

/* Juego principal: una ciudad ilustrada y cuatro misiones */
.adventure-section {
  padding: clamp(72px, 9vw, 125px) max(18px, calc((100% - 1240px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,214,108,.28), transparent 19%),
    radial-gradient(circle at 91% 15%, rgba(83,183,209,.2), transparent 22%),
    linear-gradient(180deg, #f6fbff, #eaf5ff);
}
.adventure-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; margin-bottom: 34px; }
.adventure-heading > div:first-child { max-width: 820px; }
.adventure-heading .eyebrow { margin-top: 0; }
.adventure-heading h2 { margin: 0; color: var(--navy); font-size: clamp(48px, 6vw, 78px); line-height: .95; letter-spacing: -.05em; }
.adventure-heading p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.mission-counter { min-width: 165px; padding: 19px 21px; border: 2px solid #bcd8ed; border-radius: 22px; color: var(--navy); background: rgba(255,255,255,.86); text-align: center; box-shadow: 0 12px 30px rgba(11,35,74,.08); }
.mission-counter span { display: block; font-size: 39px; font-weight: 1000; line-height: 1; }
.mission-counter small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.city-game { min-height: 680px; overflow: hidden; border: 1px solid #c8daea; border-radius: 35px; background: #fff; box-shadow: 0 30px 80px rgba(11,35,74,.16); }
.city-map { position: relative; min-height: 680px; overflow: hidden; background: linear-gradient(rgba(11,35,74,.04),rgba(11,35,74,.1)), url("assets/mapa-ciudad-inconfin-joven-v2.png") center / cover no-repeat; isolation: isolate; }
.city-map > .map-sky, .city-map > .map-hills, .city-map > .map-river, .city-map > .map-roads, .city-map > .map-guide { display: none; }
.map-sky { position: absolute; z-index: -1; inset: 0 0 43%; overflow: hidden; }
.map-sky > span { position: absolute; top: 38px; right: 8%; width: 72px; height: 72px; border-radius: 50%; background: #ffd663; box-shadow: 0 0 0 16px rgba(255,214,99,.25); animation: sun-glow 3s ease-in-out infinite; }
.map-sky i { position: absolute; width: 95px; height: 30px; border-radius: 40px; background: rgba(255,255,255,.92); animation: cloud-float 12s linear infinite; }
.map-sky i::before, .map-sky i::after { content: ""; position: absolute; bottom: 4px; border-radius: 50%; background: inherit; }
.map-sky i::before { left: 16px; width: 44px; height: 44px; }
.map-sky i::after { right: 14px; width: 31px; height: 31px; }
.map-sky i:first-child { top: 80px; left: 7%; }
.map-sky i:nth-child(2) { top: 145px; left: 58%; transform: scale(.72); animation-delay: -5s; }
.map-hills { position: absolute; z-index: -1; left: -8%; right: -8%; top: 33%; height: 240px; border-radius: 50% 50% 0 0; background: #75c27a; box-shadow: 390px -55px 0 #88cf81, 780px 7px 0 #6bb979; }
.map-river { position: absolute; z-index: -1; top: 47%; bottom: -12%; left: 47%; width: 18%; background: linear-gradient(90deg, #66c8ef, #9fe3fa 45%, #62bfe5); transform: rotate(14deg); box-shadow: inset 10px 0 rgba(255,255,255,.18); }
.map-roads::before, .map-roads::after, .map-roads i, .map-roads span { content: ""; position: absolute; z-index: -1; background: #e9d7b9; border: 6px solid #d4bd98; }
.map-roads::before { left: -3%; right: -3%; top: 57%; height: 76px; transform: rotate(-8deg); }
.map-roads::after { left: 28%; top: 37%; width: 78px; height: 78%; transform: rotate(25deg); }
.map-roads i { right: 24%; top: 44%; width: 67px; height: 68%; transform: rotate(-21deg); }
.map-roads span { left: 7%; right: 6%; bottom: 12%; height: 62px; transform: rotate(5deg); }
.map-guide { position: absolute; z-index: 5; left: 50%; top: 48%; display: flex; align-items: center; gap: 12px; transform: translate(-50%, -50%); }
.map-guide p { width: 180px; margin: 0; padding: 14px 17px; border: 3px solid #fff; border-radius: 19px 19px 19px 4px; color: var(--navy); background: rgba(255,255,255,.96); box-shadow: 0 13px 30px rgba(11,35,74,.18); font-size: 12px; line-height: 1.35; }
.map-guide strong { display: block; margin-bottom: 3px; font-size: 14px; }

.bear { position: relative; width: 78px; height: 112px; flex: 0 0 78px; }
.bear-face { position: absolute; z-index: 3; top: 8px; left: 9px; width: 61px; height: 59px; border-radius: 48% 48% 45% 45%; background: #b8733d; box-shadow: inset 0 -5px rgba(117,63,32,.15), 0 4px 0 rgba(255,255,255,.35); }
.bear-face::before { content: ""; position: absolute; left: 14px; top: 19px; width: 6px; height: 8px; border-radius: 50%; background: #17243a; box-shadow: 27px 0 #17243a; }
.bear-face::after { content: ""; position: absolute; left: 17px; top: 31px; width: 28px; height: 20px; border-radius: 50%; background: #edc99f; }
.bear-face b { position: absolute; z-index: 2; left: 27px; top: 32px; width: 8px; height: 7px; border-radius: 50% 50% 60% 60%; background: #2d241e; }
.bear-ear { position: absolute; z-index: 1; top: 1px; width: 25px; height: 26px; border: 6px solid #b8733d; border-radius: 50%; background: #e7a772; }
.bear-ear-left { left: 4px; }.bear-ear-right { right: 4px; }
.bear-body { position: absolute; z-index: 2; left: 16px; bottom: 4px; width: 48px; height: 57px; border-radius: 46% 46% 28% 28%; background: linear-gradient(#e42b4b 0 35%, #315487 35%); }
.bear-body::before, .bear-body::after { content: ""; position: absolute; bottom: -4px; width: 20px; height: 13px; border-radius: 50%; background: #884d2c; }
.bear-body::before { left: -4px; }.bear-body::after { right: -4px; }
.bear-arm { position: absolute; z-index: 4; right: 3px; top: 62px; width: 38px; height: 13px; border-radius: 10px; background: #a45f34; transform: rotate(-27deg); transform-origin: left; }
.bear-wave .bear-arm { animation: bear-wave 1.1s ease-in-out infinite alternate; }

.map-place { position: absolute; z-index: 4; width: 198px; min-height: 118px; display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 10px; padding: 12px; border: 4px solid #fff; border-radius: 23px; color: var(--navy); background: rgba(255,255,255,.94); box-shadow: 0 17px 38px rgba(11,35,74,.2); text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.map-place:hover { transform: translateY(-7px) rotate(-1deg); box-shadow: 0 25px 48px rgba(11,35,74,.27); }
.map-place strong, .map-place small { grid-column: 2; }
.map-place strong { align-self: end; font-size: 15px; line-height: 1.1; }
.map-place small { align-self: start; color: var(--muted); font-size: 10px; line-height: 1.25; }
.map-place.completed { border-color: #38aa8d; }
.map-place.completed::after { content: "✓"; position: absolute; top: -10px; right: -10px; width: 34px; height: 34px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: var(--green); font-weight: 900; }
.map-school { left: 6%; top: 8%; }.map-health { right: 5%; top: 10%; }.map-road { left: 6%; bottom: 7%; }.map-park { right: 5%; bottom: 6%; }
.place-art { position: relative; grid-row: 1 / 3; width: 60px; height: 72px; display: block; border-radius: 15px; overflow: hidden; background: #eaf5ff; transform: scale(.78); transform-origin: center; }
.place-art::before, .place-art::after, .place-art i, .place-art b { content: ""; position: absolute; }
.place-art::after { left: 7px; right: 7px; bottom: 8px; height: 9px; border-radius: 50%; background: rgba(11,35,74,.12); }
.art-school i, .art-health i { left: 15px; right: 15px; bottom: 17px; height: 45px; border-radius: 5px 5px 2px 2px; background: #f2c74e; }
.art-school i::before { content: ""; position: absolute; left: -7px; top: -19px; border-left: 31px solid transparent; border-right: 31px solid transparent; border-bottom: 23px solid #d94c5e; }
.art-school b { left: 33px; bottom: 17px; width: 14px; height: 25px; background: #275080; box-shadow: -16px -7px 0 -4px #fff, 16px -7px 0 -4px #fff; }
.art-health i { background: #fff; border: 3px solid #6fb4d9; }
.art-health b { z-index: 2; left: 29px; bottom: 32px; width: 22px; height: 8px; background: var(--red); }
.art-health b::after { content: ""; position: absolute; left: 7px; top: -7px; width: 8px; height: 22px; background: var(--red); }
.art-road i { left: 22px; top: 4px; width: 36px; height: 84px; background: #4f5d70; clip-path: polygon(28% 0,72% 0,100% 100%,0 100%); }
.art-road b { left: 38px; top: 12px; width: 4px; height: 13px; background: #fff; box-shadow: 0 22px #fff, 0 44px #fff; }
.art-park i { left: 29px; top: 12px; width: 21px; height: 55px; background: #8a5b35; }
.art-park i::before { content: ""; position: absolute; left: -20px; top: -12px; width: 62px; height: 49px; border-radius: 50%; background: #49a66a; box-shadow: -9px 10px #56b978, 10px 8px #3e995f; }
.art-park b { left: 13px; bottom: 17px; width: 54px; height: 10px; border-radius: 4px; background: #d18b42; box-shadow: 0 -10px #e1a05d; }

.mission-view { min-height: 680px; background: linear-gradient(180deg, #fff, #f5f9fd); }
.mission-topbar { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.mission-back { min-height: 43px; padding: 0 14px; border: 1px solid #cad9e7; border-radius: 13px; color: var(--navy); background: #fff; font-weight: 900; cursor: pointer; }
.mission-badge { padding: 10px 14px; border-radius: 13px; color: #116152; background: #dff6ef; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.storybook-scene { position: relative; min-height: 380px; overflow: hidden; border-bottom: 8px solid #77b66b; background: center / cover no-repeat; }
.storybook-scene > * { display: none !important; }
.storybook-scene.scene-school { background-image: url("assets/escena-escuela-v2.png"); }
.storybook-scene.scene-health { background-image: url("assets/escena-salud-v2.png"); }
.storybook-scene.scene-road { background-image: url("assets/escena-vias-v2.png"); }
.storybook-scene.scene-park { background-image: url("assets/escena-parque-v2.png"); }
.scene-sun { position: absolute; top: 24px; right: 9%; width: 58px; height: 58px; border-radius: 50%; background: #ffd45d; box-shadow: 0 0 0 13px rgba(255,212,93,.22); }
.scene-cloud { position: absolute; width: 88px; height: 25px; border-radius: 30px; background: rgba(255,255,255,.9); }
.scene-cloud::before { content: ""; position: absolute; left: 17px; bottom: 4px; width: 37px; height: 37px; border-radius: 50%; background: inherit; }
.cloud-a { left: 7%; top: 37px; }.cloud-b { right: 33%; top: 78px; transform: scale(.68); }
.scene-hill { position: absolute; top: 45%; width: 55%; height: 180px; border-radius: 50% 50% 0 0; background: #78c477; }
.hill-a { left: -8%; }.hill-b { right: -13%; top: 51%; background: #68b66e; }
.scene-building { position: absolute; z-index: 2; left: 7%; bottom: 13px; width: 205px; height: 154px; display: grid; place-items: start center; padding-top: 34px; border: 8px solid rgba(255,255,255,.7); border-bottom: 0; border-radius: 18px 18px 0 0; color: var(--navy); background: #f5c953; box-shadow: 0 14px 28px rgba(11,35,74,.15); }
.scene-building::before { content: ""; position: absolute; left: -15px; right: -15px; top: -35px; height: 45px; background: #dc425b; clip-path: polygon(50% 0,100% 100%,0 100%); }
.scene-building strong { position: relative; z-index: 2; font-size: 13px; text-align: center; }
.scene-building span { position: relative; z-index: 2; margin-bottom: 6px; font-size: 26px; font-weight: 1000; }
.scene-building i { position: absolute; left: 83px; bottom: 0; width: 40px; height: 69px; border-radius: 8px 8px 0 0; background: #315987; }
.scene-building b { position: absolute; left: 27px; bottom: 53px; width: 32px; height: 30px; background: #d9f3ff; box-shadow: 117px 0 #d9f3ff; }
.scene-path { position: absolute; z-index: 2; left: 25%; bottom: -60px; width: 460px; height: 120px; border: 8px solid rgba(255,255,255,.55); border-radius: 50%; background: #d8c39f; transform: rotate(-7deg); }
.scene-tree { position: absolute; z-index: 2; bottom: 10px; width: 18px; height: 77px; background: #8d5b33; }
.scene-tree::before { content: ""; position: absolute; left: -25px; top: -30px; width: 70px; height: 68px; border-radius: 50%; background: #46a55f; box-shadow: -10px 13px #53b66c, 12px 14px #3d9656; }
.tree-a { right: 8%; }.tree-b { right: 24%; transform: scale(.74); }
.scene-people { position: absolute; z-index: 5; right: 29%; bottom: 1px; display: flex; align-items: flex-end; gap: 5px; animation: friends-walk 3.2s ease-in-out infinite alternate; }
.bear-walk { transform: scale(.68); transform-origin: bottom; margin: 0 -12px; }
.tiny-child { position: relative; width: 43px; height: 88px; }
.tiny-child i { position: absolute; z-index: 2; top: 3px; left: 8px; width: 28px; height: 29px; border: 4px solid #704327; border-radius: 50%; background: #cf8e60; }
.tiny-child i::before { content: ""; position: absolute; left: 6px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #17243a; box-shadow: 9px 0 #17243a; }
.tiny-child span { position: absolute; z-index: 1; left: 7px; top: 29px; width: 31px; height: 40px; border-radius: 12px 12px 6px 6px; background: #ee4c65; }
.tiny-child b::before, .tiny-child b::after { content: ""; position: absolute; bottom: 0; width: 8px; height: 28px; border-radius: 5px; background: #34547c; }
.tiny-child b::before { left: 10px; }.tiny-child b::after { right: 8px; }
.child-two { transform: scale(.9); }.child-two span { background: #f2bd3b; }
.scene-health .scene-building { background: #f6fbff; border-color: #c6e8f8; }.scene-health .scene-building::before { background: #5daed1; }
.scene-road .scene-building { background: #e8c39d; }.scene-road .scene-building::before { background: #c97742; }
.scene-park .scene-building { background: #c8ebbf; }.scene-park .scene-building::before { background: #439d5e; }

.mission-content { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(420px,1.2fr); gap: 20px 38px; padding: 27px clamp(22px, 5vw, 55px) 38px; }
.mission-content .eyebrow { margin-top: 0; }
.mission-content h3 { margin: 0; color: var(--navy); font-size: clamp(31px, 4vw, 48px); line-height: 1; }
.mission-content p { color: var(--muted); line-height: 1.55; }
.mission-instruction { font-weight: 900; color: var(--navy) !important; }
.mission-items { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-content: center; }
.mission-item { min-height: 78px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; padding: 10px 13px; border: 2px solid #cbd9e8; border-radius: 18px; color: var(--navy); background: #fff; text-align: left; font-weight: 900; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.mission-item:hover:not(:disabled) { transform: translateY(-3px); border-color: #6aa2cc; }
.mission-item span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #eaf3fc; font-size: 25px; }
.mission-item.good { border-color: var(--green); color: #126052; background: #e9f8f4; }.mission-item.good span { background: #c9eee4; }
.mission-item.miss { border-color: #ed8da0; animation: tiny-shake .25s ease; }
.mission-feedback { grid-column: 1 / -1; min-height: 48px; padding: 13px 16px; border-radius: 14px; color: #31516e; background: #edf5fb; font-size: 14px; font-weight: 800; }
.mission-feedback.success { color: #126052; background: #dff6ef; }
.mission-next { grid-column: 1 / -1; justify-self: center; }
.city-celebration { min-height: 680px; display: grid; place-content: center; justify-items: center; padding: 45px; text-align: center; background: radial-gradient(circle, #fff8d7, #e8f5ff 65%); }
.city-celebration h3 { max-width: 720px; margin: 0; color: var(--navy); font-size: clamp(39px, 5vw, 63px); line-height: 1; }
.city-celebration p:not(.eyebrow) { max-width: 650px; margin: 18px 0 25px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.celebration-friends { position: relative; width: 160px; height: 145px; }
.bear-party { margin: 0 auto; transform: scale(1.15); transform-origin: bottom; }
.celebration-friends > span { position: absolute; color: #e9b92d; font-size: 28px; animation: star-pop .9s ease-in-out infinite alternate; }
.celebration-friends > span:nth-child(2) { left: 2px; top: 20px; }.celebration-friends > span:nth-child(3) { right: 1px; top: 3px; animation-delay: -.3s; }.celebration-friends > span:nth-child(4) { right: 11px; bottom: 14px; animation-delay: -.6s; }

@keyframes cloud-float { 0%,100% { transform: translateX(-8px); } 50% { transform: translateX(55px); } }
@keyframes sun-glow { from { transform: scale(.94); } to { transform: scale(1.06); } }
@keyframes bear-wave { from { transform: rotate(-32deg); } to { transform: rotate(-58deg); } }
@keyframes friends-walk { from { transform: translateX(18px); } to { transform: translateX(-34px); } }
@keyframes tiny-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes star-pop { from { transform: scale(.7) rotate(-12deg); } to { transform: scale(1.2) rotate(10deg); } }

.learning-section, .examples-section { padding: clamp(85px, 10vw, 140px) max(24px, calc((100% - 1240px) / 2)); }
.section-heading { max-width: 790px; }
.section-heading .eyebrow { margin-top: 0; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(39px, 5vw, 65px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.learning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 50px; }
.learning-card { position: relative; min-height: 410px; padding: 32px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.learning-card .number { position: absolute; top: 22px; right: 25px; font-size: 13px; font-weight: 900; opacity: .58; }
.lesson-icon { position: relative; width: 68px; height: 68px; border-radius: 20px; background: rgba(255,255,255,.12); }
.learning-card h3 { margin: 28px 0 0; font-size: 31px; line-height: 1.05; }
.learning-card p { margin: 18px 0 0; font-size: 16px; line-height: 1.65; }
.learning-card > strong { display: block; margin-top: 22px; padding-top: 20px; border-top: 1px solid currentColor; font-size: 14px; line-height: 1.5; opacity: .86; }
.card-navy { color: var(--white); background: var(--navy); border-color: var(--navy); }
.card-red { color: var(--white); background: var(--red); border-color: var(--red); }
.card-white { color: var(--navy); background: var(--cloud); }
.card-white .lesson-icon { background: var(--navy); }
.lesson-people::before, .lesson-people::after { content: ""; position: absolute; border: 3px solid white; border-radius: 50%; }
.lesson-people::before { width: 15px; height: 15px; top: 15px; left: 24px; }
.lesson-people::after { width: 32px; height: 19px; left: 15px; bottom: 13px; border-radius: 18px 18px 8px 8px; }
.lesson-heart::before { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 36px; }
.lesson-eye::before { content: ""; position: absolute; width: 37px; height: 23px; left: 15px; top: 21px; border: 3px solid white; border-radius: 50% 50% 46% 46%; }
.lesson-eye::after { content: ""; position: absolute; width: 11px; height: 11px; left: 29px; top: 29px; border-radius: 50%; background: white; }
.important-note { display: flex; align-items: flex-start; gap: 17px; margin-top: 25px; padding: 24px 27px; border: 1px solid #eadcae; border-radius: 20px; color: #694f08; background: #fff9e8; }
.important-note > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; color: var(--white); background: #a57a12; font-weight: 900; }
.important-note p { margin: 0; font-size: 14px; line-height: 1.62; }

.journey-section { padding: clamp(85px, 10vw, 140px) max(24px, calc((100% - 1240px) / 2)); color: var(--white); background: var(--navy); }
.section-heading-light h2 { color: var(--white); }
.section-heading-light > p:not(.eyebrow) { color: #c7d3e3; }
.journey-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 55px 0 0; padding: 0; list-style: none; counter-reset: step; }
.journey-list li { position: relative; min-height: 340px; overflow: hidden; padding: 28px 24px; border: 1px solid rgba(255,255,255,.15); border-radius: 25px; background: rgba(255,255,255,.07); }
.journey-list li:not(:last-child)::after { content: "→"; position: absolute; z-index: 3; top: 50%; right: -23px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--white); font-weight: 900; transform: translateY(-50%); }
.journey-step { position: absolute; top: 20px; right: 20px; color: #ff8297; font-size: 12px; font-weight: 900; }
.journey-icon { position: relative; width: 62px; height: 62px; border-radius: 19px; background: var(--red); }
.journey-icon::before { content: ""; position: absolute; inset: 18px; border: 3px solid white; border-radius: 50%; }
.journey-contribute::after { content: "$"; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 25px; font-weight: 900; }
.journey-gather::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 29px; font-weight: 900; }
.journey-plan::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 24px; font-weight: 900; }
.journey-serve::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 23px; }
.journey-list h3 { margin: 26px 0 0; font-size: 25px; }
.journey-list p { margin: 13px 0 0; color: #cbd6e5; font-size: 15px; line-height: 1.62; }
.journey-friend { position: absolute; right: 18px; bottom: 12px; width: 68px; height: 78px; }
.journey-friend span { position: absolute; z-index: 2; left: 10px; top: 4px; width: 49px; height: 47px; border-radius: 48%; background: #b8733d; }
.journey-friend span::before { content: ""; position: absolute; left: 11px; top: 17px; width: 5px; height: 6px; border-radius: 50%; background: #17243a; box-shadow: 23px 0 #17243a; }
.journey-friend span::after { content: ""; position: absolute; left: 15px; top: 27px; width: 22px; height: 15px; border-radius: 50%; background: #edc99f; }
.journey-friend i::before, .journey-friend i::after { content: ""; position: absolute; z-index: 1; top: 0; width: 20px; height: 20px; border: 5px solid #b8733d; border-radius: 50%; background: #e6a673; }
.journey-friend i::before { left: 5px; }.journey-friend i::after { right: 4px; }
.journey-friend b { position: absolute; z-index: 1; left: 16px; bottom: 0; width: 38px; height: 39px; border-radius: 45% 45% 20% 20%; background: #e53855; }
.friend-rabbit span { background: #ece7df; }.friend-rabbit i::before, .friend-rabbit i::after { width: 15px; height: 35px; border: 4px solid #ece7df; border-radius: 60% 60% 45% 45%; background: #f3b8c5; }.friend-rabbit b { background: #e9ad39; }
.friend-cat span { background: #d38b47; border-radius: 42%; }.friend-cat i::before, .friend-cat i::after { width: 20px; height: 20px; border: 0; border-radius: 0; background: #d38b47; transform: rotate(45deg); }.friend-cat b { background: #4190b4; }
.friend-celebrate { animation: friend-hop .8s ease-in-out infinite alternate; }
.journey-playground { display: grid; grid-template-columns: minmax(280px,1.2fr) 1fr auto; align-items: center; gap: 22px; margin-top: 28px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.08); }
.journey-playground strong { font-size: 17px; }.journey-playground p { margin: 5px 0 0; color: #cbd6e5; font-size: 13px; line-height: 1.45; }
.journey-landscape { position: relative; height: 82px; overflow: hidden; border-radius: 17px; background: linear-gradient(#7dc9ee 0 50%, #71bb71 50%); }
.journey-landscape::after { content: ""; position: absolute; left: 0; right: 0; bottom: 13px; height: 20px; border-top: 4px dashed #fff; background: #596779; }
.journey-house, .journey-office, .journey-plan-board, .journey-school { position: absolute; z-index: 2; bottom: 28px; width: 43px; height: 35px; border-radius: 5px 5px 0 0; background: #f3c94f; }
.journey-house { left: 4%; }.journey-office { left: 32%; background: #f0f4f8; }.journey-plan-board { left: 61%; background: #d9a86c; }.journey-school { right: 4%; background: #ef6e76; }
.journey-house::before, .journey-school::before { content: ""; position: absolute; left: -5px; top: -13px; border-left: 27px solid transparent; border-right: 27px solid transparent; border-bottom: 16px solid #cf4258; }
.journey-runner { position: absolute; z-index: 5; left: 7%; bottom: 9px; width: 30px; height: 30px; border: 3px solid #fff; border-radius: 50%; background: #f2bd3b; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.journey-runner::after { content: "$"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--navy); font-size: 14px; font-weight: 1000; }
.journey-playground.is-playing .journey-runner { animation: journey-run 4.2s ease-in-out forwards; }
.journey-play { min-height: 47px; padding: 0 16px; border: 0; border-radius: 14px; color: var(--navy); background: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
@keyframes journey-run { 0% { left: 7%; } 25% { left: 31%; transform: translateY(-8px); } 50% { left: 58%; transform: translateY(0); } 75% { left: 76%; transform: translateY(-8px); } 100% { left: calc(93% - 30px); transform: translateY(0) rotate(720deg); } }
@keyframes friend-hop { from { transform: translateY(0); } to { transform: translateY(-7px); } }
.colombia-note { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 22px 25px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.08); }
.colombia-note img { width: 58px; height: 58px; object-fit: contain; }
.colombia-note strong, .colombia-note span { display: block; }
.colombia-note strong { color: #ff8297; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.colombia-note span { margin-top: 4px; color: #d3ddec; font-size: 14px; line-height: 1.5; }

.examples-section { background: #f7f9fc; }
.example-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.example-card { position: relative; min-height: 250px; display: grid; grid-template-columns: 76px 1fr; align-items: start; gap: 20px; overflow: hidden; padding: 28px 95px 28px 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 11px 32px rgba(11,35,74,.06); }
.example-symbol { position: relative; width: 76px; height: 76px; border-radius: 22px; color: var(--white); background: var(--navy); }
.example-symbol::before, .example-symbol::after, .example-symbol i { content: ""; position: absolute; }
.symbol-bag::before { left: 20px; top: 23px; width: 36px; height: 31px; border: 3px solid white; border-radius: 5px 5px 13px 13px; }
.symbol-bag::after { left: 27px; top: 17px; width: 22px; height: 14px; border: 3px solid white; border-bottom: 0; border-radius: 12px 12px 0 0; }
.symbol-shop::before { left: 16px; top: 26px; width: 44px; height: 31px; border: 3px solid white; border-radius: 3px; }
.symbol-shop::after { left: 12px; top: 18px; width: 52px; height: 13px; border: 3px solid white; border-radius: 6px 6px 12px 12px; }
.symbol-home::before { left: 19px; top: 30px; width: 38px; height: 29px; border: 3px solid white; }
.symbol-home::after { left: 20px; top: 17px; width: 34px; height: 34px; border: solid white; border-width: 3px 3px 0 0; transform: rotate(-45deg); }
.symbol-road::before { left: 27px; top: 12px; width: 22px; height: 53px; border: solid white; border-width: 0 3px; transform: perspective(40px) rotateX(13deg); }
.symbol-road::after { left: 36px; top: 18px; width: 3px; height: 12px; background: white; box-shadow: 0 18px 0 white, 0 36px 0 white; }
.example-card small { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.example-card h3 { margin: 6px 0 0; color: var(--navy); font-size: 26px; }
.example-card p { margin: 11px 0 0; color: var(--muted); font-size: 15px; line-height: 1.62; }
.example-buddy { position: absolute; right: 12px; bottom: -5px; width: 79px; height: 104px; }
.example-buddy i { position: absolute; z-index: 2; top: 5px; left: 10px; width: 59px; height: 57px; border-radius: 48%; background: #b8733d; }
.example-buddy i::before { content: ""; position: absolute; left: 14px; top: 19px; width: 6px; height: 7px; border-radius: 50%; background: #17243a; box-shadow: 27px 0 #17243a; }
.example-buddy i::after { content: ""; position: absolute; left: 18px; top: 32px; width: 25px; height: 17px; border-radius: 50%; background: #edc99f; }
.example-buddy::before, .example-buddy::after { content: ""; position: absolute; z-index: 1; top: 0; width: 25px; height: 25px; border: 6px solid #b8733d; border-radius: 50%; background: #e6a673; }
.example-buddy::before { left: 4px; }.example-buddy::after { right: 4px; }
.example-buddy b { position: absolute; left: 16px; bottom: 0; width: 50px; height: 54px; border-radius: 45% 45% 22% 22%; background: #e43e59; }
.buddy-rabbit i { background: #eee9e2; }.buddy-rabbit::before, .buddy-rabbit::after { height: 39px; border-color: #eee9e2; background: #f4b8c7; }.buddy-rabbit b { background: #e9b43d; }
.buddy-cat i { border-radius: 40%; background: #d58d48; }.buddy-cat::before, .buddy-cat::after { border: 0; border-radius: 0; background: #d58d48; transform: rotate(45deg); }.buddy-cat b { background: #4193b7; }
.ask-adult { display: grid; grid-template-columns: 155px 1fr; align-items: center; gap: 32px; margin-top: 28px; padding: 30px 36px; border-radius: 27px; color: var(--white); background: linear-gradient(135deg, var(--red), #b81431); box-shadow: 0 22px 46px rgba(223,31,63,.2); }
.ask-adult .eyebrow { color: #ffd5dc; }
.ask-adult h3 { margin: 0; font-size: 31px; line-height: 1.1; }
.ask-adult p:not(.eyebrow) { margin: 10px 0 0; color: #ffe8ec; font-size: 15px; line-height: 1.55; }
.ask-art { position: relative; width: 130px; height: 130px; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.12); }
.ask-art span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 62px; font-weight: 900; }
.ask-art i { position: absolute; right: -5px; bottom: 2px; width: 41px; height: 41px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(255,255,255,.15); }

.quiz-section { display: grid; grid-template-columns: minmax(0,.8fr) minmax(520px,1.2fr); gap: clamp(35px, 6vw, 85px); padding: clamp(85px, 10vw, 140px) max(24px, calc((100% - 1240px) / 2)); background: var(--white); }
.quiz-intro { align-self: center; }
.quiz-intro h2 { margin: 0; color: var(--navy); font-size: clamp(45px, 5.2vw, 68px); line-height: 1; letter-spacing: -.045em; }
.quiz-intro > p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.quiz-values { display: grid; gap: 10px; margin-top: 25px; }
.quiz-values span { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 14px; font-weight: 800; }
.quiz-values i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--white); background: var(--green); font-style: normal; font-size: 11px; }
.quiz-shell { min-height: 570px; display: grid; place-items: center; padding: clamp(25px, 5vw, 52px); border: 1px solid #cfdaea; border-radius: 32px; background: linear-gradient(145deg, #f8fbff, #edf4fb); box-shadow: var(--shadow); }
.quiz-start, .quiz-result { max-width: 520px; text-align: center; }
.quiz-badge { position: relative; width: 112px; height: 112px; margin: 0 auto 24px; border-radius: 35px; color: var(--white); background: var(--navy); transform: rotate(-5deg); }
.quiz-badge span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 62px; font-weight: 900; transform: rotate(5deg); }
.quiz-badge i { position: absolute; right: -9px; bottom: -7px; width: 36px; height: 36px; border: 7px solid #edf4fb; border-radius: 50%; background: var(--red); }
.quiz-start .eyebrow, .quiz-result .eyebrow { margin-top: 0; }
.quiz-start h3, .quiz-result h3 { margin: 0; color: var(--navy); font-size: clamp(30px, 4vw, 43px); line-height: 1.06; }
.quiz-start > p:not(.eyebrow), .quiz-result > p:not(.eyebrow) { margin: 15px 0 23px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.quiz-panel { width: 100%; align-self: stretch; }
.quiz-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quiz-progress-row p { margin: 0; color: var(--muted); font-size: 13px; }
.quiz-progress-row strong { color: var(--navy); }
.score-chip { padding: 8px 11px; border-radius: 10px; color: var(--green); background: #e5f6f2; font-size: 12px; font-weight: 800; }
.progress-track { height: 10px; margin-top: 14px; overflow: hidden; border-radius: 6px; background: #dce6f1; }
.progress-track i { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #f45a74); transition: width .25s ease; }
.quiz-question { margin: 34px 0 21px; color: var(--navy); font-size: clamp(23px, 3vw, 32px); font-weight: 900; line-height: 1.22; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { width: 100%; min-height: 62px; display: grid; grid-template-columns: 39px 1fr; align-items: center; gap: 12px; padding: 10px 15px; border: 2px solid #d3dfec; border-radius: 16px; color: var(--navy); background: var(--white); text-align: left; font-size: 15px; font-weight: 800; cursor: pointer; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.quiz-option:hover:not(:disabled) { border-color: #89a8cc; transform: translateX(3px); }
.quiz-option:disabled { cursor: default; }
.option-letter { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--navy); background: var(--sky); font-size: 12px; font-weight: 900; }
.quiz-option.correct { border-color: var(--green); color: #135f52; background: #e9f8f4; }
.quiz-option.correct .option-letter { color: var(--white); background: var(--green); }
.quiz-option.wrong { border-color: var(--red); color: #8d2437; background: #fff0f3; }
.quiz-option.wrong .option-letter { color: var(--white); background: var(--red); }
.quiz-feedback { margin-top: 17px; padding: 15px 17px; border-radius: 14px; font-size: 14px; font-weight: 700; line-height: 1.55; }
.quiz-feedback.good { color: #155d52; background: #e5f6f1; }
.quiz-feedback.try { color: #854357; background: #fff0f3; }
.next-button { margin-top: 17px; }
.result-stars { color: var(--gold); font-size: 44px; letter-spacing: .12em; }
.result-score { display: block; margin: 0 0 24px; color: var(--navy); font-size: 20px; }

.closing-section { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 35px; padding: clamp(55px, 7vw, 88px) max(24px, calc((100% - 1240px) / 2)); color: var(--white); background: var(--navy); }
.closing-section img { width: 150px; height: 102px; object-fit: contain; padding: 10px; border-radius: 18px; background: var(--white); }
.closing-section .eyebrow { color: #ff8297; }
.closing-section h2 { max-width: 790px; margin: 0; font-size: clamp(31px, 4vw, 49px); line-height: 1.05; }
.closing-section p:not(.eyebrow) { max-width: 760px; margin: 13px 0 0; color: #cbd6e5; font-size: 15px; line-height: 1.6; }

.site-footer { min-height: 120px; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 18px; padding: 23px max(24px, calc((100% - 1240px) / 2)); border-top: 4px solid var(--red); color: var(--navy); background: var(--white); }
.site-footer img { width: 54px; height: 54px; object-fit: contain; }
.site-footer strong, .site-footer span, .site-footer small { display: block; }
.site-footer strong { font-size: 11px; letter-spacing: .05em; }
.site-footer span { margin-top: 5px; color: var(--ink); font-size: 12px; font-weight: 700; }
.site-footer small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.site-footer > a { color: var(--red); font-size: 13px; font-weight: 900; }

:focus-visible { outline: 4px solid rgba(223,31,63,.3); outline-offset: 4px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 620px); }
  .mission-content { grid-template-columns: 1fr; }
  .journey-playground { grid-template-columns: 1fr 1fr; }
  .journey-landscape { grid-column: 1 / -1; }
  .learning-grid { grid-template-columns: 1fr 1fr; }
  .learning-card:last-child { grid-column: 1 / -1; min-height: 330px; }
  .journey-list { grid-template-columns: 1fr 1fr; }
  .journey-list li:not(:last-child)::after { display: none; }
  .quiz-section { grid-template-columns: 1fr; }
  .quiz-intro { max-width: 760px; }
  .closing-section { grid-template-columns: 140px 1fr; }
  .closing-section .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .site-header { position: relative; align-items: flex-start; flex-direction: column; padding: 10px 18px 15px; }
  .brand img { width: 84px; height: 57px; }
  .site-header nav { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .site-header nav a { flex: 0 0 auto; }
  .hero { min-height: auto; padding-top: 55px; }
  .hero h1 { font-size: clamp(45px, 13vw, 67px); }
  .hero-visual { width: min(92vw, 540px); }
  .adventure-heading { grid-template-columns: 1fr; align-items: start; }
  .mission-counter { justify-self: start; }
  .city-game, .city-map, .mission-view { min-height: 820px; }
  .map-guide { top: 49%; flex-direction: column; }
  .map-guide p { border-radius: 18px; text-align: center; }
  .map-place { width: 43%; min-height: 155px; grid-template-columns: 62px 1fr; padding: 12px; }
  .place-art { width: 62px; transform: scale(.82); transform-origin: center; }
  .map-school { left: 4%; top: 5%; }.map-health { right: 4%; top: 5%; }.map-road { left: 4%; bottom: 5%; }.map-park { right: 4%; bottom: 5%; }
  .storybook-scene { min-height: 330px; }
  .scene-building { left: 3%; transform: scale(.82); transform-origin: bottom left; }
  .scene-people { right: 17%; }
  .mission-content { padding: 25px 18px 35px; }
  .community-center { width: 150px; height: 150px; }
  .city-card { width: 92px; min-height: 82px; padding: 9px; }
  .city-card span { width: 35px; height: 35px; font-size: 19px; }
  .learning-grid, .example-grid { grid-template-columns: 1fr; }
  .learning-card:last-child { grid-column: auto; }
  .journey-list { grid-template-columns: 1fr; }
  .journey-list li { min-height: 240px; }
  .journey-playground { grid-template-columns: 1fr; }
  .journey-landscape { grid-column: auto; }
  .journey-play { justify-self: start; }
  .ask-adult { grid-template-columns: 105px 1fr; padding: 25px; }
  .ask-art { width: 100px; height: 100px; }
  .quiz-section { padding-left: 16px; padding-right: 16px; }
  .quiz-shell { min-height: 540px; padding: 25px 18px; border-radius: 25px; }
  .closing-section { grid-template-columns: 1fr; text-align: center; }
  .closing-section img, .closing-section .button { justify-self: center; }
  .closing-section .button { grid-column: auto; }
  .site-footer { grid-template-columns: 54px 1fr; }
  .site-footer > a { grid-column: 2; }
}

@media (max-width: 520px) {
  .permission-gate { padding: 12px; }
  .permission-card { padding: 24px 18px; border-radius: 24px; }
  .permission-card h1 { font-size: 31px; }
  .permission-card > p:not(.permission-kicker), .permission-check strong { font-size: 14px; }
  .brand span { display: none; }
  .site-header nav a { padding: 10px 11px; font-size: 12px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { width: 96vw; margin-left: -8px; }
  .adventure-section { padding-left: 12px; padding-right: 12px; }
  .adventure-heading { padding: 0 6px; }
  .adventure-heading h2 { font-size: 48px; }
  .city-game, .city-map, .mission-view { min-height: 870px; border-radius: 25px; }
  .map-place { width: 45%; min-height: 160px; display: flex; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
  .map-place strong { font-size: 12px; }.map-place small { font-size: 9px; }
  .place-art { height: 69px; transform: scale(.7); margin: -11px 0; }
  .map-guide { top: 48%; transform: translate(-50%, -50%) scale(.9); }
  .map-guide p { width: 155px; }
  .mission-topbar { padding: 10px; }.mission-badge { font-size: 9px; }
  .storybook-scene { min-height: 300px; }
  .scene-building { left: -2%; transform: scale(.7); }
  .scene-tree.tree-b { display: none; }
  .scene-people { right: 3%; transform: scale(.82); transform-origin: bottom; }
  .mission-items { grid-template-columns: 1fr; }
  .city-celebration { min-height: 870px; padding: 25px 18px; }
  .community-center { width: 126px; height: 126px; padding: 15px; }
  .community-center img { width: 66px; height: 66px; }
  .community-center span { font-size: 7px; }
  .city-card { width: 75px; min-height: 72px; border-radius: 15px; }
  .city-card strong { font-size: 10px; }
  .school-card { left: 39%; }
  .health-card { right: -1%; }
  .privacy-banner { width: calc(100% - 24px); align-items: flex-start; padding: 20px; }
  .privacy-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .privacy-icon::before { left: 13px; top: 8px; }
  .privacy-icon i { left: 22px; top: 17px; }
  .learning-section, .examples-section, .journey-section { padding-left: 18px; padding-right: 18px; }
  .section-heading h2 { font-size: 39px; }
  .section-heading > p:not(.eyebrow) { font-size: 16px; }
  .learning-card { min-height: 0; padding: 26px; }
  .example-card { grid-template-columns: 60px 1fr; gap: 14px; padding: 21px 17px; }
  .example-card { padding-right: 72px; }
  .example-buddy { right: 0; transform: scale(.72); transform-origin: bottom right; }
  .example-symbol { width: 60px; height: 60px; transform: scale(.86); transform-origin: top left; }
  .ask-adult { grid-template-columns: 1fr; text-align: center; }
  .ask-art { justify-self: center; }
  .quiz-question { font-size: 24px; }
  .quiz-option { grid-template-columns: 34px 1fr; font-size: 14px; }
  .option-letter { width: 32px; height: 32px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer img, .site-footer > a { justify-self: center; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  .permission-gate, .site-header, .hero-actions, .quiz-section, .closing-section .button { display: none !important; }
  #site-shell { display: block !important; }
  .hero, .learning-section, .journey-section, .examples-section, .closing-section { min-height: 0; padding: 28px; break-inside: avoid; }
  .journey-section, .closing-section { color: var(--ink); background: var(--white); }
  .section-heading-light h2, .closing-section h2 { color: var(--navy); }
}
