/* Spark's tactile learning world. All decoration is local and nonessential. */
:root {
  --spark-apricot: #edb383;
  --spark-forest: #184d40;
}
.language-strip {
  margin: 12px 0 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px #163c3510;
}
.language-strip-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}
.language-strip-heading > div {
  flex: 1;
  min-width: 0;
}
.language-strip strong {
  font-size: 1rem;
}
.language-strip small {
  display: block;
  font-size: 0.77rem;
  opacity: 0.88;
  margin-top: 2px;
}
.language-cta {
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid #ffffff50;
  border-radius: 10px;
  color: #163c35;
  background: #e6f1da;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
}
.language-pause {
  height: 44px;
  width: 44px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
}
.language-marquee {
  overflow: hidden;
  border-top: 1px solid #ffffff20;
  padding: 10px 0;
  direction: ltr;
}
.language-track {
  width: max-content;
  display: flex;
  animation: spark-languages 90s linear infinite;
}
.language-track > div {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-inline: 17px;
  white-space: nowrap;
}
.language-track span {
  font-size: 0.85rem;
  letter-spacing: 0.015em;
}
.language-track span::after {
  content: "·";
  margin-inline-start: 34px;
  opacity: 0.4;
}
.language-marquee:hover .language-track,
.language-strip:focus-within .language-track,
.language-marquee[data-paused="true"] .language-track {
  animation-play-state: paused;
}
@keyframes spark-languages {
  to {
    transform: translateX(-50%);
  }
}
.spark-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 26px;
  padding: 24px 0 44px;
  min-height: 480px;
}
.spark-hero-copy h1 {
  font-size: clamp(2.6rem, 4.25vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  white-space: pre-line;
  margin: 17px 0 22px;
}
.spark-hero .lead {
  font-size: 1.04rem;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.65;
}
.spark-hero .hero-note {
  font-size: 0.78rem;
  max-width: 50ch;
  margin: 16px 0;
}
.spark-hero .cta-row {
  gap: 9px;
  margin-top: 24px;
}
.spark-hero .primary,
.spark-hero .secondary {
  padding: 14px 18px;
  min-height: 50px;
  font-size: 0.87rem;
  border-radius: 13px;
}
.spark-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}
.spark-proof span {
  font-size: 0.69rem;
  letter-spacing: 0.015em;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.spark-world-hero {
  position: relative;
  isolation: isolate;
  /* Keep the mobile aspect ratio and minimum height inside the grid column. */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 100px 26px 26px 26px;
  overflow: hidden;
  background: #e8dac6;
  box-shadow: 0 28px 60px -26px #123c3566;
  align-self: stretch;
  min-height: 480px;
}
.spark-world-hero picture {
  position: absolute;
  inset: 0;
  display: block;
}
.spark-world-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  display: block;
}
.spark-world-companion {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  max-width: 155px;
  padding: 5px;
  background: #f8f4df;
  border-radius: 50%;
  box-shadow: 0 15px 22px #14292340;
}
.spark-guide-character {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: normal;
}
.spark-world-caption {
  position: absolute;
  bottom: 18px;
  inset-inline: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  padding: 12px 14px;
  background: #fffdf3f2;
  color: #173c35;
  box-shadow: 0 4px 15px #173c3518;
  font-size: 0.77rem;
}
.spark-world-caption .text-link {
  margin-inline-start: auto;
  color: #174d40;
  font-size: 0.8rem;
  padding: 4px;
  min-height: 36px;
}
.spark-live-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #4b7351;
  box-shadow: 0 0 0 4px #4b735120;
  flex-shrink: 0;
}
.spark-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}
.spark-section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
  max-width: 22ch;
}
.spark-section-heading p:not(.eyebrow) {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 40ch;
}
.spark-section-heading .eyebrow {
  font-size: 0.66rem;
  margin-bottom: 10px;
}
.spark-worlds {
  padding: 36px 0 45px;
  border-top: 1px solid var(--line);
}
.spark-world-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.spark-world-option {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 120px 13px 18px;
  border-radius: 18px;
  text-align: start;
  box-shadow: 0 5px 0 var(--line);
  overflow: hidden;
  min-width: 0;
}
.spark-world-option[aria-pressed="true"] {
  border: 2px solid var(--green);
  padding: 119px 12px 17px;
  box-shadow: 0 5px 0 var(--green);
}
.spark-world-option > .world-diorama {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 113px;
  transform: scale(0.78);
  pointer-events: none;
}
.spark-world-option strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
  margin-bottom: 9px;
}
.spark-world-option > span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}
.spark-world-start {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 19px 0 0;
  font-size: 0.85rem;
}
.spark-world-start .primary {
  padding: 10px 18px;
  font-size: 0.85rem;
  min-height: 44px;
}
.spark-levels {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}
.spark-level-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.spark-level-grid article {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.spark-level-grid h3 {
  font-size: 2.1rem;
}
.spark-level-grid p {
  font-size: 0.92rem;
}
.spark-level-grid .practice-note {
  font-size: 0.76rem;
}
.spark-level-grid article.spark-level-two {
  background: #193f35;
  color: #fff8e8;
  border-color: #193f35;
  box-shadow: 0 10px 0 #cbd5ba;
}
.spark-level-two .eyebrow,
.spark-level-two .practice-note {
  color: #d5e3d3;
}
.spark-level-two .primary {
  background: #e6efcd;
  color: #193f35;
}
.spark-level-two .secondary {
  color: #fff8e8;
  background: transparent;
  border-color: #729788;
}
.spark-new-pack {
  color: #ecbf81;
  font-weight: 700;
}
.spark-level-price {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spark-level-price strong {
  font-size: 2rem;
}
.spark-level-price span {
  font-size: 0.78rem;
  max-width: 18ch;
}
.spark-level-grid .cta-row {
  margin-top: auto;
  padding-top: 12px;
  gap: 8px;
}
.spark-level-grid .primary,
.spark-level-grid .secondary {
  font-size: 0.81rem;
  padding: 12px 16px;
}
.spark-screen-preview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
  padding: 36px;
  background: var(--mint);
  border-radius: 22px;
  margin: 22px 0 30px;
}
.spark-screen-preview h2 {
  font-size: 2rem;
  margin: 12px 0 18px;
}
.spark-screen-preview p {
  font-size: 0.9rem;
}
.spark-screen-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 13px;
  border: 1px solid var(--line);
  box-shadow: 0 13px 35px #123c3515;
}
.spark-screen-preview .primary,
.spark-screen-preview .secondary {
  font-size: 0.8rem;
  padding: 12px 16px;
}
.spark-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 25px;
}
.spark-language-grid button {
  min-height: 48px;
}
.spark-level-switch,
.spark-game-worlds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}
.spark-level-switch {
  padding: 6px;
  background: var(--mint);
  border-radius: 15px;
  width: fit-content;
  max-width: 100%;
}
.spark-level-switch .toggle {
  border: 0;
  background: transparent;
  min-height: 44px;
}
.spark-level-switch .toggle[aria-pressed="true"] {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 2px 7px #173c3510;
}
.spark-game-worlds {
  gap: 7px;
  justify-content: center;
}
.spark-game-worlds .toggle {
  min-height: 44px;
  padding: 10px 15px;
  font-size: 0.79rem;
  border-radius: 30px;
}
.game-board {
  box-shadow:
    0 9px 0 #abc5b5,
    0 25px 55px -25px #173c3570;
  margin-bottom: 36px;
  border: 2px solid #cbdccc;
}
.game-board-header {
  padding-bottom: 15px;
  border-bottom: 1px solid #173c3525;
}
.game-board .map-mission {
  box-shadow: 0 3px 0 #153e311d;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.game-board .map-mission:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #153e3130;
}
.game-board .map-mission[aria-disabled="true"] {
  filter: saturate(0.4);
  opacity: 0.78;
}
.game-board .map-mission.next {
  outline-color: #df9e49;
  box-shadow: 0 5px 0 #d4a45f60;
  background: #fff5d7;
}
.sky-board {
  background:
    radial-gradient(ellipse at 80% 0, #ffffffbd, transparent 55%),
    linear-gradient(150deg, #dfedf8, #b7d7d8);
}
.sky-grid {
  gap: 8px;
  background: #45657626;
  padding: 12px;
  box-shadow: inset 0 4px 14px #31506b26;
  transform: perspective(1500px) rotateX(3deg);
  transform-origin: center bottom;
}
.sky-tile {
  box-shadow:
    0 5px 0 #647e8050,
    inset 0 1px #fff;
  min-height: 83px;
}
.sky-tile.token {
  outline: 3px solid #255e4d;
  outline-offset: 2px;
}
.sky-token {
  width: 42px;
  height: 42px;
  box-shadow: 0 3px 8px #173c3540;
}
.sky-tile.ladder {
  background: linear-gradient(125deg, #f4d696, #fff1c1);
}
.sky-tile.slide {
  background: linear-gradient(125deg, #d7d0e5, #eee4f3);
}
.dice {
  background: #fffdf1;
  border-radius: 15px;
  box-shadow: 0 5px 0 #9ebcbf;
  padding: 0 7px;
  color: #204f4a;
}
.avenue-board {
  background:
    radial-gradient(ellipse at 50% 50%, #f7ebd1, transparent 70%), #e3edda;
}
.avenue-grid {
  border: 9px solid #b9caaa;
  box-shadow:
    0 8px 0 #889d7c,
    0 15px 25px #24483320;
  border-radius: 22px;
  gap: 8px;
  background: #b9caaa;
}
.avenue-property {
  box-shadow: inset 0 0 0 1px #49695225;
  background: #fbf7e9;
  border-radius: 10px;
}
.avenue-property:not(.built) .little-building {
  filter: saturate(0.45);
  opacity: 0.72;
  transform: scale(0.78);
  transform-origin: bottom;
}
.avenue-property.built .little-building {
  filter: drop-shadow(0 5px 3px #25543c35);
}
.avenue-property.built {
  background: #e2edce;
}
.avenue-centre {
  background: radial-gradient(circle, #fff9e5, #bad0a8);
  border-radius: 14px;
}
.avenue-centre img {
  border-radius: 50%;
  box-shadow: 0 8px 20px #173c3528;
  border: 5px solid #f9f2de;
}
.mystery-board {
  background:
    radial-gradient(ellipse at 80% 0, #b4c9b855, transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 37px, #738b6d0d 38px 39px),
    #f0ecd9;
}
.mystery-map {
  gap: 15px;
}
.clue-card {
  position: relative;
  box-shadow:
    0 7px 0 #ccc6ad,
    0 12px 18px #332b1810;
  border: 1px solid #d6d0bc;
  background: #fffaf0;
  border-radius: 8px 18px 18px 18px;
  transform: rotate(-0.6deg);
}
.clue-card:nth-child(even) {
  transform: rotate(0.6deg);
}
.clue-card.revealed {
  background: #e3efd9;
  border-color: #95b49d;
  box-shadow: 0 7px 0 #a8bd9d;
}
.clue-card details {
  padding: 10px;
  border-top: 1px dashed #adbf9c;
  font-size: 0.8rem;
}
.clue-card .clue-mark {
  color: #677456;
}
.memory-board {
  background:
    radial-gradient(ellipse at 20% 0, #f9e7c0, transparent 60%), #e9e5d9;
}
.memory-grid {
  gap: 14px;
  margin-block: 20px;
}
.memory-card {
  border-radius: 18px;
  box-shadow:
    0 6px 0 #94a796,
    0 11px 16px #213a3312;
}
.memory-front {
  background: repeating-linear-gradient(45deg, #235448 0 2px, #285a4d 2px 15px);
  color: #f4e7bd;
  border: 5px solid #eee6d4;
  border-radius: 18px;
}
.memory-back {
  border: 5px solid #fff9e8;
  border-radius: 18px;
  background: #dceccc;
  color: #1a4939;
}
.memory-card.matched {
  box-shadow: 0 3px 0 #6e9a77;
  opacity: 1;
}
.memory-card.matched .memory-back {
  background: #bcd8ac;
}
.memory-moves {
  font-size: 0.75rem;
  margin-top: 9px;
  color: #4b6257;
}
.city-board .city-marker {
  backdrop-filter: blur(8px);
  background: #fffff0ee;
  border: 1px solid #ffffffb3;
  box-shadow: 0 5px 20px #0003;
}
/* Decorative 3D buildings must not widen the page in large-text mode. */
.city-scene {
  overflow: hidden;
}
.city-board .city-marker.done {
  background: #dbefcde8;
}
.city-board .city-console {
  border: 1px solid #ffffff55;
  box-shadow: 0 10px 20px #10282320;
}
.city-board .game-board-header {
  border-color: #ffffff30;
}
:root[data-theme="dark"] .spark-world-option {
  background: #243d30;
}
:root[data-theme="dark"] .game-board {
  border-color: #657d67;
  box-shadow:
    0 9px 0 #0b2018,
    0 20px 40px #0004;
}
:root[data-theme="dark"] .game-board:not(.city-board) {
  color: #173c35;
}
:root[data-theme="dark"] .game-board .eyebrow,
:root[data-theme="dark"] .game-board .practice-note {
  color: #284f40;
}
:root[data-theme="dark"] .game-board .primary {
  background: #154e3d;
  color: #fff7e9;
}
:root[data-theme="dark"] .game-board .secondary {
  color: #174632;
  background: #fff9e8;
  border-color: #174632;
}
.level2 {
  padding-bottom: 25px;
}
.l2-language-note {
  padding: 11px 14px;
  background: var(--mint);
  border-radius: 10px;
  font-size: 0.76rem;
  margin-bottom: 26px;
  line-height: 1.65;
}
.l2-language-note .text-link {
  font-weight: 700;
  padding: 3px 7px;
  min-height: 32px;
}
.l2-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 20px 0 42px;
}
.l2-intro h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.3rem);
  margin: 15px 0 22px;
  max-width: 14ch;
}
.l2-intro .lead {
  max-width: 55ch;
  font-size: 1.05rem;
}
.l2-availability {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--green);
  margin-top: 20px;
}
.l2-intro .practice-note {
  margin-top: 20px;
}
.l2-passport {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 90px 90px 20px 20px;
  padding: 28px;
  text-align: center;
  box-shadow:
    0 9px 0 var(--line),
    0 25px 40px #173c3510;
}
.l2-passport img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 6px solid var(--mint);
}
.l2-passport .eyebrow {
  font-size: 0.7rem;
}
.l2-passport strong {
  font-size: 0.82rem;
}
.l2-passport progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 16px;
  accent-color: #538554;
}
.l2-stamps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.l2-stamps span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 50%;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
}
.l2-stamps .earned {
  background: #dae9c8;
  border: 2px solid #55775c;
  color: #27543d;
  transform: rotate(-8deg);
}
.l2-mission-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0 22px;
}
.l2-mission {
  display: flex;
  align-items: center;
  gap: 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-align: start;
  box-shadow: 0 5px 0 var(--line);
  min-width: 0;
}
.l2-mission > span:nth-child(2) {
  flex: 1;
}
.l2-mission strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}
.l2-mission small {
  display: block;
  font-size: 0.77rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0;
}
.l2-mission em {
  font-size: 0.68rem;
  font-style: normal;
  color: var(--green);
}
.l2-mission-number {
  width: 45px;
  height: 53px;
  display: grid;
  place-items: center;
  background: var(--mint);
  border-radius: 10px 10px 18px 18px;
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: inset 0 -4px #173c3510;
}
.l2-mission.is-complete {
  border-color: #5d8562;
}
.l2-mission.is-complete .l2-mission-number {
  background: #cee2b8;
  color: #1a4d34;
}
.l2-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-top: 44px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}
.l2-support h2 {
  font-size: 1.6rem;
  margin-bottom: 13px;
}
.l2-support p {
  font-size: 0.88rem;
}
.l2-support .practice-note {
  font-size: 0.72rem;
  margin-top: 16px;
}
.l2-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 35px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.l2-lesson {
  max-width: 800px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 14px 40px #173c3508;
}
.l2-lesson h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 18px;
}
.l2-lesson .lead {
  font-size: 1.08rem;
  color: var(--green);
}
.l2-lesson-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 auto 20px;
  max-width: 800px;
  font-size: 0.8rem;
}
.l2-steps {
  display: flex;
  gap: 10px;
  margin: 0 auto 24px;
  max-width: 800px;
}
.l2-steps button {
  flex: 1;
  min-height: 48px;
}
.l2-reading {
  margin: 30px 0;
}
.l2-reading section {
  margin-top: 25px;
}
.l2-reading h2,
.l2-task h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.l2-reading p,
.l2-task p {
  font-size: 1rem;
  line-height: 1.8;
}
.l2-example {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--mint);
  margin: 24px 0;
}
.l2-example p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 9px 0;
}
.l2-example strong {
  font-size: 0.8rem;
}
.l2-example .l2-before {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  opacity: 0.8;
}
.l2-screen {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 22px 0;
  padding: 12px 16px;
}
.l2-screen summary {
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 28px;
}
.l2-screen figure {
  margin: 16px 0 0;
}
.l2-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}
.l2-screen figcaption {
  font-size: 0.73rem;
  line-height: 1.65;
  margin-top: 12px;
  color: var(--muted);
}
.l2-task {
  margin: 28px 0;
  padding: 22px;
  background: var(--mint);
  border-radius: 14px;
}
.l2-draft-label {
  display: block;
  font-weight: 700;
  margin: 20px 0 8px;
}
#l2-draft {
  display: block;
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 15px;
  resize: vertical;
  line-height: 1.7;
  margin-top: 14px;
}
.l2-checklist {
  border: 0;
  padding: 0;
  margin: 25px 0;
}
.l2-checklist legend {
  font-weight: 700;
  margin-bottom: 12px;
}
.l2-checklist label {
  display: flex;
  gap: 13px;
  align-items: start;
  padding: 12px 0;
  font-size: 0.91rem;
  cursor: pointer;
}
.l2-checklist input {
  width: 21px;
  height: 21px;
  accent-color: #2a654d;
  flex-shrink: 0;
  margin-top: 2px;
}
.l2-quiz fieldset {
  border: 0;
  padding: 0;
  margin: 30px 0;
}
.l2-quiz legend {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.6;
}
.l2-quiz .answer {
  display: block;
  width: 100%;
  margin: 9px 0;
  text-align: start;
  padding: 15px;
  border: 1px solid var(--line);
}
.l2-quiz .answer[aria-pressed="true"] {
  border: 2px solid var(--green);
  background: var(--mint);
  padding: 14px;
}
.l2-workbook {
  max-width: 850px;
  margin: 25px auto;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.l2-workbook h1 {
  margin: 15px 0;
  font-size: 2.3rem;
}
.l2-workbook section {
  margin: 35px 0;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.l2-workbook h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.l2-workbook h3 {
  font-size: 1rem;
  margin: 20px 0 10px;
}
.l2-written {
  white-space: pre-wrap;
  min-height: 110px;
  border: 1px dashed var(--line);
  padding: 18px;
  border-radius: 8px;
  margin: 20px 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.l2-certificate {
  max-width: 850px;
  margin: 30px auto;
  padding: 55px;
  text-align: center;
  background: #fffdf4;
  color: #163d30;
  border: 2px solid #7d9774;
  outline: 7px solid #e9e6d4;
  outline-offset: -14px;
  border-radius: 8px;
}
.l2-certificate h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin: 20px 0;
}
.l2-certificate p {
  margin: 20px auto;
  max-width: 65ch;
}
.l2-seal {
  font-size: 3rem;
  color: #aa743e;
}
.l2-certificate label {
  display: block;
  margin: 28px auto 8px;
  font-size: 0.8rem;
  color: #52705f;
}
.l2-certificate input {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-bottom: 1px solid #91a48a;
  background: transparent;
  color: #163d30;
  text-align: center;
  padding: 10px;
  font-size: 1.7rem;
}
.l2-certificate .practice-note {
  color: #52705f;
  font-size: 0.78rem;
}
.l2-signature {
  font-family: Georgia, serif;
  font-style: italic;
}
.l2-certificate small {
  font-size: 0.7rem;
}
[data-motion="off"] .language-track {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .language-track {
    animation: none;
  }
  .game-board .map-mission {
    transition: none;
  }
  .game-board .map-mission:hover {
    transform: none;
  }
}
@media (max-width: 1000px) {
  .spark-hero {
    gap: 22px;
  }
  .spark-world-hero {
    min-height: 440px;
    border-start-start-radius: 70px;
  }
  .spark-hero-copy h1 {
    font-size: 3.1rem;
  }
  .spark-world-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .spark-world-option:nth-last-child(-n + 2) {
    grid-column: auto;
  }
  .spark-level-grid article {
    padding: 24px;
  }
  .l2-intro {
    gap: 28px;
  }
  .spark-screen-preview {
    padding: 26px;
    gap: 24px;
  }
  .spark-world-caption strong {
    font-size: 0.69rem;
  }
}
@media (max-width: 700px) {
  .language-strip {
    margin: 8px 0 12px;
    border-radius: 13px;
  }
  .language-strip-heading {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .language-strip-heading > div {
    flex-basis: calc(100% - 52px);
  }
  .language-strip small {
    font-size: 0.73rem;
  }
  .language-cta {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .language-pause {
    order: 2;
  }
  .language-track {
    animation-duration: 110s;
  }
  .spark-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 18px 0 30px;
  }
  .spark-hero-copy h1 {
    font-size: clamp(2.55rem, 10.5vw, 3.6rem);
    line-height: 1.06;
    margin-top: 12px;
  }
  .spark-hero .lead {
    font-size: 0.96rem;
  }
  .spark-hero .cta-row {
    margin-top: 20px;
  }
  .spark-world-hero {
    min-height: 340px;
    max-height: 450px;
    aspect-ratio: 1.15;
    border-radius: 60px 20px 20px 20px;
  }
  .spark-world-hero picture {
    inset: 0;
  }
  .spark-proof {
    margin-top: 18px;
  }
  .spark-section-heading {
    display: block;
  }
  .spark-section-heading p:not(.eyebrow) {
    margin-top: 14px;
    max-width: none;
  }
  .spark-worlds {
    padding: 27px 0 32px;
  }
  .spark-world-picker {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .spark-world-option {
    padding-top: 110px;
  }
  .spark-world-option[aria-pressed="true"] {
    padding-top: 109px;
  }
  .spark-world-option:last-child {
    grid-column: 1/-1;
    padding: 22px 22px 22px 42%;
    min-height: 120px;
  }
  .spark-world-option:last-child > .world-diorama {
    width: 40%;
    height: 120px;
  }
  .spark-world-option > span {
    font-size: 0.75rem;
  }
  .spark-level-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .spark-levels {
    padding: 30px 0;
  }
  .spark-screen-preview {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 23px;
  }
  .spark-screen-preview h2 {
    font-size: 1.8rem;
  }
  .spark-language-grid {
    grid-template-columns: 1fr 1fr;
  }
  .spark-game-worlds {
    justify-content: start;
    gap: 6px;
  }
  .spark-game-worlds .toggle {
    font-size: 0.71rem;
    padding: 8px 12px;
  }
  .sky-grid {
    padding: 7px;
    gap: 6px;
  }
  .sky-tile {
    min-height: 78px;
  }
  .avenue-grid {
    border-width: 5px;
    gap: 5px;
  }
  .mystery-map {
    gap: 11px;
  }
  .memory-grid {
    gap: 10px;
  }
  .l2-intro {
    grid-template-columns: 1fr;
    padding-top: 3px;
    gap: 25px;
  }
  .l2-intro h1 {
    max-width: none;
  }
  .l2-passport {
    border-radius: 20px;
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 10px 18px;
    padding: 18px;
    align-items: center;
    text-align: start;
  }
  .l2-passport img {
    width: 70px;
    height: 70px;
    grid-row: 1/4;
    margin: 0;
    border-width: 3px;
  }
  .l2-stamps {
    margin: 0;
    gap: 7px;
    grid-template-columns: repeat(8, 1fr);
  }
  .l2-stamps span {
    font-size: 0.72rem;
  }
  .l2-passport .eyebrow {
    margin: 0;
  }
  .l2-passport progress {
    grid-column: 1/-1;
    margin: 0;
  }
  .l2-passport strong {
    font-size: 0.72rem;
  }
  .l2-mission-map {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .l2-mission {
    padding: 17px;
    gap: 13px;
  }
  .l2-support {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .l2-steps {
    gap: 6px;
  }
  .l2-steps button {
    font-size: 0.8rem;
    padding: 10px 7px;
  }
  .l2-lesson {
    padding: 22px 17px;
    border-radius: 16px;
  }
  .l2-lesson h1 {
    font-size: 2rem;
  }
  .l2-lesson .lead {
    font-size: 1rem;
  }
  .l2-reading p {
    font-size: 0.94rem;
  }
  .l2-certificate {
    padding: 35px 25px;
  }
  .l2-workbook {
    padding: 20px;
  }
  .l2-language-note {
    margin-bottom: 20px;
  }
  .l2-lesson .cta-row > button {
    max-width: 100%;
    font-size: 0.85rem;
  }
}
@media (max-width: 380px) {
  .spark-hero-copy h1 {
    font-size: 2.5rem;
  }
  .spark-world-caption {
    inset-inline: 10px;
    padding: 9px;
    gap: 7px;
  }
  .spark-world-caption strong {
    font-size: 0.64rem;
  }
  .l2-passport {
    grid-template-columns: 1fr;
  }
  .l2-passport img {
    display: none;
  }
  .l2-stamps {
    grid-column: 1;
  }
  .spark-level-grid article {
    padding: 20px;
  }
  .sky-token {
    width: 32px;
    height: 32px;
  }
  .spark-world-hero {
    min-height: 290px;
  }
}
@media print {
  body {
    background: white !important;
    color: #111 !important;
  }
  .topbar,
  .preview-banner,
  .footer,
  .mobile-nav,
  .spark-level-switch,
  .l2-no-print,
  .skip,
  #announcer,
  .toast,
  .privacy-widget,
  .privacy-launcher,
  #spark-privacy-controls,
  [data-privacy-open] {
    display: none !important;
  }
  .shell {
    max-width: none;
    padding: 0 !important;
  }
  .level2 {
    padding: 0;
  }
  .l2-workbook {
    border: 0;
    padding: 0;
    max-width: none;
    margin: 0;
  }
  .l2-workbook h1 {
    font-size: 26pt;
  }
  .l2-workbook section {
    break-inside: avoid;
  }
  .l2-workbook h2 {
    font-size: 17pt;
  }
  .l2-written {
    min-height: 70px;
  }
  .l2-certificate {
    box-shadow: none;
    break-inside: avoid;
    margin: 15mm auto;
    padding: 35px;
  }
  .l2-certificate input {
    color: #111;
    border-bottom: 1px solid #999;
  }
  .l2-certificate label {
    font-size: 10pt;
  }
  a {
    color: inherit;
  }
  .l2-sources {
    font-size: 9pt;
  }
}

/* Public Spark presentation: comfortable reading and usable touch controls. */
.spark-hero-copy h1 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.spark-hero .lead {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 48ch;
}
.spark-section-heading h2,
.spark-level-grid h3 {
  text-wrap: balance;
}
.spark-world-caption .text-link,
.spark-level-grid :is(button, a),
.language-strip :is(button, a) {
  min-height: 44px;
}
.spark-world-option:focus-visible,
.spark-hero :is(a, button):focus-visible,
.spark-level-grid :is(a, button):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
[dir="rtl"] .spark-hero-copy h1 {
  letter-spacing: normal;
}
@media (max-width: 700px) {
  .spark-hero .cta-row {
    align-items: stretch;
  }
  .spark-hero .cta-row > button {
    flex: 1 1 auto;
  }
  .spark-hero .hero-note {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}
