/* An authored, viewport-sized storybook world. Lists page; the document never scrolls. */
:root {
  --ink: #344d40;
  --paper: #fff9e9;
  --forest: #497b5b;
  --shadow: #31503c;
  --amber: #e9ba68;
  --dock: 78px;
  --hud: 86px;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  color: var(--ink);
  background: #d7e7c5 url("../../assets/images/play-world.webp") center / cover
    no-repeat;
  padding: 0 !important;
  font-family: "Fredoka", sans-serif;
}
body::before,
body::after {
  display: none !important;
}
button,
select {
  font-family: inherit;
  color: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #336d86;
  outline-offset: 4px;
}
.world-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  vertical-align: middle;
  color: #3e5b44;
}
.app,
.app.dashboard-view {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  padding: 0 36px calc(var(--dock) + env(safe-area-inset-bottom));
  margin: 0;
  isolation: isolate;
  overflow: hidden;
}
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f6f2dbeb;
  backdrop-filter: blur(9px);
}
.app.dashboard-view::before {
  background: linear-gradient(90deg, #eef2d658 0%, transparent 32%);
  backdrop-filter: none;
}
.adventure-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 var(--hud);
  width: 100%;
  max-width: 1440px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  gap: 16px;
  border: 0;
  background: none;
  box-shadow: none;
}
.game-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: #396348;
  text-decoration: none;
  text-shadow: 0 2px #fff7d9;
  font-family: "Fredoka", cursive;
  font-size: 38px;
  font-weight: 800;
  line-height: 0.9;
}
.game-logo > span:last-child > span {
  color: #c97b42;
}
.game-logo small {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.8px;
  margin-top: 7px;
  color: #3f634c;
  text-shadow: none;
}
.game-logo .logo-book {
  display: grid;
  place-items: center;
  width: 45px;
  height: 47px;
  border-radius: 16px 10px 14px 9px;
  background: #f9f1d6;
  border: 2px solid #476e4f;
  transform: rotate(-9deg);
  box-shadow: 0 3px #476e4f;
}
.logo-book .world-icon {
  width: 35px;
  height: 35px;
}
.player-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 48px;
}
.player-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 74px;
  min-height: 37px;
  padding: 5px 11px;
  background: #fff9e8e8;
  border: 1.5px solid #b3bc91;
  border-radius: 14px;
  box-shadow: 0 3px #b8c19866;
  color: var(--ink);
}
.player-stat.flame {
  background: #fff8dfef;
}
.player-stat .world-icon {
  width: 22px;
  height: 22px;
}
.player-stat strong {
  font-size: 15px;
}
.player-stat small {
  font-size: 10px;
}
.player-level {
  font-size: 11px;
  font-weight: 900;
  background: #52795f;
  color: #fff8dc;
  padding: 6px 10px;
  border-radius: 10px;
}
.parent-control {
  display: grid;
  place-items: center;
  background: #fff9e5d9;
  border: 1px solid #a9b993;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 7px;
}
.parent-control .world-icon {
  width: 23px;
  height: 23px;
}
.music-btn {
  position: fixed;
  top: 24px;
  right: 30px;
  z-index: 15;
  width: 36px;
  height: 36px;
  border: 1px solid #afbd96;
  background: #fff9e9e8;
  border-radius: 50%;
  box-shadow: none;
  padding: 6px;
}
.music-btn .game-icon {
  width: 24px;
  height: 24px;
}
.screen-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
  gap: 10px;
  padding: 0 0 5px;
}
.screen-stage > .mascot-wrap,
.screen-stage > .corner-mascot-block {
  display: none;
}
.screen-stage > .topbar {
  min-height: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  box-shadow: none;
  background: none;
}
.topbar .brand {
  width: auto;
  gap: 0;
}
.topbar .brand-title {
  font-size: 13px !important;
  font-weight: 800;
  color: #74806b;
  text-align: left;
  flex: 1;
}
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 10px 5px 4px;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--forest);
}
.back-btn .game-icon,
.back-btn .world-icon {
  width: 20px;
  height: 20px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: 1.7px;
  color: #6d8261;
}
.section-intro {
  position: relative;
  text-align: center;
  margin: 0 auto 4px;
  flex-shrink: 0;
  max-width: 750px;
}
.section-intro h1 {
  font-family: "Fredoka", cursive;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 7px 0 5px;
  color: var(--ink);
}
.section-intro p {
  font-size: 13px;
  color: #75806b;
  line-height: 1.5;
  margin: 0;
}
.quiet-note {
  margin: 0;
  color: #77816e;
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
  flex-shrink: 0;
}
.btn,
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 43px;
  padding: 10px 20px;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.25;
  border-radius: 15px 12px 14px 11px;
  border: 1.5px solid #46694e;
  box-shadow: 0 4px #365f42;
  text-shadow: none;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.btn-primary,
.btn-ok,
.hero-cta {
  color: #fff9e7;
  background: #628e62;
  border-color: #3e6c48;
}
.btn-secondary {
  background: #fff9e9;
  color: #526d50;
  border-color: #c6c9a8;
  box-shadow: 0 3px #c9cdb0;
}
.btn:disabled {
  opacity: 0.5;
  filter: saturate(0.4);
  box-shadow: 0 2px #ccd0b5;
}
.btn .world-icon {
  width: 23px;
  height: 23px;
  color: inherit;
}
.btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px #365f42;
}
.btn:hover:not(:disabled) {
  filter: brightness(1.04);
}
.round-control {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid #c9c9a7;
  border-radius: 50%;
  color: #547156;
  background: #fffbece6;
  box-shadow: 0 2px #bec6a477;
}
.round-control .world-icon {
  width: 21px;
  height: 21px;
}
.round-control:disabled {
  opacity: 0.3;
}
.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  min-height: 30px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #bec9a5;
  border-radius: 10px;
  background: #fff9e4c9;
}
.mini-action .world-icon {
  width: 19px;
  height: 19px;
}
.saved {
  background: #ffe3a1 !important;
}
.page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 40px;
  flex-shrink: 0;
  font-size: 11px;
  color: #7d856e;
  margin-top: auto;
}
.page-controls b {
  color: #4e6b4c;
}
.bottom-nav,
.bottom-nav.focus-mode {
  display: flex !important;
  flex-direction: row;
  gap: 4px;
  overflow: visible;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: auto auto calc(13px + env(safe-area-inset-bottom)) 50%;
  transform: translateX(-50%);
  width: 490px;
  max-width: calc(100% - 28px);
  height: 57px;
  min-height: 0;
  margin: 0;
  padding: 5px 8px;
  border: 1.5px solid #c9cba3;
  border-radius: 23px 20px 21px 17px;
  background: #fffae9f2;
  box-shadow:
    0 5px 0 #5e7f4840,
    0 7px 25px #48633314;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.bottom-nav .nav-brand,
.bottom-nav .nav-caption,
.bottom-nav .nav-bottom {
  display: none;
}
.bottom-nav .bn-item {
  order: 0;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 43px;
  padding: 4px 7px;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 14px;
  color: #8c987c;
}
.bottom-nav .bn-item.active {
  background: #e8edd8;
  color: #3d6848;
  box-shadow: inset 0 0 0 1px #cdd8b9;
}
.bottom-nav .bn-item::before,
.bottom-nav .bn-item::after {
  display: none;
}
.bottom-nav .bn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  width: 25px;
  font-size: 0;
}
.bottom-nav .world-icon {
  width: 25px;
  height: 25px;
}
.bottom-nav .bn-label {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.footer-note {
  position: fixed;
  bottom: 5px;
  right: 20px;
  z-index: 2;
  margin: 0;
  padding: 0;
  color: #5d7757;
  background: transparent;
  border: 0;
  font-size: 9px;
  text-shadow: 0 1px #fff8;
  width: auto;
}
/* The home screen is a landscape to explore, not a card dashboard. */
.dashboard-view .screen-stage {
  max-width: 1440px;
  overflow: visible;
}
.world-welcome {
  position: absolute;
  top: 2%;
  left: 0;
  z-index: 2;
  pointer-events: none;
}
.world-welcome .eyebrow {
  font-size: 9px;
  color: #54724f;
}
.world-welcome h1 {
  font-family: "Fredoka", cursive;
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #365d42;
  margin: 13px 0 12px;
  text-shadow: 0 3px #fff9dcaa;
}
.world-welcome p {
  font-size: 13px;
  line-height: 1.7;
  color: #53704e;
  font-weight: 700;
  margin: 0 0 14px;
  text-shadow: 0 1px #fff8;
}
.age-chip {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid #b5c09a;
  border-radius: 11px;
  background: #fff8dcca;
  color: #58744f;
  font-size: 10px;
  font-weight: 900;
}
.age-chip .world-icon {
  width: 17px;
  height: 17px;
}
.world-map {
  position: absolute;
  inset: -12% 0 -8%;
}
.map-destination {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  transition:
    filter 0.2s,
    transform 0.2s;
}
.map-destination:hover {
  transform: translate(-50%, -55%);
  filter: brightness(1.04);
}
.destination-marker {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
  border: 2px solid #fff8df;
  outline: 2px solid var(--destination-color);
  border-radius: 50% 50% 50% 7px;
  background: var(--destination-color);
  box-shadow: 0 3px 10px #3e5e4e45;
  transform: rotate(-45deg);
}
.destination-marker .world-icon {
  width: 27px;
  height: 27px;
  transform: rotate(45deg);
  color: #fff4cd;
}
.destination-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 153px;
  padding: 9px 32px 8px 13px;
  border: 1.5px solid #c7b87f;
  border-radius: 12px 10px 14px 9px;
  background: #fff9e8;
  box-shadow:
    0 4px #ad9e6d66,
    0 8px 15px #43623b1c;
}
.destination-label small {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: var(--destination-color);
}
.destination-label strong {
  display: block;
  font-family: "Fredoka", cursive;
  font-size: 20px;
  line-height: 1.2;
  color: #3f5c42;
}
.destination-label > span {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
}
.destination-label .world-icon {
  width: 17px;
  height: 17px;
}
.raqi-companion {
  position: absolute;
  left: 0;
  bottom: 9%;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  z-index: 3;
}
.raqi-companion > img {
  height: clamp(150px, 27vh, 260px);
  width: auto;
  filter: drop-shadow(0 5px 2px #52644238);
  animation: raqi-world 5s ease-in-out infinite;
}
.raqi-companion > div {
  position: relative;
  background: #fff9e8ed;
  padding: 12px 15px;
  margin: 30px 0 0 -10px;
  border: 1.5px solid #d3cca1;
  border-radius: 20px 20px 20px 0;
  box-shadow: 0 3px #9dae7d40;
}
.raqi-companion > div > span {
  display: block;
  font-size: 8px;
  color: #b37d43;
  font-weight: 900;
  letter-spacing: 1px;
}
.raqi-companion p {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}
.continue-ticket {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px 12px 10px;
  text-align: left;
  min-width: 300px;
  background: #fff9e7;
  border: 1.5px solid #b2ba8f;
  border-radius: 18px 14px 18px 11px;
  box-shadow: 0 4px #9ba66c66;
}
.ticket-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 49px;
  background: #e7ecd5;
  border-radius: 12px;
}
.continue-ticket > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.continue-ticket small {
  color: #83936a;
  font-size: 7px;
  letter-spacing: 1px;
  font-weight: 900;
}
.continue-ticket strong {
  font-family: "Fredoka", cursive;
  font-size: 21px;
  line-height: 1.1;
}
.continue-ticket > span:nth-child(2) > span {
  font-size: 9px;
  color: #869074;
}
.ticket-play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #c8cfaa;
  background: #edf0db;
  margin-left: auto;
}
.ticket-play .world-icon {
  width: 22px;
  height: 22px;
}
.world-corner-note {
  position: absolute;
  bottom: 7px;
  right: 0;
  font-size: 11px;
  font-weight: 800;
  color: #4e6b4d;
  text-shadow: 0 1px #fff8;
}
.map-ambient {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff8bb;
  box-shadow:
    12px -14px #fff7bb,
    -25px 5px #fff7bb;
  animation: world-flicker 5s ease-in-out infinite;
  pointer-events: none;
}
.ambient-one {
  left: 55%;
  top: 50%;
}
.ambient-two {
  left: 77%;
  top: 76%;
  animation-delay: -2s;
}
/* Topic shelves and play objects. */
.topic-grid,
.activity-grid,
.surah-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 16px;
  padding: 4px 5px 7px;
  align-content: center;
}
.topic-grid:has(> :only-child),
.activity-grid:has(> :only-child),
.surah-grid:has(> :only-child) {
  grid-template-rows: minmax(0, 1fr);
}
.topic-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 16px;
  background: #fffae9;
  border: 1.5px solid #d7d4b2;
  border-radius: 22px 17px 23px 15px;
  box-shadow:
    0 5px #c6caa399,
    0 8px 16px #6676490b;
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s;
}
.topic-card:hover {
  transform: translateY(-3px) rotate(-0.5deg);
}
.topic-card.illustrated {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}
.landmark-picture {
  display: block;
  flex: 1;
  min-height: 55px;
  background-image: url("../../assets/images/play-world.webp");
  background-repeat: no-repeat;
  background-size: 350%;
  border-bottom: 1px solid #c5c59b;
}
.scene-library {
  background-position: 24% 55%;
}
.scene-mosque {
  background-position: 51% 28%;
}
.scene-treehouse {
  background-position: 100% 42%;
}
.scene-school {
  background-position: 77% 43%;
}
.scene-book {
  background-position: 0 30%;
}
.scene-pond {
  background-position: 53% 90%;
}
.topic-copy {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  padding: 13px 35px 13px 17px;
}
.topic-card small {
  display: block;
  color: var(--topic-color, #82946e);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.topic-card h2 {
  margin: 4px 0;
  font-family: "Fredoka", cursive;
  font-size: 22px;
  line-height: 1.08;
}
.topic-card p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #859075;
  line-height: 1.4;
}
.topic-go {
  position: absolute;
  bottom: 23px;
  right: 15px;
}
.topic-go .world-icon {
  width: 20px;
  height: 20px;
}
.module-card {
  gap: 14px;
}
.module-art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 78px;
  border-radius: 32% 47% 36% 43%;
  background: color-mix(in srgb, var(--topic-color) 19%, #fff5d5);
  flex-shrink: 0;
  transform: rotate(-7deg);
}
.module-art .world-icon {
  width: 45px;
  height: 45px;
  transform: rotate(7deg);
}
.card-open {
  flex: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
}
.card-open > span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #748565;
  margin-top: 10px;
}
.card-open > span .world-icon {
  width: 14px;
  height: 14px;
  margin-left: 4px;
}
.module-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.module-actions .round-control {
  width: 30px;
  height: 30px;
  padding: 5px;
}
.module-actions .world-icon {
  width: 19px;
  height: 19px;
}
.activity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 15px;
  min-height: 0;
  border: 1.5px solid #c6c7a9;
  border-radius: 28px 22px 30px 17px;
  background: color-mix(in srgb, var(--activity-color) 22%, #fff9e8);
  box-shadow: 0 5px color-mix(in srgb, var(--activity-color) 75%, #899173);
  text-align: center;
  overflow: hidden;
}
.activity-art {
  display: grid;
  place-items: center;
  position: relative;
  width: 82px;
  height: 74px;
  border-radius: 48% 41% 43% 37%;
  background: color-mix(in srgb, var(--activity-color) 72%, #fff7df);
  transform: rotate(-6deg);
}
.activity-art > .world-icon {
  width: 54px;
  height: 54px;
  transform: rotate(6deg);
}
.art-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fffbde;
  border-radius: 50%;
}
.dot-a {
  left: -10px;
  top: 9px;
}
.dot-b {
  right: -11px;
  bottom: 14px;
  width: 5px;
  height: 5px;
}
.activity-card:hover .activity-art {
  transform: rotate(3deg) translateY(-3px);
  transition: transform 0.2s;
}
.activity-copy small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.7px;
  opacity: 0.5;
}
.activity-copy h2 {
  font-family: "Fredoka", cursive;
  font-size: 24px;
  line-height: 1.1;
  margin: 5px 0;
}
.activity-copy p {
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  color: #75816a;
}
.activity-arrow {
  position: absolute;
  bottom: 12px;
  right: 12px;
}
.activity-arrow .world-icon {
  width: 19px;
  height: 19px;
}
/* A bounded, paged Duolingo-like trail. Topic rooms intentionally do not use it. */
.stage-island {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 38px 8% 28px;
  isolation: isolate;
  border-radius: 49% 40% 24% 31%;
  background: #dce5b6;
  box-shadow:
    inset 0 -12px #cbd6a2,
    0 12px 0 #bccb9955;
  margin: 8px 20px;
}
.stage-island::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  background: url("../../assets/images/play-world.webp") center / cover;
  border-radius: inherit;
}
.trail-line {
  position: absolute;
  width: 67%;
  height: 80px;
  left: 16%;
  top: calc(50% - 45px);
  border: 17px solid #f9eac1;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 50%;
  transform: rotate(-5deg);
  z-index: -1;
}
.stage-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 29%;
  max-width: 230px;
  text-align: center;
}
.stop-1 {
  transform: translateY(-28px);
}
.stop-0,
.stop-2 {
  transform: translateY(15px);
}
.stage-caption {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: #697f52;
  margin-bottom: 10px;
}
.stage-node {
  display: grid;
  place-items: center;
  width: 90px;
  height: 80px;
  padding: 16px;
  border-radius: 50% 45% 48% 47%;
  background: #6b9d65;
  border: 4px solid #c6dbaa;
  box-shadow:
    0 7px #477948,
    0 10px 0 4px #b8c995;
}
.stage-node .world-icon {
  width: 42px;
  height: 42px;
  color: #fff1b3;
}
.is-locked .stage-node {
  background: #bcc5a3;
  border-color: #d5dec0;
  box-shadow: 0 7px #9ca98a;
}
.is-done .stage-node {
  background: #dab064;
  border-color: #f4df9d;
  box-shadow: 0 7px #ac8d4d;
}
.stage-stop h2 {
  font-family: "Fredoka", cursive;
  font-size: 24px;
  line-height: 1.1;
  margin: 18px 0 5px;
}
.stage-stop p {
  font-size: 11px;
  margin: 0 0 5px;
  color: #7c8c62;
  line-height: 1.4;
}
.stage-stop > small {
  font-size: 10px;
  color: #7e8e67;
}
.stage-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
/* Age islands. */
.age-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}
.age-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border: 1.5px solid #c9ccb0;
  border-radius: 15px;
  background: #fffbea;
  font-size: 12px;
  font-weight: 900;
}
.age-tab .world-icon {
  width: 23px;
  height: 23px;
}
.age-tab.selected {
  background: #e5edd2;
  border-color: #8fa780;
  box-shadow: 0 3px #9db18a;
}
.exam-island {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 35px;
  width: 90%;
  max-width: 890px;
  margin: 8px auto 0;
  padding: 25px 45px 25px 25px;
  border: 1.5px solid #c4c8a3;
  border-radius: 35px 50px 35px 50px;
  background: #fff9e9df;
  box-shadow: 0 7px #c5ccaa55;
}
.exam-illustration {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  max-height: 300px;
  min-width: 230px;
  width: 40%;
}
.exam-illustration img {
  position: relative;
  z-index: 1;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.exam-hill {
  position: absolute;
  inset: 25% 0 0;
  border-radius: 45% 40% 30% 37%;
  background: color-mix(in srgb, var(--island-color) 22%, #fff5d1);
}
.exam-illustration > .world-icon {
  position: absolute;
  width: 65px;
  height: 65px;
  left: 0;
  top: 10%;
  transform: rotate(-16deg);
}
.exam-description {
  flex: 1;
}
.exam-description h2 {
  font-family: "Fredoka", cursive;
  font-size: 35px;
  line-height: 1.1;
  margin: 10px 0;
}
.exam-description p {
  font-size: 13px;
  line-height: 1.6;
  color: #859071;
}
.exam-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10px;
  margin: 20px 0;
}
.exam-meta span {
  padding: 6px 10px;
  background: #eaf0da;
  border-radius: 8px;
}
/* Dedicated Quran books and one-ayah reader. */
.surah-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.surah-book {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px;
  border: 2px solid #718d6a;
  border-left: 9px solid #5d7f60;
  border-radius: 9px 22px 20px 9px;
  background: #e1e7c7;
  box-shadow:
    0 5px #8c9d78,
    5px 7px #fffbef;
  overflow: hidden;
}
.surah-book::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #aebb92;
  border-radius: 3px 13px 12px 3px;
  pointer-events: none;
}
.surah-book:nth-child(2n) {
  background: #e8dab7;
  border-color: #9f8b5f;
  border-left-color: #9f8b5f;
  box-shadow:
    0 5px #ac9b75,
    5px 7px #fffbef;
}
.surah-book:nth-child(3n) {
  background: #d2e2da;
}
.surah-number {
  position: absolute;
  left: 20px;
  top: 16px;
  color: #849373;
  font-size: 10px;
}
.surah-arab {
  font-family: "Amiri", serif;
  font-size: 28px;
  line-height: 1.6;
  color: #4e6d4b;
}
.book-flower {
  position: absolute;
  right: 16px;
  top: 14px;
}
.book-flower .world-icon {
  width: 28px;
  height: 28px;
  margin: 3px;
}
.surah-book strong {
  font-family: "Fredoka", cursive;
  font-size: 22px;
  line-height: 1.3;
}
.surah-book small {
  font-size: 10px;
  color: #829074;
}
.book-open {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  color: #5e7c58;
  margin-top: 12px;
}
.book-open .world-icon {
  width: 16px;
  height: 16px;
}
.reader-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  font-size: 12px;
}
.quran-page {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px 5%;
  width: 100%;
  max-width: 980px;
  align-self: center;
  background: #fffaf0;
  border: 1.5px solid #c9c6a1;
  outline: 1px solid #d9d2ae;
  outline-offset: -9px;
  border-radius: 20px;
  box-shadow: 0 5px #c6c9a677;
  text-align: center;
}
.ayah-ornament {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  min-height: 35px;
  border: 1px solid #b8bf94;
  border-radius: 11px;
  transform: rotate(0deg);
  background: #f2f0d8;
  font-family: "Amiri", serif;
  font-size: 21px;
  color: #809061;
}
.reader-arab {
  font-family: "Amiri", serif;
  font-size: clamp(26px, 4.5vw, 62px);
  line-height: 1.9;
  max-width: 100%;
}
.reader-arab.long {
  font-size: clamp(24px, 3.2vw, 45px);
}
.reader-arab.extra-long {
  font-size: clamp(20px, 2.6vw, 34px);
}
.reader-meaning {
  font-size: 13px;
  line-height: 1.6;
  color: #849074;
  max-width: 700px;
  margin: 0;
}
.reader-listen {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #bcc7a0;
  padding: 8px 16px;
  background: #eaf0db;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 900;
}
.reader-listen .world-icon {
  width: 22px;
  height: 22px;
}
.reader-source {
  font-size: 9px;
  color: #9a9f86;
  margin: 0;
}
.reader-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  flex-shrink: 0;
}
.memory-prompt > .world-icon {
  width: 75px;
  height: 75px;
}
.memory-prompt h2 {
  font-family: "Fredoka", cursive;
  font-size: 28px;
  margin: 12px 0;
}
.memory-prompt p {
  font-size: 12px;
}
/* A question is always a single page, including mixed age challenges. */
.challenge-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #869471;
  flex-shrink: 0;
}
.challenge-meter progress {
  flex: 1;
  height: 9px;
}
progress {
  accent-color: #7a9a68;
  border-radius: 20px;
  overflow: hidden;
  border: 0;
  height: 7px;
  background: #e1e7cb;
}
progress::-webkit-progress-bar {
  background: #e1e7cb;
}
progress::-webkit-progress-value {
  background: #82a36e;
  border-radius: 20px;
}
.challenge-play {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}
.challenge-play h1 {
  font-family: "Fredoka", cursive;
  font-size: clamp(22px, 3vw, 35px);
  line-height: 1.15;
  margin: 0;
}
.challenge-arab {
  font-family: "Amiri", serif;
  font-size: clamp(29px, 5vw, 60px);
  line-height: 1.8;
  max-width: 100%;
}
.challenge-arab.long {
  font-size: clamp(23px, 3vw, 40px);
}
.challenge-arab.extra-long {
  font-size: clamp(20px, 2.6vw, 32px);
}
.listen-illustration > .world-icon {
  width: 80px;
  height: 80px;
  padding: 15px;
  border-radius: 50%;
  background: #ecddb3;
}
.challenge-options {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 13px;
  width: 100%;
  max-width: 920px;
}
.challenge-option {
  flex: 1;
  min-width: 0;
  padding: 17px;
  border: 1.5px solid #c5caab;
  background: #fffbef;
  border-radius: 18px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 4px #bfc9a0;
}
.arabic-options .challenge-option {
  font-family: "Amiri", serif;
  font-size: clamp(20px, 2.9vw, 34px);
  font-weight: 400;
  padding: 12px;
}
.challenge-option.correct {
  background: #dceaca;
  border-color: #7c9d68;
}
.challenge-option.wrong {
  background: #efd9ca;
  border-color: #c79681;
}
.balloon-play .challenge-option {
  border-radius: 48% 46% 45% 43%;
  min-height: 95px;
  background: #e8c8a9;
  box-shadow:
    inset -5px -7px #c7957133,
    0 4px #b99675;
  animation: balloon-drift 5s ease-in-out infinite;
}
.balloon-play .challenge-option:nth-child(2) {
  background: #c0d8bc;
  animation-delay: -1.5s;
}
.balloon-play .challenge-option:nth-child(3) {
  background: #d3bfdc;
  animation-delay: -3s;
}
.balloon-play .challenge-option.correct {
  background: #dceaca;
  border: 3px solid #497b42;
  box-shadow: 0 4px #7c9d68;
  animation: none;
}
.balloon-play .challenge-option.wrong {
  background: #efd9ca;
  border: 3px dashed #a24d37;
  box-shadow: 0 4px #c79681;
  animation: none;
}
.challenge-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 65px;
  flex-shrink: 0;
}
.challenge-explanation {
  font-size: 11px;
  color: #83916f;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.challenge-explanation[lang="ar"] {
  font-family: "Amiri", serif;
  font-size: 18px;
  line-height: 1.7;
}
.challenge-bottom .btn {
  max-width: 220px;
  flex-shrink: 0;
}
.challenge-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex: 1;
  min-height: 0;
}
.challenge-result > img {
  height: 80%;
  max-height: 380px;
  object-fit: contain;
  max-width: 35%;
}
.challenge-result > div {
  max-width: 500px;
}
.challenge-result h1 {
  font-family: "Fredoka", cursive;
  font-size: 44px;
  margin: 10px 0;
  line-height: 1.1;
}
.challenge-result p {
  font-size: 14px;
  line-height: 1.6;
}
.challenge-result small {
  display: block;
  font-size: 11px;
  margin: 12px 0 20px;
  color: #879173;
}
.result-score {
  font-family: "Fredoka", cursive;
  font-size: 65px;
  color: #789b5e;
  line-height: 1.2;
}
.result-score span {
  font-size: 25px;
  color: #adb99a;
}
/* Existing learning and games keep their state, with the same bounded stage. */
.progress-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  min-height: 10px;
  flex-shrink: 0;
}
.dot {
  width: 7px;
  height: 7px;
  background: #d2dabd;
}
.dot.active,
.dot.done {
  background: #85a46f;
}
.flashcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  max-height: none;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 30px;
  background: #fffaf0;
  border: 1.5px solid #ceceaa;
  border-radius: 25px 19px 24px 18px;
  box-shadow: 0 5px #bfc9a388;
  gap: 7px;
}
.flashcard .arabic {
  margin: 0;
  font-size: clamp(40px, 7vw, 85px);
  line-height: 1.6;
  color: #3d6147;
}
.flashcard .arabic.long {
  font-size: clamp(26px, 3.5vw, 45px);
}
.flashcard .arabic.extra-long {
  font-size: clamp(20px, 2.6vw, 32px);
}
.flashcard .latin {
  font-size: clamp(12px, 1.5vw, 18px);
  margin: 0;
  color: #b0834b;
  line-height: 1.45;
}
.flashcard .ket {
  margin: 0;
  font-size: 12px;
  max-width: 750px;
  line-height: 1.5;
  color: #87916f;
}
.flashcard .speaker-btn {
  width: 44px;
  height: 42px;
  padding: 5px;
  border-radius: 15px;
  background: #e6edd1;
  border: 1px solid #bbcca0;
  box-shadow: 0 3px #aebe92;
  margin: 3px 0;
}
.speaker-btn .game-icon {
  width: 31px;
  height: 31px;
}
.audio-tools-row {
  gap: 8px;
  margin: 0;
}
.audio-tool-btn {
  font-size: 10px;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid #d4d6b9;
  border-radius: 9px;
  background: #fffbee;
  color: #7a8968;
  box-shadow: none;
}
.audio-tool-btn .game-icon {
  width: 17px;
  height: 17px;
}
.audio-source {
  font-size: 9px;
  margin: 0;
  line-height: 1.4;
  color: #959e81;
}
.aku-bisa-row {
  flex-shrink: 0;
  text-align: center;
  margin: 0;
}
.aku-bisa-row .btn {
  width: 100%;
  max-width: 900px;
  min-height: 39px;
  padding: 8px;
}
.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 4px;
  flex-shrink: 0;
}
.nav-row .btn {
  flex: 1;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 11px;
}
.btn .game-icon {
  width: 22px;
  height: 22px;
}
.game-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 15px;
  margin: 0;
  padding: 4px 5px 8px;
}
.game-tile {
  min-height: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #c7cead;
  background: #fff8e6 !important;
  border-radius: 22px;
  box-shadow: 0 5px #bdc8a0;
}
.game-tile .icon {
  height: auto;
  margin: 0 0 5px;
}
.game-tile .world-icon {
  width: 45px;
  height: 45px;
}
.game-tile h3 {
  font-family: "Fredoka", cursive;
  color: var(--ink);
  font-size: 22px;
  margin: 5px 0;
}
.game-tile p {
  font-size: 11px;
  line-height: 1.5;
  color: #7e8c6c;
  margin: 0;
}
.quiz-question {
  margin: 0 !important;
  padding: 0;
  font-size: 14px;
}
.quiz-card,
.tf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 16px;
  background: #fff9e9;
  border: 1.5px solid #cccfac;
  border-radius: 22px;
  box-shadow: 0 4px #bbc69d;
  gap: 9px;
}
.quiz-arab,
.tf-card .tf-arab {
  font-family: "Amiri", serif;
  font-size: clamp(28px, 4vw, 60px);
  line-height: 1.7;
  margin: 0;
}
.quiz-arab.long {
  font-size: 30px;
}
.quiz-arab.extra-long {
  font-size: 23px;
}
.tf-card .tf-latin {
  font-size: 15px;
}
.tf-card .tf-arab.long {
  font-size: clamp(24px, 3vw, 36px);
}
.tf-card .tf-arab.extra-long {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.65;
}
.order-chip .oc-topic {
  font-family: "Fredoka", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 800;
  direction: ltr;
  overflow-wrap: anywhere;
}
.tf-card .tf-hint {
  font-size: 11px;
}
.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 900px;
  align-self: center;
  margin: 0;
}
.quiz-opt {
  min-height: 50px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  background: #fff9e9;
  border: 1.5px solid #c7cfac;
  box-shadow: 0 3px #b8c59c;
  border-radius: 14px;
}
.quiz-opt .qo-arab {
  font-size: 25px;
}
.quiz-score {
  font-size: 12px;
  padding: 3px 10px;
}
.hearts-row {
  font-size: 16px;
  line-height: 1;
}
.hearts-row .game-icon {
  width: 24px;
  height: 24px;
}
.tf-buttons {
  margin: 5px auto;
  gap: 15px;
  width: 100%;
  max-width: 600px;
}
.tf-btn {
  min-height: 47px;
  padding: 10px;
  border-radius: 15px;
  font-size: 16px;
  box-shadow: 0 4px #a8b98e;
}
.quiz-feedback {
  min-height: 0 !important;
  font-size: 11px;
}
.match-grid {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 920px;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}
.match-card {
  min-height: 0;
  height: auto;
  min-width: 0;
  padding: 8px;
  border-radius: 17px;
  font-size: 13px;
  box-shadow: 0 3px #b9c69e;
  border-color: #c6cfac;
  background: #fff9e9;
}
.match-card.face-arab {
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.8;
}
.match-card.face-latin {
  font-size: 12px;
  line-height: 1.5;
}
.order-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 5px;
}
.order-chip {
  min-height: 0;
  overflow-wrap: anywhere;
  padding: 15px;
  border: 1.5px solid #c8ceae;
  background: #fff9e9;
  box-shadow: 0 4px #bbc7a0;
  border-radius: 19px;
}
.oc-arab {
  font-size: clamp(22px, 2.8vw, 35px);
  line-height: 1.7;
}
.oc-latin {
  font-size: 11px;
  line-height: 1.4;
}
.order-tip {
  font-size: 12px;
  text-align: center;
  margin: 0;
  padding: 4px 10px;
  line-height: 1.3;
}
.worksheet-paper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 14px 25px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  background: #fffaf0;
  box-shadow: 0 4px #c5ccaa;
  border: 1.5px solid #c9d0ad;
  border-radius: 17px;
}
.worksheet-holes {
  display: none;
}
.ws-title {
  font-size: 14px;
  margin: 0 0 6px;
}
.ws-instruction {
  font-size: 10px;
  margin: 0;
}
.ws-q {
  width: 100%;
  padding: 10px 0;
  border: 0;
}
.ws-q-arab {
  font-size: 34px;
  line-height: 1.8;
}
.ws-q-arab.long {
  font-size: 27px;
}
.ws-q-arab.extra-long {
  font-size: 23px;
}
.ws-options {
  gap: 8px;
  margin: 8px 0 0;
}
.ws-opt {
  padding: 10px;
  font-size: 12px;
  min-height: 40px;
  border-radius: 10px;
}
.ws-submit-row {
  flex-shrink: 0;
  margin: 0;
  text-align: center;
}
.ws-submit-row .btn {
  min-height: 36px;
  padding: 7px 15px;
  font-size: 11px;
}
.ws-submit-row:has(#btnSheetUlangi) {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ws-submit-row #btnSheetGameLain {
  margin-top: 0 !important;
}
.ws-stamp + .worksheet-paper .ws-instruction {
  display: none;
}
.ws-submit-row p {
  margin: 6px 0 0 !important;
  font-size: 10px !important;
}
.ws-stamp {
  position: static;
  font-size: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  transform: none;
}
.worksheet-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-shrink: 0;
  font-size: 11px;
}
.ws-result {
  font-size: 11px;
  margin: 8px 0 0;
}
.celebrate {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.celebrate-card {
  width: 100%;
  max-width: 750px;
  max-height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: #fff9e9;
  border: 1.5px solid #c4cba4;
  box-shadow: 0 5px #bdc89d;
  border-radius: 25px;
}
.celebrate-card > h3,
.celebrate-card > p,
.celebrate-card > .xp-earned {
  flex: 0 0 100%;
  margin: 0;
}
.celebrate-card h3 {
  font-size: 28px;
}
.celebrate-card p {
  font-size: 13px;
}
.celebrate-card .btn {
  flex: 1 1 40%;
  min-height: 35px;
  font-size: 11px;
  padding: 8px;
  margin: 0;
}
.success-scene {
  width: 110px;
  height: 110px;
  margin: 0;
}
.success-raqi {
  width: 80px;
  height: 96px;
}
.celebrate-card .xp-earned {
  font-size: 11px;
  padding: 5px;
}
.big-star {
  font-size: 40px;
  margin: 0;
}
.audio-note {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + 8px);
  transform: translateX(-50%);
  z-index: 25;
  width: calc(100% - 36px);
  max-width: 680px;
  padding: 11px 15px;
  border-radius: 13px;
  border: 1px solid #cebe87;
  background: #fff4cf;
  box-shadow: 0 4px 15px #45613725;
  font-size: 11px;
}
.audio-note.hidden {
  display: none;
}
.answer-feedback {
  bottom: calc(var(--dock) + 12px);
  max-height: 70px;
  width: auto;
  max-width: calc(100% - 28px);
  padding: 9px 15px;
  border-radius: 17px;
  font-size: 12px;
}
.answer-feedback img {
  width: 36px;
  height: 45px;
}
.answer-feedback .game-icon {
  width: 22px;
  height: 22px;
}
.answer-feedback strong {
  font-size: 12px;
}
.lesson-success {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #f5f1dcdf;
  border-radius: 25px;
}
/* Text-heavy variants use fewer, larger faces; do not inherit the old long page. */
.quiz-opt {
  min-height: 48px;
  padding: 11px 13px;
  font-size: 15px;
  line-height: 1.5;
  border: 1.5px solid #c6cfa9;
  box-shadow: 0 3px #b9c69f;
  border-radius: 14px;
  background: #fff9e8;
}
.quiz-card .speaker-btn {
  width: 58px;
  height: 57px;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #b9c89b;
  background: #e7edd5;
  box-shadow: 0 3px #b4c496;
  border-radius: 20px;
}
.quiz-card .speaker-btn .game-icon {
  width: 40px;
  height: 40px;
}
.quiz-card .quiz-feedback {
  margin: 0;
}
.quiz-card .clue-box {
  margin: 5px 0;
  padding: 12px;
  font-size: 15px;
  line-height: 1.5;
  max-width: 650px;
  background: #f2eed6;
  border: 0;
  box-shadow: none;
}
.match-grid.long-faces {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.match-card,
.long-faces .match-card {
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
  border: 1px solid #c5cfaa;
  background: #b4c5a0;
}
.match-card.face-arab,
.long-faces .face-arab {
  font-size: 24px;
  line-height: 1.8;
  background: #fff9e9;
}
.match-card.face-latin,
.long-faces .face-latin {
  font-size: 12px;
  line-height: 1.5;
  background: #fff9e9;
}
.match-card.matched {
  background: #d3e3bb;
  color: #6d8a58;
}
.match-review {
  text-align: center;
  font-size: 10px;
  margin: 0;
}
.match-review p {
  margin: 0 0 5px;
}
.match-review .btn {
  min-height: 30px;
  font-size: 10px;
  padding: 6px 12px;
}
.match-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.match-stats .pill {
  min-height: 0;
  font-size: 10px;
  padding: 5px 10px;
  background: #eef0d7;
  border: 1px solid #d0d7b8;
}
.match-stats .game-icon {
  width: 17px;
  height: 17px;
}
/* Parent space and collections. */
.parent-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 850px;
  width: 100%;
  align-self: center;
  background: #fff9e8;
  padding: 10px 27px;
  border: 1.5px solid #ccd0b0;
  border-radius: 25px;
  box-shadow: 0 5px #c4cca7;
}
.parent-panel .setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-height: 0;
  gap: 20px;
  padding: 15px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #d9ddbf;
  box-shadow: none;
  border-radius: 0;
}
.parent-panel .setting-row:last-child {
  border-bottom: 0;
}
.setting-row h2 {
  font-size: 14px;
  margin: 0 0 5px;
}
.setting-row p {
  font-size: 11px;
  line-height: 1.5;
  color: #859174;
  margin: 0;
}
.setting-row select {
  max-width: 140px;
  font-size: 12px;
  font-weight: 800;
  padding: 9px;
  background: #e6ecd5;
  border: 1px solid #c0cba4;
  border-radius: 10px;
}
.setting-toggle,
.setting-btn {
  padding: 9px 15px;
  border: 1px solid #bdc9a2;
  background: #e7edd8;
  border-radius: 11px;
  min-width: 65px;
  font-size: 12px;
  box-shadow: 0 3px #bdc6a2;
}
.setting-toggle.on {
  background: #7b9c6c;
}
.setting-btn.danger {
  background: #f3dfd2;
  border-color: #d3b8a3;
  color: #a66a54;
}
.achievement-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  flex-shrink: 0;
  padding: 12px;
}
.achievement-summary > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.achievement-summary strong {
  font-family: "Fredoka", cursive;
  font-size: 27px;
}
.achievement-summary span {
  font-size: 10px;
  color: #849375;
}
.achievement-summary .world-icon {
  width: 28px;
  height: 28px;
}
.topic-card.compact {
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 12px;
}
.topic-card.compact > .world-icon {
  width: 38px;
  height: 38px;
}
.topic-card.compact > div {
  flex: 1;
}
.topic-card.compact h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}
.topic-card.compact p {
  margin: 4px 0;
  font-size: 10px;
}
.topic-card progress {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 4px;
}
.empty-scene {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.empty-scene img {
  height: 45%;
  max-height: 230px;
  width: auto;
}
.empty-scene h2 {
  font-family: "Fredoka", cursive;
  font-size: 28px;
  margin: 0;
}
/* The intro uses the same illustrated world, not the old glossy card assets. */
.welcome-dialog {
  width: min(960px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 2px solid #b0c295;
  border-radius: 35px 25px 35px 20px;
  background: #f9f5df;
  box-shadow: 0 20px 100px #294b4b55;
  overflow: hidden;
}
.welcome-dialog::backdrop {
  background: #27473166;
  backdrop-filter: blur(6px);
}
.intro-scene {
  background: url("../../assets/images/play-world.webp") center / cover;
}
.intro-orbit,
.intro-sun,
.intro-spark {
  display: none;
}
.intro-raqi {
  width: 75%;
  left: 15%;
  max-height: 90%;
  object-fit: contain;
}
.intro-raqi-name {
  color: #4f7352;
  background: #fff6d8;
  box-shadow: none;
  border-color: #aabb8c;
}
.intro-copy {
  background: #faf6e4;
  padding: 45px 35px;
}
.intro-copy h1 {
  color: #3d6347;
  font-size: 50px;
}
.intro-copy h1 em {
  color: #b98648;
}
.intro-logo {
  color: #4e7955;
}
.intro-logo > span {
  color: #c18d4c;
}
.intro-copy p {
  color: #82906c;
}
.intro-eyebrow,
.intro-footnote {
  color: #899778;
}
.intro-features {
  color: #7b8c65;
  font-size: 10px;
}
.intro-start {
  width: 100%;
  margin-top: 14px;
  background: #63885b;
}
.intro-skip {
  color: #587a53;
  background: #f9f4df;
  font-size: 11px;
  z-index: 5;
}
@keyframes raqi-world {
  0%,
  100% {
    transform: rotate(-1.5deg) translateY(0);
  }
  50% {
    transform: rotate(1deg) translateY(-4px);
  }
}
@keyframes world-flicker {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px);
  }
}
@keyframes balloon-drift {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}
@media (min-width: 1600px) {
  body {
    background-size: 100% 100%;
  }
  .app {
    padding-left: 5%;
    padding-right: 5%;
  }
}
@media (max-width: 1050px) {
  .app,
  .app.dashboard-view {
    padding-left: 22px;
    padding-right: 22px;
  }
  .world-welcome h1 {
    font-size: 50px;
  }
  .world-welcome p {
    font-size: 11px;
  }
  .raqi-companion > div {
    display: none;
  }
  .destination-label {
    min-width: 135px;
    padding: 8px 25px 8px 10px;
  }
  .destination-label strong {
    font-size: 17px;
  }
  .destination-label small {
    font-size: 6px;
  }
  .module-art {
    width: 45px;
    height: 60px;
  }
  .module-art .world-icon {
    width: 35px;
    height: 35px;
  }
  .topic-card h2 {
    font-size: 20px;
  }
  .topic-card {
    padding: 12px;
    gap: 10px;
  }
  .topic-card.illustrated {
    padding: 0;
  }
  .module-actions .round-control {
    width: 27px;
    height: 27px;
  }
  .exam-island {
    width: 100%;
  }
  .activity-copy h2 {
    font-size: 22px;
  }
}
@media (max-width: 699px) {
  :root {
    --hud: 69px;
    --dock: 82px;
  }
  body {
    background-size: auto 100%;
    background-position: 54% center;
  }
  .app,
  .app.dashboard-view {
    padding-left: 16px;
    padding-right: 16px;
  }
  .adventure-header {
    gap: 7px;
  }
  .game-logo {
    font-size: 29px;
    gap: 6px;
  }
  .game-logo small {
    font-size: 5.3px;
    letter-spacing: 1px;
    margin-top: 5px;
  }
  .game-logo .logo-book {
    width: 32px;
    height: 35px;
    border-radius: 11px;
  }
  .logo-book .world-icon {
    width: 25px;
    height: 25px;
  }
  .player-stats {
    gap: 5px;
    margin-right: 28px;
  }
  .player-level {
    display: none;
  }
  .player-stat {
    min-width: 0;
    min-height: 29px;
    padding: 4px 6px;
    border-radius: 10px;
    gap: 3px;
  }
  .player-stat strong {
    font-size: 11px;
  }
  .player-stat .world-icon {
    width: 18px;
    height: 18px;
  }
  .player-stat small {
    font-size: 7px;
  }
  .parent-control {
    width: 28px;
    height: 28px;
    padding: 4px;
  }
  .parent-control .world-icon {
    width: 19px;
    height: 19px;
  }
  .music-btn {
    width: 28px;
    height: 28px;
    top: 20px;
    right: 13px;
    padding: 4px;
  }
  .music-btn .game-icon {
    width: 20px;
    height: 20px;
  }
  .screen-stage {
    gap: 9px;
  }
  .screen-stage > .topbar {
    min-height: 25px;
    height: 25px;
  }
  .topbar .brand-title {
    font-size: 11px !important;
  }
  .back-btn {
    font-size: 10px;
    gap: 3px;
  }
  .section-intro {
    margin-top: 0;
    margin-bottom: 2px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .section-intro h1 {
    font-size: 28px;
    margin: 7px 0 5px;
  }
  .section-intro p {
    font-size: 11px;
    line-height: 1.45;
  }
  .quiet-note {
    font-size: 8px;
  }
  .bottom-nav,
  .bottom-nav.focus-mode {
    bottom: calc(17px + env(safe-area-inset-bottom));
    height: 57px;
    width: 350px;
    padding: 4px 5px;
    border-radius: 20px;
  }
  .bottom-nav .bn-item {
    flex-direction: column;
    gap: 4px;
    height: 46px;
    padding: 3px;
  }
  .bottom-nav .bn-label {
    font-size: 8px;
  }
  .bottom-nav .bn-icon {
    height: 25px;
    width: 25px;
  }
  .bottom-nav .world-icon {
    height: 25px;
    width: 25px;
  }
  .footer-note {
    width: 100%;
    bottom: 3px;
    right: 0;
    text-align: center;
    font-size: 7px;
  }
  .world-welcome {
    top: 0;
    left: 0;
  }
  .world-welcome .eyebrow {
    font-size: 6px;
    letter-spacing: 1.2px;
  }
  .world-welcome h1 {
    font-size: 43px;
    margin: 10px 0 8px;
  }
  .world-welcome p {
    font-size: 9px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .age-chip {
    font-size: 8px;
    padding: 6px 8px;
  }
  .age-chip .world-icon {
    width: 14px;
    height: 14px;
  }
  .world-map {
    inset: 0 -7px;
  }
  .map-destination {
    min-width: 0;
  }
  .destination-label {
    min-width: 125px;
    padding: 8px 23px 8px 8px;
    border-radius: 11px 9px 11px 8px;
  }
  .destination-label small {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .destination-label strong {
    font-size: 17px;
  }
  .destination-label .world-icon {
    width: 14px;
    height: 14px;
  }
  .destination-label > span {
    right: 5px;
  }
  .destination-marker {
    width: 31px;
    height: 31px;
    margin-bottom: 6px;
    border-width: 1.5px;
    outline-width: 1.5px;
  }
  .destination-marker .world-icon {
    width: 21px;
    height: 21px;
  }
  .destination-path {
    left: 24%;
    top: 45%;
  }
  .destination-quran {
    left: 76%;
    top: 25%;
  }
  .destination-topics {
    left: 75%;
    top: 49%;
  }
  .destination-main {
    left: 27%;
    top: 68%;
  }
  .destination-exam {
    left: 76%;
    top: 75%;
  }
  .raqi-companion {
    left: -13px;
    bottom: 13%;
  }
  .raqi-companion > img {
    height: 137px;
  }
  .continue-ticket {
    left: 0;
    right: 0;
    bottom: 0;
    min-width: 0;
    padding: 9px 12px;
    gap: 8px;
    border-radius: 16px;
  }
  .ticket-icon {
    width: 35px;
    height: 38px;
  }
  .ticket-icon .world-icon {
    width: 27px;
    height: 27px;
  }
  .continue-ticket strong {
    font-size: 18px;
  }
  .continue-ticket small {
    font-size: 6px;
  }
  .continue-ticket > span:nth-child(2) > span {
    font-size: 8px;
  }
  .ticket-play {
    width: 29px;
    height: 29px;
  }
  .world-corner-note {
    display: none;
  }
  .topic-grid,
  .activity-grid,
  .surah-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 4px 3px 6px;
  }
  .topic-card.illustrated {
    flex-direction: row;
    align-items: stretch;
  }
  .landmark-picture {
    flex: 0 0 39%;
    width: 39%;
    min-height: 0;
    border: 0;
    border-right: 1px solid #c9c9a7;
    background-size: 500%;
  }
  .topic-copy {
    padding: 12px 25px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .topic-card h2 {
    font-size: 24px;
  }
  .topic-card small {
    font-size: 7px;
  }
  .topic-card p {
    font-size: 10px;
  }
  .topic-go {
    right: 9px;
    bottom: 12px;
  }
  .module-art {
    width: 60px;
    height: 76px;
  }
  .module-art .world-icon {
    width: 44px;
    height: 44px;
  }
  .module-card {
    padding: 15px;
  }
  .card-open h2 {
    font-size: 23px;
  }
  .module-actions {
    gap: 12px;
  }
  .activity-card {
    flex-direction: row;
    padding: 18px 17px;
    gap: 18px;
    text-align: left;
    justify-content: flex-start;
    border-radius: 25px 18px 26px 17px;
  }
  .activity-art {
    width: 78px;
    height: 84px;
    min-width: 78px;
  }
  .activity-art > .world-icon {
    width: 58px;
    height: 58px;
  }
  .activity-copy h2 {
    font-size: 27px;
  }
  .activity-copy small {
    font-size: 6px;
  }
  .activity-copy p {
    font-size: 11px;
    max-width: 170px;
  }
  .activity-arrow {
    right: 11px;
    bottom: 10px;
  }
  .page-controls {
    min-height: 36px;
    gap: 20px;
    font-size: 9px;
  }
  .page-controls .round-control {
    width: 32px;
    height: 32px;
  }
  .stage-island {
    margin: 4px 0;
    padding: 10px;
    min-height: 0;
    border-radius: 35% 30% 20% 24%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
  }
  .stage-stop {
    width: 100%;
    max-width: none;
    transform: none;
  }
  .stop-0 {
    grid-column: 1;
    grid-row: 2;
  }
  .stop-1 {
    grid-column: 2;
    grid-row: 1/3;
  }
  .stop-2 {
    grid-column: 1;
    grid-row: 1;
  }
  .trail-line {
    left: 32%;
    top: 25%;
    height: 50%;
    width: 39%;
    border: 12px solid #f9eac1;
    border-left: 0;
    border-radius: 0 70% 70% 0;
    transform: none;
  }
  .stage-caption {
    font-size: 6px;
    margin-bottom: 6px;
  }
  .stage-node {
    width: 68px;
    height: 58px;
    border-width: 3px;
    padding: 10px;
    box-shadow:
      0 5px #477948,
      0 7px 0 3px #b8c995;
  }
  .stage-node .world-icon {
    width: 30px;
    height: 30px;
  }
  .stage-stop h2 {
    margin: 12px 0 3px;
    font-size: 20px;
  }
  .stage-stop p {
    font-size: 9px;
    max-width: 125px;
    margin-bottom: 3px;
  }
  .stage-stop > small {
    font-size: 8px;
  }
  .stage-actions {
    margin-top: 6px;
    gap: 4px;
  }
  .stage-actions .mini-action {
    padding: 4px 6px;
    font-size: 9px;
    min-height: 25px;
  }
  .stage-actions .world-icon {
    width: 15px;
    height: 15px;
  }
  .age-tabs {
    gap: 7px;
  }
  .age-tab {
    font-size: 10px;
    gap: 3px;
    padding: 7px;
    border-radius: 11px;
    flex: 1;
    justify-content: center;
  }
  .age-tab .world-icon {
    width: 18px;
    height: 18px;
  }
  .exam-island {
    flex-direction: column;
    gap: 6px;
    padding: 15px 20px 20px;
    border-radius: 25px 35px;
    text-align: center;
    margin: 4px 0;
  }
  .exam-illustration {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 38%;
    max-height: 180px;
    flex: 1;
  }
  .exam-illustration img {
    height: 100%;
    width: auto;
  }
  .exam-hill {
    width: 160px;
    left: calc(50% - 80px);
  }
  .exam-illustration > .world-icon {
    width: 45px;
    height: 45px;
    left: 17%;
    top: 15%;
  }
  .exam-description {
    flex: 0;
  }
  .exam-description h2 {
    font-size: 28px;
    margin: 7px 0;
  }
  .exam-description p {
    font-size: 11px;
    margin: 0;
  }
  .exam-description .eyebrow {
    font-size: 6px;
  }
  .exam-meta {
    gap: 6px;
    justify-content: center;
    font-size: 8px;
    margin: 12px 0;
  }
  .exam-description .btn {
    font-size: 12px;
    padding: 10px 15px;
  }
  .surah-book {
    padding: 12px;
    border-left-width: 7px;
    border-radius: 7px 21px 21px 7px;
  }
  .surah-number {
    top: 16px;
    left: 18px;
  }
  .surah-arab {
    font-size: 29px;
    line-height: 1.5;
  }
  .surah-book strong {
    font-size: 23px;
  }
  .book-flower {
    position: absolute;
    right: 25px;
    top: 35%;
  }
  .book-flower .world-icon {
    width: 24px;
    height: 24px;
  }
  .surah-book small {
    font-size: 9px;
  }
  .book-open {
    margin-top: 8px;
    font-size: 9px;
  }
  .reader-heading {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 10px;
  }
  .reader-heading .eyebrow {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .reader-heading .mini-action {
    font-size: 9px;
    padding: 5px 7px;
    min-height: 28px;
  }
  .reader-heading .world-icon {
    width: 16px;
    height: 16px;
  }
  .quran-page {
    padding: 20px 22px;
    gap: 12px;
    border-radius: 17px;
  }
  .reader-arab {
    font-size: 37px;
    line-height: 1.9;
  }
  .reader-arab.long {
    font-size: 31px;
  }
  .reader-arab.extra-long {
    font-size: 25px;
  }
  .reader-meaning {
    font-size: 11px;
    line-height: 1.6;
  }
  .reader-source {
    font-size: 7px;
  }
  .reader-listen {
    font-size: 11px;
    padding: 7px 12px;
  }
  .reader-controls {
    gap: 7px;
    min-height: 43px;
  }
  .reader-controls .btn {
    padding: 8px 9px;
    min-height: 39px;
    font-size: 9px;
    border-radius: 12px;
    gap: 4px;
  }
  .reader-controls .world-icon {
    width: 17px;
    height: 17px;
  }
  .challenge-play {
    gap: 15px;
  }
  .challenge-play h1 {
    font-size: 25px;
  }
  .challenge-arab {
    font-size: 36px;
    line-height: 1.8;
  }
  .challenge-arab.long {
    font-size: 27px;
  }
  .challenge-arab.extra-long {
    font-size: 23px;
  }
  .challenge-options {
    gap: 9px;
    flex-direction: column;
  }
  .challenge-option {
    padding: 11px;
    font-size: 12px;
    min-height: 43px;
    border-radius: 13px;
  }
  .arabic-options {
    flex-direction: row;
  }
  .arabic-options .challenge-option {
    font-size: 25px;
    padding: 10px 7px;
  }
  .balloon-play .challenge-option {
    min-height: 87px;
  }
  .listen-illustration > .world-icon {
    width: 72px;
    height: 72px;
  }
  .challenge-meter {
    gap: 8px;
    font-size: 8px;
  }
  .challenge-bottom {
    flex-direction: column;
    gap: 9px;
    min-height: 74px;
    align-items: stretch;
  }
  .challenge-bottom .btn {
    max-width: none;
    width: 100%;
    font-size: 12px;
    min-height: 40px;
    padding: 10px;
  }
  .challenge-explanation {
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
  }
  .challenge-explanation[lang="ar"] {
    font-size: 15px;
  }
  .challenge-result {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .challenge-result > img {
    height: 35%;
    max-width: 60%;
  }
  .challenge-result > div {
    max-width: 100%;
  }
  .challenge-result h1 {
    font-size: 31px;
  }
  .challenge-result p {
    font-size: 12px;
  }
  .result-score {
    font-size: 53px;
  }
  .challenge-result small {
    font-size: 10px;
    margin: 10px 0 15px;
  }
  .flashcard {
    padding: 13px 17px;
    gap: 6px;
    border-radius: 20px 16px 20px 14px;
  }
  .flashcard .arabic {
    font-size: 65px;
    line-height: 1.5;
  }
  .flashcard .arabic.long {
    font-size: 31px;
  }
  .flashcard .arabic.extra-long {
    font-size: 22px;
  }
  .flashcard .latin {
    font-size: 12px;
  }
  .flashcard .ket {
    font-size: 11px;
  }
  .flashcard .speaker-btn {
    width: 40px;
    height: 39px;
  }
  .audio-tool-btn {
    font-size: 9px;
    padding: 4px 7px;
  }
  .audio-source {
    font-size: 8px;
  }
  .nav-row {
    gap: 9px;
  }
  .nav-row .btn {
    min-height: 36px;
    font-size: 10px;
  }
  .aku-bisa-row .btn {
    min-height: 39px;
    font-size: 12px;
  }
  .game-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .game-tile {
    padding: 15px;
    gap: 3px;
  }
  .game-tile h3 {
    font-size: 25px;
  }
  .game-tile p {
    font-size: 11px;
  }
  .game-tile .world-icon {
    width: 52px;
    height: 52px;
  }
  .quiz-card,
  .tf-card {
    padding: 15px;
  }
  .quiz-options {
    gap: 8px;
  }
  .quiz-opt {
    min-height: 57px;
    padding: 9px;
    font-size: 12px;
  }
  .quiz-opt .qo-arab {
    font-size: 23px;
  }
  .tf-card .tf-arab {
    font-size: 36px;
  }
  .tf-card .tf-latin {
    font-size: 13px;
  }
  .tf-card .tf-hint {
    font-size: 10px;
  }
  .tf-btn {
    min-height: 43px;
    font-size: 13px;
  }
  .match-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .match-card {
    border-radius: 12px;
    padding: 6px;
    font-size: 11px;
  }
  .match-card.face-arab {
    font-size: 18px;
    line-height: 1.6;
  }
  .match-card.face-latin {
    font-size: 10px;
  }
  .order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .order-chip {
    padding: 10px;
  }
  .oc-arab {
    font-size: 25px;
  }
  .oc-latin {
    font-size: 10px;
  }
  .worksheet-paper {
    padding: 12px 15px;
  }
  .ws-q-arab {
    font-size: 33px;
  }
  .ws-q-arab.long {
    font-size: 26px;
  }
  .ws-q-arab.extra-long {
    font-size: 20px;
  }
  .ws-options {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ws-opt {
    padding: 9px;
    font-size: 11px;
    min-height: 35px;
  }
  .ws-title {
    font-size: 12px;
  }
  .ws-instruction {
    font-size: 8px;
  }
  .ws-q {
    padding: 8px 0;
  }
  .ws-q-head {
    gap: 7px;
  }
  .ws-q-num {
    font-size: 12px;
    width: 23px;
    height: 23px;
  }
  .worksheet-pagination {
    gap: 15px;
    font-size: 9px;
  }
  .worksheet-pagination .round-control {
    width: 29px;
    height: 29px;
  }
  .ws-submit-row p {
    font-size: 8px !important;
  }
  .ws-result {
    font-size: 9px;
  }
  .celebrate-card {
    padding: 15px;
    gap: 9px;
  }
  .celebrate-card h3 {
    font-size: 25px;
  }
  .celebrate-card p {
    font-size: 11px;
  }
  .celebrate-card .btn {
    flex-basis: 100%;
    min-height: 33px;
    font-size: 10px;
    padding: 6px;
  }
  .success-scene {
    width: 95px;
    height: 95px;
  }
  .celebrate-card .success-raqi {
    width: 70px;
    height: 84px;
  }
  .achievement-summary {
    padding: 7px 0;
    gap: 15px;
  }
  .achievement-summary > div {
    flex-direction: column;
    gap: 2px;
  }
  .achievement-summary strong {
    font-size: 24px;
    line-height: 1.2;
  }
  .achievement-summary span {
    font-size: 8px;
  }
  .achievement-summary .world-icon {
    width: 24px;
    height: 24px;
  }
  .topic-card.compact h2 {
    font-size: 23px;
  }
  .parent-panel {
    padding: 5px 16px;
    border-radius: 20px;
  }
  .parent-panel .setting-row {
    gap: 10px;
    padding: 10px 0;
  }
  .setting-row h2 {
    font-size: 12px;
  }
  .setting-row p {
    font-size: 9px;
    line-height: 1.4;
  }
  .setting-row select {
    max-width: 108px;
    font-size: 10px;
    padding: 7px 5px;
    flex-shrink: 0;
  }
  .setting-toggle,
  .setting-btn {
    min-width: 48px;
    font-size: 10px;
    padding: 8px 9px;
    flex-shrink: 0;
  }
  .welcome-dialog {
    border-radius: 25px;
    max-height: calc(100dvh - 30px);
  }
  .intro-scene {
    min-height: 190px;
    height: 30vh;
  }
  .intro-raqi {
    height: 95%;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .intro-copy {
    padding: 20px 25px 23px;
  }
  .intro-copy h1 {
    font-size: 35px;
    margin: 8px 0;
  }
  .intro-copy p {
    font-size: 12px;
  }
  .intro-logo {
    font-size: 25px;
  }
  .intro-eyebrow {
    font-size: 7px;
  }
  .intro-features {
    margin: 12px 0;
    font-size: 8px;
  }
  .intro-start {
    margin-top: 7px;
    min-height: 43px;
  }
  .intro-footnote {
    font-size: 8px;
  }
  .intro-raqi-name {
    font-size: 10px;
    bottom: 8px;
  }
  .intro-skip {
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    font-size: 9px;
  }
}
/* Short windows get fewer list items and compact controls, not cropped pages. */
@media (max-height: 700px) {
  :root {
    --hud: 57px;
    --dock: 68px;
  }
  .bottom-nav.focus-mode {
    display: none !important;
  }
  .game-session .app {
    padding-bottom: 18px;
  }
  .music-btn {
    top: 15px;
  }
  .section-intro h1 {
    font-size: 25px;
    margin: 5px 0;
  }
  .section-intro p {
    font-size: 10px;
  }
  .section-intro .eyebrow {
    font-size: 7px;
  }
  .screen-stage {
    gap: 7px;
  }
  .bottom-nav,
  .bottom-nav.focus-mode {
    height: 49px;
    bottom: 12px;
  }
  .bottom-nav .bn-item {
    height: 39px;
  }
  .bottom-nav .world-icon {
    width: 21px;
    height: 21px;
  }
  .bottom-nav .bn-icon {
    height: 21px;
  }
  .world-welcome h1 {
    font-size: 39px;
    margin: 7px 0;
  }
  .world-welcome p {
    font-size: 9px;
  }
  .raqi-companion > img {
    height: 120px;
  }
  .continue-ticket {
    padding: 7px 10px;
  }
  .ticket-icon {
    height: 34px;
  }
  .topic-grid,
  .activity-grid,
  .surah-grid {
    gap: 12px;
  }
  .activity-art {
    width: 65px;
    height: 65px;
    min-width: 65px;
  }
  .activity-copy h2 {
    font-size: 24px;
  }
  .activity-copy p {
    font-size: 10px;
  }
  .surah-arab {
    font-size: 24px;
    line-height: 1.3;
  }
  .book-flower .world-icon {
    width: 21px;
    height: 21px;
  }
  .book-open {
    margin-top: 7px;
  }
  .surah-book strong {
    font-size: 21px;
  }
  .stage-stop h2 {
    font-size: 18px;
    margin-top: 11px;
  }
  .stage-stop p {
    font-size: 8px;
  }
  .stage-node {
    height: 48px;
    width: 57px;
    padding: 8px;
  }
  .stage-caption {
    font-size: 5px;
    margin-bottom: 5px;
  }
  .stage-actions {
    margin-top: 5px;
  }
  .stage-actions .mini-action {
    min-height: 22px;
    padding: 3px 6px;
  }
  .stage-actions .world-icon {
    width: 13px;
    height: 13px;
  }
  .stage-island {
    padding: 7px;
  }
  .quran-page {
    padding: 15px 20px;
    gap: 8px;
  }
  .reader-arab {
    font-size: 30px;
    line-height: 1.75;
  }
  .reader-arab.long {
    font-size: 26px;
  }
  .reader-arab.extra-long {
    font-size: 21px;
  }
  .reader-meaning {
    font-size: 10px;
  }
  .ayah-ornament {
    width: 28px;
    height: 28px;
    min-height: 28px;
    font-size: 17px;
  }
  .reader-controls .btn {
    min-height: 34px;
    font-size: 9px;
    padding: 7px 9px;
  }
  .reader-heading {
    font-size: 9px;
  }
  .challenge-play {
    gap: 9px;
  }
  .challenge-play h1 {
    font-size: 23px;
  }
  .challenge-arab {
    font-size: 30px;
  }
  .challenge-arab.long {
    font-size: 24px;
  }
  .challenge-arab.extra-long {
    font-size: 20px;
  }
  .challenge-option {
    min-height: 35px;
    padding: 8px;
    font-size: 11px;
  }
  .arabic-options .challenge-option {
    font-size: 23px;
    padding: 8px;
  }
  .balloon-play .challenge-option {
    min-height: 67px;
  }
  .listen-illustration > .world-icon {
    width: 57px;
    height: 57px;
    padding: 10px;
  }
  .challenge-bottom {
    min-height: 61px;
    gap: 7px;
  }
  .challenge-bottom .btn {
    min-height: 34px;
    font-size: 11px;
    padding: 8px;
  }
  .challenge-explanation {
    font-size: 9px;
  }
  .exam-island {
    padding: 10px 17px 15px;
  }
  .exam-description h2 {
    font-size: 25px;
  }
  .exam-description p {
    font-size: 10px;
  }
  .exam-meta {
    margin: 9px 0;
  }
  .exam-illustration {
    max-height: 130px;
  }
  .flashcard {
    gap: 4px;
    padding: 10px 15px;
  }
  .flashcard .arabic {
    font-size: 48px;
    line-height: 1.4;
  }
  .flashcard .arabic.long {
    font-size: 27px;
  }
  .flashcard .arabic.extra-long {
    font-size: 19px;
  }
  .flashcard .latin {
    font-size: 10px;
  }
  .flashcard .ket {
    font-size: 10px;
  }
  .flashcard .speaker-btn {
    width: 34px;
    height: 33px;
    padding: 4px;
    margin: 0;
  }
  .speaker-btn .game-icon {
    width: 24px;
    height: 24px;
  }
  .audio-tools-row {
    gap: 5px;
  }
  .audio-tool-btn {
    min-height: 23px;
    padding: 3px 6px;
    font-size: 8px;
  }
  .audio-source {
    font-size: 7px;
  }
  .aku-bisa-row .btn {
    min-height: 33px;
    padding: 6px;
    font-size: 11px;
  }
  .nav-row .btn {
    min-height: 31px;
    padding: 5px 8px;
    font-size: 9px;
  }
  .btn .game-icon {
    width: 17px;
    height: 17px;
  }
  .parent-panel .setting-row {
    padding: 7px 0;
  }
  .setting-row p {
    font-size: 8px;
  }
  .setting-row h2 {
    font-size: 11px;
  }
  .worksheet-paper {
    padding: 10px 14px;
  }
  .ws-opt {
    min-height: 30px;
    font-size: 10px;
    padding: 6px 9px;
  }
  .ws-q-arab {
    font-size: 27px;
  }
  .ws-q-arab.long {
    font-size: 23px;
  }
  .ws-q-arab.extra-long {
    font-size: 19px;
  }
  .ws-q {
    padding: 5px 0;
  }
  .ws-title {
    font-size: 11px;
  }
  .ws-instruction {
    font-size: 8px;
  }
  .ws-submit-row .btn {
    min-height: 29px;
    padding: 5px 10px;
    font-size: 9px;
  }
  .ws-stamp {
    font-size: 13px;
  }
  .success-scene {
    width: 70px;
    height: 70px;
  }
  .celebrate-card .success-raqi {
    width: 50px;
    height: 63px;
  }
  .celebrate-card {
    gap: 7px;
    padding: 12px;
  }
  .celebrate-card h3 {
    font-size: 22px;
  }
  .celebrate-card .btn {
    min-height: 29px;
    padding: 5px 8px;
    font-size: 10px;
  }
  .intro-scene {
    min-height: 140px;
    height: 25vh;
  }
  .intro-copy {
    padding: 13px 24px 17px;
  }
  .intro-copy h1 {
    font-size: 29px;
  }
  .intro-copy p {
    font-size: 10px;
  }
  .intro-features {
    margin: 8px 0;
  }
  .intro-logo {
    font-size: 22px;
  }
  .intro-start {
    min-height: 35px;
    font-size: 11px;
  }
  .intro-footnote {
    font-size: 7px;
  }
}
@media (max-height: 599px) and (min-width: 480px) {
  :root {
    --hud: 48px;
    --dock: 62px;
  }
  .game-logo {
    font-size: 27px;
  }
  .game-logo .logo-book {
    width: 31px;
    height: 33px;
  }
  .game-logo small {
    font-size: 5px;
  }
  .logo-book .world-icon {
    width: 25px;
    height: 25px;
  }
  .player-stat {
    min-height: 27px;
    padding: 3px 8px;
  }
  .music-btn {
    top: 10px;
    width: 29px;
    height: 29px;
    padding: 4px;
  }
  .player-stats {
    margin-right: 43px;
  }
  .parent-control {
    width: 29px;
    height: 29px;
    padding: 4px;
  }
  .screen-stage > .topbar {
    min-height: 21px;
    height: 21px;
  }
  .section-intro {
    margin: 4px 0;
  }
  .section-intro .eyebrow,
  .section-intro p {
    display: none;
  }
  .section-intro h1 {
    font-size: 25px;
    margin: 2px 0;
  }
  .topic-grid,
  .activity-grid,
  .surah-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
  .topic-card.illustrated {
    flex-direction: row;
  }
  .landmark-picture {
    flex: 0 0 40%;
    border: 0;
  }
  .topic-copy {
    align-self: center;
    padding: 12px;
  }
  .activity-card {
    flex-direction: row;
    gap: 20px;
    text-align: left;
  }
  .world-welcome h1 {
    font-size: 35px;
  }
  .world-welcome p {
    display: none;
  }
  .age-chip {
    font-size: 8px;
  }
  .destination-label {
    min-width: 120px;
    padding: 7px 22px 6px 8px;
  }
  .destination-label strong {
    font-size: 15px;
  }
  .destination-label small {
    font-size: 5px;
  }
  .destination-marker {
    width: 29px;
    height: 29px;
    margin-bottom: 6px;
  }
  .destination-marker .world-icon {
    width: 20px;
    height: 20px;
  }
  .destination-path {
    left: 26%;
    top: 48%;
  }
  .destination-quran {
    top: 24%;
  }
  .destination-topics {
    top: 35%;
  }
  .destination-main {
    top: 72%;
  }
  .destination-exam {
    top: 80%;
  }
  .raqi-companion {
    bottom: 0;
    left: 190px;
  }
  .raqi-companion > img {
    height: 105px;
  }
  .continue-ticket {
    min-width: 180px;
    max-width: 230px;
  }
  .continue-ticket strong {
    font-size: 16px;
  }
  .continue-ticket small {
    font-size: 5px;
  }
  .ticket-icon {
    width: 27px;
  }
  .ticket-play {
    width: 24px;
    height: 24px;
  }
  .ticket-play .world-icon {
    width: 18px;
    height: 18px;
  }
  .world-corner-note {
    font-size: 8px;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
  .game-tile .world-icon {
    width: 36px;
    height: 36px;
  }
  .game-tile h3 {
    font-size: 21px;
  }
  .game-tile p {
    font-size: 10px;
  }
  .stage-island {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 30px;
    margin: 0;
  }
  .stage-stop {
    flex: 1;
    min-width: 0;
  }
  .stage-node {
    height: 46px;
    width: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
  }
  .stage-stop h2 {
    font-size: 18px;
    margin: 5px 0 2px;
  }
  .stage-stop p {
    display: none;
  }
  .stage-actions {
    margin-top: 5px;
  }
  .stage-caption {
    margin-bottom: 5px;
  }
  .stop-1 {
    transform: none;
  }
  .stop-0,
  .stop-2 {
    transform: none;
  }
  .exam-island {
    flex-direction: row;
    max-width: 800px;
    gap: 15px;
    padding: 10px 25px;
  }
  .exam-illustration {
    flex: 0 0 28%;
    height: 100%;
    min-width: 130px;
    width: 30%;
    max-height: 150px;
  }
  .exam-description {
    flex: 1;
    min-width: 0;
  }
  .exam-description h2 {
    font-size: 25px;
    margin: 4px 0;
  }
  .exam-description p {
    font-size: 10px;
    margin: 0;
  }
  .exam-description .eyebrow {
    display: none;
  }
  .exam-meta {
    margin: 8px 0;
  }
  .exam-description .btn {
    min-height: 30px;
    padding: 6px 13px;
    font-size: 10px;
  }
  .surah-book {
    padding: 8px 12px;
  }
  .surah-book .book-open {
    margin-top: 5px;
  }
  .age-tab {
    padding: 5px 15px;
    font-size: 10px;
  }
  .age-tab .world-icon {
    width: 17px;
    height: 17px;
  }
  .quran-page {
    gap: 5px;
    padding: 12px 25px;
  }
  .reader-arab {
    font-size: 28px;
    line-height: 1.6;
  }
  .reader-arab.long {
    font-size: 24px;
  }
  .reader-arab.extra-long {
    font-size: 20px;
  }
  .reader-meaning {
    font-size: 10px;
  }
  .reader-listen {
    padding: 5px 10px;
    font-size: 9px;
  }
  .ayah-ornament {
    position: absolute;
    top: 14px;
    right: 15px;
  }
  .reader-controls {
    min-height: 36px;
  }
  .reader-controls .btn {
    min-height: 30px;
    padding: 6px 15px;
    font-size: 10px;
  }
  .reader-heading .mini-action {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 9px;
  }
  .reader-heading {
    font-size: 9px;
  }
  .challenge-play {
    gap: 6px;
  }
  .challenge-play h1 {
    font-size: 22px;
  }
  .challenge-arab {
    font-size: 27px;
    line-height: 1.6;
  }
  .challenge-arab.long {
    font-size: 22px;
  }
  .challenge-arab.extra-long {
    font-size: 18px;
  }
  .challenge-options {
    max-width: 800px;
  }
  .challenge-option {
    padding: 8px;
    font-size: 11px;
    min-height: 33px;
  }
  .challenge-bottom {
    min-height: 36px;
  }
  .listen-illustration > .world-icon {
    width: 45px;
    height: 45px;
    padding: 8px;
  }
  .challenge-play > .eyebrow {
    font-size: 7px;
  }
  .challenge-play .mini-action {
    min-height: 23px;
    font-size: 9px;
    padding: 3px 7px;
  }
  .challenge-play .mini-action .world-icon {
    width: 17px;
    height: 17px;
  }
  .arabic-options .challenge-option {
    font-size: 22px;
    padding: 7px;
  }
  .balloon-play .challenge-option {
    min-height: 50px;
  }
  .challenge-result > img {
    height: 80%;
  }
  .challenge-result h1 {
    font-size: 32px;
  }
  .result-score {
    font-size: 45px;
  }
  .challenge-result p {
    font-size: 11px;
    margin: 5px 0;
  }
  .challenge-result small {
    font-size: 9px;
    margin: 6px 0 10px;
  }
  .challenge-result .btn {
    min-height: 32px;
    font-size: 10px;
    padding: 7px 12px;
  }
  .flashcard {
    position: relative;
    padding: 8px 95px 8px 20px;
    gap: 3px;
  }
  .flashcard .arabic {
    font-size: 39px;
    line-height: 1.4;
  }
  .flashcard .arabic.long {
    font-size: 25px;
  }
  .flashcard .arabic.extra-long {
    font-size: 18px;
  }
  .flashcard .latin {
    font-size: 10px;
  }
  .flashcard .ket {
    font-size: 9px;
  }
  .flashcard .speaker-btn {
    position: absolute;
    top: 12px;
    right: 20px;
    width: 35px;
    height: 34px;
  }
  .audio-tools-row {
    position: absolute;
    right: 12px;
    top: 55px;
    flex-direction: column;
    gap: 5px;
  }
  .audio-tool-btn {
    max-width: 78px;
    min-height: 22px;
    padding: 3px 5px;
    font-size: 7px;
  }
  .audio-tool-btn .game-icon {
    width: 12px;
    height: 12px;
  }
  .audio-source {
    font-size: 6px;
  }
  .progress-dots {
    min-height: 7px;
  }
  .dot {
    width: 5px;
    height: 5px;
  }
  .aku-bisa-row .btn {
    min-height: 27px;
    padding: 4px;
    font-size: 10px;
  }
  .nav-row .btn {
    min-height: 26px;
    padding: 4px;
    font-size: 9px;
  }
  .quiz-card,
  .tf-card {
    padding: 8px;
    gap: 6px;
  }
  .quiz-card .speaker-btn {
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 5px;
  }
  .quiz-card .speaker-btn .game-icon {
    width: 30px;
    height: 30px;
  }
  .quiz-arab,
  .tf-card .tf-arab {
    font-size: 27px;
    line-height: 1.5;
  }
  .quiz-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .quiz-opt {
    min-height: 36px;
    font-size: 11px;
    padding: 7px;
  }
  .quiz-opt .qo-arab {
    font-size: 22px;
  }
  .tf-buttons {
    margin: 0 auto;
  }
  .tf-btn {
    min-height: 32px;
    padding: 6px;
    font-size: 12px;
  }
  .tf-card .tf-latin {
    font-size: 11px;
  }
  .tf-card .tf-arab.extra-long {
    font-size: 20px;
    line-height: 1.5;
  }
  .tf-card .tf-hint {
    font-size: 9px;
  }
  .match-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }
  .match-card {
    padding: 5px;
  }
  .long-faces .match-card {
    padding: 5px;
  }
  .match-review {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .match-card.face-arab {
    font-size: 20px;
    line-height: 1.5;
  }
  .match-card.face-latin {
    font-size: 9px;
  }
  .order-grid {
    grid-template-columns: repeat(var(--order-count, 5), minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 9px;
  }
  .order-chip {
    padding: 10px;
  }
  .oc-arab {
    font-size: 23px;
  }
  .oc-latin {
    font-size: 9px;
  }
  .ws-q-arab {
    font-size: 24px;
    line-height: 1.5;
  }
  .ws-q-arab.long {
    font-size: 21px;
  }
  .ws-q-arab.extra-long {
    font-size: 17px;
  }
  .ws-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ws-opt {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 10px;
  }
  .worksheet-paper {
    padding: 8px 15px;
  }
  .ws-title {
    font-size: 10px;
    margin: 0;
  }
  .ws-instruction {
    font-size: 8px;
  }
  .ws-q {
    padding: 4px 0;
  }
  .worksheet-pagination .round-control {
    width: 25px;
    height: 25px;
    padding: 4px;
  }
  .ws-submit-row .btn {
    min-height: 26px;
    padding: 5px 12px;
    font-size: 9px;
  }
  .ws-submit-row p {
    display: none;
  }
  .ws-stamp {
    font-size: 11px;
  }
  .ws-stamp > div {
    display: none;
  }
  .celebrate-card {
    max-width: 700px;
    gap: 5px;
    padding: 10px 20px;
  }
  .success-scene {
    position: absolute;
    left: calc(50% - 275px);
    width: 85px;
    height: 85px;
  }
  .celebrate-card .btn {
    flex: 1 1 20%;
    min-height: 30px;
    font-size: 9px;
    padding: 6px;
  }
  .celebrate-card h3 {
    font-size: 23px;
  }
  .celebrate-card p {
    font-size: 11px;
  }
  .parent-panel {
    padding: 3px 20px;
  }
  .parent-panel .setting-row {
    padding: 6px 0;
  }
  .setting-row h2 {
    font-size: 11px;
    margin-bottom: 2px;
  }
  .setting-row p {
    font-size: 8px;
  }
  .setting-toggle,
  .setting-btn,
  .setting-row select {
    font-size: 9px;
    padding: 5px 10px;
  }
  .achievement-summary {
    padding: 3px 0;
    gap: 20px;
  }
  .achievement-summary > div {
    flex-direction: row;
    gap: 6px;
  }
  .achievement-summary .world-icon {
    width: 22px;
    height: 22px;
  }
  .achievement-summary span {
    max-width: 55px;
  }
  .achievement-summary strong {
    font-size: 23px;
  }
  .topic-card.compact h2 {
    font-size: 16px;
  }
  .topic-card.compact {
    padding: 5px 8px;
    gap: 8px;
  }
  .topic-card.compact p {
    font-size: 9px;
    line-height: 1.2;
    margin: 2px 0;
  }
  .topic-card.compact > .world-icon {
    width: 27px;
    height: 27px;
  }
}
/* Very short landscape keeps navigation and learning content, not duplicate headings. */
@media (max-height: 359px) and (min-width: 480px) {
  :root {
    --hud: 40px;
    --dock: 44px;
  }
  .bottom-nav,
  .bottom-nav.focus-mode {
    height: 36px;
    bottom: 4px;
  }
  .bottom-nav .bn-item {
    height: 30px;
    padding: 2px;
    gap: 2px;
  }
  .bottom-nav .bn-icon,
  .bottom-nav .world-icon {
    height: 17px;
    width: 17px;
  }
  .bottom-nav .bn-label {
    font-size: 8px;
  }
  .music-btn {
    top: 6px;
  }
  .screen-stage {
    gap: 4px;
  }
  .section-intro {
    display: none;
  }
  .topic-grid,
  .activity-grid,
  .surah-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }
  .destination-exam {
    top: 75%;
  }
  .challenge-play {
    gap: 3px;
  }
  .challenge-play > .eyebrow {
    display: none;
  }
  .quiz-card,
  .tf-card {
    padding: 6px;
    gap: 3px;
  }
  .match-card.face-arab {
    font-size: 17px;
    line-height: 1.4;
  }
  .tf-card .tf-arab.extra-long {
    font-size: 18px;
    line-height: 1.4;
  }
  .hearts-row,
  .quiz-feedback:empty,
  .tf-card .tf-latin,
  .tf-card .tf-hint {
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .map-destination:hover {
    transform: translate(-50%, -50%);
  }
}
