/* Original IqroQu play garden: large picture choices and tactile toy controls. */
/* Local, subsetted Noto Emoji keeps game symbols visible without OS emoji fonts. */
@font-face {
  font-family: "IqroQu Symbols";
  src: url("../../assets/game-symbols.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+2300-27FF, U+2B00-2BFF, U+1F000-1FAFF;
}
:root {
  --paper: #fff9e7;
  --paper-line: #f6e8b8;
  --ink: #344765;
  --teal: #1aab9b;
  --teal-dark: #087c79;
  --yellow: #ffcf43;
  --coral: #ff8247;
  --violet: #9a6be2;
  --green: #6cbe45;
  --card-shadow: 0 7px 0 #30426a24;
}
html {
  min-width: 320px;
  background: #8bce57;
}
body {
  display: flow-root;
  min-height: 100vh;
  background: #8bce57 url("../../assets/play-garden.webp") center top/cover no-repeat;
  color: var(--ink);
  font-family: "IqroQu Symbols", "Fredoka", sans-serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font-family: inherit;
  touch-action: manipulation;
}
button:not(:disabled),
a {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 4px solid #7433be;
  outline-offset: 5px;
}
button:disabled {
  cursor: not-allowed;
}
button svg {
  pointer-events: none;
}
.app {
  width: calc(100% - 48px);
  max-width: 1100px;
  margin: 28px auto 150px;
  padding: 28px 32px;
  border: 0;
  background: none;
  box-shadow: none;
  min-height: 0;
}
.app.dashboard-view {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 40px 138px;
  background: none;
  box-shadow: none;
  border: 0;
}
.music-btn {
  position: fixed;
  top: 28px;
  /* Align with the dashboard's padded edge after its 138px navigation rail. */
  right: max(26px, calc((100vw - 1300px - 138px) / 2 + 40px));
  width: 52px;
  height: 51px;
  border: 3px solid white;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: #fff29a;
  color: #b9800b;
  box-shadow:
    0 5px 0 #c79e39,
    0 7px 12px #378b9a33;
  z-index: 80;
}
.music-btn svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.3;
}
.music-btn.off {
  background: #e3f7ff;
  color: #4694b0;
  box-shadow: 0 5px 0 #70b1ca;
}
.bottom-nav {
  position: fixed;
  inset: auto auto 18px 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: #fff8d9;
  border: 4px solid white;
  border-bottom: 7px solid #dcc392;
  border-radius: 28px;
  box-shadow:
    0 9px 0 #25744745,
    0 12px 22px #15656126;
  z-index: 70;
}
.nav-brand,
.nav-caption,
.nav-bottom {
  display: none;
}
.bn-item {
  min-width: 88px;
  min-height: 65px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px 12px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #647790;
  transition:
    transform 0.18s,
    background 0.18s;
}
.bn-item[data-nav="dashboard"] {
  order: 0;
  --nav-color: #24afc4;
}
.bn-item[data-nav="main"] {
  order: 1;
  --nav-color: #f38d32;
}
.bn-item[data-nav="progres"] {
  order: 2;
  --nav-color: #a26cdb;
}
.bn-item[data-nav="favorit"] {
  order: 3;
  --nav-color: #e8ab1c;
}
.bn-item[data-nav="pengaturan"] {
  order: 4;
  --nav-color: #7895bc;
}
.bn-icon {
  display: grid;
  place-items: center;
  color: var(--nav-color);
  opacity: 1;
  filter: none;
}
.bn-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}
.bn-label {
  font:
    800 13px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  color: inherit;
}
.bn-item.active {
  background: #fff0b4;
  box-shadow: inset 0 -3px 0 #efd184;
}
.bn-item.active .bn-label {
  color: #795822;
}
.bn-item.active .bn-icon {
  color: var(--nav-color);
  transform: translateY(-2px);
}
.bn-item:hover {
  transform: translateY(-3px);
  background: #ffefbc;
}
.bn-item:active {
  transform: translateY(3px);
}
.adventure-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-right: 72px;
  min-height: 65px;
  margin-bottom: 22px;
}
.game-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font:
    800 51px/0.82 "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  letter-spacing: -2px;
  filter: drop-shadow(0 3px 0 #177caa);
}
.game-logo > div {
  -webkit-text-stroke: 5px white;
  paint-order: stroke fill;
  color: #148f9c;
}
.game-logo > div > span {
  color: #ffaf25;
}
.game-logo small {
  display: block;
  font:
    900 9px/1 "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  color: #26748b;
  letter-spacing: 1.2px;
  margin-top: 10px;
  -webkit-text-stroke: 0;
}
.logo-book {
  display: grid;
  place-items: center;
  width: 55px;
  height: 57px;
  border: 4px solid white;
  border-radius: 17px 17px 17px 6px;
  color: white;
  background: #26b9a5;
  font:
    800 40px "Amiri",
    serif;
  letter-spacing: 0;
  transform: rotate(-7deg);
  box-shadow: inset 0 -5px 0 #159a8a;
}
.player-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 7px 15px;
  background: #fff8da;
  border: 3px solid white;
  border-radius: 20px;
  box-shadow: 0 4px 0 #2e96bb66;
  color: #986923;
  font-size: 18px;
  font-weight: 900;
}
.player-stat svg {
  width: 25px;
  height: 25px;
  color: #efb420;
  fill: #ffdb5a;
  stroke-width: 2;
}
.player-stat small {
  font-size: 12px;
}
.player-stat.flame {
  background: #fff0dc;
  color: #b8612c;
}
.player-stat.flame svg {
  color: #ef8235;
  fill: #ffb64b;
}
.play-heading {
  text-align: center;
  margin: 18px 0 27px;
}
.garden-sign {
  display: inline-block;
  padding: 5px 23px;
  border: 3px solid #fff;
  border-radius: 12px;
  color: #8b591c;
  background: #ffe292;
  box-shadow: 0 4px 0 #b4883a66;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  transform: rotate(-2deg);
}
.play-heading h1 {
  color: #387bc1;
  font:
    800 clamp(30px, 3.6vw, 49px) / 1.15 "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  margin: 16px 0 5px;
  -webkit-text-stroke: 7px white;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 #17739950;
  letter-spacing: -1px;
}
.play-heading p {
  display: inline-block;
  padding: 3px 15px;
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: #226b8b;
  background: #e3faffd9;
  border-radius: 20px;
}
.playground-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 35px;
  max-width: 1110px;
  margin: auto;
}
.raqi-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  align-self: center;
}
.raqi-speech {
  position: relative;
  z-index: 2;
  background: #fffdf2;
  border: 3px solid white;
  border-radius: 23px 23px 23px 6px;
  box-shadow:
    0 5px 0 #d4e6c6,
    0 6px 15px #2983a92b;
  padding: 15px 18px;
  color: #338f8c;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
  transform: rotate(-4deg);
}
.raqi-speech:after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  border: 8px solid transparent;
  border-top-color: #fffdf2;
}
.raqi-speech strong {
  font-size: 13px;
  color: #6f8a88;
}
.raqi-character {
  width: 270px;
  height: 280px;
  object-fit: contain;
  object-position: center bottom;
  margin: 10px -30px 0;
  filter: drop-shadow(0 12px 6px #2b6f4630);
  animation: raqiFloat 4s ease-in-out infinite;
}
@keyframes raqiFloat {
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}
.hero-cta {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 19px;
  color: #fff;
  background: linear-gradient(#ffbd38, #ff9629);
  border: 4px solid #fff6d1;
  border-radius: 25px;
  box-shadow:
    0 7px 0 #c87715,
    0 12px 18px #51783230;
  font:
    800 25px/1.1 "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  text-shadow: 0 2px 0 #bc6d22;
  transition:
    transform 0.18s,
    filter 0.18s;
}
.hero-cta small {
  display: block;
  font:
    800 11px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  margin-top: 5px;
  text-shadow: none;
  color: #fff8db;
}
.play-triangle {
  font-size: 29px;
  filter: drop-shadow(0 2px 0 #d27926);
}
.hero-cta:hover {
  transform: translateY(-4px) rotate(-1deg);
  filter: brightness(1.05);
}
.hero-cta:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 #c87715;
}
.world-map {
  min-width: 0;
}
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px 22px;
}
.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--world-bg);
  padding: 4px 4px 0;
  min-width: 0;
  border: 4px solid #fff;
  border-radius: 29px;
  box-shadow:
    0 7px 0 var(--world-edge),
    0 11px 0 #356d4830,
    0 15px 22px #19676b26;
  transition:
    transform 0.2s,
    filter 0.2s;
  isolation: isolate;
  text-align: center;
  overflow: visible;
}
.world-card:nth-child(2) {
  transform: rotate(2deg);
}
.world-card:nth-child(4) {
  transform: rotate(-2deg);
}
.world-card:nth-child(6) {
  transform: rotate(2deg);
}
.world-card:hover {
  transform: translateY(-7px) rotate(-2deg) scale(1.035);
  filter: brightness(1.04);
  z-index: 3;
}
.world-card:active {
  transform: translateY(5px) scale(0.98);
  box-shadow: 0 2px 0 var(--world-edge);
}
.world-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 141px;
  border-radius: 22px 22px 0 0;
  background: radial-gradient(ellipse at 50% 60%, #fff9 0, #fff0 68%);
}
.world-visual img {
  display: block;
  width: 185px;
  max-width: 110%;
  height: 153px;
  object-fit: contain;
  filter: drop-shadow(0 5px 1px #395f4e25);
  transition: transform 0.2s;
  margin-top: -8px;
}
.world-card:hover img {
  transform: rotate(3deg) scale(1.04);
}
.world-number {
  position: absolute;
  top: 5px;
  left: 8px;
  font-size: 11px;
  font-weight: 900;
  color: var(--world-edge);
  opacity: 0.75;
}
.world-spark {
  position: absolute;
  right: 6px;
  top: 38px;
  color: var(--world-accent);
  font-size: 24px;
}
.world-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 4px 8px;
  border-radius: 15px;
  background: var(--world-accent);
  color: #fff;
  box-shadow: inset 0 2px 0 #ffffff42;
}
.world-info h3 {
  min-width: 0;
  font:
    800 21px/1.15 "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  color: #fff;
  text-shadow: 0 2px 0 var(--world-edge);
}
.world-arrow {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--world-edge);
  border-radius: 50%;
  background: #fffbdc;
  box-shadow: 0 2px 0 #0002;
}
.world-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 7px 0 6px;
}
.world-stars svg {
  height: 19px;
  width: 19px;
  stroke: var(--world-edge);
  opacity: 0.35;
  fill: #fff;
  stroke-width: 1.5;
}
.world-stars .earned svg {
  fill: #ffce37;
  stroke: #b66b14;
  opacity: 1;
}
.world-progress {
  height: 4px;
  width: 75%;
  margin: 0 auto 6px;
  background: #ffffff94;
  border-radius: 5px;
  overflow: hidden;
}
.world-progress span {
  height: 100%;
  display: block;
  background: var(--world-accent);
  border-radius: 5px;
}
.reward-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  max-width: 900px;
  margin: 33px auto 0;
  padding: 12px 22px;
  border: 4px solid #fff;
  border-radius: 25px;
  background: #fff5cf;
  box-shadow:
    0 6px 0 #b4cc6a,
    0 9px 20px #25664826;
}
.daily-trophy {
  width: 46px;
  flex-shrink: 0;
  color: #e7a624;
  transform: rotate(-9deg);
}
.daily-trophy svg {
  width: 46px;
  height: 46px;
  stroke-width: 2;
  fill: #ffdc65;
}
.daily-mission {
  flex: 1;
  min-width: 120px;
}
.daily-mission h2 {
  font:
    800 19px/1.2 "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  color: #9c6c23;
}
.daily-mission > span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #997c4e;
  margin-top: 5px;
}
.daily-progress {
  height: 11px;
  margin-top: 6px;
  background: #e9d9a6;
  box-shadow: inset 0 2px 0 #d3bd85;
  border: 2px solid white;
  border-radius: 10px;
  overflow: hidden;
}
.daily-progress span {
  height: 100%;
  display: block;
  background: linear-gradient(#a7df56, #71bb34);
  border-radius: 10px;
}
.mission-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  background: #95ce4c;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: 0 4px 0 #5b982d;
  font:
    800 18px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  white-space: nowrap;
}
.mission-link svg {
  width: 18px;
  height: 18px;
}
.player-level {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-left: 18px;
  border-left: 2px dashed #e1cc94;
}
.level-medal {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 43px;
  height: 47px;
  background: #b48be8;
  border: 3px solid white;
  border-radius: 15px 15px 23px 23px;
  box-shadow: 0 4px 0 #8661b5;
  font:
    800 25px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  color: #fff;
}
.player-level strong {
  display: block;
  font-size: 14px;
  color: #8c62b4;
}
.player-level small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #9b87a9;
  margin-top: 3px;
}
.dashboard-footer {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #347a48;
  margin-top: 17px;
  text-shadow: 0 1px #d8f2ac;
}

/* The learning path and mini-games use the same bright, rounded play surfaces. */
.topbar {
  min-height: 48px;
  margin-bottom: 20px;
  padding-right: 0;
  gap: 15px;
}
.topbar .brand-title {
  font:
    800 20px/1.2 "IqroQu Symbols",
    "Fredoka",
    sans-serif !important;
  color: #244f6a;
  text-align: right;
  background: #fff9dc;
  border: 3px solid white;
  border-radius: 18px;
  padding: 9px 14px;
  box-shadow: 0 4px 0 #76b99d;
}
.back-btn {
  border: 3px solid white;
  border-radius: 17px;
  padding: 10px 17px;
  color: #75440c;
  background: #ffab3e;
  box-shadow: 0 5px 0 #cc8126;
  font:
    800 16px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.back-btn svg {
  width: 22px;
  height: 22px;
}
.mascot-wrap {
  padding: 0 12px;
  background: none;
  border: 0;
  gap: 20px;
  max-width: 650px;
  margin: 12px auto 26px;
  align-items: center;
  justify-content: center;
}
.mascot-illust {
  width: 112px;
  height: 130px;
  flex-shrink: 0;
}
.speech-bubble {
  font:
    800 16px/1.6 "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  background: #fffce7;
  border: 4px solid white;
  color: #35576a;
  box-shadow: 0 6px 0 #61ad8d;
  padding: 13px 19px;
  border-radius: 28px;
  flex: 0 1 auto;
  max-width: 440px;
  transform: rotate(-1deg);
}
.speech-bubble:before,
.speech-bubble:after {
  display: block;
  top: 40%;
  bottom: auto;
  border: 10px solid transparent;
  border-right-color: white;
  left: -22px;
}
.speech-bubble:after {
  left: -15px;
  border-right-color: #fffce7;
}
.intro-card {
  padding: 25px;
  border: 4px solid white;
  border-radius: 27px;
  box-shadow: 0 6px 0 #5da9ad55;
}
.intro-card h2 {
  font-size: 33px;
  line-height: 1.2;
}
.intro-card p {
  font-size: 15px;
  font-weight: 800;
}
.shelf-label,
.menu-section-title {
  color: #fff;
  font:
    800 27px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  margin: 25px 0 15px;
  text-shadow:
    0 3px 0 #31864b,
    0 0 5px #31864b;
  text-align: center;
}
.duo-path {
  max-width: 460px;
  margin: 25px auto;
  padding: 24px 0 30px;
}
.duo-path:before {
  background: #edcf85;
  width: 12px;
  border: 3px dashed #fff4cc;
  border-radius: 20px;
}
.duo-node {
  border: 5px solid white;
  width: 88px;
  height: 88px;
  box-shadow: 0 8px 0 #248c91;
}
/* Move only the node, not its full-width row, to keep narrow maps in bounds. */
.duo-node-col {
  transform: translateX(var(--path-offset, 0px));
}
.duo-node-row {
  margin-bottom: 20px;
}
.duo-node.locked {
  background: #ccd4dc;
  box-shadow: 0 7px 0 #9eabb9;
}
.duo-node-label {
  font:
    800 16px/1.25 "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  color: #34546b;
  background: #fffce6;
  border: 3px solid white;
  border-radius: 14px;
  padding: 5px 9px;
  width: 156px;
  max-width: 156px;
  overflow-wrap: normal;
  hyphens: none;
  box-shadow: 0 3px 0 #63a373;
}
.duo-node-progress {
  font-size: 12px;
  font-weight: 800;
  background: #fff8d7;
  border-radius: 10px;
  padding: 3px 8px;
}
.duo-node-game {
  background: #ffca52;
  border: 3px solid white;
  font-size: 20px;
  box-shadow: 0 3px 0 #c39636;
  width: 44px;
  height: 44px;
}
.duo-node-fav {
  right: calc(50% - 58px);
  width: 32px;
  height: 32px;
}
.duo-node-ring {
  border-color: #ffcf43;
  top: 44px;
  width: 110px;
  height: 110px;
  pointer-events: none;
}
.corner-mascot-block {
  display: none;
}
.flashcard,
.quiz-card,
.tf-card,
.clue-box {
  background: #fffce9;
  border: 7px solid #ffce48;
  border-bottom: 12px solid #e5a92c;
  border-radius: 32px;
  box-shadow: 0 7px 0 #246b7c1f;
}
.flashcard {
  max-width: 650px;
  margin: 0 auto;
  min-height: 330px;
  padding: 30px 20px 25px;
  background: radial-gradient(ellipse at 50% 20%, #fff 30%, #fff3c1 100%);
}
.flashcard .arabic {
  color: #794caf;
}
.flashcard .latin {
  color: #288ca8;
  font:
    800 32px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
}
.flashcard .ket {
  color: #7186a2;
  font-size: 15px;
}
.progress-dots {
  flex-wrap: wrap;
}
.dot {
  background: #e3dac0;
}
.dot.active {
  background: #ffc43c;
  box-shadow: 0 2px 0 #d49320;
}
.dot.done {
  background: #83c84d;
}
.speaker-btn {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 70px;
  background: #ffcf4a;
  border: 4px solid #fff1ba;
  color: #a1661a;
  box-shadow: 0 6px 0 #c99520;
  border-radius: 24px;
}
.speaker-btn svg {
  width: 35px;
  height: 35px;
  stroke-width: 2.3;
}
.audio-tool-btn {
  background: #ebf8fc;
  color: #427c96;
  border: 2px solid #cbe8f0;
  border-radius: 12px;
  font-size: 12px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.audio-tool-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 21px;
  border: 3px solid white;
  border-radius: 18px;
  font:
    800 17px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
  transition: transform 0.15s;
}
.btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.btn:hover:not(:disabled) {
  transform: translateY(-3px);
}
.btn:active:not(:disabled) {
  transform: translateY(4px);
}
.btn-primary {
  color: #fff;
  background: #087e97;
  box-shadow: 0 6px 0 #147d9c;
}
.btn-secondary {
  background: #ffe49a;
  color: #75440c;
  box-shadow: 0 5px 0 #d4a13f;
}
.btn-secondary:disabled {
  opacity: 0.58;
}
.btn-ok {
  background: #98d452;
  color: #2e4b24;
  box-shadow: 0 6px 0 #69a637;
}
.game-grid {
  gap: 23px;
}
.game-tile {
  position: relative;
  padding: 24px 18px;
  border: 4px solid white;
  border-bottom: 8px solid #bbb;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 5px 0 #37638d19;
  transition: transform 0.18s;
}
.game-tile:hover {
  transform: translateY(-5px) rotate(-1deg);
}
.game-tile h3 {
  font-size: 27px;
  margin: 10px 0 5px;
  line-height: 1.1;
}
.game-tile p {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}
.game-tile h3,
.game-tile p {
  color: #3d4e66;
}
.game-tile .icon {
  font-size: 46px;
}
.game-tile .icon svg {
  width: 55px;
  height: 55px;
  stroke-width: 1.8;
}
.game-tile.quiz {
  background: #ffdf9b;
  border-bottom-color: #dba849;
  color: #a76b19;
}
.game-tile.match {
  background: #e5d5ff;
  border-bottom-color: #ab8cd4;
  color: #8c59b8;
}
.game-tile.tf {
  background: #def3ac;
  border-bottom-color: #9ac158;
  color: #6a942a;
}
.game-tile.order {
  background: #ffd9c5;
  border-bottom-color: #dda285;
  color: #bd7348;
}
.game-tile.sheet {
  background: #c8eff9;
  border-bottom-color: #89c3d4;
  color: #3d91ab;
}
.game-tile .icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  background: #ffffffa8;
  border: 3px solid white;
  border-radius: 27px;
  box-shadow: 0 5px 0 #ffffff4d;
  transform: rotate(-5deg);
}
.quiz-opt {
  border: 3px solid #e1e5f0;
  border-bottom: 6px solid #b7c6d7;
  border-radius: 22px;
  background: #f4f9ff;
  font-size: 23px;
  min-height: 75px;
}
.quiz-options,
.ws-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quiz-opt,
.ws-opt,
.ws-q-arab {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ws-opt {
  min-height: 44px;
}
.quiz-opt.correct {
  background: #e0f5b9;
  border-color: #7cb541;
  color: #314923;
  opacity: 1;
}
.quiz-opt.wrong {
  background: #ffe2da;
  border-color: #e2927c;
  color: #823c2d;
  opacity: 1;
}
.main-play-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}
.main-play-card {
  display: flex;
  flex-direction: column;
  padding: 13px;
  gap: 10px;
  border: 5px solid white;
  border-bottom: 9px solid var(--arena-edge);
  border-radius: 32px;
  background: var(--arena-color);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 7px 0 #21695135;
  transition: transform 0.18s;
  min-width: 0;
}
.main-play-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}
.main-play-card:active {
  transform: translateY(4px);
}
.main-play-card.tile-iqro {
  --arena-color: #89e1e0;
  --arena-edge: #299d9c;
}
.main-play-card.tile-sholat {
  --arena-color: #ffd879;
  --arena-edge: #d69c32;
}
.main-play-card.tile-tajwid {
  --arena-color: #d0b5fb;
  --arena-edge: #9568d0;
}
.main-play-card.tile-nabi {
  --arena-color: #aee77e;
  --arena-edge: #69ad45;
}
.main-play-card.tile-arab {
  --arena-color: #ffb9a3;
  --arena-edge: #da7e63;
}
.main-play-card.tile-doa {
  --arena-color: #a4d6ff;
  --arena-edge: #5e9bd2;
}
.main-play-body {
  width: 100%;
  background: #fff9e9;
  border-radius: 18px;
  padding: 8px;
  flex: 1;
}
.main-play-icon {
  width: 100%;
  height: 148px;
  background: radial-gradient(ellipse, #ffffffb8 25%, #fff0 70%);
}
.main-play-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.main-play-title {
  font:
    800 25px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
}
.main-play-sub {
  font-size: 13px;
  font-weight: 800;
  color: #526279;
  opacity: 1;
}
.main-play-btn,
.favorit-open,
.setting-btn {
  background: #30b2c7;
  color: white;
  padding: 11px 18px;
  border: 2px solid white;
  border-radius: 15px;
  box-shadow: 0 4px 0 #288499;
  font:
    800 16px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
}
.main-play-btn {
  width: 100%;
  background: #197f75;
  box-shadow: 0 4px 0 #0c635b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
}
.main-play-btn svg {
  width: 23px;
  height: 23px;
}
.favorit-card,
.setting-row,
.about-card,
.progres-row,
.progres-summary {
  border: 3px solid white;
  border-bottom: 6px solid #d7dfc6;
  box-shadow: none;
  background: #f0f8df;
  border-radius: 23px;
}
.favorit-title,
.setting-title,
.progres-row-title {
  font:
    800 18px "IqroQu Symbols",
    "Fredoka",
    sans-serif;
}
.setting-sub,
.progres-row-sub,
.favorit-sub {
  font-size: 12px;
}
.setting-row {
  gap: 14px;
}
.setting-toggle {
  flex-shrink: 0;
  min-width: 60px;
  min-height: 44px;
}
.setting-btn.danger {
  background: #e98b74;
  box-shadow: 0 4px 0 #b96557;
}
.cat-popup-card,
.celebrate-card {
  border: 5px solid white;
  border-bottom: 9px solid #d5cc9f;
  border-radius: 32px;
  box-shadow: 0 20px 70px #184f6770;
}
.celebrate {
  z-index: 100;
}
.celebrate-card {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.stat-pill {
  font-size: 13px;
}
.footer-note {
  color: #2c633b;
  font-weight: 800;
  font-size: 10px;
  margin-top: 28px;
}

/* Side quests stay in the garden, with colored game pieces rather than a panel. */
.screen-heading {
  margin: 12px 0 18px;
}
.screen-heading h1 {
  font-size: 46px;
  margin: 8px 0 0;
}
.iqroqu-logo {
  filter: drop-shadow(0 3px 0 #ffffff);
}
.mascot-mini {
  display: none;
}
.progres-summary {
  background: #ffe28c;
  border-bottom-color: #d6a640;
  padding: 20px 12px;
}
.ps-num {
  font-size: 30px;
  color: #654b96;
}
.ps-label {
  color: #605277;
  font-weight: 900;
}
.progres-row,
.favorit-card {
  background: #fff9e4;
  border-bottom-color: #c6aa5a;
}
.favorit-card,
.favorit-title {
  color: var(--ink);
}
.favorit-sub {
  color: #526279;
  opacity: 1;
}
.progres-row:nth-child(3n + 1) {
  border-left: 9px solid #42bfc4;
}
.progres-row:nth-child(3n + 2) {
  border-left: 9px solid #f8ba42;
}
.progres-row:nth-child(3n) {
  border-left: 9px solid #af83e5;
}
.progres-row-icon img,
.favorit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.progres-row-icon,
.favorit-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  flex-shrink: 0;
}
.favorit-empty {
  background: #fff6cf;
  border: 5px solid white;
  border-bottom: 9px solid #c8ab50;
  border-radius: 28px;
  padding: 32px 22px;
  color: #50617b;
  font-weight: 800;
}
.setting-row {
  padding: 20px;
  background: #e4f9ff;
  border-bottom-color: #76bdce;
}
.setting-row:nth-child(2) {
  background: #f1e7ff;
  border-bottom-color: #b39acc;
}
.setting-row:nth-child(3) {
  background: #fff0df;
  border-bottom-color: #ddaf79;
}
.setting-sub {
  color: #4f6179;
}
.about-card {
  background: #fff3be;
  border-bottom-color: #d6b765;
  padding: 24px;
}
.quiz-question,
.order-tip {
  color: #345169;
  background: #fff9d8;
  border: 3px solid white;
  border-radius: 15px;
  padding: 10px 15px;
  font-weight: 900;
  box-shadow: 0 4px 0 #75aa62;
}
.quiz-question {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 15px;
}
.hearts-row {
  margin-bottom: 12px;
  filter: drop-shadow(0 3px 0 white);
}
.quiz-score,
.match-stats .pill {
  background: #fff5cb;
  color: #4c5870;
  border: 3px solid white;
  box-shadow: 0 4px 0 #8cba67;
  padding: 8px 15px;
  border-radius: 16px;
}
.match-stats {
  margin: 15px 0 24px;
}
.match-card {
  border: 4px solid white;
  border-bottom: 8px solid #277eae;
  border-radius: 23px;
  background: repeating-linear-gradient(
    45deg,
    #52c2ed,
    #52c2ed 12px,
    #47b6e2 12px,
    #47b6e2 24px
  );
  box-shadow: 0 5px 0 #336b6630;
}
.match-card.flipped {
  background: #fff9d9;
  border-color: #fff;
  border-bottom-color: #c9b16d;
  color: #5b4786;
}
.match-card.matched {
  background: #dcf6ab;
  border-bottom-color: #75ae3c;
}
.order-chip {
  background: #fff8d7;
  border: 4px solid white;
  border-bottom: 7px solid #d6b252;
  border-radius: 24px;
  box-shadow: 0 5px 0 #457a4c35;
}
.order-chip:nth-child(even) {
  background: #e6d7ff;
  border-bottom-color: #a887d2;
}
.order-chip.placed {
  background: #d7f4b4;
  border-bottom-color: #78ad45;
}
.order-chip.wrong {
  background: #ffd9ce;
  border-bottom-color: #d9816a;
}
.tf-card {
  background: #fff5d2;
}
.tf-btn {
  min-height: 64px;
  border: 4px solid white;
  border-radius: 22px;
  box-shadow: 0 6px 0 #2d7b4960;
}
.worksheet-paper {
  background: #fff8da;
  border: 5px solid white;
  border-bottom: 9px solid #cda443;
  border-radius: 27px;
}
.ws-q {
  background: #fffdf1;
  border: 3px solid #f0dd9d;
  border-bottom: 6px solid #d4bf7c;
  border-radius: 22px;
  padding: 14px;
}
.ws-opt {
  border-radius: 16px;
  border: 2px solid #adcaec;
  border-bottom: 4px solid #91aaca;
}
.nav-row {
  gap: 12px;
}

@media (max-width: 800px) {
  .main-play-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .screen-heading h1 {
    font-size: 35px;
  }
  .main-play-list {
    gap: 20px 12px;
  }
  .main-play-card {
    padding: 8px;
    border-width: 4px;
    border-bottom-width: 7px;
    border-radius: 25px;
    gap: 7px;
  }
  .main-play-icon {
    height: 112px;
  }
  .main-play-title {
    font-size: 21px;
    line-height: 1.1;
    margin-bottom: 5px;
  }
  .main-play-sub {
    font-size: 11px;
  }
  .main-play-body {
    padding: 9px 5px;
    border-radius: 14px;
  }
  .main-play-btn {
    padding: 8px;
    font-size: 15px;
    gap: 7px;
  }
  .main-play-btn svg {
    width: 20px;
    height: 20px;
  }
  .mascot-wrap {
    padding: 0;
    gap: 8px;
  }
  .mascot-illust {
    width: 85px;
    height: 108px;
  }
  .speech-bubble {
    font-size: 13px;
    padding: 12px;
    border-radius: 20px;
  }
  .topbar .brand-title {
    padding: 6px 9px;
    font-size: 15px !important;
  }
  .progres-summary {
    gap: 6px;
    padding: 16px 8px;
  }
  .ps-num {
    font-size: 24px;
  }
  .progres-row-icon,
  .favorit-icon {
    width: 48px;
    height: 58px;
  }
  .setting-row {
    padding: 16px 12px;
  }
}
/* Desktop navigation has its own rail and never covers a world card. */
@media (min-width: 901px) {
  body {
    padding-left: 138px;
  }
  .bottom-nav {
    inset: 22px auto auto 16px;
    transform: none;
    width: 112px;
    max-height: calc(100dvh - 44px);
    overflow-y: auto;
    flex-direction: column;
    gap: 8px;
    padding: 10px 6px;
  }
  .bn-item {
    min-width: 0;
    width: 100%;
    flex-shrink: 0;
    padding: 9px 4px;
  }
  .bn-label {
    font-size: 11px;
  }
  .app {
    margin-bottom: 40px;
  }
  .app.dashboard-view {
    padding-bottom: 40px;
  }
}
@media (min-width: 1500px) {
  .app.dashboard-view {
    padding-top: 32px;
  }
  .play-heading {
    margin: 25px 0 34px;
  }
  .world-visual {
    height: 163px;
  }
  .world-visual img {
    height: 174px;
    width: 210px;
  }
  .reward-strip {
    margin-top: 40px;
  }
}
@media (max-width: 1100px) {
  .app.dashboard-view {
    padding: 20px 28px 138px;
  }
  .playground-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 23px;
  }
  .world-grid {
    gap: 23px 14px;
  }
  .world-info h3 {
    font-size: 18px;
  }
  .world-visual {
    height: 125px;
  }
  .world-visual img {
    height: 140px;
    width: 150px;
  }
  .raqi-character {
    width: 235px;
    height: 265px;
  }
  .hero-cta {
    font-size: 22px;
  }
  .raqi-speech {
    font-size: 15px;
    padding: 12px;
  }
  .raqi-speech strong {
    font-size: 11px;
  }
}
@media (max-width: 800px) {
  body {
    background-position: 35% center;
  }
  .app {
    margin-top: 18px;
    padding: 22px;
    width: calc(100% - 30px);
  }
  .app.dashboard-view {
    padding: 20px 23px 138px;
  }
  .adventure-header {
    padding-right: 58px;
    gap: 10px;
  }
  .game-logo {
    font-size: 42px;
  }
  .logo-book {
    width: 45px;
    height: 48px;
    font-size: 32px;
  }
  .game-logo small {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .music-btn {
    top: 25px;
    right: 22px;
    width: 47px;
    height: 46px;
    border-radius: 16px;
  }
  .player-stat {
    padding: 7px 10px;
    font-size: 15px;
    gap: 5px;
    min-height: 39px;
  }
  .player-stat small {
    display: none;
  }
  .player-stat svg {
    width: 22px;
    height: 22px;
  }
  .player-stats {
    gap: 8px;
  }
  .play-heading {
    margin: 20px 0 16px;
  }
  .play-heading h1 {
    font-size: 36px;
  }
  .play-heading p {
    font-size: 12px;
  }
  .playground-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .raqi-welcome {
    display: grid;
    grid-template-columns: 116px 1fr;
    grid-template-rows: auto auto;
    max-width: 410px;
    width: 100%;
    column-gap: 14px;
  }
  .raqi-character {
    grid-column: 1;
    grid-row: 1/3;
    width: 136px;
    height: 156px;
    margin: -6px -10px 0;
  }
  .raqi-speech {
    grid-column: 2;
    padding: 10px 13px;
    font-size: 15px;
    transform: rotate(-2deg);
    border-radius: 20px;
  }
  .raqi-speech strong {
    font-size: 11px;
  }
  .raqi-speech:after {
    left: -16px;
    top: 25px;
    bottom: auto;
    border: 8px solid transparent;
    border-right-color: #fffdf2;
  }
  .hero-cta {
    grid-column: 2;
    font-size: 21px;
    padding: 9px 12px;
    border-width: 3px;
    border-radius: 20px;
    margin-top: 11px;
    gap: 8px;
  }
  .hero-cta small {
    font-size: 9px;
    margin-top: 2px;
  }
  .play-triangle {
    font-size: 24px;
  }
  .world-map {
    width: 100%;
    max-width: 650px;
  }
  .world-visual {
    height: 137px;
  }
  .world-visual img {
    width: 170px;
    height: 151px;
  }
  .world-info h3 {
    font-size: 20px;
  }
  .reward-strip {
    max-width: 650px;
    margin-top: 28px;
    padding: 12px 15px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .player-level {
    padding: 12px 0 0;
    border: 0;
    border-top: 2px dashed #e4cd93;
    width: 100%;
    justify-content: center;
    margin-top: 7px;
  }
  .player-level small {
    font-size: 11px;
  }
  .player-level strong {
    font-size: 15px;
  }
  .level-medal {
    width: 36px;
    height: 38px;
    font-size: 23px;
  }
  .bottom-nav {
    bottom: 12px;
    gap: 3px;
    padding: 8px;
  }
  .bn-item {
    min-width: 75px;
    padding: 5px 8px;
  }
  .bn-label {
    font-size: 11px;
  }
  .topbar .brand-title {
    font-size: 17px !important;
  }
  .speech-bubble {
    font-size: 14px;
    padding: 10px 13px;
  }
}
@media (max-width: 540px) {
  /* Long answer phrases need reading space, unlike the short audio choices. */
  .quiz-options.text-options,
  .ws-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .ws-options {
    margin-left: 0;
  }
  .app.dashboard-view {
    padding: 14px 19px 137px;
  }
  .adventure-header {
    min-height: 50px;
    padding-right: 46px;
  }
  .game-logo {
    font-size: 34px;
    gap: 6px;
  }
  .logo-book {
    width: 37px;
    height: 40px;
    font-size: 27px;
    border-width: 3px;
    border-radius: 12px 12px 12px 4px;
  }
  .game-logo > div {
    -webkit-text-stroke: 4px white;
  }
  .game-logo small {
    display: none;
  }
  .player-stats {
    gap: 6px;
  }
  .player-stat {
    min-height: 34px;
    font-size: 13px;
    padding: 5px 8px;
    border-width: 2px;
    border-radius: 14px;
    gap: 4px;
  }
  .player-stat svg {
    width: 19px;
    height: 19px;
  }
  .music-btn {
    top: 22px;
    right: 17px;
    width: 38px;
    height: 37px;
    border-width: 2px;
    border-radius: 13px;
  }
  .music-btn svg {
    width: 21px;
    height: 21px;
  }
  .garden-sign {
    font-size: 8px;
    padding: 5px 14px;
    letter-spacing: 1.6px;
    border-width: 2px;
    border-radius: 9px;
  }
  .play-heading {
    margin: 14px 0 12px;
  }
  .play-heading h1 {
    font-size: 32px;
    line-height: 1.04;
    max-width: 300px;
    margin: 13px auto 9px;
    -webkit-text-stroke: 5px white;
  }
  .play-heading p {
    font-size: 11px;
    padding: 3px 9px;
  }
  .raqi-welcome {
    max-width: 335px;
    grid-template-columns: 102px 1fr;
    gap: 0 12px;
  }
  .raqi-character {
    width: 120px;
    height: 144px;
  }
  .raqi-speech {
    font-size: 13px;
    padding: 9px;
  }
  .raqi-speech strong {
    font-size: 10px;
  }
  .hero-cta {
    font-size: 20px;
    padding: 9px 8px;
  }
  .hero-cta small {
    font-size: 9px;
  }
  .playground-layout {
    gap: 20px;
  }
  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
  .world-card {
    border-width: 3px;
    border-radius: 24px;
    padding: 3px 3px 0;
  }
  .world-visual {
    height: 123px;
    border-radius: 20px 20px 0 0;
  }
  .world-visual img {
    width: 150px;
    height: 139px;
  }
  .world-number {
    font-size: 9px;
    left: 6px;
    top: 3px;
  }
  .world-spark {
    font-size: 19px;
    top: 29px;
  }
  .world-info {
    gap: 4px;
    padding: 9px 3px;
    border-radius: 12px;
  }
  .world-info h3 {
    font-size: 18px;
  }
  .world-arrow {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }
  .world-stars {
    margin: 6px 0 5px;
    gap: 4px;
  }
  .world-stars svg {
    width: 17px;
    height: 17px;
  }
  .reward-strip {
    margin-top: 28px;
    padding: 13px;
    gap: 10px;
    border-width: 3px;
    border-radius: 24px;
  }
  .daily-trophy,
  .daily-trophy svg {
    width: 37px;
    height: 37px;
  }
  .daily-mission {
    min-width: 145px;
  }
  .daily-mission h2 {
    font-size: 19px;
  }
  .daily-mission > span {
    font-size: 10px;
  }
  .mission-link {
    width: 100%;
    justify-content: center;
    padding: 8px 13px;
    font-size: 19px;
  }
  .player-level {
    margin-top: 4px;
  }
  .dashboard-footer {
    font-size: 9px;
    margin-top: 17px;
  }
  .bottom-nav {
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
    max-width: 420px;
    padding: 7px 5px;
    gap: 0;
    border-width: 3px;
    border-bottom-width: 5px;
    border-radius: 23px;
  }
  .bn-item {
    min-width: 0;
    flex: 1;
    min-height: 57px;
    padding: 5px 2px;
    border-radius: 15px;
    gap: 5px;
  }
  .bn-label {
    font-size: 9px;
  }
  .bn-icon svg {
    width: 25px;
    height: 25px;
  }
  .app {
    width: calc(100% - 22px);
    padding: 18px 13px 22px;
    margin-top: 14px;
    margin-bottom: 130px;
    border-width: 4px;
    border-bottom-width: 7px;
    border-radius: 27px;
  }
  .topbar {
    min-height: 42px;
    gap: 7px;
    padding-right: 40px;
    margin-bottom: 17px;
  }
  .topbar .brand-title {
    font-size: 14px !important;
    max-width: 50%;
  }
  .back-btn {
    padding: 9px 10px;
    font-size: 12px;
    border-width: 2px;
    border-radius: 14px;
  }
  .mascot-wrap {
    padding: 0;
    gap: 9px;
    margin-bottom: 20px;
    border-width: 2px;
    border-radius: 20px;
  }
  .mascot-illust {
    width: 85px;
    height: 108px;
  }
  .speech-bubble {
    font-size: 12px;
    padding: 9px 11px;
    line-height: 1.5;
  }
  .intro-card {
    padding: 19px;
  }
  .intro-card h2 {
    font-size: 28px;
  }
  .intro-card p {
    font-size: 13px;
  }
  .flashcard {
    min-height: 300px;
    padding: 23px 12px;
    border-width: 4px;
    border-bottom-width: 8px;
    border-radius: 26px;
  }
  .flashcard .latin {
    font-size: 28px;
  }
  .flashcard .ket {
    font-size: 13px;
  }
  .flashcard .arabic {
    font-size: 70px;
  }
  .flashcard .arabic.medium {
    font-size: 38px;
  }
  .flashcard .arabic.small {
    font-size: 27px;
  }
  .speaker-btn {
    width: 65px;
    height: 60px;
    border-radius: 21px;
  }
  .speaker-btn svg {
    width: 30px;
    height: 30px;
  }
  .audio-tool-btn {
    font-size: 10px;
    padding: 8px;
  }
  .audio-tools-row {
    gap: 5px;
  }
  .btn {
    font-size: 14px;
    padding: 11px 13px;
    border-width: 2px;
    border-radius: 16px;
  }
  .nav-row {
    gap: 9px;
  }
  .nav-row .btn {
    padding: 11px 9px;
    gap: 5px;
    font-size: 13px;
  }
  .nav-row .btn svg {
    width: 20px;
    height: 20px;
  }
  .main-play-list {
    gap: 17px 12px;
  }
  .main-play-card {
    padding: 10px;
    gap: 6px;
    border-width: 3px;
    border-bottom-width: 6px;
    border-radius: 23px;
  }
  .main-play-icon {
    height: 106px;
  }
  .main-play-title {
    font-size: 18px;
    line-height: 1.2;
  }
  .main-play-sub {
    font-size: 10px;
  }
  .main-play-btn {
    padding: 9px;
    font-size: 13px;
  }
  .game-grid {
    gap: 15px;
  }
  .game-tile {
    padding: 18px 12px;
    border-width: 3px;
    border-bottom-width: 6px;
    border-radius: 23px;
  }
  .game-tile h3 {
    font-size: 23px;
  }
  .game-tile p {
    font-size: 11px;
  }
  .game-tile .icon {
    font-size: 38px;
  }
  .setting-row {
    padding: 15px 12px;
  }
  .setting-title,
  .favorit-title,
  .progres-row-title {
    font-size: 15px;
  }
  .setting-sub {
    font-size: 11px;
  }
  .setting-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .duo-path {
    max-width: 100%;
  }
  .duo-node-col {
    transform: translateX(clamp(-48px, var(--path-offset, 0px), 48px));
  }
  .duo-node-row {
    max-width: 100%;
  }
  .quiz-opt {
    font-size: 20px;
    min-height: 67px;
    border-radius: 18px;
  }
}
@media (max-width: 355px) {
  .app.dashboard-view {
    padding-left: 14px;
    padding-right: 14px;
  }
  .game-logo {
    font-size: 30px;
  }
  .logo-book {
    display: none;
  }
  .player-stat {
    padding: 5px 7px;
  }
  .play-heading h1 {
    font-size: 29px;
  }
  .world-grid {
    gap: 20px 12px;
  }
  .world-info h3 {
    font-size: 16px;
  }
  .world-arrow {
    display: none;
  }
  .world-visual {
    height: 112px;
  }
  .world-visual img {
    width: 136px;
    height: 126px;
  }
  .daily-mission {
    min-width: 120px;
  }
  .daily-mission h2 {
    font-size: 17px;
  }
}
@media (hover: none) {
  .world-card:hover {
    transform: none;
  }
  .bn-item:hover {
    transform: none;
  }
}
/* Toy-like pressure and a short arrival, without moving the touch target. */
button, .bn-item {
  transition: translate 150ms ease, scale 150ms ease, filter 150ms ease, box-shadow 150ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:not(:disabled):active { translate: 0 4px; scale: .97; }
button:focus-visible { outline: 4px solid #176b93; outline-offset: 5px; }
@media (hover: hover) {
  .btn:not(:disabled):hover, .hero-cta:hover, .game-tile:hover, .speaker-btn:hover { translate: 0 -3px; filter: brightness(1.04); }
}
.flashcard, .game-grid, .screen-heading { animation: cardArrive 360ms cubic-bezier(.2,.75,.3,1) both; }
@keyframes cardArrive { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.flashcard { position: relative; overflow: hidden; }
.flashcard.card-flow-out { pointer-events: none; animation: cardFlowOut 360ms cubic-bezier(.5,0,.7,.4) both; }
.flashcard.card-flow-out::after { content: ""; position: absolute; inset: -30%; border-radius: 45%; background: linear-gradient(135deg, #b8f7e9cc, #7bc9f477); opacity: 0; pointer-events: none; animation: waterSweep 360ms ease-in both; }
.flashcard.card-flow-in { animation: cardFlowIn 480ms cubic-bezier(.16,.8,.25,1.08) both; }
@keyframes cardFlowOut { from { opacity: 1; transform: translateX(0) rotate(0); } to { opacity: 0; transform: translateX(-65px) rotate(-3deg) scale(.95); } }
@keyframes waterSweep { from { opacity: 0; transform: translate(-80%, 60%) rotate(-20deg); } 40% { opacity: .85; } to { opacity: .9; transform: translate(35%, -25%) rotate(15deg); } }
@keyframes cardFlowIn { from { opacity: 0; transform: translateX(65px) rotate(3deg) scale(.96); } to { opacity: 1; transform: translateX(0) rotate(0) scale(1); } }
.dashboard-footer { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.audio-source { margin-top: 14px; color: #577350; font-size: 11px; font-weight: 800; }
.intro-replay { border: 2px solid #d8c68e; border-radius: 24px; background: #fff9e7; color: #536448; padding: 10px 18px; font: inherit; font-weight: 800; cursor: pointer; }
.intro-replay { display: inline-flex; align-items: center; gap: 7px; }
.intro-replay svg { width: 18px; height: 18px; }
body.intro-open { overflow: hidden; }
.welcome-dialog { width: min(1060px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 50px 38px 45px; border: 5px solid white; border-radius: 38px; overflow-x: hidden; overflow-y: auto; color: #344765; background: #fff9e7; box-shadow: 0 18px 0 #21555744, 0 30px 100px #163a6a66; }
.welcome-dialog[open] { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: 25px; animation: introReveal 650ms cubic-bezier(.16,.9,.3,1.15) both; }
.welcome-dialog::backdrop { background: #153b66b8; backdrop-filter: blur(7px); }
.intro-skip { position: absolute; right: 20px; top: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 20px; background: #eaeedb; color: #536448; font: inherit; font-weight: 800; cursor: pointer; }
.intro-skip svg { width: 18px; height: 18px; }
.intro-scene { position: relative; min-height: 430px; border-radius: 46% 46% 35% 35%; background: #bdeaf7 url("../../assets/play-garden.webp") center/cover; isolation: isolate; }
.intro-sun { position: absolute; inset: 25px 25px 30px; border-radius: 50%; background: #fff3afbb; animation: introSun 1.3s ease-out both; }
.intro-raqi { position: absolute; bottom: 24px; left: 50%; width: 205px; height: 310px; object-fit: contain; translate: -50% 0; filter: drop-shadow(0 10px 0 #407a5a25); animation: introRaqi 900ms 150ms cubic-bezier(.2,.8,.3,1.18) both; }
.intro-raqi-name { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; white-space: nowrap; padding: 9px 20px; border: 3px solid white; border-radius: 25px; background: #ffe28b; color: #775622; font-weight: 900; rotate: -4deg; box-shadow: 0 4px 0 #ac7b2b33; animation: introFeature 500ms 700ms both; }
.intro-orbit { position: absolute; z-index: 1; display: grid; place-items: center; width: 100px; height: 100px; background: white; border: 4px solid #fff; border-radius: 28px; box-shadow: 0 7px 0 #5b83912b; animation: introFeature 700ms cubic-bezier(.2,.8,.3,1.2) both; }
.intro-orbit img { width: 92%; height: 92%; object-fit: contain; }
.orbit-book { left: -12px; top: 120px; rotate: -13deg; animation-delay: 450ms; background: #ffe8a1; }
.orbit-arab { right: -10px; top: 92px; rotate: 12deg; animation-delay: 650ms; background: #ffd7e7; }
.orbit-pray { right: 3px; bottom: 55px; rotate: -9deg; animation-delay: 850ms; width: 82px; height: 82px; background: #e0f7b5; }
.intro-spark { position: absolute; z-index: 2; color: #efaa22; font-size: 48px; text-shadow: 2px 3px white; animation: introFeature 700ms 900ms both; }
.spark-one { left: 26px; top: 40px; rotate: -15deg; }
.spark-two { right: 38px; top: 14px; font-size: 32px; rotate: 10deg; }
.intro-copy { position: relative; padding: 10px 0; }
.intro-logo { display: inline-block; position: relative; font-family: 'Fredoka', sans-serif; font-weight: 900; font-size: 62px; letter-spacing: -4px; color: #13a69b; line-height: 1.1; text-shadow: 0 4px white; animation: introFeature 650ms 100ms both; }
.intro-logo > span:first-child { color: #f28a36; }
.intro-logo-star { position: absolute; right: -35px; top: -8px; font: 30px 'IqroQu Symbols', sans-serif; color: #e9b62c; }
.intro-eyebrow { display: block; margin: 16px 0 10px; color: #847242; font-weight: 900; font-size: 11px; letter-spacing: 1.8px; }
.intro-copy h1 { margin: 0; font: 900 clamp(34px, 4.1vw, 52px)/1.08 'Fredoka', sans-serif; letter-spacing: -1.5px; color: #344765; animation: introFeature 650ms 250ms both; }
.intro-copy h1 em { color: #129b8f; font-style: normal; }
.intro-copy p { margin: 18px 0; font-size: 15px; line-height: 1.7; font-weight: 700; color: #647182; }
.intro-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.intro-features > span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid #eedfae; border-radius: 13px; background: white; font-size: 11px; font-weight: 900; animation: introFeature 500ms 650ms both; }
.intro-features svg { width: 19px; height: 19px; }
.intro-start { width: 100%; justify-content: center; min-height: 62px; font-size: 20px; cursor: pointer; animation: introFeature 550ms 800ms both; }
.intro-start svg { width: 27px; height: 27px; }
.intro-footnote { display: block; margin-top: 18px; color: #79836c; font-size: 11px; font-weight: 800; text-align: center; }
@keyframes introReveal { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes introFeature { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes introRaqi { from { opacity: 0; transform: translateY(80px) rotate(-12deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes introSun { from { opacity: 0; transform: scale(.25); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 700px) {
  .welcome-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 40px 20px 22px; border-radius: 28px; }
  .welcome-dialog[open] { grid-template-columns: 1fr; gap: 10px; }
  .intro-scene { min-height: 240px; width: min(100%, 330px); margin: 0 auto; }
  .intro-raqi { height: 215px; width: 148px; bottom: 15px; }
  .intro-orbit { width: 74px; height: 74px; border-radius: 22px; }
  .orbit-book { left: 2px; top: 75px; }
  .orbit-arab { right: 0; top: 45px; }
  .orbit-pray { width: 60px; height: 60px; bottom: 20px; right: 12px; }
  .intro-raqi-name { font-size: 12px; padding: 6px 12px; bottom: 0; }
  .intro-copy { text-align: center; padding: 0; }
  .intro-logo { font-size: 43px; letter-spacing: -3px; }
  .intro-eyebrow { font-size: 8px; letter-spacing: 1.2px; margin: 9px 0; }
  .intro-copy h1 { font-size: 36px; }
  .intro-copy p { font-size: 12px; margin: 12px 0; line-height: 1.6; }
  .intro-features { justify-content: center; gap: 5px; margin-bottom: 17px; }
  .intro-features > span { font-size: 9px; padding: 6px; }
  .intro-start { font-size: 18px; min-height: 54px; }
  .intro-footnote { margin-top: 14px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  button:not(:disabled):active, button:not(:disabled):hover { translate: none; scale: none; transform: none; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
