:root {
  font-family: "Tahoma", "Arial", sans-serif;
  color: #263b4b;
  background: #f5fbf7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #263b4b;
  --coral: #ef806b;
  --sea: #83cece;
  --mint: #7fbc99;
  --lilac: #8e81ca;
  --sun: #f4c860;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5fbf7; }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #3b7fbb; outline-offset: 3px; }
.hidden { display: none !important; }
.app-shell { max-width: 1140px; margin: auto; padding: 19px 30px 10px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 700; text-decoration: none; }
.brand b { color: var(--coral); }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 14px 14px 14px 5px; color: white; background: linear-gradient(145deg, #fa9a79, #e76d66); box-shadow: 0 4px 0 #d8635f; font-size: 22px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.install-button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px; border: 1px solid #cde5d3; border-radius: 20px; color: #477b5d; background: #f1faf1; font-size: 12px; font-weight: 700; cursor: pointer; }
.install-button:hover { background: #e6f5e8; }
.sound-toggle, .star-wallet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 7px 13px; border: 1px solid #e5eee5; border-radius: 20px; background: #fff; font-size: 13px; }
.sound-toggle { cursor: pointer; }.sound-toggle[aria-pressed="false"] { opacity: .65; }
.star-wallet { min-width: 66px; color: #866316; border-color: #f7e8b8; background: #fff7da; font-size: 16px; }
.island-hero { position: relative; display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; min-height: 330px; margin-top: 18px; overflow: hidden; border: 1px solid #dcefe6; border-radius: 31px; background: linear-gradient(115deg, #e9f6eb 0%, #eff8e8 51%, #c8ece8 100%); }
.island-hero::before { position: absolute; top: -130px; right: 32%; width: 330px; height: 330px; border: 1px solid #fff9; border-radius: 50%; content: ""; }
.hero-copy { position: relative; z-index: 2; padding: 32px 42px 34px 15px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid #d2e9d7; border-radius: 18px; color: #528a6c; background: #ffffffa6; font-size: 12px; font-weight: 700; }
.hero-kicker span { color: #eab746; }
.hero-copy h1 { margin: 12px 0 6px; color: var(--ink); font-size: clamp(35px, 4.2vw, 49px); line-height: 1.22; }
.hero-copy h1 span { color: #e67f69; }
.hero-copy p { max-width: 430px; margin: 8px 0 17px; color: #62776f; font-size: 15px; line-height: 1.8; }
.primary-button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 11px; padding: 8px 20px; border: 0; border-radius: 15px; color: #fff; background: var(--coral); box-shadow: 0 5px 0 #d66b5d; font-weight: 700; cursor: pointer; transition: transform .16s, box-shadow .16s, filter .16s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #d66b5d; filter: saturate(1.07); }
.primary-button:active { transform: translateY(2px); box-shadow: 0 2px 0 #d66b5d; }
.hero-start { min-width: 143px; }
.hero-stats { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: #6a8276; font-size: 12px; }
.hero-stats i { width: 4px; height: 4px; border-radius: 50%; background: #f2bd58; }
.island-scene { position: relative; display: grid; min-height: 315px; place-items: center; }
.island-svg { width: min(100%, 510px); overflow: visible; filter: drop-shadow(0 13px 12px #467f7020); animation: island-float 5s ease-in-out infinite; }
.island-label { position: absolute; padding: 5px 10px; border: 1px solid #fff; border-radius: 13px; color: #587b69; background: #fffdf0e8; box-shadow: 0 3px 8px #466b5210; font-size: 11px; font-weight: 700; }
.label-top { top: 29%; right: 13%; }.label-bottom { bottom: 22%; left: 15%; }
.map-section { padding-top: 29px; scroll-margin-top: 14px; }
.map-heading { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { color: #d77862; font-size: 13px; font-weight: 700; }
.map-heading h2 { margin: 3px 0 0; font-size: 25px; }
.map-compass { color: #edbe50; font-size: 28px; }
.world-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.world-card { position: relative; display: flex; min-height: 118px; align-items: center; gap: 15px; padding: 14px 17px; overflow: hidden; border: 1px solid #fff; border-radius: 23px; text-align: right; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.world-card::after { position: absolute; right: -40px; bottom: -62px; width: 140px; height: 140px; border: 1px solid #fff8; border-radius: 50%; content: ""; }
.world-card:hover { z-index: 1; transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 11px 25px #364f5018; }
.world-card:active { transform: translateY(1px) scale(.99); }
.world-ar { background: #fff0e4; }.world-en { background: #efedff; }.world-count { background: #e9f1ff; }.world-number-en { background: #e5f5eb; }
.world-icon { position: relative; z-index: 1; display: flex; flex: 0 0 82px; height: 77px; align-items: center; justify-content: center; border: 1px solid #ffffffb5; border-radius: 20px; background: #ffffff8a; }
.world-icon i { display: grid; width: 34px; height: 44px; place-items: center; border-radius: 11px; color: #da745c; background: white; box-shadow: 0 4px 0 #ead8c6; font-size: 23px; font-style: normal; font-weight: 800; transform: rotate(-9deg); }
.world-icon i:nth-child(2) { color: #679a81; transform: translateY(-7px) rotate(4deg); }.world-icon i:nth-child(3) { color: #8176ba; transform: rotate(10deg); }
.world-count .world-icon i, .world-number-en .world-icon i { color: #6681c3; }
.world-copy { position: relative; z-index: 1; display: grid; gap: 2px; min-width: 0; }
.world-copy small { color: #9a796c; font-size: 11px; }.world-copy b { font-size: 18px; }.world-copy > span { color: #718080; font-size: 12px; }
.world-complete { position: absolute; z-index: 2; top: 9px; left: 11px; padding: 4px 7px; border-radius: 9px; color: #4e8967; background: #ffffffcf; font-size: 9px; font-weight: 700; }
.world-en .world-copy, .world-number-en .world-copy { direction: ltr; text-align: left; }
.world-en .world-copy b, .world-number-en .world-copy b { font-size: 16px; }
.world-lock { position: absolute; z-index: 1; left: 13px; bottom: 12px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #ffffffa8; }
.parent-tip { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin-top: 17px; padding: 8px 13px; border-radius: 15px; color: #78816f; background: #f0f1e8; font-size: 12px; text-align: center; }
.parent-tip span:first-child { font-size: 16px; }
.game-screen { max-width: 860px; margin: 20px auto 0; animation: arrive .3s ease-out; }
.game-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.back-map { display: inline-flex; min-height: 39px; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid #e3ece5; border-radius: 14px; background: #fff; cursor: pointer; }
.back-map:hover { border-color: #a9d4bc; background: #f8fdf8; }
.journey-progress { display: flex; align-items: center; gap: 12px; }
.journey-name { color: #607669; font-size: 13px; font-weight: 700; }
.journey-count { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 15px; color: #876421; background: #fff5d8; font-size: 13px; }
.journey-count i { color: #c8ba94; font-style: normal; }
.game-screen > .progress-track { height: 8px; margin-top: 12px; background: #e7eee7; }
.progress-track span { display: block; width: 4%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7cc8a1, #9bd5bd); transition: width .35s; }
.activity-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px auto 16px; }
.activity-steps > i { width: clamp(18px, 8vw, 72px); height: 2px; background: #e3e9df; }
.activity-step { display: flex; align-items: center; gap: 7px; color: #9aa49e; font-size: 12px; transition: color .2s; }
.activity-step > span { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #e0e8dc; border-radius: 50%; background: white; font-size: 12px; font-weight: 700; }
.activity-step.active { color: #4c866c; }.activity-step.active > span { border-color: #78bc98; color: white; background: #78bc98; box-shadow: 0 3px 0 #5d9e7d; }
.activity-step.done { color: #4c866c; }.activity-step.done > span { border-color: #b3ddc2; color: #4c866c; background: #e5f5e9; }
.adventure-card { padding: 21px 23px 17px; border: 1px solid #e5eee5; border-radius: 27px; background: white; box-shadow: 0 13px 36px #344b4710; }
.adventure-heading { display: flex; flex-direction: column; align-items: center; text-align: center; }
.activity-eyebrow { color: #d77b63; font-size: 12px; font-weight: 700; }
.adventure-heading h1 { margin: 3px 0 1px; font-size: 25px; }
.adventure-heading p { margin: 0; color: #798984; font-size: 13px; }
.activity-panel { margin-top: 16px; animation: arrive .25s ease-out; }
.discovery-art { position: relative; display: flex; min-height: 255px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #f1e9ce; border-radius: 24px; background: linear-gradient(150deg, #fff8e6, #fff0cf); }
.discovery-art::before, .discovery-art::after { position: absolute; width: 155px; height: 155px; border-radius: 50%; content: ""; background: #f9e8b6; opacity: .75; }
.discovery-art::before { top: -106px; right: -25px; }.discovery-art::after { bottom: -115px; left: -24px; background: #e4f1d6; }
.discovery-cloud { position: absolute; width: 66px; height: 19px; border-radius: 18px; background: #fff8; }
.discovery-cloud::before, .discovery-cloud::after { position: absolute; bottom: 5px; width: 29px; height: 27px; border-radius: 50%; content: ""; background: inherit; }
.discovery-cloud::before { left: 9px; }.discovery-cloud::after { right: 8px; width: 23px; height: 22px; }
.cloud-one { top: 45px; left: 14%; }.cloud-two { right: 15%; bottom: 37px; transform: scale(.7); }
.picture-tile { position: relative; z-index: 1; display: grid; min-width: 110px; min-height: 102px; place-items: center; padding: 2px 12px 7px; border: 1px solid #ffffffd6; border-radius: 27px; background: #ffffffd9; box-shadow: 0 9px 0 #ead9b5, 0 13px 19px #62512a14; font-size: 62px; cursor: pointer; transition: transform .18s; }
.picture-tile:hover { transform: translateY(-4px) rotate(-3deg) scale(1.04); }.picture-tile:active { transform: scale(.94); }
.picture-name { position: relative; z-index: 1; margin-top: 12px; color: #6d7568; font-size: 14px; font-weight: 700; }
.big-glyph { position: relative; z-index: 1; margin-top: 2px; padding: 0 12px; border: 0; border-radius: 14px; color: #df785f; background: transparent; font-size: 43px; font-weight: 800; cursor: pointer; transition: scale .17s, background .17s; }
.big-glyph:hover { scale: 1.12; background: #ffffff91; }.big-glyph:active { scale: .92; }
.lowercase-glyph { position: relative; z-index: 1; margin-top: -7px; color: #8e81ca; font-size: 19px; font-weight: 700; }
.glyph-sparkle { position: absolute; z-index: 1; color: #eab852; font-size: 28px; animation: bob 3s ease-in-out infinite; }
.sparkle-a { top: 27%; right: 26%; }.sparkle-b { bottom: 22%; left: 25%; color: #82b99a; animation-delay: .6s; }
.discovery-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.listen-button { display: inline-flex; min-height: 39px; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid #e8eadb; border-radius: 16px; background: #fffdf5; font-size: 12px; font-weight: 700; cursor: pointer; }
.listen-button:hover { border-color: #8fc7a5; box-shadow: 0 0 0 3px #8fc7a526; }
.touch-hint { color: #89958c; font-size: 12px; }
.is-speaking .listen-button { border-color: #7ec79c; box-shadow: 0 0 0 4px #85c99e2c; animation: sound-pulse .5s ease-in-out infinite alternate; }
.trace-panel { text-align: center; }
.trace-intro { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 10px; color: #6e7c72; font-size: 13px; }
.trace-hand { font-size: 20px; }
.trace-board { position: relative; width: min(100%, 580px); height: 265px; margin: 0 auto; overflow: hidden; border: 2px dashed #d9e9da; border-radius: 23px; background-color: #fffdf4; background-image: radial-gradient(#d8e5d8 1px, transparent 1px); background-size: 16px 16px; touch-action: none; }
#trace-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.trace-start { position: absolute; right: 12px; bottom: 10px; padding: 4px 8px; border-radius: 9px; color: #829081; background: #ffffffc9; font-size: 10px; pointer-events: none; }
.trace-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; }
.soft-button { min-height: 42px; padding: 7px 14px; border: 1px solid #e5e9df; border-radius: 14px; background: white; cursor: pointer; transition: background .15s, transform .15s; }
.soft-button:hover { background: #f8faf5; }.soft-button:active { transform: scale(.97); }
.trace-actions .primary-button { min-height: 42px; }
.trace-feedback, .quiz-feedback { min-height: 20px; margin: 8px 0 0; color: #588f70; font-size: 13px; font-weight: 700; text-align: center; }
.challenge-art { display: flex; min-height: 123px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.challenge-emoji { font-size: 51px; filter: drop-shadow(0 5px 4px #4d421820); }
.challenge-question { color: #4f5f5a; font-size: 17px; font-weight: 700; text-align: center; }
.drop-zone { display: flex; min-height: 69px; align-items: center; justify-content: center; gap: 10px; margin: 2px auto 13px; padding: 9px 14px; border: 2px dashed #c9dbca; border-radius: 19px; color: #829184; background: #f8fcf5; cursor: pointer; transition: background .18s, border-color .18s, scale .18s; }
.drop-zone > span:first-child { font-size: 23px; }.drop-zone b { font-size: 12px; font-weight: 600; }
.drop-zone.drag-over { border-color: #66b384; background: #e6f8e8; scale: 1.01; }
.drop-zone.has-selection { border-color: #8d81cc; background: #f2efff; }.drop-zone.accepted { border-color: #65b486; background: #e6f7e9; }
.drop-preview { color: #675db0; font-size: 26px; font-weight: 800; }
.quiz-options { display: flex; justify-content: center; gap: 12px; }
.quiz-option { min-width: 67px; min-height: 59px; padding: 7px 15px; border: 2px solid #e9e9dc; border-radius: 18px; background: white; box-shadow: 0 4px 0 #e8e6d9; font-size: 25px; font-weight: 800; cursor: grab; touch-action: manipulation; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.quiz-option:hover { transform: translateY(-3px); border-color: #e6c994; box-shadow: 0 7px 0 #eee1c8; }.quiz-option:active { cursor: grabbing; transform: translateY(1px); box-shadow: none; }
.quiz-option.selected { border-color: #8d81cc; background: #f0edff; box-shadow: 0 4px 0 #d9d2fa; }
.quiz-option.correct { color: white; border-color: #64ad83; background: #72b88d; box-shadow: 0 4px 0 #55966e; animation: answer-pop .3s ease-out; }
.quiz-option.wrong { border-color: #e88978; background: #fff0eb; animation: nudge .25s; }
.adventure-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0e7; }
.adventure-footer > :first-child { justify-self: start; }.adventure-footer > :last-child { justify-self: end; }
.mini-reward { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 14px; color: #8e6e20; background: #fff7da; font-size: 13px; }
.celebration { position: fixed; z-index: 10; top: max(14px, env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 10px; padding: 13px 19px; border: 1px solid #f3dfa1; border-radius: 19px; background: #fff9df; box-shadow: 0 9px 26px #323c3020; font-size: 16px; white-space: nowrap; transform: translateX(-50%); animation: celebrate-in .3s ease-out; }
.page-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 11px 8px 3px; color: #929b91; text-align: center; font-size: 11px; }.page-footer > span:nth-child(2) span { color: #ed8672; }
.offline-status { flex-basis: 100%; color: #588f70; }
.offline-status:empty { display: none; }
@keyframes island-float { 0%, 100% { transform: translateY(0) rotate(-.3deg); } 50% { transform: translateY(-5px) rotate(.3deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes arrive { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes answer-pop { 50% { scale: 1.13; } }
@keyframes nudge { 25% { translate: -4px; } 75% { translate: 4px; } }
@keyframes celebrate-in { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes sound-pulse { to { scale: 1.06; } }

@media (max-width: 720px) {
  .app-shell { padding: 13px 15px 8px; }
  .island-hero { grid-template-columns: 1fr; min-height: 500px; margin-top: 13px; }
  .hero-copy { align-self: start; padding: 23px 20px 0; text-align: center; }
  .hero-copy h1 { margin-top: 9px; font-size: 36px; }
  .hero-copy p { max-width: 365px; margin: 7px auto 13px; font-size: 13px; }
  .hero-stats { justify-content: center; margin-top: 12px; }
  .island-scene { position: absolute; inset: 207px 4px 0; min-height: 0; }
  .island-svg { width: min(100%, 440px); }
  .label-top { top: 24%; right: 10%; }.label-bottom { bottom: 16%; left: 9%; }
  .map-section { padding-top: 24px; }.map-heading h2 { font-size: 22px; }
  .world-grid { grid-template-columns: 1fr; gap: 10px; }
  .world-card { min-height: 101px; padding: 11px 13px; }
  .world-icon { flex-basis: 76px; height: 72px; }
  .world-copy b { font-size: 17px; }.world-copy > span { font-size: 11px; }
  .world-en .world-copy b, .world-number-en .world-copy b { font-size: 15px; }
  .parent-tip { margin-top: 13px; font-size: 11px; }
  .game-screen { margin-top: 13px; }.journey-name { font-size: 11px; }
  .activity-steps { gap: 6px; margin: 17px auto 12px; }.activity-steps > i { width: clamp(9px, 4vw, 30px); }
  .activity-step { gap: 5px; font-size: 10px; }.activity-step > span { width: 26px; height: 26px; }
  .adventure-card { padding: 17px 13px 13px; border-radius: 23px; }
  .adventure-heading h1 { font-size: 22px; }.adventure-heading p { max-width: 290px; font-size: 12px; }
  .discovery-art { min-height: 242px; }
  .trace-board { height: 245px; }
  .drop-zone { min-height: 65px; }.quiz-options { gap: 9px; }.quiz-option { min-width: 59px; min-height: 54px; padding: 6px 12px; }
  .adventure-footer { gap: 6px; margin-top: 11px; padding-top: 11px; }.adventure-footer .soft-button, .adventure-footer .primary-button { min-height: 40px; padding: 6px 12px; font-size: 12px; }
}
@media (max-width: 390px) {
  .app-shell { padding-right: 11px; padding-left: 11px; }.brand { font-size: 17px; }
  .top-actions { gap: 5px; }.install-button { width: 36px; min-height: 36px; padding: 5px; }.install-label { display: none; }
  .sound-toggle, .star-wallet { min-height: 36px; padding: 6px 10px; font-size: 12px; }.sound-label { display: none; }
  .island-hero { min-height: 474px; }.hero-copy { padding-right: 13px; padding-left: 13px; }.hero-copy h1 { font-size: 33px; }.island-scene { inset: 202px 0 0; }
  .activity-step { font-size: 9px; }.activity-steps { gap: 4px; }.activity-steps > i { width: 11px; }
  .discovery-controls { flex-direction: column; gap: 6px; }.touch-hint { font-size: 11px; }
  .trace-actions { gap: 6px; }.trace-actions .primary-button, .trace-actions .soft-button { padding: 7px 9px; font-size: 11px; }
  .quiz-option { min-width: 53px; min-height: 51px; }.challenge-question { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
