:root {
  --ink: #44352f;
  --ink-soft: #75645b;
  --cream: #f8f1df;
  --paper: #fffdf7;
  --coral: #ef735b;
  --coral-dark: #d95442;
  --teal: #179c91;
  --teal-dark: #11766f;
  --yellow: #f6c94c;
  --yellow-soft: #fff0a6;
  --mint: #dff1df;
  --sky: #cbeee8;
  --line: #decdb7;
  --shadow: 0 20px 50px rgba(97, 72, 54, 0.14);
  --shadow-small: 0 10px 24px rgba(97, 72, 54, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-height: 84px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 255, 255, 0.95) 0 5%, transparent 16%),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.7) 0 4%, transparent 15%),
    linear-gradient(180deg, #f9f4e6 0%, #f3ead6 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid rgba(23, 156, 145, 0.32);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sky-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 120px;
  height: 34px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(0.2px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  left: 22px;
  width: 54px;
  height: 54px;
}

.cloud::after {
  right: 17px;
  width: 43px;
  height: 43px;
}

.cloud--one {
  top: 18%;
  left: -42px;
  transform: scale(1.25);
}

.cloud--two {
  top: 9%;
  right: 2%;
  transform: scale(0.8);
}

.cloud--three {
  top: 72%;
  right: -44px;
  transform: scale(1.5);
  opacity: 0.6;
}

.floating-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 3px solid rgba(239, 115, 91, 0.26);
  border-radius: 50%;
}

.floating-dot--one { top: 32%; left: 4%; }
.floating-dot--two { top: 62%; right: 5%; width: 15px; height: 15px; border-color: rgba(23, 156, 145, 0.22); }
.floating-dot--three { top: 10%; left: 62%; width: 7px; height: 7px; border-color: rgba(246, 201, 76, 0.5); }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 48px) 36px;
}

.app-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 5px 8px 5px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 47px;
  height: 47px;
}

.brand-core {
  width: 17px;
  height: 17px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset -3px -3px 0 rgba(198, 135, 29, 0.25);
}

.brand-orbit,
.brand-orbit::before {
  position: absolute;
  inset: 7px 2px;
  content: "";
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  transform: rotate(30deg);
}

.brand-orbit::before {
  inset: -2.5px;
  transform: rotate(60deg);
}

.brand-orbit::after {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.round-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid rgba(68, 53, 47, 0.14);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.8);
  box-shadow: 0 6px 14px rgba(68, 53, 47, 0.07);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.round-button:hover {
  transform: translateY(-2px);
  background: #fff;
}

.round-button svg {
  width: 22px;
  height: 22px;
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.round-button .sound-off,
.round-button[aria-pressed="false"] .sound-on {
  display: none;
}

.round-button[aria-pressed="false"] .sound-off {
  display: block;
}

.mini-progress {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid rgba(68, 53, 47, 0.1);
  border-radius: 99px;
  background: rgba(255, 253, 247, 0.82);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.mini-progress__star {
  color: #e9ae28;
  font-size: 18px;
  text-shadow: 0 2px 0 #fff;
}

.main-stage {
  position: relative;
}

.screen {
  width: 100%;
  animation: screen-in 480ms cubic-bezier(.2, .78, .25, 1) both;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  row-gap: 6px;
  padding: 22px 12px 4px;
  text-align: center;
  color: rgba(68, 53, 47, 0.66);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.site-footer a {
  color: rgba(68, 53, 47, 0.76);
  text-decoration: none;
  border-bottom: 1px solid rgba(68, 53, 47, 0.26);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--teal-dark);
  border-bottom-color: currentColor;
}

.site-footer__item,
.site-footer a {
  white-space: nowrap;
}

.site-footer__dot {
  color: rgba(68, 53, 47, 0.36);
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Home */
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: calc(100vh - var(--header-height) - 38px);
  overflow: hidden;
  border: 2px solid rgba(95, 72, 55, 0.15);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(46px, 7vw, 96px);
}

.hero-copy::before {
  position: absolute;
  right: -10px;
  top: 0;
  width: 90px;
  height: 100%;
  content: "";
  background: radial-gradient(circle at 0 50%, transparent 0 10px, var(--paper) 11px) 0 0 / 30px 30px repeat-y;
  transform: translateX(50%);
  pointer-events: none;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  min-height: 35px;
  padding: 0 14px;
  border: 1.5px solid rgba(23, 156, 145, 0.22);
  border-radius: 99px;
  background: #edf7ef;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(23, 156, 145, 0.11);
}

.hero-copy h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 11px 17px;
  margin: 28px 0 23px;
  font-size: clamp(55px, 6.1vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-copy h1 span {
  position: relative;
  z-index: 1;
}

.hero-copy h1 span::after {
  position: absolute;
  z-index: -1;
  left: -3px;
  right: -4px;
  bottom: 0;
  height: 17px;
  content: "";
  border-radius: 7px;
  background: var(--yellow-soft);
  transform: rotate(-1deg);
}

.hero-copy h1 strong {
  color: var(--coral);
  font-size: 0.62em;
  letter-spacing: 0.06em;
  text-shadow: 2px 3px 0 #f8cabd;
}

.hero-lead {
  max-width: 570px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.9;
}

.route-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  width: 100%;
  max-width: 640px;
  margin-top: 26px;
}

.route-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  min-width: 0;
  min-height: 108px;
  padding: 13px 14px;
  border: 2px solid rgba(68, 53, 47, .16);
  border-radius: 17px;
  background: rgba(255, 253, 247, .82);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 4px 0 rgba(68, 53, 47, .08);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.route-card:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--teal-dark);
  box-shadow: 0 6px 0 rgba(23, 126, 118, .12);
}

.route-card[aria-pressed="true"] {
  border-color: var(--ink);
  background: #e7f5ec;
  box-shadow: 0 5px 0 rgba(23, 126, 118, .2), inset 0 0 0 2px rgba(255, 255, 255, .75);
}

.route-card:disabled,
.route-card[aria-disabled="true"] {
  background: #eee8dc;
  color: #796f67;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .66;
}

.route-card:focus-visible {
  outline: 4px solid rgba(36, 150, 139, .32);
  outline-offset: 3px;
}

.route-card__badge {
  grid-row: 1 / span 2;
  align-self: start;
  padding: 4px 7px;
  border: 1.5px solid currentColor;
  border-radius: 9px;
  background: var(--yellow-soft);
  color: var(--coral-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.route-card strong {
  min-width: 0;
  font-size: 14px;
}

.route-card small,
.route-card__lock-copy {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.route-card__lock-copy {
  color: var(--teal-dark);
  font-weight: 900;
}

.route-card[aria-disabled="true"] .route-card__lock-copy { color: #8c625a; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.quiet-button,
.text-button,
.back-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 6px 0 #9e473d, 0 12px 20px rgba(221, 87, 67, .22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #f47a61;
  box-shadow: 0 8px 0 #9e473d, 0 15px 24px rgba(221, 87, 67, .24);
}

.primary-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #9e473d;
}

.primary-button--large {
  min-width: 196px;
  min-height: 62px;
  padding: 0 28px 0 32px;
  border-radius: 18px;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.primary-button--large svg {
  width: 25px;
  margin-left: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-button {
  padding: 9px 0;
  border-bottom: 2px solid rgba(23, 156, 145, 0.35);
  background: transparent;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin: 48px 0 0;
  padding: 27px 0 0;
  border-top: 1.5px dashed var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feature-icon {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  background: var(--yellow-soft);
}

.feature-icon--map {
  border-radius: 6px 6px 8px 8px;
  transform: rotate(-3deg);
}

.feature-icon--map::after {
  position: absolute;
  inset: 4px 8px;
  content: "";
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.feature-icon--bag {
  border-radius: 4px 4px 9px 9px;
  background: #d7f0e8;
  transform: rotate(3deg);
}

.feature-icon--bag::before {
  position: absolute;
  top: -6px;
  left: 6px;
  width: 9px;
  height: 7px;
  content: "";
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.feature-icon--heart {
  border: 0;
  background: transparent;
}

.feature-icon--heart::before {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 20px;
  height: 18px;
  content: "♥";
  color: var(--coral);
  font-size: 27px;
  line-height: .7;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-scene {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background:
    radial-gradient(circle at 63% 28%, rgba(255, 255, 255, .5) 0 2px, transparent 3px) 0 0 / 40px 40px,
    linear-gradient(155deg, #d8f1e6 0%, #a8ddcf 47%, #75c6b5 100%);
}

.hero-scene::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .22;
  background-image:
    linear-gradient(45deg, transparent 47%, #fff 48% 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, #fff 48% 52%, transparent 53%);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.sun-badge {
  position: absolute;
  top: 42px;
  right: 48px;
  width: 75px;
  height: 75px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 7px 0 rgba(109, 77, 45, 0.16);
}

.sun-badge::before,
.sun-badge::after,
.sun-badge span::before,
.sun-badge span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 3px;
  content: "";
  border-radius: 3px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.sun-badge::after { transform: translate(-50%, -50%) rotate(90deg); }
.sun-badge span::before { transform: translate(-50%, -50%) rotate(45deg); }
.sun-badge span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.speech-bubble {
  position: absolute;
  z-index: 5;
  top: 105px;
  left: 34px;
  min-width: 160px;
  padding: 18px 21px;
  border: 3px solid var(--ink);
  border-radius: 22px 22px 7px 22px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  transform: rotate(-2deg);
  box-shadow: 7px 8px 0 rgba(68, 53, 47, .09);
}

.speech-bubble::after {
  position: absolute;
  right: 11px;
  bottom: -20px;
  width: 22px;
  height: 22px;
  content: "";
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transform: skewY(18deg);
}

.speech-bubble strong {
  color: var(--coral-dark);
  font-size: 20px;
}

.mayor-mascot {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 17px;
  width: min(75%, 430px);
  transform: translateX(-50%);
  overflow: visible;
  filter: drop-shadow(0 20px 18px rgba(55, 73, 59, .16));
}

.mayor-star {
  transform-box: fill-box;
  transform-origin: center;
  animation: star-wave 2.8s ease-in-out infinite;
}

@keyframes star-wave {
  0%, 100% { transform: translate(283px, 252px) rotate(-8deg) scale(1); }
  50% { transform: translate(283px, 242px) rotate(8deg) scale(1.08); }
}

.scene-hills {
  position: absolute;
  z-index: 1;
  right: -10%;
  bottom: -116px;
  left: -10%;
  height: 290px;
  border-radius: 50% 50% 0 0;
  background: #5ca990;
  border-top: 5px solid rgba(68, 53, 47, .6);
}

.scene-hills::before {
  position: absolute;
  right: -20%;
  bottom: 95px;
  left: 48%;
  height: 180px;
  content: "";
  border-radius: 50% 50% 0 0;
  background: #87cbb2;
  border-top: 4px solid rgba(68, 53, 47, .35);
}

.house {
  position: absolute;
  z-index: 2;
  bottom: 207px;
  width: 62px;
  height: 58px;
  border: 4px solid var(--ink);
  border-radius: 5px;
  background: #fff0b0;
}

.house::before {
  position: absolute;
  left: -11px;
  top: -33px;
  width: 76px;
  height: 44px;
  content: "";
  border: 4px solid var(--ink);
  background: #e86d59;
  clip-path: polygon(50% 0, 100% 75%, 88% 100%, 12% 100%, 0 75%);
}

.house i {
  position: absolute;
  left: 21px;
  bottom: -4px;
  width: 18px;
  height: 29px;
  border: 3px solid var(--ink);
  border-radius: 9px 9px 0 0;
  background: #66b3a4;
}

.house--one { left: 11%; transform: scale(.8) rotate(-3deg); }
.house--two { right: 9%; bottom: 217px; transform: scale(.66) rotate(4deg); }

.tree {
  position: absolute;
  z-index: 3;
  bottom: 196px;
  width: 54px;
  height: 72px;
  border: 4px solid var(--ink);
  border-radius: 55% 55% 42% 42%;
  background: #469f79;
}

.tree::after {
  position: absolute;
  left: 21px;
  bottom: -26px;
  width: 9px;
  height: 29px;
  content: "";
  border: 3px solid var(--ink);
  background: #b67547;
}

.tree--one { left: 2%; }
.tree--two { right: 21%; bottom: 204px; transform: scale(.72); }

/* Phase 2 learning library */
.screen--learn {
  padding-bottom: 28px;
}

.learning-library {
  overflow: hidden;
  border: 2px solid rgba(95, 72, 55, 0.15);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 240, 166, .7), transparent 26%),
    radial-gradient(circle at 91% 0%, rgba(203, 238, 232, .78), transparent 25%),
    var(--paper);
  box-shadow: var(--shadow);
}

.learning-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 52px);
  border-bottom: 2px dashed rgba(68, 53, 47, .12);
}

.learning-hero h2 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.learning-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.85;
}

.learning-hero__badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(108px, 13vw, 160px);
  height: clamp(108px, 13vw, 160px);
  border: 3px solid var(--ink);
  border-radius: 36% 64% 48% 52%;
  background: linear-gradient(135deg, #fff2a9, #ffcf7a);
  box-shadow: 0 12px 0 rgba(68, 53, 47, .12);
  transform: rotate(4deg);
}

.learning-hero__badge strong {
  font-size: clamp(42px, 6vw, 70px);
  line-height: .8;
}

.learning-hero__badge span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: clamp(20px, 3vw, 34px);
}

.learning-index {
  align-self: start;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: var(--learning-detail-height);
  max-height: var(--learning-detail-height);
  overflow: hidden;
  border: 2px solid rgba(68, 53, 47, .14);
  border-radius: 26px;
  background: rgba(255, 253, 247, .86);
  box-shadow: var(--shadow-small);
}

.learning-index__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(68, 53, 47, .1);
  font-weight: 900;
}

.learning-index__head small {
  color: var(--ink-soft);
  font-size: 11px;
}

.learning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
}

.learning-page-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(68, 53, 47, .12);
  background: rgba(255, 246, 231, .74);
}

.learning-page-tab {
  min-height: 42px;
  border: 2px solid rgba(68, 53, 47, .18);
  border-radius: 14px;
  background: #fffdf7;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(68, 53, 47, .07);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.learning-page-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 156, 145, .46);
}

.learning-page-tab[aria-current="true"] {
  border-color: var(--ink);
  background: var(--yellow-soft);
  color: var(--teal-dark);
  box-shadow: 0 5px 0 rgba(23, 126, 118, .16);
}

.learning-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 3px 9px;
  align-items: center;
  min-height: 64px;
  padding: 9px 10px;
  border: 2px solid rgba(68, 53, 47, .12);
  border-radius: 17px;
  background: #fffdf7;
  text-align: left;
  box-shadow: 0 4px 0 rgba(68, 53, 47, .06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.learning-card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 156, 145, .42);
  box-shadow: 0 6px 0 rgba(23, 126, 118, .1);
}

.learning-card[aria-current="true"] {
  border-color: var(--ink);
  background: #e8f6ee;
  box-shadow: 0 5px 0 rgba(23, 126, 118, .18);
}

.learning-card__number {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 900;
}

.learning-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.learning-card small {
  grid-column: 2 / 3;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-card b {
  grid-row: 1 / span 2;
  grid-column: 3;
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 14px;
  background: #f5e6d4;
  color: var(--teal-dark);
  font-size: 16px;
}

.learning-detail {
  min-width: 0;
}

.learning-detail__top {
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(280px, 1fr) minmax(260px, .9fr);
  gap: 18px;
  align-items: stretch;
}

.learning-character-card,
.learning-talents-card,
.learning-skill,
.learning-uses-section {
  border: 2px solid rgba(68, 53, 47, .14);
  border-radius: 28px;
  background: rgba(255, 253, 247, .92);
  box-shadow: var(--shadow-small);
}

.learning-character-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.learning-character-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 116px;
  content: "";
  background: linear-gradient(135deg, rgba(255, 240, 166, .78), rgba(203, 238, 232, .78));
  pointer-events: none;
}

.learning-card-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: #fffdf7;
  color: var(--coral-dark);
  font-weight: 900;
}

.learning-character {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 180px;
  margin: 6px 0 2px;
}

.learning-character .element-character {
  width: min(210px, 82%);
  height: 170px;
}

.learning-character-card h3,
.learning-talents-card h3,
.learning-skill h3,
.learning-uses-section h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
}

.learning-card-meta {
  margin: 8px 0 18px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.learning-identity {
  display: grid;
  gap: 10px;
  margin: 0;
}

.learning-identity div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 15px;
  background: #f7efe1;
}

.learning-identity dt {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
}

.learning-identity dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.55;
}

.learning-talents-card,
.learning-skill,
.learning-uses-section {
  padding: 22px;
}

.learning-talents-card {
  overflow-x: hidden;
}

.learning-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.learning-talents {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.talent-meter {
  display: grid;
  grid-template-columns: minmax(68px, 88px) minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.talent-meter__label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.talent-meter__label strong {
  font-size: 14px;
}

.talent-meter__label span {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
}

.talent-meter__track {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 18px;
  overflow: hidden;
  border: 2px solid rgba(68, 53, 47, .18);
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, #f2eadc 0 19%, #fff9ed 19% 20%);
}

.talent-meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34bda7, #f6c94c, #ef735b);
  box-shadow: inset 0 -2px 0 rgba(68, 53, 47, .12);
}

.talent-meter__scale {
  grid-column: 2;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
}

.learning-skill {
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 115, 91, .18), transparent 34%),
    rgba(255, 253, 247, .94);
}

.learning-skill h3 {
  margin-top: 11px;
  color: var(--coral-dark);
}

.learning-skill p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
}

.learning-uses-section {
  margin-top: 18px;
}

.learning-use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.learning-use {
  min-width: 0;
  padding: 17px;
  border: 2px solid rgba(68, 53, 47, .12);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffaf0, #f5efe4);
}

.learning-use-illustration {
  position: relative;
  height: 126px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 2px solid rgba(68, 53, 47, .16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .72) 0 9%, transparent 10%),
    linear-gradient(180deg, #bfeee7 0 58%, #d7eabd 58% 100%);
  box-shadow: inset 0 -8px 0 rgba(68, 53, 47, .06);
}

.learning-use-illustration::before {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -14px;
  height: 46px;
  content: "";
  border-top: 2px solid rgba(68, 53, 47, .12);
  border-radius: 50% 50% 0 0;
  background: rgba(255, 240, 166, .78);
}

.learning-use-illustration__part {
  position: absolute;
  display: block;
}

.learning-use-illustration[data-kind="metallurgy"] {
  background:
    radial-gradient(circle at 17% 18%, rgba(255, 224, 113, .68) 0 10%, transparent 11%),
    linear-gradient(180deg, #c9edf4 0 58%, #eadabf 58% 100%);
}

.learning-use-illustration__part--ore-pile {
  left: 16px;
  bottom: 18px;
  width: 76px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 44% 50% 30% 30%;
  background:
    radial-gradient(circle at 26% 58%, #6f6460 0 8px, transparent 9px),
    radial-gradient(circle at 52% 42%, #9b8c7e 0 11px, transparent 12px),
    radial-gradient(circle at 73% 62%, #5b5654 0 9px, transparent 10px),
    #756a62;
  box-shadow: 0 5px 0 rgba(68, 53, 47, .16);
}

.learning-use-illustration__part--ore-pile::before,
.learning-use-illustration__part--ore-pile::after {
  position: absolute;
  content: "";
  border: 2px solid rgba(68, 53, 47, .5);
  border-radius: 50%;
  background: #b6a48d;
}

.learning-use-illustration__part--ore-pile::before {
  left: 8px;
  bottom: 21px;
  width: 18px;
  height: 15px;
}

.learning-use-illustration__part--ore-pile::after {
  right: 10px;
  bottom: 17px;
  width: 15px;
  height: 13px;
  background: #514c4a;
}

.learning-use-illustration__part--factory {
  right: 18px;
  bottom: 20px;
  width: 76px;
  height: 54px;
  border: 3px solid var(--ink);
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.3) 0 16%, transparent 16% 21%, rgba(255,255,255,.3) 21% 37%, transparent 37%),
    #f0a85f;
  box-shadow: 0 6px 0 rgba(68, 53, 47, .16);
}

.learning-use-illustration__part--factory::before {
  position: absolute;
  left: 9px;
  top: -28px;
  width: 14px;
  height: 30px;
  content: "";
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #d76f52;
  box-shadow: 31px 8px 0 -1px #d76f52, 31px 8px 0 2px var(--ink);
}

.learning-use-illustration__part--factory::after {
  position: absolute;
  left: -3px;
  right: -3px;
  top: -15px;
  height: 24px;
  content: "";
  clip-path: polygon(0 100%, 16% 18%, 32% 100%, 48% 18%, 64% 100%, 80% 18%, 100% 100%);
  background: var(--ink);
}

.learning-use-illustration__part--metal-spark {
  left: 88px;
  top: 28px;
  width: 18px;
  height: 18px;
  transform: rotate(20deg);
}

.learning-use-illustration__part--metal-spark::before {
  position: absolute;
  inset: 0;
  content: "";
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  background: #ffe071;
}

.learning-use-illustration__part--sample-blocks {
  left: 20px;
  bottom: 23px;
  width: 82px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(135deg, #dfe9e8, #8eddf2);
  box-shadow: 25px -13px 0 -7px #fff1b8, 25px -13px 0 -4px var(--ink);
}

.learning-use-illustration__part--color-flag {
  left: 108px;
  top: 26px;
  width: 34px;
  height: 28px;
  border-left: 4px solid var(--ink);
}

.learning-use-illustration__part--color-flag::before {
  position: absolute;
  left: 4px;
  top: 0;
  width: 27px;
  height: 19px;
  content: "";
  border: 2px solid var(--ink);
  border-radius: 5px 10px 10px 5px;
  background: #ef735b;
}

.learning-use-illustration[data-kind="daily-items"] {
  background: linear-gradient(180deg, #ffe9dc 0 60%, #f5efe4 60% 100%);
}

.learning-use-illustration__part--item-shelf {
  left: 18px;
  right: 18px;
  bottom: 27px;
  height: 16px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: #c78854;
}

.learning-use-illustration__part--round-tool {
  left: 40px;
  bottom: 44px;
  width: 52px;
  height: 52px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 38%, #fffdf7 0 8px, transparent 9px),
    #6ed3c7;
}

.learning-use-illustration__part--use-star {
  right: 45px;
  bottom: 51px;
  width: 38px;
  height: 38px;
  transform: rotate(-10deg);
}

.learning-use-illustration__part--use-star::before {
  position: absolute;
  inset: 0;
  content: "";
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
  background: #ffe071;
  filter: drop-shadow(0 0 0 var(--ink));
}

.learning-use-illustration[data-kind="tech-panel"] {
  background: linear-gradient(180deg, #d9e6ff 0 58%, #e9f4fb 58% 100%);
}

.learning-use-illustration__part--tech-screen {
  left: 24px;
  bottom: 25px;
  width: 82px;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px),
    #5f78dd;
  box-shadow: inset 0 -9px 0 rgba(68, 53, 47, .13);
}

.learning-use-illustration__part--signal-dots {
  right: 30px;
  top: 31px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: -23px 18px 0 #ffe071, -2px 36px 0 #34bda7;
}

.learning-use-illustration__part--task-badge {
  right: 26px;
  bottom: 27px;
  width: 45px;
  height: 45px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fffdf7;
}

.learning-use-illustration__part--task-badge::before,
.learning-use-illustration__part--task-badge::after {
  position: absolute;
  content: "";
  border-radius: 99px;
  background: var(--teal);
}

.learning-use-illustration__part--task-badge::before {
  left: 10px;
  top: 13px;
  width: 23px;
  height: 4px;
  box-shadow: 0 10px 0 var(--coral);
}

.learning-use-illustration__part--task-badge::after {
  left: 10px;
  top: 31px;
  width: 16px;
  height: 4px;
  background: var(--yellow);
}

.learning-use__category {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 99px;
  background: #e7f5ec;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.learning-use h4 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.learning-use p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.learning-use small {
  display: block;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed rgba(68, 53, 47, .18);
  color: #876c5c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.learning-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.learning-reference-page {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 34px);
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(68, 53, 47, .055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(68, 53, 47, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 50% 38%, rgba(255, 240, 166, .22), transparent 34%),
    #f2f0ec;
  box-shadow: 0 14px 0 rgba(68, 53, 47, .11);
}

.learning-reference-page > * {
  position: relative;
  z-index: 1;
}

.learning-reference-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.learning-pass-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: min(560px, 68%);
  min-height: 148px;
  padding: 20px 22px 17px;
  overflow: visible;
  border: 4px solid var(--ink);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(236, 244, 246, .94)),
    #eef4f5;
  box-shadow: 0 8px 0 rgba(68, 53, 47, .13);
  transform: rotate(-1deg);
}

.learning-pass-card::before {
  position: absolute;
  top: -72px;
  left: 50%;
  width: 34px;
  height: 76px;
  content: "";
  border: 4px solid var(--ink);
  border-bottom: 0;
  border-radius: 18px 18px 6px 6px;
  background: #e98938;
  transform: translateX(-50%);
}

.learning-pass-card::after {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 54px;
  height: 30px;
  content: "";
  border: 4px solid #747d83;
  border-top: 0;
  border-radius: 0 0 30px 30px;
  background: transparent;
  transform: translateX(-50%);
}

.learning-pass-card__clip {
  position: absolute;
  top: 13px;
  right: 54px;
  width: 48px;
  height: 9px;
  border-radius: 99px;
  background: #2d3a3b;
  box-shadow: -290px 0 0 #2d3a3b;
  opacity: .82;
}

.learning-pass-card__symbol {
  display: grid;
  grid-template-columns: minmax(116px, .72fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.learning-pass-card .learning-card-number {
  align-self: center;
  justify-self: start;
  min-width: 106px;
  min-height: 84px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffd62e;
  font-size: clamp(42px, 5.6vw, 82px);
  line-height: .9;
  text-shadow:
    -3px -3px 0 var(--ink),
    3px -3px 0 var(--ink),
    -3px 3px 0 var(--ink),
    3px 3px 0 var(--ink);
}

.learning-pass-card #learning-card-name {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.learning-pass-card .learning-card-meta {
  margin: 0;
  color: #242f31;
  font-size: 13px;
}

.learning-pass-card .learning-identity {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.learning-pass-card .learning-identity div {
  grid-template-columns: 68px minmax(0, 1fr);
  padding: 3px 0;
  border-radius: 0;
  background: transparent;
}

.learning-pass-card .learning-identity dt {
  display: inline-flex;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 99px;
  background: #c86e33;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
}

.learning-pass-card .learning-identity dd {
  color: #1f2b2d;
  font-size: 13px;
  font-weight: 900;
}

.learning-resume-badge {
  display: grid;
  place-items: center;
  min-width: 154px;
  min-height: 116px;
  padding: 12px 18px;
  border: 4px solid rgba(68, 53, 47, .16);
  border-radius: 12px 24px 12px 24px;
  background: #b45f2b;
  color: #fff;
  box-shadow: 0 8px 0 rgba(68, 53, 47, .12);
  transform: rotate(2deg);
}

.learning-resume-badge span {
  color: #ffd84d;
  font-size: 27px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.learning-resume-badge strong {
  margin-top: -8px;
  font-size: 44px;
  line-height: .92;
  letter-spacing: .02em;
}

.learning-reference-main {
  display: grid;
  grid-template-columns: minmax(210px, .88fr) minmax(270px, 1.12fr) minmax(240px, .94fr);
  gap: 18px;
  align-items: stretch;
}

.learning-note-panel,
.learning-identity-board {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 8px 22px 8px 22px;
  background: rgba(255, 253, 247, .92);
  box-shadow: 0 7px 0 rgba(68, 53, 47, .1);
}

.learning-note-panel::after,
.learning-identity-board::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  box-sizing: border-box;
  width: 48px;
  height: 46px;
  content: "";
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  border-radius: 0 0 12px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(ellipse at 76% 84%, rgba(255,255,255,.78) 0 23%, transparent 43%),
    linear-gradient(135deg, transparent 0 42%, rgba(68, 53, 47, .28) 43% 48%, rgba(222, 213, 198, .72) 49% 58%, rgba(255, 253, 247, .98) 59% 100%),
    linear-gradient(135deg, rgba(214, 205, 190, .9), rgba(255, 253, 247, .98));
  box-shadow: -10px -8px 12px rgba(68, 53, 47, .14), inset -4px -5px 0 rgba(255,255,255,.56);
  filter: drop-shadow(-2px -3px 2px rgba(68, 53, 47, .08));
  pointer-events: none;
  transform: translate(1px, 1px) rotate(-1.5deg) skew(-2deg, -1deg);
  transform-origin: right bottom;
}

.learning-note-panel h3,
.learning-identity-board h3 {
  color: #ffd733;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1;
  text-shadow:
    -3px -3px 0 var(--ink),
    3px -3px 0 var(--ink),
    -3px 3px 0 var(--ink),
    3px 3px 0 var(--ink),
    0 5px 0 rgba(68, 53, 47, .14);
}

.learning-note-panel .section-kicker,
.learning-identity-board .section-kicker {
  color: #6b5b48;
  letter-spacing: .1em;
}

.learning-character-stage {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 438px;
  padding: 74px 8px 22px;
  overflow: hidden;
}

.learning-character-stage::before {
  position: absolute;
  left: 15%;
  right: 11%;
  bottom: 26px;
  height: 42px;
  content: "";
  border-radius: 50%;
  background: rgba(68, 53, 47, .14);
  filter: blur(.5px);
}

.learning-character-stage::after {
  position: absolute;
  inset: 34px 10px auto;
  height: 190px;
  content: "";
  background:
    radial-gradient(circle at 18% 52%, var(--ink) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 48%, var(--ink) 0 3px, transparent 4px),
    linear-gradient(100deg, transparent 0 46%, rgba(255, 216, 77, .56) 47% 50%, transparent 51% 100%);
  opacity: .3;
  pointer-events: none;
}

.learning-speech-bubble {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 2px;
  max-width: min(230px, 82%);
  min-height: 66px;
  margin: 0;
  padding: 13px 17px;
  border: 4px solid var(--ink);
  border-radius: 46% 54% 46% 54% / 58% 46% 54% 42%;
  background: #fffdf7;
  color: var(--ink);
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 0 rgba(68, 53, 47, .12);
}

.learning-speech-bubble::before {
  position: absolute;
  left: -18px;
  bottom: -17px;
  width: 42px;
  height: 30px;
  content: "";
  clip-path: polygon(100% 0, 0 100%, 74% 70%);
  background: var(--ink);
}

.learning-speech-bubble::after {
  position: absolute;
  left: -8px;
  bottom: -8px;
  width: 25px;
  height: 18px;
  content: "";
  clip-path: polygon(100% 0, 0 100%, 70% 70%);
  background: #fffdf7;
}

.learning-character {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 306px;
  margin: 0;
}

.learning-character .learning-avatar {
  width: min(282px, 92%);
  height: 306px;
}

.learning-avatar {
  --character-main: #dbe5ea;
  --character-shade: #91a5af;
  position: relative;
  display: block;
  animation: learning-avatar-bob 2.7s ease-in-out infinite;
}

@keyframes learning-avatar-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.learning-avatar__aura,
.learning-avatar__shadow,
.learning-avatar__motion,
.learning-avatar__arms,
.learning-avatar__feet,
.learning-avatar__body {
  position: absolute;
  display: block;
}

.learning-avatar__aura {
  z-index: 0;
  inset: 20px 14px 24px;
  border: 4px dashed rgba(68, 53, 47, .18);
  border-radius: 50%;
  animation: aura-turn 16s linear infinite;
}

.learning-avatar__shadow {
  z-index: 0;
  right: 13%;
  bottom: 7%;
  left: 13%;
  height: 12%;
  border-radius: 50%;
  background: rgba(68, 53, 47, .18);
}

.learning-avatar__motion {
  z-index: 4;
  inset: 0;
  display: none;
  pointer-events: none;
}

.learning-avatar__motion::before,
.learning-avatar__motion::after {
  position: absolute;
  width: 24px;
  height: 24px;
  content: "";
  border-top: 4px solid var(--ink);
  border-left: 4px solid var(--ink);
  transform: rotate(45deg);
}

.learning-avatar__motion::before { top: 84px; left: 32px; }
.learning-avatar__motion::after { top: 74px; right: 32px; transform: rotate(225deg); }

.learning-avatar__body {
  z-index: 2;
  top: 66px;
  left: 50%;
  width: 174px;
  height: 176px;
  border: 5px solid var(--ink);
  border-radius: 45% 55% 42% 48%;
  background: linear-gradient(135deg, var(--character-main) 0 48%, var(--character-shade) 100%);
  box-shadow: inset 13px 14px 0 rgba(255,255,255,.3), inset -9px -11px 0 rgba(68,53,47,.1);
  transform: translateX(-50%);
}

.learning-avatar__eyes::before,
.learning-avatar__eyes::after {
  position: absolute;
  z-index: 4;
  top: 41%;
  width: 25px;
  height: 31px;
  content: "";
  border: 4px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 39%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 58% 55%, var(--ink) 0 6px, transparent 7px),
    #fff;
}

.learning-avatar__eyes::before { left: 30%; }
.learning-avatar__eyes::after { right: 30%; }

.learning-avatar__mouth {
  position: absolute;
  z-index: 5;
  top: 60%;
  left: 50%;
  width: 42px;
  height: 24px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 0 0 28px 28px;
  background: #ee866e;
  transform: translateX(-50%);
}

.learning-avatar__cheeks::before,
.learning-avatar__cheeks::after {
  position: absolute;
  z-index: 4;
  top: 57%;
  width: 22px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: rgba(239, 115, 91, .35);
}

.learning-avatar__cheeks::before { left: 18%; }
.learning-avatar__cheeks::after { right: 18%; }

.learning-avatar__shine {
  position: absolute;
  z-index: 5;
  top: 24%;
  left: 28%;
  width: 32px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  transform: rotate(-24deg);
}

.learning-avatar__arms::before,
.learning-avatar__arms::after {
  position: absolute;
  z-index: 1;
  top: 142px;
  width: 72px;
  height: 24px;
  content: "";
  border: 5px solid var(--ink);
  border-radius: 99px;
  background: var(--character-shade);
}

.learning-avatar__arms::before { left: 34px; transform: rotate(25deg); }
.learning-avatar__arms::after { right: 34px; transform: rotate(-48deg); }

.learning-avatar__feet::before,
.learning-avatar__feet::after {
  position: absolute;
  z-index: 3;
  bottom: 48px;
  width: 54px;
  height: 26px;
  content: "";
  border: 5px solid var(--ink);
  border-radius: 50% 50% 42% 42%;
  background: var(--character-shade);
}

.learning-avatar__feet::before { left: 76px; transform: rotate(-8deg); }
.learning-avatar__feet::after { right: 76px; transform: rotate(8deg); }

.learning-avatar__symbol {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 26px;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 31px;
  font-style: italic;
  font-weight: 900;
  transform: translateX(-50%);
}

.learning-avatar--ghost .learning-avatar__body {
  top: 58px;
  width: 184px;
  height: 190px;
  overflow: hidden;
  border-radius: 52% 48% 48% 50% / 49% 50% 44% 45%;
  background: linear-gradient(135deg, rgba(213, 244, 248, .96), rgba(166, 219, 229, .86));
}

.learning-avatar--ghost .learning-avatar__symbol { display: none; }

.learning-avatar--ghost .learning-avatar__arms {
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.learning-avatar--ghost .learning-avatar__arms::before,
.learning-avatar--ghost .learning-avatar__arms::after {
  z-index: 3;
  top: 150px;
  width: 52px;
  height: 36px;
  border-radius: 50%;
  background: rgba(166, 219, 229, .9);
}

.learning-avatar--ghost .learning-avatar__arms::before {
  left: 27px;
  transform: rotate(13deg);
}

.learning-avatar--ghost .learning-avatar__arms::after {
  right: 27px;
  transform: rotate(-13deg);
}

.learning-avatar--ghost .learning-avatar__feet { display: none; }

.learning-avatar--battery-hero .learning-avatar__body {
  top: 60px;
  width: 150px;
  height: 190px;
  border-radius: 22px 22px 16px 16px;
  background: linear-gradient(135deg, #8eb73a, #5f8d1d);
}

.learning-avatar--battery-hero .learning-avatar__body::before {
  position: absolute;
  top: -21px;
  left: 50%;
  width: 54px;
  height: 22px;
  content: "";
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  background: #739825;
  transform: translateX(-50%);
}

.learning-avatar--battery-hero .learning-avatar__eyes::before,
.learning-avatar--battery-hero .learning-avatar__eyes::after {
  top: 34%;
  width: 32px;
  height: 13px;
  border-width: 0 0 5px;
  border-radius: 0 0 50% 50%;
  background: transparent;
}

.learning-avatar--battery-hero .learning-avatar__eyes::before { left: 22%; transform: rotate(5deg); }
.learning-avatar--battery-hero .learning-avatar__eyes::after { right: 22%; transform: rotate(-5deg); }

.learning-avatar--battery-hero .learning-avatar__mouth {
  top: 48%;
  width: 30px;
  height: 24px;
  border-radius: 50% 50% 60% 60%;
  background: #f7bd55;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.learning-avatar--battery-hero .learning-avatar__arms::before,
.learning-avatar--battery-hero .learning-avatar__arms::after {
  top: 48px;
  width: 82px;
  height: 94px;
  border-bottom: 0;
  background: transparent;
}

.learning-avatar--battery-hero .learning-avatar__arms::before {
  left: 35px;
  border-radius: 70% 0 0 0;
  border-right: 0;
  transform: rotate(-16deg);
}

.learning-avatar--battery-hero .learning-avatar__arms::after {
  right: 35px;
  border-radius: 0 70% 0 0;
  border-left: 0;
  transform: rotate(16deg);
}

.learning-avatar--battery-hero .learning-avatar__feet::before,
.learning-avatar--battery-hero .learning-avatar__feet::after {
  bottom: 39px;
  width: 40px;
  height: 44px;
  border-radius: 16px;
  background: #5f8d1d;
}

.learning-avatar--battery-hero .learning-avatar__aura {
  border-color: rgba(255, 216, 77, .36);
}

.learning-avatar--battery-hero .learning-avatar__aura::before,
.learning-avatar--battery-hero .learning-avatar__aura::after {
  position: absolute;
  width: 34px;
  height: 56px;
  content: "";
  clip-path: polygon(44% 0, 100% 0, 63% 40%, 100% 40%, 35% 100%, 48% 55%, 9% 55%);
  background: #ffd733;
  filter: drop-shadow(0 0 0 var(--ink));
}

.learning-avatar--battery-hero .learning-avatar__aura::before { left: -3px; top: 100px; }
.learning-avatar--battery-hero .learning-avatar__aura::after { right: -4px; top: 108px; transform: scaleX(-1); }

.learning-avatar--solid-helper .learning-avatar__body,
.learning-avatar--tech-buddy .learning-avatar__body {
  border-radius: 24px;
}

.learning-avatar--drop-helper .learning-avatar__body {
  border-radius: 52% 48% 48% 52%;
  clip-path: polygon(50% 0, 88% 45%, 92% 72%, 72% 96%, 50% 100%, 26% 96%, 8% 72%, 12% 45%);
}

.learning-avatar--crystal-buddy .learning-avatar__body {
  border-radius: 0;
  clip-path: polygon(50% 0, 90% 25%, 78% 83%, 50% 100%, 20% 83%, 10% 25%);
}

.learning-avatar--spark-buddy .learning-avatar__body {
  box-shadow: inset 13px 14px 0 rgba(255,255,255,.3), 0 0 24px var(--character-main), 0 0 44px rgba(255, 216, 77, .48);
}

.learning-identity-board {
  margin-top: 20px;
  padding: 20px;
}

.learning-identity-board .learning-card-heading {
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.learning-identity-board .learning-use-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 17px;
}

.learning-identity-board .learning-use {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 13px 13px 15px;
  border: 0;
  border-radius: 18px;
  background: #dedede;
  box-shadow: inset 0 -6px 0 rgba(68, 53, 47, .07);
}

.learning-identity-board .learning-use-illustration {
  height: 130px;
  margin-bottom: 10px;
  border-color: transparent;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 17%, rgba(255,255,255,.66), transparent 13%),
    linear-gradient(180deg, #d9e7ea 0 60%, #d7d4cf 60% 100%);
}

.learning-identity-board .learning-use__category {
  align-self: flex-start;
  background: rgba(255, 216, 77, .72);
  color: var(--ink);
}

.learning-identity-board .learning-use h4 {
  align-self: center;
  margin: -4px 0 10px;
  padding: 2px 8px;
  background: #ffd733;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
}

.learning-identity-board .learning-use p {
  color: #2d3435;
  font-size: 14px;
  line-height: 1.72;
}

.learning-use__prompt[hidden] { display: none; }

.learning-use-illustration[data-kind="energy-station"] {
  background: linear-gradient(180deg, #dff7fb 0 58%, #d6e3c1 58% 100%);
}

.learning-use-illustration[data-kind="alchemy-table"] {
  background: linear-gradient(180deg, #e2e8ed 0 57%, #d6d0c5 57% 100%);
}

.learning-use-illustration[data-kind="clean-design"],
.learning-use-illustration[data-kind="factory-cleaner"] {
  background: linear-gradient(180deg, #e5f7f9 0 57%, #d7e3e0 57% 100%);
}

.learning-use-illustration[data-kind="power-devices"] {
  background: linear-gradient(180deg, #e4f2f6 0 58%, #d7d7d2 58% 100%);
}

.learning-use-illustration[data-kind="mood-scroll"] {
  background: linear-gradient(180deg, #f1e9dd 0 58%, #d7d0c8 58% 100%);
}

.learning-use-illustration[data-kind="machine-guard"] {
  background: linear-gradient(180deg, #e5edf1 0 58%, #d4d1cc 58% 100%);
}

.learning-use-illustration__part--wind-turbine {
  left: 24px;
  bottom: 28px;
  width: 10px;
  height: 70px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: #eef5f3;
}

.learning-use-illustration__part--wind-turbine::before {
  position: absolute;
  left: 50%;
  top: -19px;
  width: 62px;
  height: 62px;
  content: "";
  background:
    linear-gradient(var(--ink), var(--ink)) center / 8px 8px no-repeat,
    conic-gradient(from 0deg, #fffdf7 0 20deg, transparent 20deg 120deg, #fffdf7 120deg 140deg, transparent 140deg 240deg, #fffdf7 240deg 260deg, transparent 260deg);
  transform: translateX(-50%);
}

.learning-use-illustration__part--clean-tank {
  right: 24px;
  bottom: 26px;
  width: 64px;
  height: 72px;
  border: 3px solid var(--ink);
  border-radius: 24px 24px 10px 10px;
  background: linear-gradient(180deg, #eefbff, #9ed8e6);
  box-shadow: inset 0 -12px 0 rgba(58, 143, 168, .2);
}

.learning-use-illustration__part--clean-tank::before {
  position: absolute;
  left: 17px;
  top: -16px;
  width: 26px;
  height: 18px;
  content: "";
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #eefbff;
}

.learning-use-illustration__part--metal-ingot {
  left: 62px;
  bottom: 52px;
  width: 80px;
  height: 36px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: linear-gradient(135deg, #fff19c, #d69232);
  box-shadow: 19px 13px 0 -7px #c9cdd2, 19px 13px 0 -4px var(--ink);
  transform: rotate(-9deg);
}

.learning-use-illustration__part--bottles {
  left: 24px;
  bottom: 25px;
  width: 34px;
  height: 72px;
  border: 3px solid var(--ink);
  border-radius: 10px 10px 8px 8px;
  background: #e79464;
  box-shadow: 43px 4px 0 -1px #9e77c7, 43px 4px 0 2px var(--ink), 85px 0 0 -1px #8ec9bf, 85px 0 0 2px var(--ink);
}

.learning-use-illustration__part--bottles::before {
  position: absolute;
  top: -15px;
  left: 8px;
  width: 14px;
  height: 17px;
  content: "";
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #f4d7b8;
  box-shadow: 43px 4px 0 -1px #f4d7b8, 43px 4px 0 2px var(--ink), 85px 0 0 -1px #f4d7b8, 85px 0 0 2px var(--ink);
}

.learning-use-illustration__part--clean-drop {
  left: 28px;
  bottom: 29px;
  width: 50px;
  height: 70px;
  border: 3px solid var(--ink);
  border-radius: 52% 48% 50% 50%;
  background: linear-gradient(135deg, #dff9ff, #67c9df);
  clip-path: polygon(50% 0, 88% 45%, 92% 70%, 72% 96%, 50% 100%, 26% 96%, 8% 70%, 12% 45%);
}

.learning-use-illustration__part--phone {
  left: 22px;
  bottom: 28px;
  width: 48px;
  height: 76px;
  border: 3px solid var(--ink);
  border-radius: 13px;
  background: linear-gradient(135deg, #c9f0f6, #5b91a3);
  box-shadow: 57px 12px 0 -4px #333b43, 57px 12px 0 -1px var(--ink);
}

.learning-use-illustration__part--phone::before {
  position: absolute;
  left: 12px;
  bottom: 6px;
  width: 18px;
  height: 5px;
  content: "";
  border-radius: 99px;
  background: var(--ink);
}

.learning-use-illustration__part--battery-pack {
  right: 24px;
  bottom: 38px;
  width: 70px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 11px;
  background:
    linear-gradient(90deg, #87bd35 0 64%, #f5e26d 64% 100%);
}

.learning-use-illustration__part--battery-pack::after {
  position: absolute;
  right: -11px;
  top: 12px;
  width: 9px;
  height: 17px;
  content: "";
  border: 3px solid var(--ink);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: #f5e26d;
}

.learning-use-illustration__part--scroll {
  left: 44px;
  bottom: 39px;
  width: 100px;
  height: 62px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background:
    linear-gradient(0deg, transparent 0 19px, rgba(68, 53, 47, .28) 20px 23px, transparent 24px 42px, rgba(68, 53, 47, .28) 43px 46px, transparent 47px),
    #dfb536;
  transform: rotate(4deg);
}

.learning-use-illustration__part--scroll::before,
.learning-use-illustration__part--scroll::after {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 68px;
  content: "";
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: #c78b2e;
}

.learning-use-illustration__part--scroll::before { left: -9px; }
.learning-use-illustration__part--scroll::after { right: -9px; }

.learning-use-illustration__part--machine-can {
  right: 32px;
  bottom: 26px;
  width: 66px;
  height: 78px;
  border: 3px solid var(--ink);
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, #f3a24a 0 72%, #d6d6d6 72% 100%);
}

.learning-use-illustration__part--machine-can::before {
  position: absolute;
  left: 12px;
  top: -11px;
  width: 38px;
  height: 13px;
  content: "";
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #e9e2d7;
}

.learning-use-illustration__part--machine-can::after {
  position: absolute;
  right: -10px;
  top: 35px;
  width: 29px;
  height: 7px;
  content: "";
  border-radius: 99px;
  background: var(--ink);
}

/* Map */
.screen--map {
  max-width: 1270px;
  margin: 0 auto;
  padding: 28px 0 20px;
}

.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}

.section-kicker,
.question-kicker,
.story-label,
.result-kicker,
.hint-eyebrow {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.map-heading h2 {
  margin: 7px 0 8px;
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.map-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.map-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px 11px 12px;
  border: 2px solid rgba(68, 53, 47, .12);
  border-radius: 22px;
  background: rgba(255, 253, 247, .82);
  box-shadow: var(--shadow-small);
}

.map-summary > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-summary > div:last-child strong { font-size: 14px; }
.map-summary > div:last-child span { color: var(--ink-soft); font-size: 12px; font-weight: 700; }

.summary-ring {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: conic-gradient(var(--coral) calc(var(--progress) * 1%), #eadfcd 0);
}

.summary-ring::before {
  grid-area: 1 / 1;
  width: 51px;
  height: 51px;
  content: "";
  border-radius: 50%;
  background: var(--paper);
}

.summary-ring span {
  z-index: 1;
  display: flex;
  align-items: baseline;
}

.summary-ring strong { font-size: 21px; }
.summary-ring small { color: var(--ink-soft); font-size: 10px; font-weight: 800; }

.chapter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.chapter-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 61px;
  padding: 8px 18px 8px 10px;
  border: 2px solid rgba(68, 53, 47, .12);
  border-radius: 17px;
  background: rgba(255, 253, 247, .7);
  color: var(--ink-soft);
}

button.chapter-tab { cursor: pointer; }

.chapter-tab.is-active {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(68, 53, 47, .12);
}

.chapter-tab__number,
.chapter-lock {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.chapter-tab > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.chapter-tab strong { font-size: 13px; }
.chapter-tab small { color: var(--ink-soft); font-size: 10px; font-weight: 700; }

.chapter-tab--locked { opacity: .6; }

.chapter-lock {
  position: relative;
  background: #d7ccba;
}

.chapter-lock::before {
  width: 12px;
  height: 10px;
  content: "";
  border: 2px solid var(--ink-soft);
  border-radius: 2px;
  background: #f7f0e4;
}

.chapter-lock::after {
  position: absolute;
  top: 9px;
  width: 9px;
  height: 9px;
  content: "";
  border: 2px solid var(--ink-soft);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.town-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-height: 490px;
  padding: 25px;
  overflow: hidden;
  border: 2px solid rgba(68, 53, 47, .16);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 46px 46px,
    #b5d9b0;
  box-shadow: var(--shadow);
}

.town-map::before,
.town-map::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.town-map::before {
  right: -72px;
  bottom: -100px;
  width: 380px;
  height: 260px;
  border: 7px solid rgba(77, 102, 75, .16);
  border-radius: 52% 48% 0 0;
  background: rgba(93, 175, 164, .55);
  transform: rotate(-12deg);
}

.town-map::after {
  top: -110px;
  left: 30%;
  width: 140px;
  height: 760px;
  border: 4px dashed rgba(100, 79, 57, .26);
  border-top: 0;
  border-bottom: 0;
  background: rgba(248, 230, 188, .7);
  transform: rotate(61deg);
}

.district {
  position: relative;
  z-index: 2;
  padding: 18px;
  border: 2px solid rgba(68, 53, 47, .14);
  border-radius: 23px;
  background: rgba(255, 253, 247, .7);
  backdrop-filter: blur(4px);
}

.district:nth-child(1) { background: rgba(255, 247, 201, .8); }
.district:nth-child(2) { background: rgba(218, 242, 235, .82); }
.district:nth-child(3) { background: rgba(248, 224, 204, .82); }
.district:nth-child(4) { background: rgba(224, 225, 247, .82); }

.district-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.district-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--paper);
  color: var(--coral-dark);
  font-size: 14px;
  font-weight: 900;
}

.district-heading h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: .06em;
}

.level-list {
  display: grid;
  gap: 9px;
}

.map-level {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px 10px 6px 7px;
  border: 2px solid rgba(68, 53, 47, .14);
  border-radius: 15px;
  background: rgba(255, 253, 247, .92);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border 180ms ease, box-shadow 180ms ease;
}

.map-level:not(:disabled):hover {
  z-index: 2;
  transform: translateY(-3px) rotate(-.5deg);
  border-color: var(--ink);
  box-shadow: 0 7px 0 rgba(68, 53, 47, .12);
}

.map-level__number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff4c8;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(224, 182, 68, .18);
}

.map-level__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.map-level__copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-level__copy small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.map-level__stars {
  min-width: 36px;
  color: #d7c9b2;
  font-size: 11px;
  letter-spacing: -2px;
}

.map-level__stars .is-earned { color: #e7a91f; }

.map-level.is-current {
  border-color: var(--coral-dark);
  box-shadow: 0 5px 0 rgba(213, 84, 66, .16);
}

.map-level.is-current .map-level__number {
  background: var(--coral);
  color: #fff;
}

.map-level.is-complete .map-level__number {
  background: #8bd0ae;
}

.map-level:disabled {
  filter: grayscale(.45);
  opacity: .58;
  cursor: not-allowed;
}

.map-level:disabled .map-level__number::after {
  content: "";
  width: 10px;
  height: 8px;
  border: 2px solid var(--ink-soft);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 -6px 0 -2px #fff, 0 -6px 0 0 var(--ink-soft);
}

.map-level:disabled .map-level__number { font-size: 0; }

.map-footer-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.secondary-button,
.quiet-button {
  min-height: 48px;
  padding: 0 21px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
}

.secondary-button {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(68, 53, 47, .16);
}

.secondary-button:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(68, 53, 47, .16); }

.quiet-button {
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(117, 100, 91, .32);
  text-underline-offset: 5px;
}

/* Level */
.screen--level {
  max-width: 1280px;
  margin: 0 auto;
  padding: 11px 0 60px;
}

.level-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px 0 7px;
  border-radius: 13px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

.back-button:hover { background: rgba(255, 253, 247, .7); color: var(--ink); }
.back-button svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.level-progress-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.level-progress-copy span:first-child {
  min-width: 52px;
  color: var(--ink);
}

.level-progress-track {
  width: min(26vw, 220px);
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(68, 53, 47, .2);
  border-radius: 99px;
  background: #e8decb;
}

.level-progress-track i {
  display: block;
  width: 5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), #f4a463);
  transition: width 400ms ease;
}

.level-layout {
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(560px, 1.28fr);
  min-height: 720px;
  overflow: hidden;
  border: 2px solid rgba(68, 53, 47, .16);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.story-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  border-right: 2px dashed var(--line);
  background: #eef5dc;
}

.place-badge {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(68, 53, 47, .12);
}

.place-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--coral);
}

.place-pin::before {
  width: 16px;
  height: 16px;
  content: "";
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg);
}

.place-pin i {
  position: absolute;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.place-badge > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.place-badge small { color: var(--ink-soft); font-size: 9px; font-weight: 800; }
.place-badge strong { font-size: 14px; }

.story-illustration {
  position: relative;
  flex: 1;
  min-height: 285px;
  margin: 20px -26px -26px;
  overflow: hidden;
}

.storybook-sun {
  position: absolute;
  top: 27px;
  right: 42px;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 10px rgba(246, 201, 76, .16);
}

.storybook-hill {
  position: absolute;
  right: -15%;
  bottom: -70px;
  left: -15%;
  height: 230px;
  border: 4px solid var(--ink);
  border-radius: 50% 50% 0 0;
  background: #93c891;
}

.storybook-hill--back {
  bottom: 11px;
  left: 32%;
  height: 170px;
  background: #b7dab0;
  border-color: rgba(68, 53, 47, .5);
}

.storybook-house {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 84px;
  width: 112px;
  height: 94px;
  border: 4px solid var(--ink);
  border-radius: 7px;
  background: #ffe4a0;
  transform: translateX(-50%);
}

.storybook-house::before {
  position: absolute;
  top: -58px;
  left: -17px;
  width: 139px;
  height: 73px;
  content: "";
  border: 4px solid var(--ink);
  background: #e96f57;
  clip-path: polygon(50% 0, 100% 72%, 90% 100%, 10% 100%, 0 72%);
}

.storybook-house::after {
  position: absolute;
  bottom: -4px;
  left: 42px;
  width: 30px;
  height: 48px;
  content: "";
  border: 4px solid var(--ink);
  border-radius: 14px 14px 0 0;
  background: var(--teal);
}

.storybook-house i,
.storybook-house b {
  position: absolute;
  top: 22px;
  width: 23px;
  height: 23px;
  border: 3px solid var(--ink);
  border-radius: 5px;
  background: #cbeef1;
}

.storybook-house i { left: 10px; }
.storybook-house b { right: 10px; }

.storybook-tree {
  position: absolute;
  z-index: 4;
  bottom: 64px;
  width: 62px;
  height: 102px;
}

.storybook-tree::before {
  position: absolute;
  top: 0;
  width: 62px;
  height: 73px;
  content: "";
  border: 4px solid var(--ink);
  border-radius: 49% 49% 42% 42%;
  background: #51aa79;
}

.storybook-tree::after {
  position: absolute;
  bottom: 0;
  left: 25px;
  width: 12px;
  height: 37px;
  content: "";
  border: 3px solid var(--ink);
  background: #b97648;
}

.storybook-tree--one { left: 8%; transform: scale(.83); }
.storybook-tree--two { right: 5%; bottom: 59px; transform: scale(.65); }

.storybook-path {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -10px;
  width: 90px;
  height: 118px;
  background: #f2dbad;
  clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

/* Level story scenes: the same lightweight layers are restyled by each level. */
.story-panel {
  --scene-accent: #ef735b;
  --scene-accent-soft: #f7b38e;
  --scene-sky: #cceef4;
  --scene-sky-deep: #80c8d5;
  --scene-ground: #88c987;
  --scene-ground-back: #b6dda3;
  --scene-landmark: #ffe29a;
  --scene-landmark-trim: #ef735b;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-door: var(--scene-accent-soft);
  --scene-landmark-window: #c8f6ff;
  --scene-star-opacity: .18;
  --scene-landmark-left: 54%;
  --scene-landmark-bottom: 21%;
  --scene-landmark-scale: 1;
  --scene-road-left: 30%;
  --scene-road-bottom: -4%;
  --scene-road-width: 210px;
  --scene-road-height: 12%;
  --scene-road-tilt: -10deg;
  --scene-character-left: 35%;
  --scene-character-bottom: 13%;
  --scene-character-scale: 1;
  --scene-character-body: #f0a35e;
  --scene-character-head: #ffd7a1;
  --scene-character-accent: #e85e56;
  --scene-character-head-radius: 50% 50% 44% 48%;
  --scene-character-accessory-radius: 12px 12px 6px 6px;
  --scene-character-accessory-shape: inset(0);
  --scene-feature-left: 18%;
  --scene-feature-bottom: 25%;
  --scene-feature-width: 104px;
  --scene-feature-height: 82px;
  --scene-feature-radius: 18px;
  --scene-feature-bg: linear-gradient(145deg, #fff7cc, #f2b36f);
  --scene-feature-shape: inset(0);
  --scene-feature-tilt: -4deg;
  --scene-feature-shadow: inset 0 -9px rgba(68, 53, 47, .12), 0 9px 0 rgba(68, 53, 47, .12);
  --scene-feature-one-top: 12%;
  --scene-feature-one-left: 14%;
  --scene-feature-one-width: 25%;
  --scene-feature-one-height: 25%;
  --scene-feature-one-radius: 50%;
  --scene-feature-one-bg: rgba(255, 255, 255, .72);
  --scene-feature-one-border: 0;
  --scene-feature-one-shadow: none;
  --scene-feature-one-shape: inset(0);
  --scene-feature-one-transform: none;
  --scene-feature-two-top: 58%;
  --scene-feature-two-left: 13%;
  --scene-feature-two-width: 72%;
  --scene-feature-two-height: 9%;
  --scene-feature-two-radius: 999px;
  --scene-feature-two-bg: rgba(68, 53, 47, .28);
  --scene-feature-two-border: 0;
  --scene-feature-two-shadow: none;
  --scene-feature-two-shape: inset(0);
  --scene-feature-two-transform: none;
  --scene-feature-three-top: 72%;
  --scene-feature-three-left: 17%;
  --scene-feature-three-width: 66%;
  --scene-feature-three-height: 9%;
  --scene-feature-three-radius: 999px;
  --scene-feature-three-bg: rgba(68, 53, 47, .18);
  --scene-feature-three-border: 0;
  --scene-feature-three-shadow: none;
  --scene-feature-three-shape: inset(0);
  --scene-feature-three-transform: none;
  background: var(--scene-sky);
  transition: background-color 360ms ease;
}

.story-scene {
  isolation: isolate;
  border-radius: 0 0 0 25px;
  background: var(--scene-sky);
}

.story-panel.is-scene-entering .story-scene {
  animation: scene-reveal 580ms cubic-bezier(.2, .75, .25, 1) both;
}

.scene-sky,
.scene-cloud,
.scene-stars,
.scene-landscape,
.scene-feature,
.scene-landmark,
.scene-road,
.scene-character,
.scene-prop,
.scene-reaction {
  position: absolute;
}

.scene-sky {
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, #fff7c8 0 28px, rgba(255, 241, 159, .4) 29px 45px, transparent 46px),
    linear-gradient(165deg, var(--scene-sky), var(--scene-sky-deep));
}

.scene-sky::after {
  position: absolute;
  top: 22px;
  right: 23px;
  width: 66px;
  height: 66px;
  content: "";
  border: 3px solid rgba(68, 53, 47, .62);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 245, 182, .18);
}

.scene-cloud {
  z-index: 2;
  width: 72px;
  height: 23px;
  border: 2px solid rgba(68, 53, 47, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  animation: cloud-drift 8.5s ease-in-out infinite alternate;
}

.scene-cloud::before,
.scene-cloud::after {
  position: absolute;
  bottom: 6px;
  content: "";
  border: inherit;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: inherit;
}

.scene-cloud::before { left: 12px; width: 28px; height: 28px; }
.scene-cloud::after { right: 10px; width: 23px; height: 20px; }
.scene-cloud--one { top: 21%; left: 7%; }
.scene-cloud--two { top: 36%; right: 7%; scale: .72; animation-delay: -4.2s; }

.scene-stars {
  z-index: 1;
  inset: 12px;
  opacity: var(--scene-star-opacity);
  background-image:
    radial-gradient(circle, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle, #fff5b0 0 1.5px, transparent 2px);
  background-position: 10% 15%, 62% 31%;
  background-size: 73px 69px, 91px 78px;
  animation: scene-twinkle 3.8s ease-in-out infinite;
}

.scene-landscape--back {
  z-index: 2;
  right: -27%;
  bottom: 18%;
  left: 22%;
  height: 43%;
  border: 3px solid rgba(68, 53, 47, .28);
  border-radius: 54% 58% 0 0;
  background: var(--scene-ground-back);
  rotate: -3deg;
}

.scene-landscape--front {
  z-index: 3;
  right: -28%;
  bottom: -24%;
  left: -24%;
  height: 57%;
  border: 4px solid rgba(68, 53, 47, .48);
  border-radius: 50% 53% 0 0;
  background: var(--scene-ground);
}

.scene-landmark {
  z-index: 4;
  bottom: var(--scene-landmark-bottom);
  left: var(--scene-landmark-left);
  width: 136px;
  height: 124px;
  border: 0;
  background: transparent;
  box-shadow: none;
  translate: -50% 0;
  scale: var(--scene-landmark-scale);
  animation: landmark-breathe 4.8s ease-in-out infinite;
}

.scene-landmark i {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.scene-landmark__body {
  z-index: 1;
  top: 32px;
  right: 10px;
  bottom: 0;
  left: 10px;
  border: 4px solid var(--ink);
  border-radius: 13px 13px 8px 8px;
  background: var(--scene-landmark-body);
  box-shadow: inset 0 -12px rgba(68, 53, 47, .08), 0 8px 0 rgba(68, 53, 47, .11);
}

.scene-landmark__roof {
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 43px;
  border: 4px solid var(--ink);
  border-radius: 18px 18px 8px 8px;
  background: var(--scene-landmark-roof);
  box-shadow: inset 0 -7px rgba(68, 53, 47, .14), 0 5px 0 rgba(68, 53, 47, .12);
}

.scene-landmark__divider {
  z-index: 4;
  top: 39px;
  right: 8px;
  left: 8px;
  height: 8px;
  border: 2px solid rgba(68, 53, 47, .35);
  border-radius: 999px;
  background: var(--scene-landmark-divider);
}

.scene-landmark__door {
  z-index: 3;
  bottom: 0;
  left: calc(50% - 17px);
  width: 34px;
  height: 55px;
  border: 4px solid var(--ink);
  border-radius: 15px 15px 0 0;
  background: var(--scene-landmark-door);
}

.scene-landmark__door::after {
  position: absolute;
  top: 24px;
  right: 6px;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--ink);
}

.scene-landmark__window {
  z-index: 3;
  top: 58px;
  width: 24px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--scene-landmark-window);
  box-shadow: inset 0 -4px rgba(68, 53, 47, .1);
}

.scene-landmark__window::before,
.scene-landmark__window::after {
  position: absolute;
  content: "";
  background: rgba(68, 53, 47, .5);
}

.scene-landmark__window::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  translate: -50% 0;
}

.scene-landmark__window::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  translate: 0 -50%;
}

.scene-landmark__window--one { left: 22px; }
.scene-landmark__window--two { right: 22px; }

.scene-landmark__roof,
.scene-landmark__body,
.scene-landmark__divider,
.scene-landmark__door,
.scene-landmark__window {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.scene-road {
  z-index: 3;
  bottom: var(--scene-road-bottom);
  left: var(--scene-road-left);
  width: var(--scene-road-width);
  height: var(--scene-road-height);
  min-height: 178px;
  border: 3px solid rgba(68, 53, 47, .22);
  background:
    linear-gradient(90deg, rgba(68, 53, 47, .11), rgba(255, 255, 255, .42) 18% 72%, rgba(68, 53, 47, .12)),
    linear-gradient(180deg, #fff4d2 0%, #f6ddb0 46%, #d7b06f 100%);
  border-radius: 48% 52% 22px 22px / 16% 18% 18px 18px;
  clip-path: polygon(42% 0, 60% 0, 96% 100%, 2% 100%);
  transform: translateX(-50%) rotate(var(--scene-road-tilt));
  transform-origin: 50% 100%;
  box-shadow: inset 0 12px rgba(255, 255, 255, .25), 0 7px 0 rgba(68, 53, 47, .1);
}

.scene-road::before,
.scene-road::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.scene-road::before {
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 7px;
  border-radius: 999px;
  background: repeating-linear-gradient(180deg, rgba(68, 53, 47, .24) 0 16px, transparent 17px 32px);
  translate: -50% 0;
}

.scene-road::after {
  top: 12%;
  right: 13%;
  bottom: 9%;
  left: 13%;
  opacity: .34;
  background-image: radial-gradient(circle, rgba(68, 53, 47, .34) 0 2px, transparent 2.5px);
  background-size: 18px 16px;
}

.scene-character {
  z-index: 6;
  bottom: var(--scene-character-bottom);
  left: var(--scene-character-left);
  width: 92px;
  height: 122px;
  translate: -50% 0;
  scale: var(--scene-character-scale);
  filter: drop-shadow(0 8px 0 rgba(68, 53, 47, .13));
  animation: scene-character-wave 3.4s ease-in-out infinite;
}

.scene-character i {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.scene-character__shadow {
  z-index: 0;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 13px;
  border-radius: 50%;
  background: rgba(68, 53, 47, .16);
  filter: blur(1px);
}

.scene-character__body {
  z-index: 3;
  right: 20px;
  bottom: 18px;
  left: 20px;
  height: 56px;
  border: 4px solid var(--ink);
  border-radius: 24px 24px 18px 18px;
  background: var(--scene-character-body);
  box-shadow: inset 0 -8px rgba(68, 53, 47, .12);
}

.scene-character__head {
  z-index: 4;
  top: 8px;
  left: 19px;
  width: 54px;
  height: 52px;
  border: 4px solid var(--ink);
  border-radius: var(--scene-character-head-radius);
  background: var(--scene-character-head);
  box-shadow: inset 0 -7px rgba(68, 53, 47, .1);
}

.scene-character__ear {
  z-index: 3;
  top: 18px;
  width: 21px;
  height: 23px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--scene-character-head);
}

.scene-character__ear--left { left: 9px; }
.scene-character__ear--right { right: 9px; }

.scene-character__eye {
  z-index: 5;
  top: 28px;
  width: 8px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
}

.scene-character__eye--left { left: 36px; }
.scene-character__eye--right { right: 36px; }

.scene-character__mouth {
  z-index: 5;
  top: 41px;
  left: 42px;
  width: 14px;
  height: 8px;
  border-bottom: 3px solid var(--ink);
  border-radius: 50%;
}

.scene-character__arm {
  z-index: 2;
  top: 62px;
  width: 22px;
  height: 41px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--scene-character-head);
}

.scene-character__arm--left {
  left: 4px;
  rotate: 28deg;
}

.scene-character__arm--right {
  right: 4px;
  rotate: -32deg;
  transform-origin: 50% 12%;
  animation: scene-character-hand 1.7s ease-in-out infinite alternate;
}

.scene-character__leg {
  z-index: 2;
  bottom: 7px;
  width: 23px;
  height: 19px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--scene-character-accent);
}

.scene-character__leg--left { left: 23px; rotate: -6deg; }
.scene-character__leg--right { right: 23px; rotate: 6deg; }

.scene-character__accessory {
  z-index: 6;
  top: 1px;
  left: 31px;
  width: 30px;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: var(--scene-character-accessory-radius);
  background: var(--scene-character-accent);
  clip-path: var(--scene-character-accessory-shape);
  rotate: -5deg;
}

.scene-feature {
  z-index: 4;
  bottom: var(--scene-feature-bottom);
  left: var(--scene-feature-left);
  width: var(--scene-feature-width);
  height: var(--scene-feature-height);
  border: 4px solid var(--ink);
  border-radius: var(--scene-feature-radius);
  background: var(--scene-feature-bg);
  clip-path: var(--scene-feature-shape);
  box-shadow: var(--scene-feature-shadow);
  translate: -50% 0;
  rotate: var(--scene-feature-tilt);
  filter: drop-shadow(0 7px 0 rgba(68, 53, 47, .14));
  animation: feature-sway 4.2s ease-in-out infinite;
}

.scene-feature__part {
  position: absolute;
  display: block;
  z-index: 2;
}

.scene-feature__part--one {
  top: var(--scene-feature-one-top);
  left: var(--scene-feature-one-left);
  width: var(--scene-feature-one-width);
  height: var(--scene-feature-one-height);
  border: var(--scene-feature-one-border);
  border-radius: var(--scene-feature-one-radius);
  background: var(--scene-feature-one-bg);
  clip-path: var(--scene-feature-one-shape);
  box-shadow: var(--scene-feature-one-shadow);
  transform: var(--scene-feature-one-transform);
}

.scene-feature__part--two {
  top: var(--scene-feature-two-top);
  left: var(--scene-feature-two-left);
  width: var(--scene-feature-two-width);
  height: var(--scene-feature-two-height);
  border: var(--scene-feature-two-border);
  border-radius: var(--scene-feature-two-radius);
  background: var(--scene-feature-two-bg);
  clip-path: var(--scene-feature-two-shape);
  box-shadow: var(--scene-feature-two-shadow);
  transform: var(--scene-feature-two-transform);
}

.scene-feature__part--three {
  top: var(--scene-feature-three-top);
  left: var(--scene-feature-three-left);
  width: var(--scene-feature-three-width);
  height: var(--scene-feature-three-height);
  border: var(--scene-feature-three-border);
  border-radius: var(--scene-feature-three-radius);
  background: var(--scene-feature-three-bg);
  clip-path: var(--scene-feature-three-shape);
  box-shadow: var(--scene-feature-three-shadow);
  transform: var(--scene-feature-three-transform);
}

.scene-prop {
  z-index: 7;
  right: 8%;
  bottom: 10%;
  width: 78px;
  height: 68px;
  border: 4px solid var(--ink);
  background: var(--scene-accent);
  filter: drop-shadow(0 7px 0 rgba(68, 53, 47, .16));
  animation: prop-float 2.9s ease-in-out infinite;
}

.scene-prop::before,
.scene-prop::after,
.scene-prop__part {
  position: absolute;
  display: block;
  content: "";
}

.scene-prop__part { z-index: 2; }

.scene-reaction {
  z-index: 9;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.scene-reaction__part {
  position: absolute;
  display: block;
  width: 36px;
  height: 48px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 45% 55%;
  background: var(--scene-accent);
  opacity: 0;
  filter: drop-shadow(0 8px 0 rgba(68, 53, 47, .16));
}

.scene-reaction__part::after {
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 3px;
  height: 32px;
  content: "";
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.scene-reaction__part--one { right: 18%; bottom: 25%; background: #ff8ba5; }
.scene-reaction__part--two { right: 27%; bottom: 19%; background: #ffe071; scale: .82; }
.scene-reaction__part--three { right: 10%; bottom: 18%; background: #6ed3c7; scale: .72; }
.scene-reaction__part--four { right: 36%; bottom: 28%; width: 22px; height: 22px; border-radius: 6px; background: var(--yellow); transform: rotate(18deg); }
.scene-reaction__part--four::after { display: none; }

.story-panel[data-scene="breeze-post-office"] {
  --scene-sky: #c9eef4;
  --scene-sky-deep: #84cdd7;
  --scene-ground: #82c78b;
  --scene-ground-back: #b9dda8;
  --scene-landmark: #fff1bb;
  --scene-landmark-trim: #eb6e58;
  --scene-landmark-body: #fff4bd;
  --scene-landmark-roof: #d94d3f;
  --scene-landmark-divider: #44352f;
  --scene-landmark-door: #62aeba;
  --scene-landmark-window: #e0fbff;
  --scene-landmark-left: 62%;
  --scene-landmark-bottom: 22%;
  --scene-landmark-scale: .96;
  --scene-road-left: 24%;
  --scene-road-height: 12%;
  --scene-road-width: 224px;
  --scene-road-tilt: -7deg;
  --scene-feature-left: 23%;
  --scene-feature-bottom: 30%;
  --scene-feature-width: 118px;
  --scene-feature-height: 78px;
  --scene-feature-bg: linear-gradient(145deg, #fff9d8, #f0ba68);
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 12px;
  --scene-feature-tilt: -7deg;
  --scene-feature-one-bg: #e86f5c;
  --scene-feature-one-shape: polygon(0 0, 50% 55%, 100% 0, 100% 22%, 50% 76%, 0 22%);
  --scene-feature-one-width: 100%;
  --scene-feature-one-height: 45%;
  --scene-feature-one-top: 0;
  --scene-feature-one-left: 0;
  --scene-feature-two-bg: #6baeb8;
  --scene-feature-two-width: 42%;
  --scene-feature-two-height: 8%;
  --scene-feature-two-top: 66%;
  --scene-feature-two-left: 10%;
  --scene-feature-three-bg: #6baeb8;
  --scene-feature-three-width: 28%;
  --scene-feature-three-height: 8%;
  --scene-feature-three-top: 80%;
  --scene-feature-three-left: 10%;
}
.story-panel[data-scene="breeze-post-office"] .scene-landmark {
  width: 142px;
  height: 112px;
  border-radius: 0;
  background: transparent;
}

.story-panel[data-scene="cloud-balloon-station"] {
  --scene-sky: #bfe9ff;
  --scene-sky-deep: #8dc6ef;
  --scene-ground: #a9d68d;
  --scene-ground-back: #d1e8a9;
  --scene-landmark: #fff1c9;
  --scene-landmark-trim: #ef8cab;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 59%;
  --scene-landmark-bottom: 20%;
  --scene-landmark-scale: 1;
  --scene-road-left: 25%;
  --scene-road-height: 12%;
  --scene-road-width: 232px;
  --scene-road-tilt: -6deg;
  --scene-feature-left: 24%;
  --scene-feature-bottom: 39%;
  --scene-feature-width: 116px;
  --scene-feature-height: 126px;
  --scene-feature-bg: linear-gradient(90deg, #f47679, #ffc65e 48%, #e987b6);
  --scene-feature-shape: circle(47% at 50% 41%);
  --scene-feature-radius: 50%;
  --scene-feature-tilt: 4deg;
  --scene-feature-one-bg: rgba(255, 255, 255, .56);
  --scene-feature-one-width: 22%;
  --scene-feature-one-height: 34%;
  --scene-feature-one-top: 14%;
  --scene-feature-one-left: 22%;
  --scene-feature-two-bg: var(--ink);
  --scene-feature-two-width: 4px;
  --scene-feature-two-height: 45%;
  --scene-feature-two-top: 57%;
  --scene-feature-two-left: 49%;
  --scene-feature-three-bg: #bf784b;
  --scene-feature-three-width: 32%;
  --scene-feature-three-height: 13%;
  --scene-feature-three-top: 90%;
  --scene-feature-three-left: 34%;
}
.story-panel[data-scene="cloud-balloon-station"] .scene-landmark {
  width: 118px;
  height: 128px;
  border-radius: 50% 50% 12px 12px;
  background: linear-gradient(90deg, #fff1c9, #ffe39c);
}

.story-panel[data-scene="forest-tool-workshop"] {
  --scene-sky: #cfe8cd;
  --scene-sky-deep: #78b9a1;
  --scene-ground: #4f9a68;
  --scene-ground-back: #8ec57f;
  --scene-landmark: #d49a62;
  --scene-landmark-trim: #735342;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 64%;
  --scene-landmark-bottom: 22%;
  --scene-landmark-scale: .94;
  --scene-road-left: 23%;
  --scene-road-height: 13%;
  --scene-road-width: 216px;
  --scene-road-tilt: -9deg;
  --scene-feature-left: 22%;
  --scene-feature-bottom: 24%;
  --scene-feature-width: 112px;
  --scene-feature-height: 132px;
  --scene-feature-bg: radial-gradient(circle at 50% 26%, #78bf69 0 38%, #4f8d58 39% 68%, #7d5239 69%);
  --scene-feature-shape: polygon(50% 0, 96% 31%, 79% 63%, 62% 63%, 61% 100%, 39% 100%, 38% 63%, 19% 63%, 4% 31%);
  --scene-feature-radius: 26px;
  --scene-feature-tilt: -2deg;
  --scene-feature-one-bg: #ffe27b;
  --scene-feature-one-width: 28%;
  --scene-feature-one-height: 10%;
  --scene-feature-one-top: 40%;
  --scene-feature-one-left: 61%;
  --scene-feature-one-transform: rotate(-18deg);
  --scene-feature-two-bg: #6b4733;
  --scene-feature-two-width: 26%;
  --scene-feature-two-height: 43%;
  --scene-feature-two-top: 58%;
  --scene-feature-two-left: 37%;
  --scene-feature-three-bg: #e1a45d;
  --scene-feature-three-width: 50%;
  --scene-feature-three-height: 8%;
  --scene-feature-three-top: 71%;
  --scene-feature-three-left: 26%;
  --scene-feature-three-transform: rotate(-10deg);
}
.story-panel[data-scene="forest-tool-workshop"] .scene-landmark {
  width: 156px;
  height: 108px;
  border-radius: 7px;
  background: repeating-linear-gradient(0deg, #d49a62 0 20px, #bc7c4b 21px 24px);
}

.story-panel[data-scene="lantern-wire-lane"] {
  --scene-sky: #59619b;
  --scene-sky-deep: #303761;
  --scene-ground: #675277;
  --scene-ground-back: #8a7194;
  --scene-landmark: #f3c489;
  --scene-landmark-trim: #dd6758;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-star-opacity: .82;
  --scene-landmark-left: 61%;
  --scene-landmark-bottom: 20%;
  --scene-landmark-scale: .96;
  --scene-road-left: 24%;
  --scene-road-height: 12%;
  --scene-road-width: 218px;
  --scene-road-tilt: -6deg;
  --scene-feature-left: 22%;
  --scene-feature-bottom: 38%;
  --scene-feature-width: 128px;
  --scene-feature-height: 92px;
  --scene-feature-bg: radial-gradient(circle at 50% 55%, #ffe778 0 22%, #e77862 23% 43%, transparent 45%);
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 999px;
  --scene-feature-tilt: -4deg;
  --scene-feature-shadow: 0 0 24px rgba(255, 218, 88, .52);
  --scene-feature-one-bg: #ffe778;
  --scene-feature-one-width: 66%;
  --scene-feature-one-height: 6px;
  --scene-feature-one-top: 11%;
  --scene-feature-one-left: 17%;
  --scene-feature-one-shadow: 0 0 12px #ffe778;
  --scene-feature-two-bg: #ff8c74;
  --scene-feature-two-width: 28%;
  --scene-feature-two-height: 48%;
  --scene-feature-two-top: 25%;
  --scene-feature-two-left: 17%;
  --scene-feature-two-radius: 18px;
  --scene-feature-three-bg: #7df3df;
  --scene-feature-three-width: 28%;
  --scene-feature-three-height: 48%;
  --scene-feature-three-top: 25%;
  --scene-feature-three-left: 56%;
  --scene-feature-three-radius: 18px;
}
.story-panel[data-scene="lantern-wire-lane"] .scene-landmark {
  width: 116px;
  height: 144px;
  border-radius: 28px 28px 8px 8px;
  background: linear-gradient(90deg, #e8a974, #ffe5a6 48%, #d98a68);
  box-shadow: 0 0 24px rgba(255, 205, 91, .48), 0 8px 0 rgba(68, 53, 47, .12);
}

.story-panel[data-scene="picnic-meadow"] {
  --scene-sky: #d8f1ee;
  --scene-sky-deep: #9fdad1;
  --scene-ground: #90cc75;
  --scene-ground-back: #c6e29b;
  --scene-landmark: #fff3d1;
  --scene-landmark-trim: #ef8c72;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 58%;
  --scene-landmark-bottom: 25%;
  --scene-landmark-scale: .96;
  --scene-road-left: 26%;
  --scene-road-height: 12%;
  --scene-road-width: 236px;
  --scene-road-tilt: -5deg;
  --scene-feature-left: 25%;
  --scene-feature-bottom: 23%;
  --scene-feature-width: 140px;
  --scene-feature-height: 66px;
  --scene-feature-bg: repeating-linear-gradient(45deg, #fff9e6 0 13px, #ef8272 14px 27px);
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 50% 50% 14px 14px;
  --scene-feature-tilt: 3deg;
  --scene-feature-one-bg: #78bf69;
  --scene-feature-one-width: 18px;
  --scene-feature-one-height: 18px;
  --scene-feature-one-top: -8px;
  --scene-feature-one-left: 18%;
  --scene-feature-one-shadow: 70px 9px #ffd66d, 42px -3px #78bf69;
  --scene-feature-two-bg: rgba(68, 53, 47, .24);
  --scene-feature-two-width: 70%;
  --scene-feature-two-height: 6px;
  --scene-feature-two-top: 76%;
  --scene-feature-two-left: 15%;
  --scene-feature-three-bg: rgba(255,255,255,.72);
  --scene-feature-three-width: 36%;
  --scene-feature-three-height: 20%;
  --scene-feature-three-top: 23%;
  --scene-feature-three-left: 50%;
}
.story-panel[data-scene="picnic-meadow"] .scene-landmark {
  width: 170px;
  height: 58px;
  border-radius: 50% 50% 10px 10px;
  background: repeating-linear-gradient(45deg, #fff 0 14px, #ef8272 15px 28px);
}

.story-panel[data-scene="sunshine-jewelry-house"] {
  --scene-sky: #ffe7a8;
  --scene-sky-deep: #f8b66e;
  --scene-ground: #d1bd72;
  --scene-ground-back: #ecd78d;
  --scene-landmark: #fff1c3;
  --scene-landmark-trim: #e9a929;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 61%;
  --scene-landmark-bottom: 20%;
  --scene-landmark-scale: 1;
  --scene-road-left: 27%;
  --scene-road-height: 12%;
  --scene-road-width: 218px;
  --scene-road-tilt: -5deg;
  --scene-feature-left: 23%;
  --scene-feature-bottom: 32%;
  --scene-feature-width: 116px;
  --scene-feature-height: 104px;
  --scene-feature-bg: radial-gradient(circle, #fff5aa 0 18%, #f4bf36 19% 45%, #b97825 46% 59%, transparent 60%);
  --scene-feature-shape: polygon(50% 0, 61% 31%, 95% 18%, 77% 49%, 98% 76%, 62% 69%, 50% 100%, 38% 69%, 2% 76%, 23% 49%, 5% 18%, 39% 31%);
  --scene-feature-radius: 18px;
  --scene-feature-tilt: 8deg;
  --scene-feature-shadow: 0 0 26px rgba(255, 210, 60, .45);
  --scene-feature-one-bg: rgba(255,255,255,.78);
  --scene-feature-one-width: 18%;
  --scene-feature-one-height: 18%;
  --scene-feature-one-top: 20%;
  --scene-feature-one-left: 28%;
  --scene-feature-two-bg: #fff0a0;
  --scene-feature-two-width: 30%;
  --scene-feature-two-height: 30%;
  --scene-feature-two-top: 36%;
  --scene-feature-two-left: 35%;
  --scene-feature-two-shape: polygon(50% 0,100% 50%,50% 100%,0 50%);
  --scene-feature-three-bg: rgba(120, 78, 34, .24);
  --scene-feature-three-width: 48%;
  --scene-feature-three-height: 7%;
  --scene-feature-three-top: 77%;
  --scene-feature-three-left: 26%;
}
.story-panel[data-scene="sunshine-jewelry-house"] .scene-landmark {
  width: 124px;
  height: 130px;
  border-radius: 42px 42px 9px 9px;
  background: linear-gradient(135deg, #fff7d4, #efc766);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.32), 0 0 22px rgba(255,202,58,.42);
}

.story-panel[data-scene="moonlight-gift-shop"] {
  --scene-sky: #6f75a8;
  --scene-sky-deep: #363960;
  --scene-ground: #6f8299;
  --scene-ground-back: #99a8b9;
  --scene-landmark: #e3dcf3;
  --scene-landmark-trim: #9a78bd;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-star-opacity: .9;
  --scene-landmark-left: 62%;
  --scene-landmark-bottom: 21%;
  --scene-landmark-scale: .97;
  --scene-road-left: 24%;
  --scene-road-height: 12%;
  --scene-road-width: 222px;
  --scene-road-tilt: -7deg;
  --scene-feature-left: 23%;
  --scene-feature-bottom: 33%;
  --scene-feature-width: 114px;
  --scene-feature-height: 98px;
  --scene-feature-bg: linear-gradient(145deg, #f9e7ff, #a989ce);
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 18px 18px 38px 38px;
  --scene-feature-tilt: -5deg;
  --scene-feature-one-bg: #ffe471;
  --scene-feature-one-width: 70%;
  --scene-feature-one-height: 16%;
  --scene-feature-one-top: 42%;
  --scene-feature-one-left: 15%;
  --scene-feature-two-bg: #ffe471;
  --scene-feature-two-width: 14%;
  --scene-feature-two-height: 74%;
  --scene-feature-two-top: 12%;
  --scene-feature-two-left: 43%;
  --scene-feature-three-bg: #f6f0ff;
  --scene-feature-three-width: 34%;
  --scene-feature-three-height: 34%;
  --scene-feature-three-top: -12%;
  --scene-feature-three-left: 57%;
  --scene-feature-three-radius: 50%;
}
.story-panel[data-scene="moonlight-gift-shop"] .scene-landmark {
  width: 134px;
  height: 116px;
  border-radius: 16px 16px 38px 38px;
  background: linear-gradient(145deg, #faf4ff, #b8aad4);
}

.story-panel[data-scene="sunset-sign-street"] {
  --scene-sky: #ffbd9f;
  --scene-sky-deep: #c86987;
  --scene-ground: #846986;
  --scene-ground-back: #b58291;
  --scene-landmark: #614b76;
  --scene-landmark-trim: #ff706d;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-star-opacity: .44;
  --scene-landmark-left: 58%;
  --scene-landmark-bottom: 21%;
  --scene-landmark-scale: .96;
  --scene-road-left: 26%;
  --scene-road-height: 12%;
  --scene-road-width: 234px;
  --scene-road-tilt: -5deg;
  --scene-feature-left: 24%;
  --scene-feature-bottom: 35%;
  --scene-feature-width: 128px;
  --scene-feature-height: 78px;
  --scene-feature-bg: #3f365f;
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 10px;
  --scene-feature-tilt: -3deg;
  --scene-feature-shadow: inset 0 0 0 7px #ff728c, 0 0 24px rgba(255, 114, 140, .55);
  --scene-feature-one-bg: #ffde68;
  --scene-feature-one-width: 66%;
  --scene-feature-one-height: 10px;
  --scene-feature-one-top: 28%;
  --scene-feature-one-left: 17%;
  --scene-feature-one-shadow: 0 0 11px #ffde68;
  --scene-feature-two-bg: #7ff1dd;
  --scene-feature-two-width: 12px;
  --scene-feature-two-height: 12px;
  --scene-feature-two-top: 53%;
  --scene-feature-two-left: 27%;
  --scene-feature-two-shadow: 42px 0 #7ff1dd;
  --scene-feature-three-bg: var(--ink);
  --scene-feature-three-width: 6px;
  --scene-feature-three-height: 42%;
  --scene-feature-three-top: 100%;
  --scene-feature-three-left: 49%;
}
.story-panel[data-scene="sunset-sign-street"] .scene-landmark {
  width: 170px;
  height: 105px;
  border-radius: 5px;
  background: linear-gradient(90deg, #614b76, #3d365c);
  box-shadow: inset 0 0 0 8px #ff8c72, 0 0 24px rgba(255,98,111,.45);
}

.story-panel[data-scene="chip-treehouse"] {
  --scene-sky: #bce6d4;
  --scene-sky-deep: #70b7a0;
  --scene-ground: #4c9167;
  --scene-ground-back: #81bd78;
  --scene-landmark: #b97b4e;
  --scene-landmark-trim: #58a179;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 62%;
  --scene-landmark-bottom: 20%;
  --scene-landmark-scale: .98;
  --scene-road-left: 25%;
  --scene-road-height: 12%;
  --scene-road-width: 226px;
  --scene-road-tilt: -7deg;
  --scene-feature-left: 22%;
  --scene-feature-bottom: 30%;
  --scene-feature-width: 116px;
  --scene-feature-height: 96px;
  --scene-feature-bg: #315b58;
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 12px;
  --scene-feature-tilt: 5deg;
  --scene-feature-shadow: inset 0 0 0 9px #4d8780, 0 9px 0 rgba(68,53,47,.13);
  --scene-feature-one-bg: #e0c178;
  --scene-feature-one-width: 8px;
  --scene-feature-one-height: 12px;
  --scene-feature-one-top: -12px;
  --scene-feature-one-left: 15%;
  --scene-feature-one-shadow: 22px 0 #e0c178, 44px 0 #e0c178, 66px 0 #e0c178;
  --scene-feature-two-bg: #263f43;
  --scene-feature-two-width: 48%;
  --scene-feature-two-height: 34%;
  --scene-feature-two-top: 34%;
  --scene-feature-two-left: 26%;
  --scene-feature-two-border: 3px solid #e8c66c;
  --scene-feature-three-bg: #e0c178;
  --scene-feature-three-width: 8px;
  --scene-feature-three-height: 12px;
  --scene-feature-three-top: 100%;
  --scene-feature-three-left: 15%;
  --scene-feature-three-shadow: 22px 0 #e0c178, 44px 0 #e0c178, 66px 0 #e0c178;
}
.story-panel[data-scene="chip-treehouse"] .scene-landmark {
  width: 142px;
  height: 130px;
  border-radius: 46% 42% 12px 12px;
  background: radial-gradient(circle at 35% 32%, #dca16b 0 10px, transparent 11px), #a96d46;
  box-shadow: 0 20px 0 -7px #704833, 0 8px 0 rgba(68,53,47,.14);
}

.story-panel[data-scene="tin-shield-square"] {
  --scene-sky: #d7e6eb;
  --scene-sky-deep: #9db9c2;
  --scene-ground: #a8b5a5;
  --scene-ground-back: #c8d0bc;
  --scene-landmark: #c9d2d6;
  --scene-landmark-trim: #718794;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 60%;
  --scene-landmark-bottom: 19%;
  --scene-landmark-scale: .95;
  --scene-road-left: 24%;
  --scene-road-height: 12%;
  --scene-road-width: 224px;
  --scene-road-tilt: -6deg;
  --scene-feature-left: 24%;
  --scene-feature-bottom: 28%;
  --scene-feature-width: 112px;
  --scene-feature-height: 124px;
  --scene-feature-bg: linear-gradient(135deg, #f5fbfc, #8399a2 58%, #dbe4e5);
  --scene-feature-shape: polygon(50% 0, 94% 18%, 87% 73%, 50% 100%, 13% 73%, 6% 18%);
  --scene-feature-radius: 22px;
  --scene-feature-tilt: -4deg;
  --scene-feature-one-bg: #78afd0;
  --scene-feature-one-width: 38%;
  --scene-feature-one-height: 38%;
  --scene-feature-one-top: 31%;
  --scene-feature-one-left: 31%;
  --scene-feature-one-shape: polygon(50% 0,62% 35%,100% 38%,69% 60%,80% 100%,50% 74%,20% 100%,31% 60%,0 38%,38% 35%);
  --scene-feature-two-bg: rgba(255,255,255,.72);
  --scene-feature-two-width: 24%;
  --scene-feature-two-height: 9%;
  --scene-feature-two-top: 12%;
  --scene-feature-two-left: 18%;
  --scene-feature-two-transform: rotate(-24deg);
  --scene-feature-three-bg: rgba(68,53,47,.22);
  --scene-feature-three-width: 9%;
  --scene-feature-three-height: 32%;
  --scene-feature-three-top: 46%;
  --scene-feature-three-left: 68%;
  --scene-feature-three-transform: rotate(20deg);
}
.story-panel[data-scene="tin-shield-square"] .scene-landmark {
  width: 132px;
  height: 145px;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(135deg, #f1f5f5, #9cadb5 52%, #d7e0e2);
  clip-path: polygon(50% 0, 94% 18%, 87% 73%, 50% 100%, 13% 73%, 6% 18%);
}

.story-panel[data-scene="energy-train-depot"] {
  --scene-sky: #c8e6f1;
  --scene-sky-deep: #79b6cf;
  --scene-ground: #779aa2;
  --scene-ground-back: #a9c3bd;
  --scene-landmark: #ffd269;
  --scene-landmark-trim: #dc5b55;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 63%;
  --scene-landmark-bottom: 23%;
  --scene-landmark-scale: .96;
  --scene-road-left: 27%;
  --scene-road-height: 12%;
  --scene-road-width: 240px;
  --scene-road-tilt: -4deg;
  --scene-feature-left: 22%;
  --scene-feature-bottom: 26%;
  --scene-feature-width: 138px;
  --scene-feature-height: 82px;
  --scene-feature-bg: linear-gradient(0deg, #df5b55 0 34%, #ffd269 35% 100%);
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 42px 42px 12px 12px;
  --scene-feature-tilt: 2deg;
  --scene-feature-one-bg: #263f43;
  --scene-feature-one-width: 21px;
  --scene-feature-one-height: 21px;
  --scene-feature-one-top: 67%;
  --scene-feature-one-left: 18%;
  --scene-feature-one-shadow: 75px 0 #263f43;
  --scene-feature-two-bg: #fff4c0;
  --scene-feature-two-width: 52%;
  --scene-feature-two-height: 20%;
  --scene-feature-two-top: 23%;
  --scene-feature-two-left: 24%;
  --scene-feature-three-bg: rgba(255,255,255,.62);
  --scene-feature-three-width: 18%;
  --scene-feature-three-height: 16%;
  --scene-feature-three-top: 20%;
  --scene-feature-three-left: 76%;
  --scene-feature-three-shadow: 12px -14px rgba(255,255,255,.45);
}
.story-panel[data-scene="energy-train-depot"] .scene-landmark {
  width: 178px;
  height: 98px;
  border-radius: 48px 48px 9px 9px;
  background: linear-gradient(0deg, #df5b55 0 25%, #ffd269 26% 100%);
}

.story-panel[data-scene="flying-wheel-garage"] {
  --scene-sky: #c9edee;
  --scene-sky-deep: #7dc7c6;
  --scene-ground: #8fb79c;
  --scene-ground-back: #b9d19d;
  --scene-landmark: #f2b875;
  --scene-landmark-trim: #4c8e9b;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 61%;
  --scene-landmark-bottom: 23%;
  --scene-landmark-scale: .98;
  --scene-road-left: 24%;
  --scene-road-height: 12%;
  --scene-road-width: 226px;
  --scene-road-tilt: -7deg;
  --scene-feature-left: 23%;
  --scene-feature-bottom: 31%;
  --scene-feature-width: 120px;
  --scene-feature-height: 120px;
  --scene-feature-bg: radial-gradient(circle, transparent 0 38%, #aab6bb 39% 52%, transparent 53%);
  --scene-feature-shape: circle(50%);
  --scene-feature-radius: 50%;
  --scene-feature-tilt: 0deg;
  --scene-feature-shadow: inset 0 0 0 9px #55656d, 0 9px 0 rgba(68,53,47,.13);
  --scene-feature-one-bg: #efb54c;
  --scene-feature-one-width: 34%;
  --scene-feature-one-height: 34%;
  --scene-feature-one-top: 33%;
  --scene-feature-one-left: 33%;
  --scene-feature-one-border: 4px solid var(--ink);
  --scene-feature-two-bg: #55656d;
  --scene-feature-two-width: 84%;
  --scene-feature-two-height: 6px;
  --scene-feature-two-top: 48%;
  --scene-feature-two-left: 8%;
  --scene-feature-three-bg: #55656d;
  --scene-feature-three-width: 6px;
  --scene-feature-three-height: 84%;
  --scene-feature-three-top: 8%;
  --scene-feature-three-left: 48%;
}
.story-panel[data-scene="flying-wheel-garage"] .scene-landmark {
  width: 174px;
  height: 103px;
  border-radius: 58px 58px 9px 9px;
  background: repeating-linear-gradient(90deg, #f2b875 0 23px, #e3a362 24px 27px);
}

.story-panel[data-scene="lamp-museum"] {
  --scene-sky: #657fa4;
  --scene-sky-deep: #334963;
  --scene-ground: #637e73;
  --scene-ground-back: #8aa08a;
  --scene-landmark: #f4df9b;
  --scene-landmark-trim: #d5943d;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-star-opacity: .76;
  --scene-landmark-left: 62%;
  --scene-landmark-bottom: 20%;
  --scene-landmark-scale: .96;
  --scene-road-left: 25%;
  --scene-road-height: 12%;
  --scene-road-width: 222px;
  --scene-road-tilt: -6deg;
  --scene-feature-left: 23%;
  --scene-feature-bottom: 34%;
  --scene-feature-width: 112px;
  --scene-feature-height: 122px;
  --scene-feature-bg: radial-gradient(circle at 50% 36%, #fff 0 10%, #ffe879 11% 44%, #e9a83b 45% 66%, transparent 67%);
  --scene-feature-shape: polygon(50% 0, 85% 26%, 80% 58%, 62% 74%, 62% 100%, 38% 100%, 38% 74%, 20% 58%, 15% 26%);
  --scene-feature-radius: 50% 50% 32px 32px;
  --scene-feature-tilt: -3deg;
  --scene-feature-shadow: 0 0 28px rgba(255, 223, 107, .6);
  --scene-feature-one-bg: #d57e35;
  --scene-feature-one-width: 24%;
  --scene-feature-one-height: 26%;
  --scene-feature-one-top: 41%;
  --scene-feature-one-left: 38%;
  --scene-feature-one-border: 4px solid #744f35;
  --scene-feature-one-radius: 0 0 50% 50%;
  --scene-feature-two-bg: repeating-linear-gradient(0deg, #8f989a 0 4px, #d9dfe0 5px 8px);
  --scene-feature-two-width: 44%;
  --scene-feature-two-height: 18%;
  --scene-feature-two-top: 82%;
  --scene-feature-two-left: 28%;
  --scene-feature-three-bg: rgba(255,255,255,.7);
  --scene-feature-three-width: 16%;
  --scene-feature-three-height: 22%;
  --scene-feature-three-top: 17%;
  --scene-feature-three-left: 26%;
}
.story-panel[data-scene="lamp-museum"] .scene-landmark {
  width: 146px;
  height: 136px;
  border-radius: 50% 50% 8px 8px;
  background: radial-gradient(circle at 50% 35%, #fffbd0 0 24px, #e4b95d 25px 30px, #8f6c54 31px);
  box-shadow: 0 0 34px rgba(255,235,130,.5);
}

.story-panel[data-scene="mirror-fountain"] {
  --scene-sky: #cfeff2;
  --scene-sky-deep: #86ccd4;
  --scene-ground: #82b8a7;
  --scene-ground-back: #add3ba;
  --scene-landmark: #aee2e9;
  --scene-landmark-trim: #719cae;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 59%;
  --scene-landmark-bottom: 24%;
  --scene-landmark-scale: .98;
  --scene-road-left: 27%;
  --scene-road-height: 13%;
  --scene-road-width: 236px;
  --scene-road-tilt: -5deg;
  --scene-feature-left: 24%;
  --scene-feature-bottom: 25%;
  --scene-feature-width: 136px;
  --scene-feature-height: 96px;
  --scene-feature-bg: radial-gradient(ellipse at 50% 74%, #d9ffff 0 24%, #83c7cf 25% 54%, #6b9792 55%);
  --scene-feature-shape: ellipse(50% 42% at 50% 62%);
  --scene-feature-radius: 50%;
  --scene-feature-tilt: -2deg;
  --scene-feature-one-bg: #80d2e3;
  --scene-feature-one-width: 12%;
  --scene-feature-one-height: 45%;
  --scene-feature-one-top: 0;
  --scene-feature-one-left: 44%;
  --scene-feature-one-radius: 50% 50% 55% 45%;
  --scene-feature-one-shape: polygon(50% 0,100% 70%,74% 100%,26% 100%,0 70%);
  --scene-feature-two-bg: rgba(255,255,255,.72);
  --scene-feature-two-width: 22%;
  --scene-feature-two-height: 9%;
  --scene-feature-two-top: 46%;
  --scene-feature-two-left: 19%;
  --scene-feature-two-transform: rotate(-16deg);
  --scene-feature-three-bg: rgba(255,255,255,.6);
  --scene-feature-three-width: 18%;
  --scene-feature-three-height: 8%;
  --scene-feature-three-top: 52%;
  --scene-feature-three-left: 63%;
  --scene-feature-three-transform: rotate(14deg);
}
.story-panel[data-scene="mirror-fountain"] .scene-landmark {
  width: 154px;
  height: 88px;
  border-radius: 50% 50% 22px 22px;
  background: radial-gradient(ellipse at 50% 8%, #ecffff 0 18%, #71bfd0 20% 33%, #bdd6d8 35%);
  box-shadow: 0 -25px 0 -19px #71bfd0, 0 8px 0 rgba(68,53,47,.12);
}

.story-panel[data-scene="medal-stamp-shop"] {
  --scene-sky: #f1dfbf;
  --scene-sky-deep: #d8b886;
  --scene-ground: #b5a575;
  --scene-ground-back: #d3c594;
  --scene-landmark: #e8b870;
  --scene-landmark-trim: #a85e4d;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 61%;
  --scene-landmark-bottom: 21%;
  --scene-landmark-scale: .96;
  --scene-road-left: 24%;
  --scene-road-height: 12%;
  --scene-road-width: 226px;
  --scene-road-tilt: -7deg;
  --scene-feature-left: 23%;
  --scene-feature-bottom: 31%;
  --scene-feature-width: 116px;
  --scene-feature-height: 116px;
  --scene-feature-bg: radial-gradient(circle, #ffe49a 0 29%, #b66d4d 30% 41%, #efb85c 42%);
  --scene-feature-shape: circle(50%);
  --scene-feature-radius: 50%;
  --scene-feature-tilt: 5deg;
  --scene-feature-one-bg: #fff0a4;
  --scene-feature-one-width: 44%;
  --scene-feature-one-height: 44%;
  --scene-feature-one-top: 28%;
  --scene-feature-one-left: 28%;
  --scene-feature-one-shape: polygon(50% 0,62% 34%,98% 35%,69% 56%,79% 94%,50% 72%,21% 94%,31% 56%,2% 35%,38% 34%);
  --scene-feature-two-bg: #de665c;
  --scene-feature-two-width: 22%;
  --scene-feature-two-height: 42%;
  --scene-feature-two-top: 78%;
  --scene-feature-two-left: 21%;
  --scene-feature-two-shape: polygon(0 0,100% 0,82% 100%,50% 78%,18% 100%);
  --scene-feature-three-bg: #5d88af;
  --scene-feature-three-width: 22%;
  --scene-feature-three-height: 42%;
  --scene-feature-three-top: 78%;
  --scene-feature-three-left: 57%;
  --scene-feature-three-shape: polygon(0 0,100% 0,82% 100%,50% 78%,18% 100%);
}
.story-panel[data-scene="medal-stamp-shop"] .scene-landmark {
  width: 126px;
  height: 132px;
  border-radius: 9px;
  background: radial-gradient(circle at 50% 38%, #ffe590 0 25px, #ad704d 26px 30px, #e8b870 31px);
}

.story-panel[data-scene="star-treasure-hall"] {
  --scene-sky: #7178ae;
  --scene-sky-deep: #35375f;
  --scene-ground: #6e7194;
  --scene-ground-back: #9596b0;
  --scene-landmark: #ddd5ea;
  --scene-landmark-trim: #e9bd57;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-star-opacity: .96;
  --scene-landmark-left: 62%;
  --scene-landmark-bottom: 20%;
  --scene-landmark-scale: .96;
  --scene-road-left: 25%;
  --scene-road-height: 12%;
  --scene-road-width: 226px;
  --scene-road-tilt: -7deg;
  --scene-feature-left: 24%;
  --scene-feature-bottom: 33%;
  --scene-feature-width: 120px;
  --scene-feature-height: 120px;
  --scene-feature-bg: linear-gradient(135deg, #fcf3ff, #9f92bd);
  --scene-feature-shape: polygon(50% 0, 60% 18%, 86% 20%, 71% 39%, 79% 64%, 50% 53%, 21% 64%, 29% 39%, 14% 20%, 40% 18%);
  --scene-feature-radius: 18px;
  --scene-feature-tilt: -6deg;
  --scene-feature-shadow: 0 0 26px rgba(255, 228, 113, .42);
  --scene-feature-one-bg: #ffe471;
  --scene-feature-one-width: 26%;
  --scene-feature-one-height: 26%;
  --scene-feature-one-top: 30%;
  --scene-feature-one-left: 37%;
  --scene-feature-one-shape: polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 92%,50% 71%,21% 92%,32% 56%,2% 35%,39% 34%);
  --scene-feature-two-bg: rgba(255,255,255,.55);
  --scene-feature-two-width: 16%;
  --scene-feature-two-height: 16%;
  --scene-feature-two-top: 12%;
  --scene-feature-two-left: 14%;
  --scene-feature-two-shape: polygon(50% 0,100% 50%,50% 100%,0 50%);
  --scene-feature-three-bg: rgba(255,255,255,.5);
  --scene-feature-three-width: 14%;
  --scene-feature-three-height: 14%;
  --scene-feature-three-top: 66%;
  --scene-feature-three-left: 73%;
  --scene-feature-three-shape: polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.story-panel[data-scene="star-treasure-hall"] .scene-landmark {
  width: 152px;
  height: 138px;
  border-radius: 8px 8px 42px 42px;
  background: linear-gradient(135deg, #fcf3ff, #9f92bd);
  clip-path: polygon(50% 0, 60% 18%, 86% 20%, 71% 39%, 79% 64%, 50% 53%, 21% 64%, 29% 39%, 14% 20%, 40% 18%);
}

.story-panel[data-scene="sparkle-repair-house"] {
  --scene-sky: #d8e8df;
  --scene-sky-deep: #94bdb0;
  --scene-ground: #83aa7b;
  --scene-ground-back: #b5ca8e;
  --scene-landmark: #dba979;
  --scene-landmark-trim: #5f8790;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 62%;
  --scene-landmark-bottom: 21%;
  --scene-landmark-scale: .96;
  --scene-road-left: 24%;
  --scene-road-height: 12%;
  --scene-road-width: 222px;
  --scene-road-tilt: -7deg;
  --scene-feature-left: 24%;
  --scene-feature-bottom: 34%;
  --scene-feature-width: 132px;
  --scene-feature-height: 62px;
  --scene-feature-bg: linear-gradient(#f4f8f8, #83969d);
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 999px;
  --scene-feature-tilt: -30deg;
  --scene-feature-one-bg: transparent;
  --scene-feature-one-width: 56px;
  --scene-feature-one-height: 64px;
  --scene-feature-one-top: -24px;
  --scene-feature-one-left: -12px;
  --scene-feature-one-border: 12px solid #9dabb0;
  --scene-feature-one-radius: 50%;
  --scene-feature-one-shadow: none;
  --scene-feature-two-bg: #83969d;
  --scene-feature-two-width: 32px;
  --scene-feature-two-height: 23px;
  --scene-feature-two-top: 18px;
  --scene-feature-two-left: 104px;
  --scene-feature-two-shape: polygon(0 30%, 100% 0, 100% 100%, 0 70%);
  --scene-feature-three-bg: #fff5a4;
  --scene-feature-three-width: 22px;
  --scene-feature-three-height: 22px;
  --scene-feature-three-top: -18px;
  --scene-feature-three-left: 82px;
  --scene-feature-three-shape: polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 92%,50% 71%,21% 92%,32% 56%,2% 35%,39% 34%);
  --scene-feature-three-shadow: 22px 37px #fff5a4;
}
.story-panel[data-scene="sparkle-repair-house"] .scene-landmark {
  width: 148px;
  height: 115px;
  border-radius: 7px 7px 26px 26px;
  background: repeating-linear-gradient(-45deg, #e7bb87 0 19px, #ce9267 20px 23px);
  box-shadow: inset 0 0 0 9px rgba(255,255,255,.2), 0 8px 0 rgba(68,53,47,.12);
}

.story-panel[data-scene="sunlight-photo-studio"] {
  --scene-sky: #ffe4a8;
  --scene-sky-deep: #efae70;
  --scene-ground: #b7b579;
  --scene-ground-back: #d7ce8d;
  --scene-landmark: #424e67;
  --scene-landmark-trim: #ed6d62;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 61%;
  --scene-landmark-bottom: 21%;
  --scene-landmark-scale: .96;
  --scene-road-left: 26%;
  --scene-road-height: 12%;
  --scene-road-width: 228px;
  --scene-road-tilt: -5deg;
  --scene-feature-left: 23%;
  --scene-feature-bottom: 31%;
  --scene-feature-width: 132px;
  --scene-feature-height: 94px;
  --scene-feature-bg: linear-gradient(#596578, #354052);
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 16px;
  --scene-feature-tilt: 4deg;
  --scene-feature-shadow: inset 0 0 0 8px #718098, 0 9px 0 rgba(68,53,47,.14);
  --scene-feature-one-bg: radial-gradient(circle at 40% 35%, #dff7ff 0 9px, #6aa2b5 10px 48%, #263d56 49%);
  --scene-feature-one-width: 54px;
  --scene-feature-one-height: 54px;
  --scene-feature-one-top: 22px;
  --scene-feature-one-left: 39px;
  --scene-feature-one-border: 5px solid #d6b861;
  --scene-feature-one-radius: 50%;
  --scene-feature-two-bg: #ed7865;
  --scene-feature-two-width: 42px;
  --scene-feature-two-height: 18px;
  --scene-feature-two-top: -15px;
  --scene-feature-two-left: 16px;
  --scene-feature-two-border: 3px solid var(--ink);
  --scene-feature-two-radius: 7px 7px 0 0;
  --scene-feature-three-bg: #fff4c3;
  --scene-feature-three-width: 28px;
  --scene-feature-three-height: 28px;
  --scene-feature-three-top: -22px;
  --scene-feature-three-left: 94px;
  --scene-feature-three-shape: polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 92%,50% 71%,21% 92%,32% 56%,2% 35%,39% 34%);
  --scene-feature-three-shadow: 0 0 16px #fff4c3;
}
.story-panel[data-scene="sunlight-photo-studio"] .scene-landmark {
  width: 148px;
  height: 118px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 48%, #b8e4e5 0 24px, #f5d062 25px 31px, #424e67 32px);
  box-shadow: 18px -14px 0 -9px #fff4c3, 0 8px 0 rgba(68,53,47,.13);
}

.story-panel[data-scene="signal-treehouse"] {
  --scene-sky: #bfdde1;
  --scene-sky-deep: #759eaf;
  --scene-ground: #668e71;
  --scene-ground-back: #91b082;
  --scene-landmark: #9b6c4b;
  --scene-landmark-trim: #4b7881;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 62%;
  --scene-landmark-bottom: 20%;
  --scene-landmark-scale: .97;
  --scene-road-left: 25%;
  --scene-road-height: 12%;
  --scene-road-width: 222px;
  --scene-road-tilt: -7deg;
  --scene-feature-left: 23%;
  --scene-feature-bottom: 30%;
  --scene-feature-width: 124px;
  --scene-feature-height: 94px;
  --scene-feature-bg: linear-gradient(145deg, #e3ae66, #ae734d);
  --scene-feature-shape: inset(0);
  --scene-feature-radius: 14px;
  --scene-feature-tilt: -4deg;
  --scene-feature-shadow: inset 0 0 0 7px rgba(255,255,255,.18), 0 9px 0 rgba(68,53,47,.14);
  --scene-feature-one-bg: repeating-linear-gradient(0deg, #5d584e 0 4px, #9d8d73 5px 9px);
  --scene-feature-one-width: 55%;
  --scene-feature-one-height: 54%;
  --scene-feature-one-top: 24%;
  --scene-feature-one-left: 10%;
  --scene-feature-one-border: 3px solid var(--ink);
  --scene-feature-one-radius: 6px;
  --scene-feature-two-bg: #efd06c;
  --scene-feature-two-width: 18px;
  --scene-feature-two-height: 18px;
  --scene-feature-two-top: 29%;
  --scene-feature-two-left: 73%;
  --scene-feature-two-border: 3px solid var(--ink);
  --scene-feature-two-shadow: 0 34px 0 -3px #efd06c, 0 34px 0 0 var(--ink);
  --scene-feature-three-bg: var(--ink);
  --scene-feature-three-width: 5px;
  --scene-feature-three-height: 62px;
  --scene-feature-three-top: -56px;
  --scene-feature-three-left: 82%;
  --scene-feature-three-transform: rotate(18deg);
}
.story-panel[data-scene="signal-treehouse"] .scene-landmark {
  width: 132px;
  height: 142px;
  border-radius: 45% 45% 9px 9px;
  background: radial-gradient(circle at 50% 22%, #7eb4bb 0 14px, #4b7881 15px 19px, transparent 20px), #9b6c4b;
  box-shadow: 0 20px 0 -8px #70472f, 0 8px 0 rgba(68,53,47,.13);
}

.story-panel[data-scene="warm-hand-magic-pond"] {
  --scene-sky: #f6cab5;
  --scene-sky-deep: #d98fa0;
  --scene-ground: #8fb39b;
  --scene-ground-back: #b7c9a0;
  --scene-landmark: #91d4d5;
  --scene-landmark-trim: #df8d75;
  --scene-landmark-body: var(--scene-landmark);
  --scene-landmark-roof: var(--scene-landmark-trim);
  --scene-landmark-divider: var(--ink);
  --scene-landmark-left: 60%;
  --scene-landmark-bottom: 24%;
  --scene-landmark-scale: .98;
  --scene-road-left: 27%;
  --scene-road-height: 13%;
  --scene-road-width: 236px;
  --scene-road-tilt: -5deg;
  --scene-feature-left: 24%;
  --scene-feature-bottom: 25%;
  --scene-feature-width: 136px;
  --scene-feature-height: 106px;
  --scene-feature-bg: linear-gradient(135deg, #fff 0 15%, #bed7de 28%, #739fae 68%, #e9f6f7);
  --scene-feature-shape: polygon(50% 0, 100% 66%, 84% 91%, 62% 100%, 36% 98%, 14% 88%, 0 66%);
  --scene-feature-radius: 50% 50% 55% 45%;
  --scene-feature-tilt: 5deg;
  --scene-feature-one-bg: rgba(255,255,255,.76);
  --scene-feature-one-width: 22%;
  --scene-feature-one-height: 28%;
  --scene-feature-one-top: 25%;
  --scene-feature-one-left: 23%;
  --scene-feature-one-transform: rotate(25deg);
  --scene-feature-two-bg: rgba(48,86,103,.25);
  --scene-feature-two-width: 24%;
  --scene-feature-two-height: 9%;
  --scene-feature-two-top: 68%;
  --scene-feature-two-left: 62%;
  --scene-feature-two-transform: rotate(-28deg);
  --scene-feature-three-bg: #fff;
  --scene-feature-three-width: 7px;
  --scene-feature-three-height: 18px;
  --scene-feature-three-top: 10%;
  --scene-feature-three-left: 47%;
}
.story-panel[data-scene="warm-hand-magic-pond"] .scene-landmark {
  width: 176px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, #d9ffff 0 27%, #83c7cf 29% 54%, #6b9792 56%);
  box-shadow: 0 -21px 0 -15px rgba(255,255,255,.7), 0 8px 0 rgba(68,53,47,.12);
}

.story-panel[data-scene] .scene-landmark {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.story-panel[data-character="post-bear"] {
  --scene-character-left: 38%;
  --scene-character-bottom: 14%;
  --scene-character-scale: 1.06;
  --scene-character-body: #4f8fb4;
  --scene-character-head: #c98b53;
  --scene-character-accent: #e85f58;
}

.story-panel[data-character="balloon-kid"] {
  --scene-character-left: 36%;
  --scene-character-bottom: 15%;
  --scene-character-scale: .98;
  --scene-character-body: #ff8bad;
  --scene-character-head: #ffd6a8;
  --scene-character-accent: #6ed3c7;
  --scene-character-head-radius: 48% 52% 45% 48%;
}

.story-panel[data-character="tool-mouse"] {
  --scene-character-left: 37%;
  --scene-character-bottom: 13%;
  --scene-character-scale: .9;
  --scene-character-body: #7f8b91;
  --scene-character-head: #cbd5d8;
  --scene-character-accent: #f4c14d;
}

.story-panel[data-character="lantern-rabbit"] {
  --scene-character-left: 35%;
  --scene-character-bottom: 14%;
  --scene-character-scale: 1;
  --scene-character-body: #ef735b;
  --scene-character-head: #fff0dc;
  --scene-character-accent: #ffe071;
  --scene-character-head-radius: 48% 48% 42% 44%;
}

.story-panel[data-character="picnic-cat"] {
  --scene-character-left: 39%;
  --scene-character-bottom: 12%;
  --scene-character-scale: .98;
  --scene-character-body: #77b97d;
  --scene-character-head: #f3b26d;
  --scene-character-accent: #fff4bd;
  --scene-character-accessory-shape: polygon(50% 0, 100% 100%, 0 100%);
}

.story-panel[data-character="jeweler-hedgehog"] {
  --scene-character-left: 36%;
  --scene-character-bottom: 13%;
  --scene-character-scale: .96;
  --scene-character-body: #9d6b47;
  --scene-character-head: #e2b27d;
  --scene-character-accent: #ffd65d;
}

.story-panel[data-character="gift-owl"] {
  --scene-character-left: 38%;
  --scene-character-bottom: 15%;
  --scene-character-scale: 1;
  --scene-character-body: #8b7cc2;
  --scene-character-head: #e5d2a6;
  --scene-character-accent: #cf6b8a;
  --scene-character-head-radius: 46% 46% 55% 55%;
}

.story-panel[data-character="sign-fox"] {
  --scene-character-left: 35%;
  --scene-character-bottom: 13%;
  --scene-character-scale: 1.02;
  --scene-character-body: #ef8a45;
  --scene-character-head: #f5b56d;
  --scene-character-accent: #f35f68;
  --scene-character-accessory-shape: polygon(50% 0, 100% 100%, 0 100%);
}

.story-panel[data-character="chip-robot"] {
  --scene-character-left: 37%;
  --scene-character-bottom: 13%;
  --scene-character-scale: .97;
  --scene-character-body: #4f7c8d;
  --scene-character-head: #b9d7dd;
  --scene-character-accent: #5fe0bd;
  --scene-character-head-radius: 13px;
  --scene-character-accessory-radius: 4px;
}

.story-panel[data-character="shield-otter"] {
  --scene-character-left: 39%;
  --scene-character-bottom: 12%;
  --scene-character-scale: 1;
  --scene-character-body: #5c8aa0;
  --scene-character-head: #a5744c;
  --scene-character-accent: #9dd5e6;
}

.story-panel[data-character="train-conductor"] {
  --scene-character-left: 36%;
  --scene-character-bottom: 14%;
  --scene-character-scale: 1.02;
  --scene-character-body: #385c92;
  --scene-character-head: #d4a06e;
  --scene-character-accent: #e34f48;
  --scene-character-accessory-radius: 5px 5px 12px 12px;
}

.story-panel[data-character="wheel-mechanic"] {
  --scene-character-left: 38%;
  --scene-character-bottom: 13%;
  --scene-character-scale: .98;
  --scene-character-body: #6d7378;
  --scene-character-head: #d9b08b;
  --scene-character-accent: #ffb84d;
}

.story-panel[data-character="lamp-keeper"] {
  --scene-character-left: 36%;
  --scene-character-bottom: 14%;
  --scene-character-scale: 1;
  --scene-character-body: #7458a6;
  --scene-character-head: #f0cf9e;
  --scene-character-accent: #fff075;
}

.story-panel[data-character="fountain-duck"] {
  --scene-character-left: 39%;
  --scene-character-bottom: 12%;
  --scene-character-scale: .96;
  --scene-character-body: #70c6d7;
  --scene-character-head: #fff3ad;
  --scene-character-accent: #f1a747;
}

.story-panel[data-character="stamp-panda"] {
  --scene-character-left: 37%;
  --scene-character-bottom: 13%;
  --scene-character-scale: 1.02;
  --scene-character-body: #2f3540;
  --scene-character-head: #f3eee2;
  --scene-character-accent: #de665c;
}

.story-panel[data-character="star-rabbit"] {
  --scene-character-left: 35%;
  --scene-character-bottom: 14%;
  --scene-character-scale: 1;
  --scene-character-body: #d8c5ff;
  --scene-character-head: #fff2df;
  --scene-character-accent: #ffe071;
  --scene-character-accessory-shape: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 71%, 21% 92%, 32% 56%, 2% 35%, 39% 34%);
}

.story-panel[data-character="repair-squirrel"] {
  --scene-character-left: 38%;
  --scene-character-bottom: 13%;
  --scene-character-scale: .98;
  --scene-character-body: #bf7b45;
  --scene-character-head: #e4a36a;
  --scene-character-accent: #8ea7ae;
}

.story-panel[data-character="photo-bird"] {
  --scene-character-left: 36%;
  --scene-character-bottom: 15%;
  --scene-character-scale: .94;
  --scene-character-body: #5aa7c4;
  --scene-character-head: #d6ecf2;
  --scene-character-accent: #263d56;
  --scene-character-head-radius: 55% 55% 44% 44%;
}

.story-panel[data-character="radio-frog"] {
  --scene-character-left: 39%;
  --scene-character-bottom: 12%;
  --scene-character-scale: .98;
  --scene-character-body: #69b879;
  --scene-character-head: #a4dc8c;
  --scene-character-accent: #efcf6c;
  --scene-character-head-radius: 58% 58% 42% 42%;
}

.story-panel[data-character="pond-penguin"] {
  --scene-character-left: 37%;
  --scene-character-bottom: 12%;
  --scene-character-scale: .98;
  --scene-character-body: #354b5d;
  --scene-character-head: #f7f3e8;
  --scene-character-accent: #8fd4e4;
  --scene-character-head-radius: 52% 52% 46% 46%;
}

.story-panel[data-character*="rabbit"] .scene-character__ear {
  top: -1px;
  height: 42px;
  border-radius: 48% 48% 42% 42%;
}

.story-panel[data-character*="rabbit"] .scene-character__ear--left { left: 20px; rotate: -12deg; }
.story-panel[data-character*="rabbit"] .scene-character__ear--right { right: 20px; rotate: 12deg; }

.story-panel[data-character="chip-robot"] .scene-character__ear,
.story-panel[data-character="photo-bird"] .scene-character__ear,
.story-panel[data-character="pond-penguin"] .scene-character__ear {
  display: none;
}

.story-panel[data-character="photo-bird"] .scene-character__accessory,
.story-panel[data-character="fountain-duck"] .scene-character__accessory {
  top: 33px;
  left: 46px;
  width: 28px;
  height: 15px;
  border-radius: 50%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.story-panel[data-character="chip-robot"] .scene-character__mouth {
  width: 18px;
  height: 4px;
  border-bottom: 0;
  border-radius: 999px;
  background: var(--ink);
}

.story-panel[data-prop="air-mail"] .scene-prop {
  height: 54px;
  border-radius: 8px;
  background: #fff4cf;
  transform: rotate(-6deg);
}
.story-panel[data-prop="air-mail"] .scene-prop__part--one { inset: 0; background: #f7db9d; clip-path: polygon(0 0, 50% 58%, 100% 0); }
.story-panel[data-prop="air-mail"] .scene-prop__part--two { right: 7px; bottom: 7px; width: 18px; height: 18px; border: 2px dashed #df665a; background: #fff; }
.story-panel[data-prop="air-mail"] .scene-prop__part--three { bottom: 9px; left: 9px; width: 27px; height: 4px; border-radius: 4px; background: #6faab4; box-shadow: 0 8px #6faab4; }

.story-panel[data-prop="festival-balloon"] .scene-prop {
  width: 62px;
  height: 78px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(90deg, #ef6f67, #ffb655 50%, #e985a9);
  transform: rotate(3deg);
}
.story-panel[data-prop="festival-balloon"] .scene-prop__part--one { bottom: -29px; left: 27px; width: 3px; height: 30px; background: var(--ink); }
.story-panel[data-prop="festival-balloon"] .scene-prop__part--two { bottom: -38px; left: 19px; width: 20px; height: 12px; border: 3px solid var(--ink); background: #c9854f; }
.story-panel[data-prop="festival-balloon"] .scene-prop__part--three { top: 12px; left: 14px; width: 10px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.55); }

.story-panel[data-prop="sturdy-hammer"] .scene-prop {
  width: 76px;
  height: 35px;
  border-radius: 8px;
  background: linear-gradient(#8f9ba0, #5f6a70);
  transform: rotate(-13deg);
}
.story-panel[data-prop="sturdy-hammer"] .scene-prop__part--one { top: 29px; left: 31px; width: 14px; height: 62px; border: 3px solid var(--ink); border-radius: 5px; background: #c9894f; }
.story-panel[data-prop="sturdy-hammer"] .scene-prop__part--two { top: 7px; left: 8px; width: 18px; height: 12px; border-radius: 3px; background: #cbd3d5; }
.story-panel[data-prop="sturdy-hammer"] .scene-prop__part--three { top: 6px; right: -15px; width: 18px; height: 17px; background: #647076; clip-path: polygon(0 0,100% 30%,100% 70%,0 100%); }

.story-panel[data-prop="glowing-cable"] .scene-prop {
  width: 72px;
  height: 72px;
  border: 9px solid #e7794d;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 17px #ffd276, inset 0 0 12px #ffd276;
  transform: rotate(8deg);
}
.story-panel[data-prop="glowing-cable"] .scene-prop__part--one { top: 25px; left: 24px; width: 22px; height: 7px; border-radius: 5px; background: #fff3a3; box-shadow: 0 0 12px #fff3a3; }
.story-panel[data-prop="glowing-cable"] .scene-prop__part--two { right: -14px; bottom: 2px; width: 18px; height: 10px; border: 3px solid var(--ink); background: #f7ca62; }
.story-panel[data-prop="glowing-cable"] .scene-prop__part--three { left: -13px; bottom: 2px; width: 17px; height: 10px; border: 3px solid var(--ink); background: #f7ca62; }

.story-panel[data-prop="silver-foil"] .scene-prop {
  width: 85px;
  height: 60px;
  border-radius: 5px;
  background: linear-gradient(135deg, #fff 0 16%, #aebbc0 18% 35%, #eef3f3 37% 60%, #99a9ae 62% 78%, #f8ffff 80%);
  transform: skew(-8deg) rotate(4deg);
}
.story-panel[data-prop="silver-foil"] .scene-prop__part--one { inset: 8px; border: 2px dashed rgba(68,53,47,.4); }
.story-panel[data-prop="silver-foil"] .scene-prop__part--two { top: 4px; right: 8px; width: 15px; height: 24px; background: rgba(255,255,255,.55); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.story-panel[data-prop="silver-foil"] .scene-prop__part--three { bottom: 6px; left: 11px; width: 20px; height: 3px; background: #86979d; }

.story-panel[data-prop="golden-medal"] .scene-prop {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3a5 0 16%, #efb937 18% 58%, #b87724 60%);
  box-shadow: 0 0 0 6px #f5d66c, 0 8px 0 rgba(68,53,47,.14);
}
.story-panel[data-prop="golden-medal"] .scene-prop__part--one { top: -42px; left: 8px; width: 23px; height: 47px; background: #e85f58; transform: rotate(-10deg); }
.story-panel[data-prop="golden-medal"] .scene-prop__part--two { top: -42px; right: 8px; width: 23px; height: 47px; background: #588bb9; transform: rotate(10deg); }
.story-panel[data-prop="golden-medal"] .scene-prop__part--three { inset: 16px; background: #fff1a0; clip-path: polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 92%,50% 71%,21% 92%,32% 56%,2% 35%,39% 34%); }

.story-panel[data-prop="silver-pendant"] .scene-prop {
  width: 62px;
  height: 72px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(135deg, #fff, #a9b9c7 65%, #e7eff2);
  transform: rotate(4deg);
}
.story-panel[data-prop="silver-pendant"] .scene-prop__part--one { top: -37px; left: 27px; width: 4px; height: 38px; background: repeating-linear-gradient(#fff 0 4px,#758995 5px 8px); }
.story-panel[data-prop="silver-pendant"] .scene-prop__part--two { inset: 15px; background: #8bb6d0; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.story-panel[data-prop="silver-pendant"] .scene-prop__part--three { top: 21px; left: 22px; width: 10px; height: 14px; background: rgba(255,255,255,.7); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }

.story-panel[data-prop="neon-sign"] .scene-prop {
  width: 92px;
  height: 58px;
  border-radius: 9px;
  background: #40375f;
  box-shadow: inset 0 0 0 5px #ff738d, 0 0 20px #ff738d;
  transform: rotate(-3deg);
}
.story-panel[data-prop="neon-sign"] .scene-prop__part--one { top: 17px; left: 14px; width: 56px; height: 22px; border: 4px solid #ffde68; border-top: 0; border-radius: 50%; filter: drop-shadow(0 0 5px #ffde68); }
.story-panel[data-prop="neon-sign"] .scene-prop__part--two { top: 12px; left: 25px; width: 7px; height: 7px; border-radius: 50%; background: #7ff1dd; box-shadow: 30px 0 #7ff1dd; }
.story-panel[data-prop="neon-sign"] .scene-prop__part--three { bottom: -26px; left: 41px; width: 6px; height: 25px; background: var(--ink); }

.story-panel[data-prop="tiny-chip"] .scene-prop {
  width: 70px;
  height: 58px;
  border-radius: 8px;
  background: #315b58;
  box-shadow: inset 0 0 0 8px #4d8780, 0 7px 0 rgba(68,53,47,.15);
  transform: rotate(3deg);
}
.story-panel[data-prop="tiny-chip"] .scene-prop__part--one { inset: 17px; border: 2px solid #e8c66c; background: #263f43; }
.story-panel[data-prop="tiny-chip"] .scene-prop__part--two { top: -9px; left: 7px; width: 6px; height: 9px; background: #e0c178; box-shadow: 15px 0 #e0c178,30px 0 #e0c178,45px 0 #e0c178; }
.story-panel[data-prop="tiny-chip"] .scene-prop__part--three { bottom: -9px; left: 7px; width: 6px; height: 9px; background: #e0c178; box-shadow: 15px 0 #e0c178,30px 0 #e0c178,45px 0 #e0c178; }

.story-panel[data-prop="metal-coat"] .scene-prop {
  width: 70px;
  height: 82px;
  border-radius: 15px 15px 36px 36px;
  background: linear-gradient(135deg, #f6fbfc, #81959c 54%, #dbe4e5);
  clip-path: polygon(50% 0,95% 18%,86% 72%,50% 100%,14% 72%,5% 18%);
  transform: rotate(-2deg);
}
.story-panel[data-prop="metal-coat"] .scene-prop__part--one { inset: 18px; background: #77aabb; clip-path: polygon(50% 0,62% 35%,100% 38%,69% 60%,80% 100%,50% 74%,20% 100%,31% 60%,0 38%,38% 35%); }
.story-panel[data-prop="metal-coat"] .scene-prop__part--two { top: 5px; left: 10px; width: 19px; height: 10px; border-radius: 50%; background: #fff; rotate: -22deg; }
.story-panel[data-prop="metal-coat"] .scene-prop__part--three { right: 8px; bottom: 20px; width: 7px; height: 25px; border-radius: 50%; background: rgba(255,255,255,.55); rotate: 20deg; }

.story-panel[data-prop="battery-pack"] .scene-prop {
  width: 58px;
  height: 82px;
  border-radius: 9px;
  background: linear-gradient(#f0d35e 0 31%, #579a76 32% 100%);
  transform: rotate(5deg);
}
.story-panel[data-prop="battery-pack"] .scene-prop__part--one { top: -12px; left: 18px; width: 20px; height: 10px; border: 3px solid var(--ink); border-radius: 4px 4px 0 0; background: #b8c1bd; }
.story-panel[data-prop="battery-pack"] .scene-prop__part--two { top: 34px; left: 18px; width: 21px; height: 31px; background: #fff085; clip-path: polygon(48% 0,100% 0,66% 39%,91% 39%,27% 100%,43% 54%,13% 54%); }
.story-panel[data-prop="battery-pack"] .scene-prop__part--three { top: 9px; left: 12px; width: 9px; height: 4px; background: var(--ink); box-shadow: 25px 0 var(--ink); }

.story-panel[data-prop="light-frame"] .scene-prop {
  width: 78px;
  height: 78px;
  border: 10px solid #aab6bb;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 4px #55656d, 0 7px 0 rgba(68,53,47,.14);
  transform: rotate(0deg);
}
.story-panel[data-prop="light-frame"] .scene-prop__part--one { inset: 26px; border: 4px solid var(--ink); border-radius: 50%; background: #efb54c; }
.story-panel[data-prop="light-frame"] .scene-prop__part--two { top: 32px; left: 2px; width: 67px; height: 4px; background: #55656d; }
.story-panel[data-prop="light-frame"] .scene-prop__part--three { top: 1px; left: 34px; width: 4px; height: 68px; background: #55656d; }

.story-panel[data-prop="glowing-filament"] .scene-prop {
  width: 68px;
  height: 74px;
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 40% 30%, #fff 0 7px, #ffe879 9px 45%, #e9a83b 75%);
  box-shadow: 0 0 23px #ffdf6b;
  transform: rotate(-3deg);
}
.story-panel[data-prop="glowing-filament"] .scene-prop__part--one { right: 13px; bottom: -19px; left: 13px; height: 18px; border: 3px solid var(--ink); background: repeating-linear-gradient(0deg,#8f989a 0 4px,#d9dfe0 5px 8px); }
.story-panel[data-prop="glowing-filament"] .scene-prop__part--two { top: 28px; left: 21px; width: 22px; height: 25px; border: 4px solid #d57e35; border-top: 0; border-radius: 0 0 50% 50%; }
.story-panel[data-prop="glowing-filament"] .scene-prop__part--three { top: 14px; left: 14px; width: 13px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.6); }

.story-panel[data-prop="shiny-faucet"] .scene-prop {
  width: 78px;
  height: 34px;
  border-radius: 24px 24px 6px 6px;
  background: linear-gradient(#f6ffff, #91aab3 67%, #dce7e9);
  transform: rotate(-4deg);
}
.story-panel[data-prop="shiny-faucet"] .scene-prop__part--one { top: 25px; right: 3px; width: 20px; height: 34px; border: 5px solid var(--ink); border-top: 0; border-left: 0; border-radius: 0 0 13px 0; background: #a9bdc2; }
.story-panel[data-prop="shiny-faucet"] .scene-prop__part--two { top: -22px; left: 12px; width: 48px; height: 8px; border: 3px solid var(--ink); border-radius: 7px; background: #c4d1d3; }
.story-panel[data-prop="shiny-faucet"] .scene-prop__part--three { right: 7px; bottom: -55px; width: 17px; height: 24px; border-radius: 50% 50% 55% 45%; background: #80d2e3; clip-path: polygon(50% 0,100% 70%,74% 100%,26% 100%,0 70%); }

.story-panel[data-prop="round-badge"] .scene-prop {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe49a 0 28%, #b66d4d 30% 39%, #efb85c 41%);
  box-shadow: 0 0 0 5px #8c5948, 0 7px 0 rgba(68,53,47,.14);
  transform: rotate(4deg);
}
.story-panel[data-prop="round-badge"] .scene-prop__part--one { inset: 20px; background: #fff0a4; clip-path: polygon(50% 0,62% 34%,98% 35%,69% 56%,79% 94%,50% 72%,21% 94%,31% 56%,2% 35%,38% 34%); }
.story-panel[data-prop="round-badge"] .scene-prop__part--two { bottom: -28px; left: 9px; width: 20px; height: 34px; background: #de665c; clip-path: polygon(0 0,100% 0,82% 100%,50% 78%,18% 100%); }
.story-panel[data-prop="round-badge"] .scene-prop__part--three { right: 9px; bottom: -28px; width: 20px; height: 34px; background: #5d88af; clip-path: polygon(0 0,100% 0,82% 100%,50% 78%,18% 100%); }

.story-panel[data-prop="silver-brooch"] .scene-prop {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  background: linear-gradient(135deg,#fff,#99aab8 55%,#eef5f6);
  clip-path: polygon(50% 0,61% 34%,98% 35%,68% 56%,79% 94%,50% 72%,21% 94%,32% 56%,2% 35%,39% 34%);
  transform: rotate(7deg);
}
.story-panel[data-prop="silver-brooch"] .scene-prop__part--one { inset: 25px; border-radius: 50%; background: #78afd0; box-shadow: 0 0 0 4px #fff; }
.story-panel[data-prop="silver-brooch"] .scene-prop__part--two { top: 13px; left: 17px; width: 10px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.7); rotate: -35deg; }
.story-panel[data-prop="silver-brooch"] .scene-prop__part--three { right: 14px; bottom: 17px; width: 8px; height: 14px; border-radius: 50%; background: rgba(68,53,47,.18); rotate: -35deg; }

.story-panel[data-prop="bright-brooch"] .scene-prop {
  width: 83px;
  height: 27px;
  border-radius: 18px;
  background: linear-gradient(#f4f8f8, #83969d);
  transform: rotate(-34deg);
}
.story-panel[data-prop="bright-brooch"] .scene-prop__part--one { top: -20px; left: -18px; width: 43px; height: 55px; border: 10px solid #9dabb0; border-right-color: transparent; border-radius: 50%; }
.story-panel[data-prop="bright-brooch"] .scene-prop__part--two { top: 4px; right: -18px; width: 24px; height: 18px; background: #83969d; clip-path: polygon(0 30%,100% 0,100% 100%,0 70%); }
.story-panel[data-prop="bright-brooch"] .scene-prop__part--three { top: 6px; left: 28px; width: 25px; height: 4px; border-radius: 4px; background: #fff; }

.story-panel[data-prop="light-sensor"] .scene-prop {
  width: 86px;
  height: 62px;
  border-radius: 13px;
  background: linear-gradient(#596578, #354052);
  box-shadow: inset 0 0 0 6px #718098, 0 7px 0 rgba(68,53,47,.16);
  transform: rotate(3deg);
}
.story-panel[data-prop="light-sensor"] .scene-prop__part--one { top: 11px; left: 26px; width: 37px; height: 37px; border: 5px solid #d6b861; border-radius: 50%; background: radial-gradient(circle at 40% 35%,#dff7ff 0 5px,#6aa2b5 7px 42%,#263d56 45%); }
.story-panel[data-prop="light-sensor"] .scene-prop__part--two { top: -14px; left: 11px; width: 29px; height: 14px; border: 3px solid var(--ink); border-radius: 6px 6px 0 0; background: #ed7865; }
.story-panel[data-prop="light-sensor"] .scene-prop__part--three { top: 10px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ef7064; }

.story-panel[data-prop="radio-box"] .scene-prop {
  width: 88px;
  height: 66px;
  border-radius: 10px;
  background: linear-gradient(145deg,#e3ae66,#ae734d);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.18), 0 7px 0 rgba(68,53,47,.15);
  transform: rotate(-3deg);
}
.story-panel[data-prop="radio-box"] .scene-prop__part--one { top: 12px; left: 10px; width: 43px; height: 39px; border: 3px solid var(--ink); border-radius: 5px; background: repeating-linear-gradient(0deg,#5d584e 0 3px,#9d8d73 4px 7px); }
.story-panel[data-prop="radio-box"] .scene-prop__part--two { top: 15px; right: 9px; width: 15px; height: 15px; border: 3px solid var(--ink); border-radius: 50%; background: #efd06c; box-shadow: 0 25px 0 -2px #efd06c, 0 25px 0 1px var(--ink); }
.story-panel[data-prop="radio-box"] .scene-prop__part--three { top: -44px; right: 12px; width: 4px; height: 45px; background: var(--ink); rotate: 18deg; transform-origin: bottom; }

.story-panel[data-prop="silver-drop"] .scene-prop {
  width: 63px;
  height: 80px;
  border-radius: 50% 50% 55% 45%;
  background: linear-gradient(135deg,#fff 0 15%,#bed7de 28%,#739fae 68%,#e9f6f7);
  clip-path: polygon(50% 0,100% 66%,84% 91%,62% 100%,36% 98%,14% 88%,0 66%);
  transform: rotate(4deg);
}
.story-panel[data-prop="silver-drop"] .scene-prop__part--one { top: 21px; left: 14px; width: 14px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.72); rotate: 25deg; }
.story-panel[data-prop="silver-drop"] .scene-prop__part--two { right: 10px; bottom: 15px; width: 15px; height: 7px; border-radius: 50%; background: rgba(48,86,103,.27); rotate: -28deg; }
.story-panel[data-prop="silver-drop"] .scene-prop__part--three { top: 6px; left: 29px; width: 5px; height: 13px; border-radius: 50%; background: #fff; }

.story-panel[data-prop="festival-balloon"] .scene-prop { animation: prop-bob 2.6s ease-in-out infinite; }
.story-panel[data-prop="light-frame"] .scene-prop { animation: prop-spin 7s linear infinite; }
.story-panel[data-prop="glowing-cable"] .scene-prop,
.story-panel[data-prop="neon-sign"] .scene-prop,
.story-panel[data-prop="glowing-filament"] .scene-prop { animation: prop-glow 2.2s ease-in-out infinite; }

@keyframes scene-reveal {
  from { opacity: 0; scale: .97; translate: 0 12px; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes cloud-drift {
  from { translate: -7px 0; }
  to { translate: 12px -3px; }
}

@keyframes scene-twinkle {
  0%, 100% { filter: brightness(.92); }
  50% { filter: brightness(1.35); }
}

@keyframes landmark-breathe {
  0%, 100% { translate: -50% 0; }
  50% { translate: -50% -3px; }
}

@keyframes feature-sway {
  0%, 100% { translate: -50% 0; }
  50% { translate: -50% -6px; }
}

@keyframes scene-character-wave {
  0%, 100% { translate: -50% 0; }
  50% { translate: -50% -5px; }
}

@keyframes scene-character-hand {
  from { rotate: -32deg; }
  to { rotate: -58deg; }
}

@keyframes prop-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes prop-bob {
  0%, 100% { translate: 0 0; rotate: -2deg; }
  50% { translate: 0 -10px; rotate: 3deg; }
}

@keyframes prop-spin {
  to { rotate: 360deg; }
}

@keyframes prop-glow {
  0%, 100% { filter: drop-shadow(0 7px 0 rgba(68,53,47,.16)) brightness(.92); }
  50% { filter: drop-shadow(0 0 12px #ffe681) brightness(1.12); }
}

.story-panel.is-answer-celebrating .story-scene {
  animation: scene-celebration-pop 1.25s cubic-bezier(.17,.89,.26,1.35) both;
}

.story-panel.is-answer-celebrating .scene-landmark {
  animation: scene-landmark-cheer 1.2s cubic-bezier(.19,.86,.24,1.18) both;
}

.story-panel.is-answer-celebrating .scene-character {
  animation: scene-character-celebrate 1.25s cubic-bezier(.17,.89,.26,1.35) both;
}

.story-panel.is-answer-celebrating .scene-prop {
  animation: scene-prop-mega-pop 1.35s cubic-bezier(.16,.95,.24,1.26) both;
}

.story-panel.is-answer-celebrating .scene-reaction__part {
  animation: scene-confetti-burst 1.35s cubic-bezier(.17,.9,.24,1.18) both;
}

.story-panel.is-answer-celebrating .scene-reaction__part--two { animation-delay: .08s; }
.story-panel.is-answer-celebrating .scene-reaction__part--three { animation-delay: .15s; }
.story-panel.is-answer-celebrating .scene-reaction__part--four { animation-delay: .05s; }

.story-panel[data-answer-kind="gas"].is-answer-celebrating .scene-prop { animation: scene-balloon-fly-away 1.55s cubic-bezier(.12,.74,.22,1) both; }
.story-panel[data-answer-kind="gas"].is-answer-celebrating .scene-reaction__part { animation: scene-balloon-fly-away 1.55s cubic-bezier(.12,.74,.22,1) both; }

@keyframes scene-celebration-pop {
  0% { filter: saturate(1) brightness(1); transform: scale(1); }
  22% { filter: saturate(1.42) brightness(1.18); transform: scale(1.045) rotate(-1.1deg); }
  48% { filter: saturate(1.22) brightness(1.08); transform: scale(.985) rotate(1deg); }
  100% { filter: saturate(1) brightness(1); transform: scale(1); }
}

@keyframes scene-landmark-cheer {
  0%, 100% { translate: 0 0; rotate: var(--scene-landmark-tilt, 0deg); }
  20% { translate: 0 -18px; rotate: -5deg; }
  40% { translate: 0 6px; rotate: 4deg; }
  62% { translate: 0 -10px; rotate: -3deg; }
}

@keyframes scene-character-celebrate {
  0%, 100% { translate: -50% 0; scale: var(--scene-character-scale); rotate: 0deg; }
  24% { translate: -50% -24px; scale: 1.12; rotate: -7deg; }
  48% { translate: -50% 5px; scale: .98; rotate: 5deg; }
  72% { translate: -50% -14px; scale: 1.06; rotate: -4deg; }
}

@keyframes scene-prop-mega-pop {
  0% { translate: 0 0; scale: 1; rotate: 0deg; filter: drop-shadow(0 7px 0 rgba(68,53,47,.16)); }
  28% { translate: -18px -46px; scale: 1.35; rotate: -12deg; filter: drop-shadow(0 18px 0 rgba(68,53,47,.12)) brightness(1.2); }
  58% { translate: 18px -16px; scale: 1.08; rotate: 10deg; }
  100% { translate: 0 0; scale: 1; rotate: 0deg; }
}

@keyframes scene-balloon-fly-away {
  0% { opacity: 0; translate: 0 0; scale: .55; rotate: -8deg; }
  10% { opacity: 1; }
  35% { translate: -28px -76px; scale: 1.28; rotate: 10deg; }
  68% { opacity: 1; translate: -92px -188px; scale: 1.12; rotate: -16deg; }
  100% { opacity: 0; translate: -178px -310px; scale: .82; rotate: 26deg; }
}

@keyframes scene-confetti-burst {
  0% { opacity: 0; translate: 0 0; scale: .25; rotate: 0deg; }
  12% { opacity: 1; }
  45% { opacity: 1; translate: var(--confetti-x, -46px) var(--confetti-y, -88px); scale: 1.2; rotate: 220deg; }
  100% { opacity: 0; translate: calc(var(--confetti-x, -46px) * 1.6) 18px; scale: .72; rotate: 390deg; }
}

.story-copy {
  position: relative;
  z-index: 6;
  margin: 0 0 24px;
  padding: 18px 22px 19px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 20px 20px 12px 20px;
  background:
    linear-gradient(90deg, rgba(239, 115, 91, .1), transparent 28%),
    #fff8db;
  box-shadow: 0 7px 0 rgba(68, 53, 47, .13);
}

.story-copy::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  content: "";
  background: var(--coral);
}

.story-copy__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-letter-icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--coral);
  box-shadow: inset 0 -5px 0 rgba(152, 57, 47, .15);
}

.story-letter-icon::before {
  width: 26px;
  height: 19px;
  content: "";
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.story-letter-icon::after,
.story-letter-icon i::before,
.story-letter-icon i::after {
  position: absolute;
  content: "";
  background: var(--ink);
  transform-origin: left center;
}

.story-letter-icon::after {
  top: 20px;
  left: 13px;
  width: 16px;
  height: 2px;
  transform: rotate(33deg);
}

.story-letter-icon i::before {
  top: 20px;
  right: 12px;
  width: 16px;
  height: 2px;
  transform: rotate(147deg);
}

.story-copy__title {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.story-copy__title small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}

.story-label {
  color: var(--coral-dark);
  font-size: 19px;
  letter-spacing: .08em;
}

.story-read-first {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1.5px solid rgba(213, 84, 66, .3);
  border-radius: 99px;
  background: rgba(255, 255, 255, .64);
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.story-copy p {
  margin: 13px 0 0 61px;
  color: var(--level-main-copy-color);
  font-size: var(--level-main-copy-size);
  font-weight: var(--level-main-copy-weight);
  line-height: var(--level-main-copy-line-height);
}

.narration-controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: -8px 0 20px 61px;
}

.replay-narration-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff4c3;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(68, 53, 47, .14);
}

.replay-narration-button:disabled {
  cursor: not-allowed;
  opacity: .56;
  transform: none;
}

.narration-status {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.question-panel {
  --level-main-copy-size: clamp(24px, 2.15vw, 30px);
  --level-main-copy-weight: 900;
  --level-main-copy-line-height: 1.35;
  --level-main-copy-color: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(28px, 3.2vw, 44px);
  background:
    radial-gradient(circle at 18% 18%, rgba(246, 201, 76, .1) 0 3px, transparent 4px) 0 0 / 35px 35px,
    var(--paper);
}

.question-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 19px;
}

.question-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.question-count {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 45% 52%;
  background: var(--yellow);
  box-shadow: 0 5px 0 rgba(68, 53, 47, .12);
  transform: rotate(-4deg);
}

.question-count span { font-size: 27px; font-weight: 900; transform: rotate(4deg); }

.question-heading h2 {
  max-width: 630px;
  margin: 6px 0 0;
  color: var(--level-main-copy-color);
  font-size: var(--level-main-copy-size);
  font-weight: var(--level-main-copy-weight);
  line-height: var(--level-main-copy-line-height);
  letter-spacing: -.03em;
}

.element-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 2vw, 22px);
}

.element-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  justify-items: center;
  min-height: 335px;
  padding: 12px 12px 0;
  overflow: hidden;
  border: 3px solid rgba(68, 53, 47, .28);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.9), transparent 45%),
    #f7efd9;
  box-shadow: 0 8px 0 rgba(68, 53, 47, .11);
  cursor: pointer;
  transition: transform 190ms cubic-bezier(.2,.8,.3,1), border 180ms ease, box-shadow 180ms ease;
}

.element-card:nth-child(2) { background-color: #e8f3e8; }
.element-card:nth-child(3) { background-color: #eceaf4; }

.element-card::before {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1.5px dashed rgba(68, 53, 47, .14);
  border-radius: 17px;
}

.element-card::after {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid rgba(68, 53, 47, .25);
  border-radius: 50%;
}

.element-card:not(:disabled):hover {
  z-index: 2;
  transform: translateY(-9px) rotate(-1.3deg);
  border-color: var(--ink);
  box-shadow: 0 15px 0 rgba(68, 53, 47, .12), 0 25px 30px rgba(68, 53, 47, .12);
}

.element-card:nth-child(2):not(:disabled):hover { transform: translateY(-9px) rotate(1deg); }
.element-card:nth-child(3):not(:disabled):hover { transform: translateY(-9px) rotate(-.5deg); }

.element-card.is-selected {
  z-index: 2;
  border-color: var(--teal-dark);
  background-color: #dff3eb;
  box-shadow: 0 0 0 4px rgba(23, 156, 145, .2), 0 9px 0 rgba(23, 126, 118, .16);
  transform: translateY(-5px);
}

.element-card.is-selected::after {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  content: "✓";
  border: 2px solid var(--ink);
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.element-card.is-wrong {
  border-color: var(--coral-dark);
  background-color: #fde3da;
  animation: card-shake 430ms ease;
}

.element-card.is-correct {
  border-color: var(--teal-dark);
  background-color: #dff3df;
  animation: card-correct 680ms cubic-bezier(.17,.89,.32,1.38);
}

.element-card:disabled { cursor: default; }

@keyframes card-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-2deg); }
  40% { transform: translateX(7px) rotate(2deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}

@keyframes card-correct {
  0% { transform: scale(1); }
  45% { transform: scale(1.08) translateY(-8px); }
  100% { transform: scale(1.02) translateY(-3px); }
}

.element-character {
  --character-main: #dbe5ea;
  --character-shade: #91a5af;
  position: relative;
  align-self: center;
  width: 82%;
  height: 205px;
  transform: translateY(4px);
}

.element-card__label {
  position: relative;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: end;
  width: calc(100% + 24px);
  min-height: 92px;
  padding: 9px 8px 10px;
  border-top: 2px solid rgba(68, 53, 47, .2);
  background: rgba(255, 253, 247, .92);
  text-align: center;
}

.element-card__name {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .05em;
}

.element-card__pinyin {
  margin-top: 3px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.element-card__identity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.element-card__identity b {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 21px;
  padding: 0 5px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 11px;
}

.character-shadow {
  position: absolute;
  right: 13%;
  bottom: 4%;
  left: 13%;
  height: 12%;
  border-radius: 50%;
  background: rgba(68, 53, 47, .13);
  filter: blur(2px);
}

.character-body {
  position: absolute;
  z-index: 2;
  top: 19%;
  left: 50%;
  width: 70%;
  height: 64%;
  border: 4px solid var(--ink);
  border-radius: 47% 53% 44% 50%;
  background: linear-gradient(135deg, var(--character-main) 0 48%, var(--character-shade) 100%);
  box-shadow: inset 11px 12px 0 rgba(255,255,255,.28), inset -9px -12px 0 rgba(68,53,47,.1), 0 10px 0 rgba(68,53,47,.08);
  transform: translateX(-50%);
}

.character-body::before,
.character-body::after {
  position: absolute;
  top: 43%;
  width: 12%;
  height: 16%;
  content: "";
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}

.character-body::before { left: 26%; }
.character-body::after { right: 26%; }

.character-eyes::before,
.character-eyes::after {
  position: absolute;
  z-index: 4;
  top: 51%;
  width: 5.5%;
  height: 7%;
  content: "";
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 1px 1px 0 #fff;
}

.character-eyes::before { left: 37%; }
.character-eyes::after { right: 37%; }

.character-mouth {
  position: absolute;
  z-index: 5;
  top: 63%;
  left: 50%;
  width: 15%;
  height: 8%;
  border-bottom: 3px solid var(--ink);
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
}

.character-cheeks::before,
.character-cheeks::after {
  position: absolute;
  z-index: 4;
  top: 61%;
  width: 13%;
  height: 8%;
  content: "";
  border-radius: 50%;
  background: rgba(238, 111, 93, .28);
}

.character-cheeks::before { left: 18%; }
.character-cheeks::after { right: 18%; }

.character-arm::before,
.character-arm::after {
  position: absolute;
  z-index: 1;
  top: 48%;
  width: 29%;
  height: 13%;
  content: "";
  border: 4px solid var(--ink);
  border-radius: 99px;
  background: var(--character-shade);
}

.character-arm::before { left: 2%; transform: rotate(-27deg); }
.character-arm::after { right: 2%; transform: rotate(27deg); }

.character-foot::before,
.character-foot::after {
  position: absolute;
  z-index: 3;
  bottom: 8%;
  width: 26%;
  height: 12%;
  content: "";
  border: 4px solid var(--ink);
  border-radius: 50% 50% 42% 42%;
  background: var(--character-shade);
}

.character-foot::before { left: 18%; transform: rotate(-8deg); }
.character-foot::after { right: 18%; transform: rotate(8deg); }

.character-shine {
  position: absolute;
  z-index: 5;
  top: 28%;
  left: 31%;
  width: 15%;
  height: 8%;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  transform: rotate(-28deg);
}

.character-aura {
  position: absolute;
  z-index: 0;
  inset: 8%;
  border: 3px dashed rgba(68, 53, 47, .15);
  border-radius: 50%;
  animation: aura-turn 14s linear infinite;
}

@keyframes aura-turn { to { transform: rotate(360deg); } }

.element-character[data-kind="gas"] .character-body {
  top: 22%;
  width: 76%;
  height: 57%;
  border-radius: 48% 52% 44% 56%;
  opacity: .76;
  box-shadow: inset 11px 12px 0 rgba(255,255,255,.45), 0 0 24px var(--character-main);
}

.element-character[data-kind="gas"] .character-body::selection { background: transparent; }
.element-character[data-kind="gas"] .character-arm::before,
.element-character[data-kind="gas"] .character-arm::after { opacity: .65; }

.element-character[data-kind="balloon"] .character-body {
  top: 9%;
  width: 65%;
  height: 66%;
  border-radius: 50% 50% 45% 45%;
}

.element-character[data-kind="balloon"] .character-body > .balloon-knot {
  position: absolute;
  bottom: -16%;
  left: 43%;
  width: 16%;
  height: 17%;
  border: 3px solid var(--ink);
  background: var(--character-shade);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.element-character[data-kind="balloon"] .character-foot { display: none; }

.element-character[data-kind="metal"] .character-body,
.element-character[data-kind="wafer"] .character-body {
  border-radius: 22% 26% 19% 24%;
}

.element-character[data-kind="wafer"] .character-body {
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,.18) 48% 52%, transparent 53%) 0 0 / 28% 28%,
    linear-gradient(transparent 47%, rgba(255,255,255,.18) 48% 52%, transparent 53%) 0 0 / 28% 28%,
    linear-gradient(135deg, var(--character-main), var(--character-shade));
}

.element-character[data-kind="coil"] .character-body {
  width: 68%;
  height: 61%;
  border-radius: 50%;
  background: radial-gradient(circle, #f8ecd9 0 25%, var(--ink) 26% 29%, var(--character-main) 30% 56%, var(--character-shade) 100%);
}

.element-character[data-kind="coil"] .character-body::before,
.element-character[data-kind="coil"] .character-body::after { top: 42%; }

.element-character[data-kind="sheet"] .character-body {
  border-radius: 15% 27% 13% 18%;
  transform: translateX(-50%) rotate(-3deg);
}

.element-character[data-kind="gem"] .character-body {
  width: 76%;
  height: 65%;
  border-radius: 0;
  clip-path: polygon(50% 0, 91% 24%, 78% 83%, 50% 100%, 19% 83%, 8% 25%);
}

.element-character[data-kind="glow"] .character-body {
  box-shadow: inset 11px 12px 0 rgba(255,255,255,.32), 0 0 18px var(--character-main), 0 0 40px var(--character-main);
}

.element-character[data-kind="soft-metal"] .character-body,
.element-character[data-kind="drop"] .character-body {
  top: 30%;
  width: 78%;
  height: 50%;
  border-radius: 48% 52% 38% 44%;
}

.element-character[data-kind="drop"] .character-body {
  top: 14%;
  width: 61%;
  height: 68%;
  border-radius: 52% 48% 48% 52%;
  clip-path: polygon(50% 0, 89% 49%, 91% 73%, 74% 94%, 50% 100%, 24% 93%, 8% 72%, 12% 48%);
}

.element-character[data-kind="battery"] .character-body {
  width: 60%;
  height: 69%;
  border-radius: 25% 25% 18% 18%;
}

.element-character[data-kind="battery"] .character-body > .character-cap {
  position: absolute;
  top: -10%;
  left: 34%;
  width: 32%;
  height: 12%;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--character-shade);
}

.element-character[data-kind="bulb"] .character-body {
  top: 14%;
  width: 67%;
  height: 64%;
  border-radius: 50% 50% 37% 37%;
}

.element-character[data-kind="mirror"] .character-body {
  width: 66%;
  height: 68%;
  border-radius: 50%;
  box-shadow: inset 14px 14px 0 rgba(255,255,255,.58), inset -10px -12px 0 rgba(68,53,47,.09), 0 10px 0 rgba(68,53,47,.08);
}

.element-character[data-kind="coin"] .character-body {
  top: 25%;
  width: 75%;
  height: 54%;
  border-radius: 50%;
}

.element-character[data-kind="photo"] .character-body {
  border-radius: 42% 46% 37% 39%;
  box-shadow: inset 11px 12px 0 rgba(255,255,255,.19), inset -9px -12px 0 rgba(0,0,0,.12), 0 10px 0 rgba(68,53,47,.08);
}

.selection-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 12px 14px 12px 17px;
  border: 2px dashed rgba(23, 126, 118, .34);
  border-radius: 16px;
  background: #e8f5ed;
}

.selection-confirm[hidden] { display: none; }

.selection-confirm p {
  margin: 0;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.55;
}

.selection-confirm .primary-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 18px;
}

.selection-confirm .primary-button:disabled {
  border-color: #8d8880;
  background: #bcb7ad;
  box-shadow: 0 4px 0 #8d8880;
  cursor: not-allowed;
  opacity: .72;
  transform: none;
}

.feedback-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 25px;
  padding: 9px 14px;
  border: 1.5px solid rgba(68, 53, 47, .1);
  border-radius: 13px;
  background: #f5efe4;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.feedback-face {
  position: relative;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.feedback-face::before {
  position: absolute;
  top: 8px;
  left: 6px;
  width: 3px;
  height: 3px;
  content: "";
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 8px 0 0 var(--ink);
}

.feedback-face::after {
  position: absolute;
  left: 8px;
  bottom: 5px;
  width: 7px;
  height: 4px;
  content: "";
  border-bottom: 2px solid var(--ink);
  border-radius: 50%;
}

.feedback-bar.is-wrong {
  border-color: rgba(213, 84, 66, .32);
  background: #fce5dc;
  color: #9c4338;
}

.feedback-bar.is-correct {
  border-color: rgba(17, 118, 111, .28);
  background: #e1f2e5;
  color: var(--teal-dark);
}

.hint-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  width: max-content;
  max-width: 190px;
  min-height: 48px;
  margin: 0 0 0 auto;
  padding: 6px 12px 6px 7px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff4c3;
  box-shadow: 0 4px 0 rgba(173, 124, 37, .42), 0 9px 16px rgba(86, 62, 36, .12);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hint-button .hint-button__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.hint-button .hint-button__icon::before {
  transform: scale(.68);
}

.hint-button:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 10px 0 #ad7c25, 0 20px 34px rgba(86, 62, 36, .24);
}

.hint-button__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--paper);
  transform: rotate(-3deg);
}

.hint-button__icon::before {
  width: 25px;
  height: 31px;
  content: "";
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: #fff7d7;
  box-shadow: 4px 4px 0 rgba(68, 53, 47, .12);
}

.hint-paper-lines {
  position: absolute;
  top: 17px;
  left: 14px;
  width: 18px;
  height: 2px;
  background: var(--coral);
  box-shadow: 0 6px 0 var(--teal), 0 12px 0 var(--ink-soft);
}

.hint-button > span:last-child { display: flex; flex-direction: column; align-items: flex-start; }

.hint-button small { font-size: 9px; font-weight: 800; }

.hint-button strong { font-size: 14px; letter-spacing: .03em; }

/* Modal */
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.modal[open] {
  display: grid;
  place-items: center;
  animation: modal-in 220ms ease both;
}

.modal::backdrop { background: transparent; }

.modal-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: rgba(49, 44, 39, .58);
  backdrop-filter: blur(5px);
}

@keyframes modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hint-sheet,
.result-card {
  position: relative;
  width: min(92vw, 470px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 3px solid var(--ink);
  color: var(--ink);
  box-shadow: 15px 18px 0 rgba(39, 34, 30, .23);
  animation: sheet-pop 420ms cubic-bezier(.18,.89,.3,1.24) both;
}

@keyframes sheet-pop {
  from { opacity: 0; transform: translateY(22px) scale(.92) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.hint-sheet {
  padding: 47px 43px 33px;
  overflow-x: hidden;
  border-radius: 9px 25px 13px 29px;
  background:
    linear-gradient(rgba(92, 138, 119, .08) 1px, transparent 1px) 0 0 / 100% 31px,
    #fff8d8;
  transform: rotate(-.5deg);
}

.knowledge-got-it { width: 100%; margin-top: 23px; }

.hint-sheet::before,
.hint-sheet::after {
  position: absolute;
  content: "";
  background: rgba(246, 201, 76, .55);
}

.hint-sheet::before { top: 14px; left: -12px; width: 86px; height: 21px; transform: rotate(-7deg); }
.hint-sheet::after { right: -10px; bottom: 17px; width: 71px; height: 20px; transform: rotate(8deg); }

.modal-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid rgba(68, 53, 47, .16);
  border-radius: 50%;
  background: rgba(255, 253, 247, .7);
  cursor: pointer;
}

.modal-close svg { width: 20px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }

.hint-pin {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 4px 0 rgba(68,53,47,.16);
  transform: translateX(-50%);
}

.hint-eyebrow { display: block; margin-bottom: 8px; color: var(--coral-dark); }
.hint-sheet h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }

.hint-divider {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 17px;
  margin: 18px 0;
}

.hint-divider::before,
.hint-divider::after {
  flex: 1;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--ink-soft) 0 8px, transparent 8px 13px);
  opacity: .36;
}

.hint-divider span {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  transform: rotate(45deg);
}

.hint-sheet p {
  min-height: 105px;
  margin: 0;
  padding-right: 88px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.85;
}

.hint-mayor {
  position: absolute;
  right: 33px;
  bottom: 93px;
  width: 78px;
  height: 78px;
  transform: rotate(5deg);
}

.hint-mayor__face {
  position: absolute;
  inset: 8px 5px 0;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 45% 45%;
  background: #f5ad4f;
}

.hint-mayor__ear {
  position: absolute;
  top: 3px;
  width: 28px;
  height: 28px;
  border: 3px solid var(--ink);
  background: #f5ad4f;
  transform: rotate(45deg);
}

.hint-mayor__ear--left { left: 7px; }
.hint-mayor__ear--right { right: 7px; }
.hint-mayor__face i,
.hint-mayor__face b { position: absolute; top: 27px; width: 6px; height: 8px; border-radius: 50%; background: var(--ink); }
.hint-mayor__face i { left: 17px; }
.hint-mayor__face b { right: 17px; }
.hint-mayor__face em { position: absolute; bottom: 14px; left: 50%; width: 18px; height: 8px; border-bottom: 3px solid var(--ink); border-radius: 50%; transform: translateX(-50%); }

.hint-got-it { width: 100%; margin-top: 23px; }

.result-card {
  padding: 54px 39px 35px;
  overflow: visible;
  border-radius: 28px;
  background: var(--paper);
  text-align: center;
}

.result-card::before {
  position: absolute;
  inset: 9px;
  content: "";
  border: 2px dashed rgba(68, 53, 47, .16);
  border-radius: 20px;
  pointer-events: none;
}

.result-star {
  position: absolute;
  top: -43px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: var(--yellow);
  font-size: 80px;
  line-height: 1;
  text-shadow: -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink), 0 7px 0 rgba(68,53,47,.12);
  transform: translateX(-50%) rotate(-6deg);
}

.result-kicker { display: block; margin-top: 6px; color: var(--teal-dark); }
.result-card h2 { margin: 8px 0 8px; font-size: 39px; }
.result-card p { margin: 0 auto; color: var(--ink-soft); font-size: 16px; font-weight: 700; line-height: 1.75; }

.earned-stars {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 21px 0 25px;
}

.earned-stars span {
  color: #d8cdbb;
  font-size: 41px;
  line-height: 1;
  -webkit-text-stroke: 2px var(--ink);
  filter: drop-shadow(0 4px 0 rgba(68,53,47,.12));
}

.earned-stars span.is-earned {
  color: var(--yellow);
  animation: earned-pop 460ms cubic-bezier(.2,.9,.3,1.4) both;
}

.earned-stars span:nth-child(2) { animation-delay: 100ms; }
.earned-stars span:nth-child(3) { animation-delay: 200ms; }

@keyframes earned-pop { from { transform: scale(.2) rotate(-30deg); } to { transform: scale(1) rotate(0); } }

.result-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 11px;
}

.confetti i {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 19px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--coral);
  animation: confetti-float 2.2s ease-in-out infinite;
}

.confetti i:nth-child(1) { top: 18px; left: 22px; transform: rotate(20deg); }
.confetti i:nth-child(2) { top: 72px; left: -16px; background: var(--yellow); transform: rotate(-25deg); animation-delay: -.4s; }
.confetti i:nth-child(3) { top: 17px; right: 25px; background: var(--teal); transform: rotate(-28deg); animation-delay: -.8s; }
.confetti i:nth-child(4) { top: 87px; right: -13px; background: #9d90cf; transform: rotate(32deg); animation-delay: -.2s; }
.confetti i:nth-child(5) { bottom: 48px; left: -11px; background: #78c99a; transform: rotate(53deg); animation-delay: -1s; }
.confetti i:nth-child(6) { bottom: 25px; right: -14px; background: #ed8eb5; transform: rotate(-48deg); animation-delay: -.6s; }
.confetti i:nth-child(7) { top: 140px; left: 15px; width: 12px; height: 12px; border-radius: 50%; background: #7dbfd2; animation-delay: -.9s; }
.confetti i:nth-child(8) { top: 148px; right: 13px; width: 12px; height: 12px; border-radius: 50%; background: #f5b34d; animation-delay: -.3s; }

@keyframes confetti-float { 0%,100% { margin-top: 0; } 50% { margin-top: -8px; } }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  max-width: calc(100vw - 32px);
  padding: 12px 19px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1120px) {
  .hero-card { grid-template-columns: 1.08fr .92fr; }
  .hero-copy { padding: 42px; }
  .hero-copy h1 { font-size: 61px; }
  .route-card { min-height: 116px; }
  .speech-bubble { left: 20px; top: 96px; transform: scale(.87) rotate(-2deg); }
  .town-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-layout { grid-template-columns: 1fr; }
  .learning-index { align-self: auto; height: auto; max-height: none; }
  .learning-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; max-height: 360px; }
  .learning-page-tabs { grid-template-columns: repeat(4, minmax(58px, 1fr)); }
  .learning-detail__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .learning-skill { grid-column: 1 / -1; }
  .level-layout { grid-template-columns: minmax(265px, .62fr) minmax(500px, 1.38fr); }
  .question-panel { padding: 35px; }
  .element-card { min-height: 310px; }
}

@media (max-width: 880px) {
  :root { --header-height: 72px; }
  .app-shell { padding-inline: 16px; }
  .hero-card { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 45px 36px 38px; }
  .hero-copy::before { display: none; }
  .hero-copy h1 { font-size: clamp(52px, 11vw, 75px); }
  .route-selector { max-width: none; }
  .hero-scene { min-height: 520px; }
  .mayor-mascot { width: min(67%, 365px); }
  .feature-list { margin-top: 38px; }
  .learning-hero { align-items: flex-start; flex-direction: column; }
  .learning-hero__badge { align-self: flex-end; margin-top: -96px; }
  .learning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-detail__top { grid-template-columns: 1fr; }
  .learning-use-grid { grid-template-columns: 1fr; }
  .learning-identity-board .learning-use-grid { grid-template-columns: 1fr; }
  .map-heading { align-items: flex-start; }
  .map-summary { flex: 0 0 auto; }
  .level-layout { grid-template-columns: 1fr; overflow: visible; }
  .story-panel { min-height: 370px; border-right: 0; border-bottom: 2px dashed var(--line); }
  .story-illustration { position: absolute; inset: 0; height: auto; margin: 0; opacity: 1; border-radius: 0; }
  .place-badge { margin-bottom: 0; }
  .scene-landmark { bottom: 17%; scale: .88; }
  .scene-prop { right: 12%; bottom: 9%; scale: .86; }
  .story-copy { margin-top: 0; }
  .question-panel { padding: 34px 28px 38px; }
  .element-card { min-height: 310px; }
}

@media (max-width: 640px) {
  .app-shell { padding: 0 12px 24px; }
  .app-header { padding-inline: 2px; }
  .brand-mark { width: 42px; height: 42px; transform: scale(.9); }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { display: none; }
  .round-button { width: 43px; height: 43px; }
  .mini-progress { padding: 0 10px; font-size: 11px; }
  .hero-card { border-radius: 26px; }
  .hero-copy { padding: 37px 24px 32px; }
  .eyebrow-pill { font-size: 11px; }
  .hero-copy h1 { gap: 8px; margin-block: 24px 18px; font-size: clamp(48px, 16vw, 68px); }
  .hero-copy h1 strong { width: 100%; font-size: .64em; }
  .hero-lead { font-size: 15px; line-height: 1.75; }
  .route-selector { grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .route-card { min-height: 98px; }
  .hero-actions { align-items: flex-start; flex-direction: column; margin-top: 28px; }
  .primary-button--large { width: 100%; }
  .feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 22px; }
  .feature-list li:last-child { grid-column: 1 / -1; }
  .learning-library { border-radius: 26px; }
  .learning-hero { padding: 28px 22px; }
  .learning-hero__badge { width: 96px; height: 96px; margin-top: -34px; }
  .learning-layout { padding: 16px; }
  .learning-grid { grid-template-columns: 1fr; height: auto; max-height: 310px; padding: 10px; }
  .learning-page-tabs { padding: 10px; gap: 7px; }
  .learning-page-tab { min-height: 40px; }
  .learning-character-card,
  .learning-talents-card,
  .learning-skill,
  .learning-uses-section { border-radius: 22px; padding: 17px; }
  .learning-identity div { grid-template-columns: 72px minmax(0, 1fr); }
  .talent-meter { grid-template-columns: 74px minmax(0, 1fr); }
  .talent-meter__scale { display: none; }
  .learning-actions { flex-direction: column; }
  .learning-actions .primary-button,
  .learning-actions .secondary-button { width: 100%; }
  .hero-scene { min-height: 430px; }
  .mayor-mascot { width: min(82%, 340px); }
  .speech-bubble { top: 51px; left: 15px; transform: scale(.78) rotate(-2deg); transform-origin: left top; }
  .sun-badge { top: 35px; right: 32px; transform: scale(.72); }
  .map-heading { flex-direction: column; gap: 17px; }
  .map-heading h2 { font-size: 34px; }
  .map-summary { width: 100%; }
  .chapter-tabs { overflow-x: auto; padding-bottom: 3px; }
  .chapter-tab { flex: 0 0 auto; }
  .town-map { grid-template-columns: 1fr; padding: 14px; border-radius: 24px; }
  .district { padding: 14px; }
  .map-footer-actions { align-items: center; }
  .level-topbar { margin-bottom: 10px; }
  .back-button span { display: none; }
  .level-progress-copy { flex: 1; justify-content: flex-end; min-width: 0; }
  .level-progress-copy span:first-child { min-width: 0; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #level-route-total { display: none; }
  .level-progress-track { width: min(29vw, 112px); }
  .level-layout { border-radius: 23px; }
  .story-panel { min-height: 330px; padding: 19px; }
  .place-badge { margin-bottom: 0; scale: .9; transform-origin: left top; }
  .scene-cloud--one { left: 3%; }
  .scene-cloud--two { right: 2%; }
  .scene-landmark { bottom: 16%; scale: .76; }
  .scene-prop { right: 7%; bottom: 8%; scale: .7; transform-origin: right bottom; }
  .scene-road {
    width: calc(var(--scene-road-width) * .82);
    height: min(var(--scene-road-height), 28%);
  }
  .story-copy { margin-bottom: 20px; padding: 14px 14px 15px; border-radius: 17px 17px 10px 17px; }
  .story-copy__heading { gap: 9px; }
  .story-letter-icon { width: 42px; height: 42px; border-radius: 12px; }
  .story-letter-icon::before { width: 23px; height: 17px; }
  .story-letter-icon::after { top: 17px; left: 11px; width: 15px; }
  .story-letter-icon i::before { top: 17px; right: 10px; width: 15px; }
  .story-copy__title small { font-size: 8px; }
  .story-label { font-size: 17px; }
  .story-read-first { padding: 4px 7px; font-size: 8px; }
  .story-copy p { margin: 10px 0 0 51px; font-size: var(--level-main-copy-size); line-height: var(--level-main-copy-line-height); }
  .narration-controls { flex-wrap: wrap; margin: -8px 0 18px 51px; }
  .replay-narration-button { min-height: 44px; }
  .question-panel { --level-main-copy-size: 21px; padding: 28px 17px 94px; }
  .question-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .question-count { width: 43px; height: 43px; }
  .question-heading h2 { font-size: var(--level-main-copy-size); }
  .question-kicker { font-size: 9px; }
  .hint-button { max-width: 168px; min-height: 44px; margin-left: auto; padding-right: 10px; }
  .element-options { grid-template-columns: 1fr; gap: 12px; }
  .element-card { grid-template-columns: minmax(112px, .82fr) minmax(0, 1.18fr); grid-template-rows: 1fr; min-height: 172px; aspect-ratio: auto; padding: 8px; border-width: 2px; border-radius: 17px; box-shadow: 0 5px 0 rgba(68,53,47,.11); }
  .element-card::before { inset: 6px; border-radius: 12px; }
  .element-card::after { top: 10px; right: 10px; width: 8px; height: 8px; }
  .element-character { width: 100%; height: 148px; }
  .element-card__label { align-self: stretch; justify-content: center; width: 100%; min-height: 0; padding: 10px 8px; border-top: 0; border-left: 2px solid rgba(68, 53, 47, .2); }
  .element-card__name { font-size: 17px; letter-spacing: .02em; }
  .element-card__pinyin { margin-top: 4px; font-size: 10px; letter-spacing: .03em; }
  .element-card__identity { gap: 5px; margin-top: 7px; font-size: 10px; letter-spacing: 0; }
  .element-card__identity b { min-width: 21px; height: 18px; padding: 0 3px; border-radius: 5px; font-size: 9px; }
  .selection-confirm { align-items: stretch; flex-direction: column; gap: 9px; margin-top: 14px; }
  .selection-confirm .primary-button { width: 100%; }
  .character-body { border-width: 3px; }
  .character-body::before,
  .character-body::after,
  .character-arm::before,
  .character-arm::after,
  .character-foot::before,
  .character-foot::after { border-width: 2px; }
  .character-mouth { border-width: 2px; }
  .feedback-bar { margin-top: 17px; font-size: 11px; }
  .hint-button__icon { width: 41px; height: 41px; }
  .hint-button__icon::before { transform: scale(.82); }
  .hint-button small { display: none; }
  .hint-button strong { font-size: 12px; }
  .hint-sheet { padding: 44px 27px 28px; }
  .hint-sheet h2 { font-size: 29px; }
  .hint-sheet p { min-height: 132px; padding-right: 62px; font-size: 16px; }
  .hint-mayor { right: 15px; bottom: 92px; transform: scale(.78) rotate(5deg); transform-origin: bottom right; }
  .result-card { padding: 51px 24px 27px; }
  .result-card h2 { font-size: 33px; }
  .result-actions { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .feature-list { grid-template-columns: 1fr; }
  .feature-list li:last-child { grid-column: auto; }
  .element-options { gap: 6px; }
  .question-panel { padding-inline: 13px; }
  .character-body::before,
  .character-body::after { border-width: 1.5px; }
  .mini-progress { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .story-panel,
  .story-panel.is-scene-entering .story-scene,
  .scene-cloud,
  .scene-stars,
  .scene-feature,
  .scene-landmark,
  .scene-character,
  .scene-prop {
    animation: none !important;
  }
}

/* Keep the short answer celebration visible even if the preview browser reports reduced motion. */
.story-panel.is-answer-celebrating .story-scene {
  animation: scene-celebration-pop 1.25s cubic-bezier(.17,.89,.26,1.35) both !important;
}

.story-panel.is-answer-celebrating .scene-landmark {
  animation: scene-landmark-cheer 1.2s cubic-bezier(.19,.86,.24,1.18) both !important;
}

.story-panel.is-answer-celebrating .scene-character {
  animation: scene-character-celebrate 1.25s cubic-bezier(.17,.89,.26,1.35) both !important;
}

.story-panel.is-answer-celebrating .scene-prop {
  animation: scene-prop-mega-pop 1.35s cubic-bezier(.16,.95,.24,1.26) both !important;
}

.story-panel.is-answer-celebrating .scene-reaction__part {
  animation: scene-confetti-burst 1.35s cubic-bezier(.17,.9,.24,1.18) both !important;
}

.story-panel[data-answer-kind="gas"].is-answer-celebrating .scene-prop {
  animation: scene-balloon-fly-away 1.55s cubic-bezier(.12,.74,.22,1) both !important;
}

.story-panel[data-answer-kind="gas"].is-answer-celebrating .scene-reaction__part {
  animation: scene-balloon-fly-away 1.55s cubic-bezier(.12,.74,.22,1) both !important;
}
