.adventure-choice {
  padding: 26px;
  border: 1px solid #cdded2;
  border-radius: 26px;
  background: var(--card, #fffdf8);
  margin: 22px 0 26px;
}
.adventure-choice h2 {
  font-size: 1.65rem;
  margin: 4px 0 18px;
}
.adventure-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}
.adventure-tab {
  min-height: 93px;
  border: 1px solid #bbd1c2;
  border-radius: 17px;
  padding: 12px 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.adventure-tab strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.3;
  margin-top: 7px;
}
.world-symbol {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}
.adventure-tab[aria-pressed="true"] {
  border: 2px solid #14806c;
  background: #dff5e9;
  box-shadow: 0 3px 0 #a4d3bd;
  color: #10392d;
}
.age-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.age-row label {
  font-weight: 700;
}
.age-row select {
  max-width: 100%;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid #91aa9d;
  border-radius: 12px;
  padding: 11px;
  min-height: 46px;
}
.compact {
  padding: 18px;
}
.game-board {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  padding: 24px;
  margin: 0 0 24px;
  border: 1px solid #c7d8cc;
  box-shadow: 0 16px 38px #123f2512;
}
.game-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.game-board-header .eyebrow {
  margin: 0;
}
.game-board-header strong {
  font-size: 0.85rem;
}
.map-mission {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: start;
  min-height: 60px;
  min-width: 0;
  width: 100%;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid #b7cbc0;
  background: #fffcf5;
  color: #153e31;
  cursor: pointer;
  font: inherit;
  font-size: 0.83rem;
  line-height: 1.35;
}
.map-mission:hover {
  box-shadow: 0 0 0 3px #9ddaaf;
}
.map-mission.next {
  outline: 3px solid #f3b94f;
  outline-offset: 2px;
}
.map-mission.done {
  background: #dcf4de;
}
.map-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e2eadb;
  font-weight: 800;
}
.curriculum-details {
  margin-top: 24px;
}
.curriculum-details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px;
}
.sky-board {
  background: linear-gradient(155deg, #e2f7ee, #d7e9fc);
}
.sky-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  background: #9baecb75;
  padding: 6px;
  border-radius: 18px;
}
.sky-tile {
  position: relative;
  min-height: 77px;
  background: #fff9eb;
  border-radius: 9px;
  padding: 4px;
  display: grid;
  align-items: center;
}
.sky-coordinate {
  font-size: 0.8rem;
  color: #45655f;
  text-align: center;
}
.sky-tile:nth-child(4n + 2),
.sky-tile:nth-child(4n + 4) {
  background: #d9f4e3;
}
.sky-tile.ladder {
  background: #fee1ad;
}
.sky-tile.slide {
  background: #e4ddf1;
}
.sky-shortcut {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 3px;
  color: #366166;
  font-size: 23px;
  pointer-events: none;
}
.sky-stop {
  display: block;
  border: 0;
  background: transparent;
  min-height: 64px;
  padding: 2px;
  font-size: 0.66rem;
}
.sky-stop .map-number {
  margin: 0 auto 3px;
}
.sky-stop span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}
.sky-token {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 2px solid #0b806c;
  border-radius: 50%;
  pointer-events: none;
}
.token {
  box-shadow: inset 0 0 0 3px #128672;
}
.dice {
  font-size: 46px;
  line-height: 1;
  color: #145b54;
}
.avenue-board {
  background: linear-gradient(145deg, #eedcc3, #f9f2e8);
}
.avenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 8px;
  border-radius: 19px;
  background: #9bad9433;
}
.avenue-property {
  background: #fffaf0;
  border-radius: 14px;
  padding: 8px;
  min-height: 142px;
  border-block-start: 8px solid #dea865;
}
.property-1,
.property-4 {
  border-color: #94c8a7;
}
.property-2,
.property-5 {
  border-color: #aea6d6;
}
.property-3,
.property-6 {
  border-color: #83bccc;
}
.avenue-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #346352;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
.avenue-centre img {
  width: min(100%, 120px);
  height: auto;
  border-radius: 50%;
}
.little-building {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 35px;
  gap: 5px;
  margin: 3px 0 7px;
}
.little-building i {
  display: block;
  width: 19px;
  height: 26px;
  background: linear-gradient(110deg, #ebce8f 70%, #af8954 71%);
  box-shadow: 4px 3px 0 #3c422823;
  border-radius: 3px 3px 0 0;
}
.little-building i:nth-child(2) {
  height: 36px;
  background: linear-gradient(110deg, #90beb5 70%, #4d867c 71%);
}
.little-building i:nth-child(3) {
  height: 19px;
}
.avenue-property .map-mission {
  font-size: 0.68rem;
  min-height: 70px;
  display: block;
  text-align: center;
  padding: 5px;
}
.avenue-property .map-number {
  margin: 0 auto 4px;
}
.mystery-board {
  background: radial-gradient(ellipse at top, #392e57, #172330);
  color: #f3ead7;
}
.mystery-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.clue-card {
  padding: 16px 12px 12px;
  border-radius: 17px;
  border: 1px solid #68717d;
  background: #222a3b;
  min-width: 0;
}
.clue-card.revealed {
  border-color: #afcfad;
  background: #2b3d40;
}
.clue-mark {
  font:
    700 30px Georgia,
    serif;
  color: #d9bd7b;
  display: block;
  margin-bottom: 12px;
}
.clue-card .map-mission {
  background: #f5eadb;
  border-color: #e5d9ad;
}
.clue-card p {
  font-size: 0.76rem;
  line-height: 1.6;
  margin-top: 10px;
}
.mystery-compass {
  position: absolute;
  inset-inline-end: 12px;
  inset-block-start: 46px;
  font-size: 110px;
  color: #ffffff0d;
  pointer-events: none;
}
.mystery-board .eyebrow {
  color: #dacbab;
}
.city-board {
  background: #162c38;
  color: #f9f7ec;
  min-height: 620px;
  isolation: isolate;
}
.city-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(155deg, #263b4b, #163a47 45%, #7b695a);
}
.city-scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #11252de0,
    #11252d22 28%,
    #0d2029c7 67%,
    #0d2029f5
  );
}
.city-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.city-horizon {
  position: absolute;
  inset: 40% 0 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 28px,
    #102f3b6b 29px 36px
  );
  clip-path: polygon(
    0 40%,
    8% 40%,
    8% 15%,
    17% 15%,
    17% 29%,
    30% 29%,
    30% 0,
    38% 0,
    38% 43%,
    51% 43%,
    51% 18%,
    60% 18%,
    60% 30%,
    75% 30%,
    75% 10%,
    83% 10%,
    83% 38%,
    100% 38%,
    100% 100%,
    0 100%
  );
}
.cinematic .city-horizon {
  display: none;
}
.city-board .eyebrow {
  color: #f4ead6;
}
.city-beacon {
  font-size: 0.72rem;
  color: #bff4d6;
}
.city-missions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 18px;
  margin-top: 52px;
  margin-bottom: 38px;
}
.city-marker {
  background: #123340ec;
  border: 1px solid #92bcb2;
  color: #fffce9;
  box-shadow: 0 7px 18px #00191c40;
  backdrop-filter: blur(5px);
  min-height: 65px;
}
.city-marker.done {
  background: #285743f0;
}
.city-marker .map-number {
  background: #37595b;
  color: #fce3b1;
}
.city-console {
  padding: 18px;
  border-radius: 17px;
  background: #0c1e28e8;
  border: 1px solid #79978e5e;
}
.city-console p {
  font-size: 0.86rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.memory-board {
  background: linear-gradient(145deg, #f1e6db, #e0eef5);
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.memory-card {
  border: 2px solid #83aca2;
  border-radius: 16px;
  min-height: 128px;
  padding: 10px;
  font: inherit;
  background: repeating-linear-gradient(
    45deg,
    #31655d,
    #31655d 8px,
    #386e64 8px,
    #386e64 16px
  );
  color: #fffdf4;
  cursor: pointer;
  box-shadow: 0 5px 0 #153f3850;
  transition: transform 0.18s;
}
.memory-card span {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 12px;
}
.memory-card strong {
  font-size: 0.73rem;
  line-height: 1.3;
  display: block;
}
.memory-card.revealed {
  background: #fff9ee;
  color: #254b3a;
}
.memory-card.matched {
  background: #d1ecd8;
  border-color: #4d8e70;
  box-shadow: none;
  opacity: 1;
}
.memory-card:active {
  transform: scale(0.97);
}
[data-age="family"] .adventure-tab {
  min-height: 110px;
}
[data-age="family"] .map-mission {
  min-height: 68px;
}
[data-age="family"] .game-board {
  border-width: 3px;
}
[data-theme="dark"] .adventure-choice {
  background: #1c332b;
  border-color: #406050;
}
[data-theme="dark"] .adventure-tab:not([aria-pressed="true"]) {
  border-color: #64796b;
}
[data-theme="dark"] .sky-board,
[data-theme="dark"] .avenue-board,
[data-theme="dark"] .memory-board {
  color: #163d2e;
}
@media (max-width: 600px) {
  .adventure-choice {
    padding: 18px 12px;
    border-radius: 19px;
  }
  .adventure-choice h2 {
    font-size: 1.35rem;
  }
  .adventure-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .adventure-tab {
    min-height: 78px;
    padding: 9px 5px;
  }
  .adventure-tab strong {
    font-size: 0.72rem;
  }
  .world-symbol {
    font-size: 1.4rem;
  }
  .game-board {
    padding: 15px;
    border-radius: 19px;
  }
  .game-board-header strong {
    font-size: 0.68rem;
  }
  .avenue-property {
    padding: 5px;
    min-height: 124px;
  }
  .avenue-grid {
    gap: 5px;
    padding: 5px;
  }
  .little-building {
    height: 29px;
  }
  .avenue-property .map-mission {
    font-size: 0.59rem;
  }
  .sky-tile {
    min-height: 69px;
  }
  .sky-stop {
    font-size: 0.59rem;
  }
  .memory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .memory-card {
    min-height: 114px;
  }
  .mystery-map {
    gap: 8px;
  }
  .clue-card {
    padding: 12px 7px;
  }
  .clue-card .map-mission {
    font-size: 0.71rem;
  }
  .city-board {
    min-height: 620px;
  }
  .city-missions {
    gap: 23px 9px;
    margin-top: 52px;
  }
  .city-marker {
    font-size: 0.71rem;
    padding: 8px;
    min-height: 70px;
  }
  .city-marker .map-number {
    width: 24px;
    height: 24px;
  }
  .city-console {
    padding: 14px;
  }
  .age-row {
    gap: 9px;
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .memory-card {
    transition: none;
  }
}
[data-motion="off"] .memory-card {
  transition: none;
}

.avenue-property .map-mission {
  font-size: 0.8rem;
}
.sky-stop {
  font-size: 0.76rem;
}
[data-text="large"] .avenue-grid,
[data-text="large"] .mystery-map,
[data-text="large"] .city-missions {
  grid-template-columns: 1fr 1fr;
}
[data-text="large"] .map-mission {
  font-size: 1rem;
}
[data-text="large"] .sky-stop {
  font-size: 0.8rem;
}
@media (max-width: 600px) {
  [data-text="large"] .city-missions,
  [data-text="large"] .mystery-map {
    grid-template-columns: 1fr;
  }
  .avenue-property .map-mission {
    font-size: 0.8rem;
  }
  .sky-stop {
    font-size: 0.76rem;
  }
}

/* Small, layered dioramas use CSS geometry instead of a heavy 3D runtime. */
.world-diorama {
  position: relative;
  width: 100%;
  height: 150px;
  perspective: 700px;
  pointer-events: none;
  overflow: visible;
}
.diorama-base {
  position: absolute;
  left: 13%;
  top: 27%;
  width: 74%;
  height: 63%;
  background: linear-gradient(135deg, #a1d7b6, #61a795);
  border-radius: 22%;
  transform: rotateX(48deg) rotateZ(-28deg);
  transform-style: preserve-3d;
  box-shadow:
    -2px 9px 0 #3e8174,
    -5px 15px 0 #2e655e,
    0 25px 22px #092d3230;
  border: 2px solid #d1f4df;
}
.diorama-path {
  position: absolute;
  inset: 35% 0 25%;
  background: #e6d8ae;
  border: 3px solid #fdf1d1;
  transform: translateZ(2px);
}
.diorama-orbit {
  position: absolute;
  top: 3%;
  right: 15%;
  font-size: 25px;
  color: #eab45a;
  transform: rotate(15deg);
}
.diorama-star {
  position: absolute;
  left: 43%;
  top: 32%;
  font-size: 26px;
  color: #ffe5a7;
  transform: translateZ(28px);
  text-shadow: 0 2px 3px #80622940;
}
.scene-block {
  position: absolute;
  width: 19%;
  height: 32%;
  background: linear-gradient(105deg, #83b8ad, #bdd6b9);
  border: 1px solid #e2f1d5;
  border-radius: 3px;
  transform: translateZ(18px);
  box-shadow: -6px 9px 6px #16464240;
}
.scene-block:after {
  content: "";
  position: absolute;
  top: -22%;
  left: 11%;
  width: 100%;
  height: 23%;
  background: #e8c387;
  transform: skewX(-40deg);
  border-radius: 2px;
}
.scene-block:before {
  content: "";
  position: absolute;
  left: 100%;
  top: -11%;
  width: 22%;
  height: 100%;
  background: #456f71;
  transform: skewY(-42deg);
}
.scene-block b {
  position: absolute;
  inset: 22% 17%;
  background: repeating-linear-gradient(
    90deg,
    #f9e4a9 0 3px,
    transparent 3px 9px
  );
  border-top: 3px solid #f3d99b;
  border-bottom: 3px solid #f3d99b;
}
.block-0 {
  left: 8%;
  top: 3%;
  height: 43%;
  background: #9fadd0;
}
.block-1 {
  left: 38%;
  top: 3%;
  height: 30%;
  background: #dea99a;
}
.block-2 {
  left: 67%;
  top: 0;
  height: 47%;
  background: #b5c9b3;
}
.block-3 {
  left: 9%;
  top: 65%;
  height: 27%;
  background: #deb889;
}
.block-4 {
  left: 38%;
  top: 65%;
  height: 36%;
  background: #87bdbf;
}
.block-5 {
  left: 66%;
  top: 68%;
  height: 25%;
  background: #aca3cd;
}
.block-6 {
  left: 85%;
  top: 39%;
  width: 8%;
  height: 12%;
  background: #71a171;
  border-radius: 50%;
  transform: translateZ(30px);
}
.block-6:before,
.block-6:after,
.block-6 b {
  display: none;
}
.diorama-steps .diorama-base {
  background: linear-gradient(130deg, #c3eaf7, #8fb7dd);
  box-shadow:
    -2px 9px 0 #6497b6,
    -5px 15px 0 #4b739d,
    0 25px 22px #092d3230;
}
.diorama-steps .scene-block {
  height: 22%;
  background: #fff0cf;
  border-color: #fff9e9;
}
.diorama-steps .scene-block:before {
  background: #d3ba88;
}
.diorama-steps .scene-block:after {
  background: #fceecb;
}
.diorama-steps .block-0 {
  transform: translateZ(12px);
}
.diorama-steps .block-1 {
  transform: translateZ(28px);
}
.diorama-steps .block-2 {
  transform: translateZ(48px);
}
.diorama-steps .diorama-path {
  background: #d8ccef;
  border-color: #e9e1ff;
}
.diorama-mystery .diorama-base {
  background: #414965;
  border-color: #9f99bd;
  box-shadow:
    -2px 9px 0 #2c354e,
    -5px 15px 0 #222c3f,
    0 25px 22px #092d3230;
}
.diorama-mystery .scene-block {
  background: linear-gradient(110deg, #a4c0a3, #51877b);
  height: 42%;
  width: 16%;
  border: 0;
  border-radius: 50% 50% 15% 15%;
}
.diorama-mystery .scene-block:after {
  background: #c5d7ad;
  border-radius: 50%;
}
.diorama-mystery .scene-block:before {
  background: #35635d;
  border-radius: 50%;
}
.diorama-mystery .scene-block b {
  display: none;
}
.diorama-mystery .diorama-path {
  background: #c2a77f;
  border-color: #ddcda8;
}
.diorama-memory .diorama-base {
  background: #cdb9d6;
  border-color: #f0ddec;
  box-shadow:
    -2px 9px 0 #9487b4,
    -5px 15px 0 #766b95,
    0 25px 22px #092d3230;
}
.diorama-memory .scene-block {
  background: repeating-linear-gradient(
    45deg,
    #38796c,
    #38796c 4px,
    #539382 4px,
    #539382 8px
  );
  height: 27%;
  border-radius: 7px;
}
.diorama-memory .scene-block:after {
  background: #a0d9bf;
}
.diorama-memory .scene-block:before {
  background: #285950;
}
.diorama-memory .scene-block b {
  inset: 15%;
  background: none;
  border: 1px solid #ddf4d7;
  border-radius: 4px;
}
.diorama-memory .diorama-path {
  opacity: 0;
}
.adventure-tab .world-symbol {
  display: none;
}
.adventure-tab .world-diorama {
  height: 75px;
}
.adventure-tab {
  padding-top: 0;
  overflow: hidden;
}
.adventure-tab strong {
  margin: 0;
}
.game-board {
  margin-bottom: 12px;
  padding: 20px;
  box-shadow:
    0 8px 0 #123c2920,
    0 18px 35px #123c2920;
}
.game-board-header {
  margin-bottom: 16px;
}
.sky-grid {
  gap: 9px;
  padding: 12px;
  transform: perspective(1100px) rotateX(6deg);
  background: #87adc15e;
  box-shadow:
    0 8px 0 #749aa6,
    0 18px 20px #52738228;
}
.sky-tile {
  min-height: 55px;
  box-shadow:
    0 5px 0 #b1c7b4,
    0 8px 8px #30565825;
  border: 1px solid #fffdf5;
}
.sky-tile.ladder {
  box-shadow:
    0 5px 0 #d2b382,
    0 8px 8px #30565825;
}
.sky-stop {
  min-height: 49px;
  font-size: 0.7rem;
}
.sky-token {
  z-index: 3;
  width: 37px;
  height: 37px;
  box-shadow:
    0 4px 0 #256859,
    0 6px 10px #123c3540;
}
.dice {
  display: inline-block;
  text-shadow:
    0 3px 0 #739887,
    0 6px 10px #1c583833;
}
.avenue-grid {
  gap: 10px;
  padding: 12px;
  transform: perspective(1000px) rotateX(5deg);
  box-shadow: 0 8px 0 #aaad8d;
}
.avenue-property {
  min-height: 110px;
  box-shadow:
    0 6px 0 #c5ba9a,
    0 10px 9px #77684930;
}
.little-building {
  height: 26px;
}
.little-building i {
  box-shadow: 5px 5px 0 #5f6b5740;
}
.avenue-property .map-mission {
  min-height: 55px;
  font-size: 0.76rem;
}
.avenue-centre img {
  max-width: 90px;
  box-shadow: 0 8px 18px #3f716230;
}
.mystery-map {
  gap: 12px;
}
.clue-card {
  position: relative;
  padding: 12px 10px;
  box-shadow:
    0 6px 0 #111a2d,
    0 10px 18px #03071355;
  min-height: 90px;
}
.clue-mark {
  position: absolute;
  inset-inline-end: 10px;
  inset-block-start: 5px;
  font-size: 24px;
  opacity: 0.25;
}
.clue-card .map-mission {
  min-height: 55px;
}
.clue-card details {
  font-size: 0.75rem;
  margin-top: 8px;
}
.clue-card summary {
  cursor: pointer;
  min-height: 32px;
}
.city-board {
  min-height: 460px;
}
.city-scene .world-diorama {
  position: absolute;
  inset: 6% 10% 20%;
  width: 80%;
  height: 70%;
  opacity: 0.85;
  filter: drop-shadow(0 16px 18px #061e2860);
}
.city-scene .diorama-base {
  background: #41756b;
  border-color: #c7dfb6;
  box-shadow:
    -2px 12px 0 #204b52,
    -5px 22px 0 #173940,
    0 40px 32px #03192280;
}
.city-scene .scene-block {
  transform: translateZ(40px);
  height: 45%;
}
.city-scene img {
  opacity: 0.5;
}
.city-scene:after {
  background: linear-gradient(
    180deg,
    #11252dc9,
    #11252d10 28%,
    #0d202948 67%,
    #0d2029e6
  );
}
.city-missions {
  margin-top: 30px;
  margin-bottom: 24px;
  gap: 16px 30px;
}
.city-marker {
  min-height: 58px;
  box-shadow:
    0 5px 0 #061d25ab,
    0 13px 18px #00191c70;
  backdrop-filter: none;
}
.city-marker:nth-child(even) {
  transform: translateY(12px);
}
.city-console {
  padding: 12px 15px;
}
.city-console p {
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.memory-grid {
  gap: 13px;
  margin: 20px 0;
}
.memory-card {
  perspective: 700px;
  position: relative;
  padding: 0;
  min-height: 108px;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  color: #fffdf4;
}
.memory-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(0);
  margin: 0 !important;
}
.memory-card.revealed .memory-card-inner {
  transform: rotateY(180deg);
}
.memory-face {
  position: absolute;
  inset: 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #83aca2;
  border-radius: 15px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  margin: 0 !important;
  box-shadow: 0 5px 0 #153f3850;
  padding: 8px;
}
.memory-front {
  background: repeating-linear-gradient(
    45deg,
    #31655d,
    #31655d 8px,
    #386e64 8px,
    #386e64 16px
  );
  color: #fffdf4;
}
.memory-back {
  transform: rotateY(180deg);
  background: #fff9ee;
  color: #254b3a;
}
.memory-card.matched .memory-back {
  background: #d1ecd8;
  border-color: #4d8e70;
  box-shadow: 0 5px 0 #609277;
}
.memory-face > span {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.memory-face strong {
  font-size: 0.76rem;
}
.memory-card:active {
  transform: none;
}
.game-board > .practice-note {
  margin-top: 16px;
}
.game-board > .cta-row {
  margin-top: 16px;
}
.game-board > .cta-row .primary {
  margin-inline-start: auto;
}
@media (max-width: 600px) {
  .game-board {
    padding: 14px;
    border-radius: 20px;
  }
  .game-board-header {
    margin-bottom: 12px;
  }
  .sky-grid {
    gap: 7px;
    padding: 9px;
  }
  .sky-tile {
    min-height: 51px;
  }
  .sky-stop {
    min-height: 47px;
    font-size: 0.69rem;
  }
  .sky-stop .map-number {
    width: 23px;
    height: 23px;
  }
  .sky-token {
    width: 32px;
    height: 32px;
  }
  .avenue-grid {
    gap: 7px;
    padding: 7px;
  }
  .avenue-property {
    min-height: 105px;
    padding: 5px;
  }
  .avenue-property .map-mission {
    font-size: 0.71rem;
  }
  .little-building {
    height: 22px;
  }
  .avenue-centre img {
    max-width: 78px;
  }
  .city-board {
    min-height: 450px;
  }
  .city-missions {
    gap: 13px 10px;
    margin-top: 25px;
    margin-bottom: 22px;
  }
  .city-marker {
    font-size: 0.76rem;
    min-height: 60px;
    padding: 8px;
  }
  .city-marker .map-number {
    width: 23px;
    height: 23px;
  }
  .city-console p {
    font-size: 0.76rem;
  }
  .memory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .memory-card {
    min-height: 92px;
  }
  .memory-face {
    padding: 6px;
    border-radius: 12px;
  }
  .memory-face > span {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }
  .memory-face strong {
    font-size: 0.62rem;
  }
  .clue-card {
    padding: 9px 7px;
    min-height: 83px;
  }
  .clue-card .map-mission {
    font-size: 0.77rem;
    padding: 8px;
  }
  .mystery-map {
    gap: 10px;
  }
  .game-board > .cta-row .primary {
    margin-inline-start: 0;
    flex: 1;
  }
  .game-board > .practice-note {
    font-size: 0.78rem;
  }
  .game-board .cta-row {
    gap: 8px;
  }
  .game-board .primary,
  .game-board .secondary {
    font-size: 0.85rem;
    padding: 10px 13px;
  }
  .adventure-tab .world-diorama {
    height: 66px;
  }
}
[data-text="large"] .wizard-steps small {
  font-size: 0.85rem;
}
[data-text="large"] .wizard-panel .buddy-choice > span {
  font-size: 1rem;
}
[data-text="large"] .memory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
[data-text="large"] .memory-face strong {
  font-size: 0.95rem;
}
[data-text="large"] .memory-card {
  min-height: 115px;
}
[data-text="large"] .sky-tile {
  min-height: 72px;
}
[data-text="large"] .sky-stop {
  font-size: 0.85rem;
}
[data-text="large"] .avenue-property .map-mission,
[data-text="large"] .city-marker {
  font-size: 1rem;
}
[data-text="large"] .game-board {
  overflow: visible;
}
@media (prefers-reduced-motion: reduce) {
  .sky-grid,
  .avenue-grid {
    transform: none;
  }
  .memory-card-inner {
    transform: none !important;
  }
  .memory-card .memory-back {
    transform: none;
  }
  .memory-card:not(.revealed) .memory-back,
  .memory-card.revealed .memory-front {
    display: none !important;
  }
}
[data-motion="off"] .sky-grid,
[data-motion="off"] .avenue-grid {
  transform: none;
}
[data-motion="off"] .memory-card-inner {
  transform: none !important;
}
[data-motion="off"] .memory-back {
  transform: none;
}
[data-motion="off"] .memory-card:not(.revealed) .memory-back,
[data-motion="off"] .memory-card.revealed .memory-front {
  display: none !important;
}
