:root {
  --forest: #234e46;
  --ink: #253f44;
  --leaf: #dcecd8;
  --sky: #eef6ee;
  --peach: #fae4d9;
  --plum: #65455f;
  --sun: #f5c967;
  --body: "Nunito", sans-serif;
  --display: "Fredoka", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--sky);
  font-family: var(--body);
  font-size: 17px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #3069ab;
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
}
[hidden] {
  display: none !important;
}
.wonder-nav {
  max-width: 1320px;
  margin: auto;
  min-height: 100px;
  padding: 24px 42px;
  display: flex;
  align-items: center;
  gap: 44px;
}
.wonder-brand {
  font-family: var(--display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  white-space: nowrap;
}
.wonder-nav nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 800;
}
.nav-note {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #597267;
}
.wonder-hero {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 550px;
  align-items: center;
  padding: 15px 42px 40px;
}
.wonder-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.5;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-size: clamp(52px, 5.4vw, 80px);
  line-height: 1.06;
  margin: 24px 0;
}
.hero-copy h1 em {
  font-style: normal;
  color: #63917b;
  position: relative;
}
.hero-copy h1 em:after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 50%;
  background: var(--sun);
  transform: rotate(-4deg);
}
.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: #506861;
  margin-bottom: 30px;
}
.wonder-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--forest);
  color: white;
  border: 0;
  border-radius: 14px;
  padding: 15px 23px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 0 #133d36;
  transition: transform 0.18s;
}
.wonder-button:hover {
  transform: translateY(-3px);
}
.wonder-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #133d36;
}
.wonder-button.light {
  background: #f6e9c9;
  color: var(--forest);
  box-shadow: 0 4px 0 #bdaa81;
}
.hero-note {
  font-size: 12px;
  margin-top: 22px;
  color: #597267;
}
.hero-scene {
  height: 530px;
  position: relative;
}
.home-world {
  position: absolute;
  inset: -30px -35px -35px -30px;
  background: radial-gradient(ellipse, #d8ebcb 0, transparent 67%);
}
.home-world canvas,
.world-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.scene-label {
  position: absolute;
  bottom: 12px;
  left: 25%;
  background: #fff9e8;
  padding: 11px 18px;
  border-radius: 30px;
  font-size: 12px;
  box-shadow: 0 3px 0 #dddac7;
  transform: rotate(-3deg);
}
.floating-note {
  position: absolute;
  top: 16px;
  right: 12px;
  font-family: var(--display);
  font-size: 16px;
  transform: rotate(7deg);
  color: #55715b;
}
.worlds-section {
  max-width: 1320px;
  margin: auto;
  padding: 45px 42px 64px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading h2,
.story-shelf h2 {
  font-size: 42px;
  margin-top: 8px;
}
.section-heading > p {
  font-size: 14px;
  color: #60766c;
}
.world-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.world-card {
  border-radius: 28px;
  overflow: hidden;
  background: #dcebdc;
  box-shadow: 0 5px 0 #c7dcc9;
}
.bella-card {
  background: var(--peach);
  box-shadow: 0 5px 0 #e5cfc5;
}
.world-art {
  height: 260px;
  overflow: hidden;
  position: relative;
}
.world-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transition: transform 0.6s;
}
.world-card:hover .world-art img {
  transform: scale(1.04);
}
.world-stamp {
  position: absolute;
  left: 22px;
  top: 20px;
  background: #f9f5dfed;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(-3deg);
}
.world-card-copy {
  padding: 28px 30px;
  position: relative;
}
.world-card h3 {
  font-size: 32px;
  margin: 8px 0 10px;
}
.world-card-copy > p:not(.wonder-kicker) {
  font-size: 15px;
  line-height: 1.65;
  max-width: 340px;
}
.world-symbol {
  position: absolute;
  right: 28px;
  top: 22px;
  font-size: 44px;
  color: #63917b;
}
.bella-card .world-symbol {
  color: #c28298;
}
.bella-card .wonder-button {
  background: #735166;
  box-shadow: 0 4px 0 #553c4b;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
}
.text-link {
  font-size: 13px;
  font-weight: 900;
}
.small-link {
  display: inline-block;
  font-size: 12px;
  margin-top: 22px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.story-shelf {
  max-width: 1236px;
  margin: 5px auto 65px;
  padding: 38px;
  border-top: 1px solid #b8cbbb;
  border-bottom: 1px solid #b8cbbb;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 38px;
  align-items: center;
}
.story-shelf p:not(.wonder-kicker) {
  font-size: 14px;
  margin-top: 15px;
  line-height: 1.6;
}
.story-shelf .shelf-note {
  max-width: 300px;
  color: #65796f;
  font-size: 12px !important;
}
.daily-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.daily-cards > a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.daily-cards img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 15px;
}
.daily-art { position: relative; overflow: hidden; aspect-ratio: var(--art-aspect, 1.5); border-radius: 15px; background: #e0e8d8; }
.daily-art img[data-atlas="true"] { position: absolute; width: 200%; height: var(--art-height, 300%); max-width: none; max-height: none; left: calc(var(--art-column) * -100%); top: var(--art-top, 0%); object-fit: fill; border-radius: 0; }
.daily-cards span {
  font-size: 11px;
  color: #5e7567;
}
.daily-cards strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
}
.play-ribbon {
  max-width: 1236px;
  margin: 0 auto 50px;
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--forest);
  color: #f3f3d9;
  border-radius: 24px;
  padding: 30px 40px;
}
.play-ribbon > span {
  font-size: 60px;
  color: var(--sun);
}
.play-ribbon h2 {
  font-size: 31px;
}
.play-ribbon p {
  font-size: 13px;
  margin-top: 6px;
}
.play-ribbon > a {
  margin-left: auto;
  white-space: nowrap;
}
.wonder-footer {
  max-width: 1236px;
  margin: auto;
  padding: 20px 0 38px;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
}
.wonder-footer > p {
  color: #667b6e;
}
.wonder-footer details {
  margin-left: auto;
  max-width: 310px;
}
.wonder-footer summary {
  cursor: pointer;
}
.wonder-footer details p {
  margin-top: 10px;
  line-height: 1.6;
}
.daily-story-clock {
  display: none !important;
}
.world-flat {
  background: url("../assets/art-v2/bella/01-01.webp") center/cover;
  border-radius: 35%;
}
.voice-status {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 20px;
  border-radius: 14px;
  background: #fff8dd;
  color: #344b44;
  box-shadow: 0 4px 20px #1233;
  font: 700 13px var(--body);
  max-width: 90vw;
  text-align: center;
}
.voice-status:empty {
  display: none;
}
.adventure-body {
  background: #e5f0e7;
}
.adventure-body.theme-abby {
  background: #e9eff0;
}
.adventure-body .wonder-nav {
  min-height: 80px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.soft-button {
  border: 1px solid #b8cabb;
  background: #ffffffa6;
  color: var(--ink);
  border-radius: 12px;
  min-height: 44px;
  padding: 9px 16px;
  font-weight: 800;
  font-size: 13px;
}
.wonder-nav > .soft-button {
  margin-left: auto;
}
.adventure-main {
  max-width: 1100px;
  margin: auto;
  padding: 12px 30px 25px;
}
.adventure-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.adventure-heading h1 {
  font-size: 43px;
  margin-top: 5px;
}
.progress-pill {
  background: #fff9df;
  border-radius: 30px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.adventure-scene {
  position: relative;
  height: min(48vh, 470px);
  min-height: 300px;
  background: radial-gradient(ellipse, #c5dfc3 0, transparent 68%);
}
.theme-abby .adventure-scene {
  background: radial-gradient(ellipse, #bdd7d8 0, transparent 68%);
}
.world-canvas {
  position: absolute;
  inset: -25px 0 -20px;
}
.scene-message {
  position: absolute;
  bottom: 12px;
  left: 0;
  font-size: 11px;
  color: #536d60;
  pointer-events: none;
}
.past-adventures {
  position: absolute;
  top: 16px;
  right: 0;
  font-size: 11px;
  color: #536d60;
}
.orbit-buttons {
  position: absolute;
  bottom: 10px;
  right: 0;
  display: flex;
  gap: 8px;
}
.orbit-buttons button {
  width: 44px;
  height: 44px;
  background: #ffffffbd;
  border: 1px solid #bacdbb;
  border-radius: 50%;
  font-size: 24px;
  color: var(--forest);
}
.quest-panel {
  position: relative;
  background: #fffdf3;
  border-radius: 25px;
  padding: 22px 28px;
  box-shadow: 0 5px 0 #c6d7c7;
}
.quest-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quest-title-row h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.quest-title-row .soft-button {
  margin-left: auto;
}
.colour-cue {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 0 0 1px #aaa;
  border-radius: 50%;
}
.quest-feedback {
  font-size: 14px;
  margin: 10px 0 18px;
  min-height: 22px;
}
.quest-choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quest-choice {
  min-height: 62px;
  background: color-mix(in srgb, var(--choice) 30%, white);
  border: 2px solid color-mix(in srgb, var(--choice) 65%, #555);
  border-bottom-width: 5px;
  color: #273f48;
  border-radius: 15px;
  font-family: var(--display);
  font-size: 20px;
}
.quest-choice:hover:enabled {
  transform: translateY(-3px);
}
.quest-choice:disabled {
  opacity: 0.65;
}
.quest-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  margin-top: 10px;
}
.text-button {
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
}
.adventure-footnote {
  font-size: 12px;
  text-align: center;
  margin-top: 20px;
  color: #536d60;
}
.adventure-footnote a {
  margin-left: 20px;
  text-decoration: underline;
}
@media (max-width: 800px) {
  .wonder-nav {
    padding: 20px;
    min-height: 76px;
    gap: 20px;
  }
  .wonder-brand {
    font-size: 24px;
  }
  .wonder-nav nav {
    gap: 16px;
    font-size: 12px;
  }
  .nav-note {
    display: none;
  }
  .wonder-hero {
    padding: 20px;
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }
  .hero-copy h1 {
    font-size: 58px;
  }
  .hero-description {
    font-size: 16px;
  }
  .hero-scene {
    height: 350px;
  }
  .home-world {
    inset: -20px 0;
  }
  .scene-label {
    left: 25%;
    bottom: 10px;
    font-size: 10px;
  }
  .floating-note {
    top: 15px;
    font-size: 13px;
  }
  .worlds-section {
    padding: 20px 20px 45px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .section-heading h2,
  .story-shelf h2 {
    font-size: 36px;
  }
  .world-cards {
    gap: 22px;
  }
  .world-art {
    height: 190px;
  }
  .world-card-copy {
    padding: 23px 20px;
  }
  .world-card h3 {
    font-size: 26px;
  }
  .world-symbol {
    display: none;
  }
  .card-actions {
    flex-direction: column;
    align-items: start;
    gap: 18px;
  }
  .story-shelf {
    margin: 0 20px 35px;
    padding: 28px 0;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .play-ribbon {
    margin: 0 20px 30px;
    padding: 25px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .play-ribbon > span {
    display: none;
  }
  .play-ribbon > a {
    margin-left: 0;
  }
  .wonder-footer {
    margin: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .wonder-footer details {
    margin-left: 0;
  }
  .adventure-main {
    padding: 10px 16px 25px;
  }
  .adventure-heading h1 {
    font-size: 32px;
  }
  .progress-pill {
    font-size: 11px;
    padding: 10px 12px;
  }
  .quest-panel {
    padding: 20px;
  }
  .quest-title-row h2 {
    font-size: 22px;
  }
  .quest-choice {
    font-size: 17px;
  }
  .adventure-scene {
    min-height: 260px;
    height: 37vh;
  }
  .adventure-body .wonder-nav {
    padding: 12px 16px;
  }
  .adventure-body .wonder-nav nav {
    gap: 12px;
  }
  .adventure-body .wonder-brand {
    font-size: 21px;
  }
}
@media (max-width: 520px) {
  .world-cards {
    grid-template-columns: 1fr;
  }
  .world-art {
    height: 240px;
  }
  .world-card h3 {
    font-size: 30px;
  }
  .card-actions {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .wonder-nav nav {
    margin-left: auto;
  }
  .adventure-body .wonder-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .adventure-body .wonder-nav > .soft-button {
    min-height: 36px;
    padding: 6px 12px;
  }
  .adventure-body .wonder-nav nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .adventure-heading h1 {
    font-size: 29px;
  }
  .adventure-scene {
    height: 290px;
  }
  .scene-message {
    font-size: 10px;
    max-width: 160px;
  }
  .quest-title-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .quest-title-row h2 {
    font-size: 23px;
    flex: 1;
  }
  .quest-title-row .soft-button {
    padding: 8px 12px;
  }
  .quest-choices {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .quest-choice {
    font-size: 20px;
    min-height: 57px;
  }
  .quest-feedback {
    font-size: 13px;
  }
  .adventure-footnote a {
    display: block;
    margin: 8px 0;
  }
  .hero-copy h1 {
    font-size: 54px;
  }
  .hero-scene {
    height: 310px;
  }
  .scene-label {
    left: 16%;
  }
  .daily-cards strong {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.activity-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.activity-tabs button {
  min-height: 44px;
  border: 1px solid #bdcdbb;
  border-radius: 30px;
  padding: 9px 18px;
  background: transparent;
  color: #365747;
  font-size: 13px;
  font-weight: 800;
}
.activity-tabs button[aria-pressed="true"] {
  background: #284f45;
  color: #fff9e8;
  border-color: #284f45;
}
.build-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.build-tools button {
  min-height: 58px;
  border: 2px solid #cadac5;
  border-radius: 14px;
  background: #edf3e5;
  color: #365747;
  font-family: var(--display);
  font-size: 21px;
}
.build-tools button[aria-pressed="true"] {
  border-color: #3f735d;
  background: #d1e5c7;
  box-shadow: 0 3px 0 #85a17a;
}
@media (max-width: 520px) {
  .build-tools {
    grid-template-columns: 1fr 1fr;
  }
  .activity-tabs button {
    font-size: 12px;
    padding: 9px 14px;
  }
}
.planted-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.planted-list:empty {
  display: none;
}
.planted-list span {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 20px;
  background: #f0e4c5;
  color: #5b6549;
}
.activity-tabs {
  position: relative;
  z-index: 2;
}
.adventure-heading {
  position: relative;
  z-index: 2;
}
.home-world {
  pointer-events: none;
}
.voice-status button {
  margin-left: 10px;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eadfbd;
  color: #344b44;
  font-size: 20px;
  cursor: pointer;
}
.world-flat {
  background-color: #d0e4c9;
}

/* An illustrated doorway into two very different little places. */
.wonder-home {
  background: #fff8ed;
  color: #3d3458;
}
.wonder-home .wonder-nav {
  max-width: none;
  background: #fff8ed;
  min-height: 86px;
  padding: 20px 5vw;
}
.panorama-hero {
  position: relative;
  isolation: isolate;
  display: block;
  max-width: none;
  min-height: 620px;
  height: min(850px, calc(100svh - 86px));
  padding: 38px 5vw 30px;
  overflow: hidden;
  background: #4d496b;
}
.panorama {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.panorama-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(29, 27, 64, 0.45),
    transparent 48%,
    rgba(28, 25, 59, 0.2)
  );
}
.panorama-hero .hero-copy {
  padding: 0;
  text-align: center;
  max-width: 760px;
  margin: auto;
  color: #fff8e8;
}
.panorama-hero h1 {
  font-size: clamp(48px, 5.7vw, 86px);
  line-height: 1.01;
  letter-spacing: -0.045em;
  margin: 15px 0 14px;
  text-shadow: 0 3px 25px #35254b55;
}
.panorama-hero h1 em {
  color: #ffe7a3;
  font-style: normal;
}
.panorama-hero .hero-description {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 auto;
  color: #fff8e8;
}
.world-portals {
  position: absolute;
  bottom: 28px;
  left: 5vw;
  right: 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 1160px;
  margin: auto;
}
.portal {
  padding: 23px 28px;
  border: 1px solid #fff6cf66;
  border-radius: 24px;
  color: #fff8e8;
  background: #243846eb;
  box-shadow: 0 12px 40px #30253833;
  transition: transform 0.2s;
}
.portal:hover {
  transform: translateY(-5px);
}
.portal-bella {
  background: #fff2e5ef;
  color: #704b6f;
}
.portal span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.portal strong {
  font: 500 clamp(24px, 2.5vw, 36px) / 1.4 var(--display);
  display: block;
  margin-top: 5px;
}
.portal b {
  float: right;
  font-weight: 400;
}
.portal small {
  font-size: 14px;
}
.worlds-section {
  padding-top: 70px;
}
.world-card {
  box-shadow: 0 12px 35px #6b4e6420;
}
.adventure-body.theme-abby {
  background: #182b42;
  color: #fff0d4;
  --ink: #fff0d4;
  --forest: #ffe09b;
}
.adventure-body.theme-bella {
  background: #f9e5ea;
  color: #674569;
  --ink: #674569;
}
.adventure-body .wonder-nav {
  max-width: 1440px;
  min-height: 80px;
  padding: 18px 40px;
}
.adventure-main {
  max-width: 1440px;
  padding-top: 12px;
}
.adventure-heading h1 {
  font-size: clamp(36px, 4vw, 60px);
}
.adventure-body .activity-tabs {
  margin-bottom: 0;
  gap: 8px;
  flex-wrap: wrap;
}
.activity-tabs button {
  border-radius: 30px;
  padding: 12px 22px;
}
.theme-abby .activity-tabs button {
  background: #2b4156;
  color: #f7e9cc;
  border-color: #607285;
}
.theme-abby .activity-tabs button[aria-pressed="true"] {
  background: #ffe2a0;
  color: #263b4c;
}
.theme-bella .activity-tabs button[aria-pressed="true"] {
  background: #754a77;
  color: #fff4ec;
}
.adventure-scene {
  height: 520px;
  min-height: 0;
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 38px 38px 0 0;
}
.theme-abby .adventure-scene {
  background: radial-gradient(
    ellipse at 50% 45%,
    #416675 0%,
    #263c56 60%,
    #1b2b46 100%
  );
}
.theme-bella .adventure-scene {
  background: radial-gradient(
    ellipse at 50% 35%,
    #d9f4eb 0%,
    #a3dcdb 50%,
    #bdd4e9 100%
  );
}
.adventure-scene:before {
  content: "✧ · ✦ · ✧";
  position: absolute;
  top: 32px;
  left: 8%;
  font-size: 24px;
  color: #f2d698;
  letter-spacing: 1.4em;
  pointer-events: none;
}
.theme-bella .adventure-scene:before {
  content: "☁";
  font-size: 70px;
  color: #fff9ef;
}
.world-canvas {
  inset: 0;
}
.scene-message {
  background: #fff9edee;
  color: #4d4c61;
  bottom: 15px;
  border-radius: 20px;
  font-size: 12px;
  padding: 8px 16px;
}
.past-adventures {
  color: #fff0d4;
  background: #364c5dbb;
  padding: 7px 13px;
  border-radius: 20px;
}
.adventure-body .quest-panel {
  position: relative;
  margin: 0;
  max-width: none;
  border-radius: 0 0 32px 32px;
  background: #fff8ed;
  color: #423956;
  padding: 25px 32px 28px;
  box-shadow: 0 15px 40px #17263b22;
}
.quest-panel h2 {
  font-size: 30px;
}
.landmark-choices {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.landmark-choices button {
  border: 1px solid #d5c9db;
  border-radius: 16px;
  background: #f2eaf3;
  color: #554563;
  min-height: 58px;
  padding: 10px;
  font-weight: 800;
  font-size: 14px;
}
.landmark-choices button:disabled {
  background: #e0eede;
  color: #43634e;
  border-color: #bfdbba;
}
.walk-buttons {
  display: flex;
  gap: 7px;
}
.walk-buttons button {
  width: 45px;
  height: 45px;
  border: 1px solid #d5c9db;
  background: #fff8ed;
  border-radius: 50%;
  color: #674569;
}
.companion-badge {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: #ffe1a3;
  color: #9b6d47;
  font-size: 38px;
  flex-shrink: 0;
}
.note-lit {
  outline: 5px solid #875bb6;
  transform: translateY(-7px);
  box-shadow: 0 8px 0 #875bb644 !important;
}
.theme-abby .wonder-kicker {
  color: inherit;
}
.theme-abby .adventure-footnote,
.theme-abby .text-button {
  color: inherit;
}
.theme-abby .quest-panel .wonder-button {
  background: #354f5a;
  color: #fff4dc;
}
@media (min-width: 1100px) {
  .adventure-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    column-gap: 22px;
    padding: 12px 40px 35px;
  }
  .adventure-heading,
  .activity-tabs,
  .adventure-footnote {
    grid-column: 1/-1;
  }
  .adventure-scene {
    height: 470px;
    border-radius: 32px;
    margin-top: 18px;
  }
  .adventure-body .quest-panel {
    margin-top: 18px;
    border-radius: 32px;
    padding: 25px;
    align-self: stretch;
  }
  .landmark-choices {
    grid-template-columns: 1fr 1fr;
  }
  .quest-title-row {
    flex-wrap: wrap;
  }
  .quest-footer {
    flex-wrap: wrap;
    gap: 15px;
  }
  .quest-choices {
    grid-template-columns: 1fr 1fr;
  }
  .past-adventures {
    font-size: 11px;
  }
}
@media (max-width: 650px) {
  .panorama-hero {
    min-height: 730px;
    height: calc(100svh - 76px);
    padding-top: 30px;
  }
  .panorama {
    object-position: 51% center;
  }
  .panorama-hero h1 {
    font-size: 48px;
  }
  .panorama-hero .hero-description {
    font-size: 14px;
  }
  .panorama-hero .wonder-kicker {
    font-size: 9px;
  }
  .world-portals {
    grid-template-columns: 1fr;
    gap: 10px;
    bottom: 18px;
    left: 18px;
    right: 18px;
  }
  .portal {
    padding: 15px 20px;
    border-radius: 19px;
  }
  .portal strong {
    font-size: 27px;
  }
  .portal small {
    font-size: 12px;
  }
  .adventure-body .wonder-nav {
    padding: 16px 18px;
    gap: 15px;
  }
  .adventure-body .wonder-brand {
    font-size: 23px;
  }
  .adventure-body .wonder-nav nav {
    gap: 12px;
    font-size: 12px;
  }
  .adventure-body .wonder-nav .soft-button {
    font-size: 12px;
    padding: 9px;
  }
  .activity-tabs button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .adventure-scene {
    height: 370px;
    border-radius: 24px 24px 0 0;
  }
  .landmark-choices {
    grid-template-columns: repeat(3, 1fr);
  }
  .adventure-body .quest-panel {
    padding: 22px 18px;
  }
  .quest-panel h2 {
    font-size: 25px;
  }
  .past-adventures {
    display: none;
  }
  .scene-message {
    white-space: normal;
    text-align: center;
    max-width: 75%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal,
  .quest-choice {
    transition: none;
  }
  .portal:hover,
  .note-lit {
    transform: none;
  }
}

.theme-abby .progress-pill,
.theme-abby #world-sound {
  color: #314552;
  background: #ffedba;
}

.theme-abby .orbit-buttons button {
  color: #304657;
  background: #ffedba;
}

.adventure-scene:has(.world-flat) {
  height: 240px;
  background: url("../assets/worlds-panorama.png") center/cover;
}
.adventure-scene .world-flat {
  background: transparent;
}

/* Each sister's two course shortcuts (piano.html, french.html) and the
   grown-ups' progress link. Same underlined small-link voice as the games
   link above them, but each is a full 44px touch target. */
.learn-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 6px;
}
.small-link.learn-link,
.small-link.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 0;
  font-weight: 800;
}
.small-link.learn-link {
  font-size: 13px;
}
.learn-link:focus-visible,
.footer-link:focus-visible {
  outline: 3px solid #b37741;
  outline-offset: 2px;
  border-radius: 8px;
}
/* Four links no longer fit beside the brand on a phone: the nav takes its
   own row instead of running off the right edge. */
@media (max-width: 520px) {
  .wonder-home .wonder-nav {
    flex-wrap: wrap;
    row-gap: 4px;
    min-height: 0;
    padding-bottom: 8px;
  }
  .wonder-home .wonder-nav nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 8px;
  }
  .wonder-home .wonder-nav nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
