:root{
  --world-accent:#48a79f;
  --world-accent-dark:#246f6a;
  --world-warm:#ff9c36;
  --world-panel:rgba(255,255,255,.90);
  --world-line:rgba(255,255,255,.92);
  --world-shadow:0 12px 0 rgba(48,72,62,.10),0 22px 46px rgba(35,76,68,.14);
}

body.learning-world,
body.gate-world{
  min-height:100vh;
  background-color:#dff4eb !important;
  background-image:linear-gradient(180deg,rgba(235,250,246,.20),rgba(255,248,232,.28)),url('./learning-adventure-world-v2.webp') !important;
  background-size:cover !important;
  background-position:center !important;
  background-attachment:fixed !important;
}
body.learning-world[data-world="english"],body.gate-world[data-world="english"]{--world-accent:#ff7d3d;--world-accent-dark:#b9471c;--world-warm:#438fd1}
body.learning-world[data-world="math"],body.gate-world[data-world="math"]{--world-accent:#15a1a7;--world-accent-dark:#096b70;--world-warm:#f2a51d}
body.learning-world[data-world="tilawa"],body.gate-world[data-world="tilawa"]{--world-accent:#8065c9;--world-accent-dark:#57418f;--world-warm:#4d9d98}

body.learning-world::before,
body.gate-world::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:linear-gradient(90deg,rgba(255,249,236,.20),transparent 25% 75%,rgba(231,250,246,.18));
}
body.learning-world .stage,
body.gate-world .stage{position:relative;z-index:1;width:min(1500px,calc(100% - 28px));max-width:1500px}

body.learning-world .topbar,
body.gate-world .topbar{
  background:rgba(255,255,255,.88) !important;
  border:1px solid var(--world-line) !important;
  box-shadow:0 8px 0 rgba(48,72,62,.09),0 16px 34px rgba(35,76,68,.11) !important;
  backdrop-filter:blur(12px) saturate(1.08);
}

/* Entry and track selection become a bright welcome clearing. */
body.learning-world .hero,
body.learning-world .track-select,
body.learning-world .role-gate,
body.learning-world .teacher-login-area{
  position:relative;
  isolation:isolate;
}
body.learning-world .hero{min-height:calc(100vh - 150px);align-items:center}
body.learning-world .panel,
body.learning-world .track-head,
body.learning-world .track-card,
body.learning-world .role-panel,
body.learning-world .teacher-login-panel{
  background:var(--world-panel) !important;
  border:1px solid var(--world-line) !important;
  box-shadow:var(--world-shadow) !important;
  backdrop-filter:blur(10px) saturate(1.06);
}
body.learning-world .intro-panel::after,
body.learning-world .track-head::after{
  content:"";
  position:absolute;
  inset-inline-start:24px;
  bottom:-18px;
  width:110px;
  height:110px;
  background:url('./bayan-mascot-v1.webp') center/contain no-repeat;
  filter:drop-shadow(0 10px 10px rgba(40,84,76,.18));
  animation:world-guide-breathe 3.4s ease-in-out infinite;
  pointer-events:none;
}
body.learning-world .track-head{position:relative;overflow:visible;padding-inline-start:145px}
body.learning-world .track-grid{gap:18px}
body.learning-world .track-card{
  min-height:245px;
  overflow:hidden;
  border-top:8px solid var(--world-accent) !important;
  transition:transform .18s ease,box-shadow .18s ease;
}
body.learning-world .track-card:hover,
body.learning-world .track-card:focus-visible{transform:translateY(-7px) rotate(-.35deg);box-shadow:0 17px 0 rgba(48,72,62,.11),0 28px 50px rgba(35,76,68,.18) !important}
body.learning-world .track-card .track-icon{font-size:54px;filter:drop-shadow(0 7px 5px rgba(35,76,68,.14));animation:world-icon-float 3.2s ease-in-out infinite}
body.learning-world .track-card:nth-child(2) .track-icon{animation-delay:-.6s}
body.learning-world .track-card:nth-child(3) .track-icon{animation-delay:-1.2s}
body.learning-world .track-card:nth-child(4) .track-icon{animation-delay:-1.8s}

/* The dashboard is presented as a journey board over the learning world. */
body.learning-world .levels.show{padding-block:8px 36px}
body.learning-world .dashboard-layout{grid-template-columns:minmax(275px,330px) minmax(0,1fr);gap:22px}
body.learning-world .welcome-card,
body.learning-world .board-section{
  background:var(--world-panel) !important;
  border:1px solid var(--world-line) !important;
  box-shadow:var(--world-shadow) !important;
  backdrop-filter:blur(12px) saturate(1.05);
}
body.learning-world .welcome-card{overflow:hidden;border-top:8px solid var(--world-accent) !important}
body.learning-world .welcome-card::before{
  content:"";
  display:block;
  width:86px;
  height:86px;
  margin:-4px auto 6px;
  background:url('./bayan-mascot-v1.webp') center/contain no-repeat;
  filter:drop-shadow(0 8px 7px rgba(35,76,68,.16));
  animation:world-guide-breathe 3.5s ease-in-out infinite;
}
body.learning-world .track-board{overflow:hidden;position:relative}
body.learning-world .track-board::after{
  content:"";
  position:absolute;
  width:210px;
  height:90px;
  inset-inline-end:-28px;
  bottom:-48px;
  border-radius:50% 50% 0 0;
  background:color-mix(in srgb,var(--world-accent) 20%,#fff);
  opacity:.48;
  pointer-events:none;
}
body.learning-world .track-board .section-head{border-inline-start:7px solid var(--world-accent) !important}
body.learning-world .journey-map{position:relative;display:flex;gap:14px;padding:14px 7px 22px;scroll-snap-type:x proximity}
body.learning-world .journey-map::before{
  content:"";
  position:absolute;
  inset-inline:34px;
  top:51px;
  height:5px;
  border-radius:999px;
  background:repeating-linear-gradient(90deg,var(--world-accent) 0 12px,transparent 12px 21px);
  opacity:.38;
}
body.learning-world .journey-map .journey-step{
  z-index:1;
  flex:1 0 94px;
  min-height:118px;
  border:2px solid rgba(255,255,255,.95) !important;
  border-radius:22px;
  scroll-snap-align:center;
  transition:transform .16s ease;
}
body.learning-world .journey-map .journey-step:hover{transform:translateY(-4px)}
body.learning-world .journey-map .journey-step span{width:48px;height:48px;border-radius:18px;box-shadow:0 5px 0 rgba(83,65,45,.09)}
body.learning-world .journey-map .journey-step.done span{background:#e4f7df;color:#327f3b}
body.learning-world .journey-map .journey-step.locked{filter:saturate(.65)}
body.learning-world .track-board .level-card{background:rgba(255,255,255,.94) !important;border-top:7px solid var(--level,var(--world-accent)) !important}

/* Shared treatment for the four free starter gates. */
body.gate-world .hero-card,
body.gate-world .hero-copy,
body.gate-world .audio-card,
body.gate-world .coach-card,
body.gate-world .panel{
  background:rgba(255,255,255,.91) !important;
  border:1px solid var(--world-line) !important;
  box-shadow:var(--world-shadow) !important;
  backdrop-filter:blur(11px) saturate(1.06);
}
body.gate-world .hero-card,
body.gate-world .hero-copy{border-inline-start:8px solid var(--world-accent) !important}
body.gate-world .coach-card,
body.gate-world .audio-card{position:relative;overflow:hidden;border-top:8px solid var(--world-warm) !important}
body.gate-world .coach-face{font-size:0;width:112px;height:112px;margin-inline:auto;background:url('./bayan-mascot-v1.webp') center/contain no-repeat;filter:drop-shadow(0 10px 8px rgba(35,76,68,.15));animation:world-guide-breathe 3.4s ease-in-out infinite}
body.gate-world .panel{border-top:6px solid color-mix(in srgb,var(--world-accent) 72%,#fff) !important}
body.gate-world .panel:hover{box-shadow:0 14px 0 rgba(48,72,62,.11),0 26px 50px rgba(35,76,68,.16) !important}
body.gate-world .number-card,
body.gate-world .letter-card,
body.gate-world .sound-card,
body.gate-world .shape-card,
body.gate-world .color-card,
body.gate-world .step,
body.gate-world .choice{
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
body.gate-world .number-card:hover,
body.gate-world .letter-card:hover,
body.gate-world .sound-card:hover,
body.gate-world .shape-card:hover,
body.gate-world .color-card:hover,
body.gate-world .step:hover,
body.gate-world .choice:hover{transform:translateY(-4px);box-shadow:0 9px 0 rgba(48,72,62,.09)}
body.gate-world[data-world="tilawa"] .audio-card{border-top-color:var(--world-accent) !important}
body.gate-world[data-world="tilawa"] .panel:hover{transform:none}

/* Adventure map: one clear destination, with every existing level still reachable. */
body.learning-world .track-board{
  background:rgba(247,255,249,.82) !important;
  padding:18px 20px 22px;
}
body.learning-world .track-board .section-head{
  max-width:760px;
  margin-inline:auto;
  border-inline-start:0 !important;
  border-bottom:5px solid var(--world-accent) !important;
  text-align:center;
}
body.learning-world .track-board .section-head h2{color:var(--world-accent-dark)}
body.learning-world .journey-map{
  min-height:174px;
  align-items:center;
  gap:10px;
  margin:2px 0 12px;
  padding:18px 8px 28px;
  overflow-x:auto;
  scrollbar-width:none;
}
body.learning-world .journey-map::-webkit-scrollbar{display:none}
body.learning-world .journey-map::before{
  top:80px;
  height:12px;
  background:repeating-linear-gradient(90deg,#f7d889 0 18px,rgba(255,255,255,.85) 18px 26px);
  border:2px solid rgba(151,112,40,.12);
  box-shadow:0 5px 0 rgba(77,105,65,.08);
  opacity:1;
}
body.learning-world .journey-map .journey-step{
  appearance:none;
  font-family:inherit;
  color:inherit;
  cursor:pointer;
  overflow:visible;
  flex:1 0 90px;
  min-width:86px;
  min-height:112px;
  padding:10px 6px 12px;
  background:linear-gradient(180deg,#fff 0 68%,#eaf5df 68%) !important;
  border:2px solid rgba(255,255,255,.98) !important;
  border-radius:44% 44% 22px 22px;
  box-shadow:0 8px 0 #b7d4a9,0 13px 22px rgba(47,83,68,.14);
  transform:translateY(10px);
}
body.learning-world .journey-map .journey-step:nth-child(even){transform:translateY(-8px)}
body.learning-world .journey-map .journey-step:hover,
body.learning-world .journey-map .journey-step:focus-visible{transform:translateY(-14px);outline:4px solid rgba(255,187,67,.36);outline-offset:2px}
body.learning-world .journey-map .journey-step:nth-child(even):hover,
body.learning-world .journey-map .journey-step:nth-child(even):focus-visible{transform:translateY(-20px)}
body.learning-world .journey-map .journey-step:before{display:none}
body.learning-world .journey-map .journey-step span{
  width:52px;
  height:52px;
  border-radius:19px;
  background:#fff3cf;
  border:2px solid rgba(255,255,255,.95);
  box-shadow:0 5px 0 #e6c978,0 8px 14px rgba(91,73,54,.12);
}
body.learning-world .journey-map .journey-step.done{background:linear-gradient(180deg,#fff 0 68%,#dff4d5 68%) !important;box-shadow:0 8px 0 #91c785,0 13px 22px rgba(47,83,68,.14)}
body.learning-world .journey-map .journey-step.locked{cursor:default;opacity:.76;filter:saturate(.55)}
body.learning-world .journey-map .journey-step.current{
  z-index:3;
  background:linear-gradient(180deg,#fff9df 0 68%,#ffe182 68%) !important;
  border-color:#fff1a9 !important;
  box-shadow:0 9px 0 #e7a72c,0 0 0 7px rgba(255,213,75,.22),0 18px 34px rgba(127,86,15,.22);
}
body.learning-world .journey-map .journey-step.current span{background:var(--world-accent);color:#fff;box-shadow:0 5px 0 var(--world-accent-dark)}
body.learning-world .track-board .level-grid{display:block !important;min-height:350px}
body.learning-world .track-board .level-card[hidden]{display:none !important}
body.learning-world .track-board .level-card.adventure-active{
  display:grid !important;
  grid-template-columns:minmax(0,1fr);
  width:min(760px,100%);
  min-height:330px;
  margin:4px auto 0;
  padding:28px 30px;
  border-radius:30px !important;
  border:3px solid rgba(255,255,255,.96) !important;
  border-top:9px solid var(--level,var(--world-accent)) !important;
  box-shadow:0 13px 0 color-mix(in srgb,var(--level,var(--world-accent)) 28%,#b9c9bd),0 25px 46px rgba(46,78,67,.16) !important;
  animation:adventure-card-in .28s ease both;
}
body.learning-world .track-board .level-card.adventure-active:before{
  content:"";
  display:block;
  position:absolute;
  inset:auto auto -35px -28px;
  width:170px;
  height:125px;
  border-radius:55% 55% 0 0;
  background:linear-gradient(150deg,#a4df91,#55b98a);
  opacity:.36;
}
body.learning-world .track-board .level-card.adventure-active h3{font-size:clamp(25px,3vw,36px);color:var(--world-accent-dark);margin-top:10px}
body.learning-world .track-board .level-card.adventure-active p{min-height:0;font-size:17px;line-height:1.8}
body.learning-world .track-board .level-card.adventure-active .stats{margin-top:18px}
body.learning-world .track-board .level-card.adventure-active .stat{background:rgba(255,255,255,.88);border:2px solid rgba(91,73,54,.08)}
body.learning-world .track-board .level-card.adventure-active .level-actions{margin-top:18px}
.adventure-controls{
  width:min(640px,100%);
  margin:16px auto 0;
  display:grid;
  grid-template-columns:54px 1fr 54px;
  align-items:center;
  gap:10px;
  padding:9px;
  background:rgba(255,255,255,.90);
  border:2px solid rgba(255,255,255,.96);
  border-radius:20px;
  box-shadow:0 7px 0 rgba(48,72,62,.10);
}
.adventure-arrow{
  width:54px;height:50px;border:0;border-radius:16px;background:var(--world-accent);color:#fff;font:900 25px Cairo,sans-serif;cursor:pointer;box-shadow:0 5px 0 var(--world-accent-dark)
}
.adventure-arrow:disabled{opacity:.32;box-shadow:none;cursor:default}
.adventure-position{text-align:center;color:var(--world-accent-dark);font-weight:900;font-size:15px}

body.learning-world .welcome-card .actions{display:grid;grid-template-columns:1fr}
body.learning-world .welcome-card #dailyJourneyBtn{width:100%;font-size:18px;background:var(--world-accent);box-shadow:0 6px 0 var(--world-accent-dark)}
body.learning-world .sb-more-actions{width:100%}
body.learning-world .sb-more-actions summary{list-style:none;min-height:46px;display:grid;place-items:center;border:1px solid #e4ddd2;border-radius:15px;background:#fff;color:#625a55;font-weight:900;cursor:pointer;box-shadow:0 4px 0 rgba(42,38,33,.06)}
body.learning-world .sb-more-actions summary::-webkit-details-marker{display:none}
body.learning-world .sb-more-actions summary:after{content:'⌄';margin-inline-start:7px;color:var(--world-accent)}
body.learning-world .sb-more-actions[open] summary:after{content:'⌃'}
body.learning-world .sb-more-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
body.learning-world .sb-more-actions-grid .btn{width:100%;min-width:0;padding-inline:6px;font-size:12px}

/* Focus stage: the existing gate activities become one reusable child-sized scene. */
body.gate-world .stage{min-height:100vh;padding-bottom:26px}
body.gate-world .hero{margin-bottom:8px;grid-template-columns:minmax(0,1fr) 260px}
body.gate-world .hero-card,
body.gate-world .hero-copy{padding:18px 22px !important}
body.gate-world .hero-card h1,
body.gate-world .hero-copy h1{font-size:30px !important;margin-block:4px 7px !important}
body.gate-world .hero-card p,
body.gate-world .hero-copy p{font-size:14px !important;line-height:1.65 !important;margin:0 !important}
body.gate-world .hero .hero-tools,
body.gate-world .hero .skill-strip{display:none !important}
body.gate-world .coach-card,
body.gate-world .audio-card{padding:13px !important;min-height:0 !important}
body.gate-world .coach-face{width:82px;height:82px}
body.gate-world .quran-icon{font-size:42px}
body.gate-world .sb-focus-nav{
  position:sticky;
  top:8px;
  z-index:30;
  display:flex !important;
  justify-content:center;
  gap:10px;
  overflow-x:auto;
  padding:12px;
  margin:14px auto 8px;
  width:min(850px,100%);
  border:3px solid rgba(255,255,255,.94);
  border-radius:22px;
  background:linear-gradient(180deg,#d9a85d,#b97a31);
  box-shadow:0 8px 0 #80501f,0 16px 28px rgba(64,55,39,.20);
  scrollbar-width:none;
}
body.gate-world .sb-focus-nav::-webkit-scrollbar{display:none}
body.gate-world .sb-focus-tab{
  flex:1 0 140px;
  min-height:54px;
  border:2px solid rgba(255,255,255,.88);
  border-radius:16px;
  padding:9px 13px;
  background:#fffaf0;
  color:#5f5144;
  font:900 14px Cairo,Arial,sans-serif;
  cursor:pointer;
  box-shadow:0 5px 0 rgba(81,52,24,.22);
}
body.gate-world .sb-focus-tab[aria-selected="true"]{background:var(--world-warm);color:#fff;border-color:#fff6d8;box-shadow:0 5px 0 color-mix(in srgb,var(--world-warm) 70%,#523617),0 0 0 5px rgba(255,205,77,.20)}
body.gate-world .sb-focus-tab.sb-visited:not([aria-selected="true"]){background:#effae9;color:#34704a;border-color:#c7e9bb}
body.gate-world .sb-focus-controller{
  display:grid !important;
  grid-template-columns:52px 1fr 52px;
  align-items:center;
  gap:10px;
  width:min(540px,100%);
  margin:0 auto 10px;
  padding:8px 10px;
  border-radius:18px;
  background:rgba(255,255,255,.90);
  border:2px solid rgba(255,255,255,.95);
  box-shadow:0 6px 0 rgba(46,72,62,.10);
}
body.gate-world .sb-focus-arrow{width:52px;height:48px;border:0;border-radius:14px;background:var(--world-accent);color:#fff;font-size:24px;font-weight:900;cursor:pointer;box-shadow:0 4px 0 var(--world-accent-dark)}
body.gate-world .sb-focus-arrow:disabled{opacity:.28;box-shadow:none;cursor:default}
body.gate-world .sb-focus-dots{display:flex;align-items:center;justify-content:center;gap:7px}
body.gate-world .sb-focus-dot{width:13px;height:13px;padding:0;border:0;border-radius:50%;background:#d9d2c8;cursor:pointer}
body.gate-world .sb-focus-dot.sb-visited{background:#ffc34d}
body.gate-world .sb-focus-dot[aria-current="step"]{width:34px;border-radius:999px;background:var(--world-accent)}
body.gate-world [data-sb-focus-panel][hidden]{display:none !important}
body.gate-world [data-sb-focus-panel]{
  position:relative;
  min-height:460px;
  margin-top:0 !important;
  padding:24px !important;
  overflow:hidden;
  border:3px solid rgba(255,255,255,.96) !important;
  border-top:9px solid var(--world-accent) !important;
  background:rgba(255,253,246,.95) !important;
  box-shadow:0 13px 0 color-mix(in srgb,var(--world-accent) 24%,#a8bfb2),0 26px 48px rgba(42,75,64,.17) !important;
  animation:stage-panel-in .3s ease both;
}
body.gate-world [data-sb-focus-panel]::before{
  content:"";
  position:absolute;
  inset:auto -60px -85px auto;
  width:260px;
  height:170px;
  border-radius:55% 55% 0 0;
  background:linear-gradient(145deg,#b7e798,#59bf8d);
  opacity:.25;
  pointer-events:none;
}
body.gate-world [data-sb-focus-panel] > *{position:relative;z-index:1}
body.gate-world .letters-grid,
body.gate-world .numbers-grid,
body.gate-world .shape-grid,
body.gate-world .color-grid,
body.gate-world .phonics-groups,
body.gate-world .skill-strip,
body.gate-world .mini-lessons,
body.gate-world .steps{
  display:flex !important;
  gap:12px !important;
  overflow-x:auto !important;
  overflow-y:hidden;
  padding:10px 5px 18px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
body.gate-world .letters-grid::-webkit-scrollbar,
body.gate-world .numbers-grid::-webkit-scrollbar,
body.gate-world .shape-grid::-webkit-scrollbar,
body.gate-world .color-grid::-webkit-scrollbar,
body.gate-world .phonics-groups::-webkit-scrollbar,
body.gate-world .skill-strip::-webkit-scrollbar,
body.gate-world .mini-lessons::-webkit-scrollbar,
body.gate-world .steps::-webkit-scrollbar{display:none}
body.gate-world .letter-card,
body.gate-world .number-card{flex:0 0 155px;scroll-snap-align:center}
body.gate-world .shape-card,
body.gate-world .color-card,
body.gate-world .group-pill,
body.gate-world .skill-pill,
body.gate-world .mini-card,
body.gate-world .step{flex:1 0 220px;scroll-snap-align:center}

@keyframes adventure-card-in{from{opacity:.25;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@keyframes stage-panel-in{from{opacity:.2;transform:translateY(10px)}to{opacity:1;transform:none}}

@keyframes world-guide-breathe{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}
@keyframes world-icon-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

@media(max-width:900px){
  body.learning-world,body.gate-world{background-attachment:scroll !important;background-position:45% center !important}
  body.learning-world .dashboard-layout{grid-template-columns:1fr}
  body.learning-world .welcome-card{position:relative;top:auto}
  body.learning-world .hero{min-height:auto}
  body.gate-world .hero{grid-template-columns:1fr}
  body.gate-world .coach-card,body.gate-world .audio-card{display:none !important}
}
@media(max-width:600px){
  body.learning-world .stage,body.gate-world .stage{width:min(100% - 16px,1500px);padding-top:8px}
  body.learning-world .track-head{padding:20px 20px 112px}
  body.learning-world .track-head::after{inset-inline-start:calc(50% - 52px);bottom:3px;width:104px;height:104px}
  body.learning-world .track-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.learning-world .track-card{min-height:176px;padding:14px 8px}
  body.learning-world .track-card h2{font-size:17px}
  body.learning-world .track-card .track-icon{font-size:38px}
  body.learning-world .journey-map{margin-inline:-8px}
  body.learning-world .journey-map .journey-step{flex-basis:88px;min-height:108px;padding:10px 6px}
  body.learning-world .track-board{padding:12px}
  body.learning-world .track-board .section-head{padding:11px 12px}
  body.learning-world .journey-map{min-height:140px;margin-inline:-4px;padding-inline:2px}
  body.learning-world .journey-map .journey-step{flex-basis:88px;min-width:88px}
  body.learning-world .track-board .level-card.adventure-active{min-height:310px;padding:20px 16px}
  body.learning-world .track-board .level-card.adventure-active h3{font-size:26px}
  .adventure-controls{grid-template-columns:48px 1fr 48px}
  .adventure-arrow{width:48px;height:46px}
  body.gate-world .hero-card,body.gate-world .hero-copy,body.gate-world .coach-card,body.gate-world .audio-card,body.gate-world .panel{backdrop-filter:none;background:rgba(255,255,255,.95) !important}
  body.gate-world .hero-tools,body.gate-world .skill-strip{display:none !important}
  body.gate-world .sb-focus-nav{justify-content:flex-start;padding:9px;border-radius:17px}
  body.gate-world .sb-focus-tab{flex-basis:auto;min-width:116px;min-height:48px;font-size:12px}
  body.gate-world [data-sb-focus-panel]{min-height:430px;padding:16px !important}
  body.gate-world .letter-card,body.gate-world .number-card{flex-basis:min(42vw,150px)}
}
@media(prefers-reduced-motion:reduce){
  body.learning-world *,body.gate-world *{scroll-behavior:auto !important;animation:none !important;transition:none !important}
}

/* Immersive level world: progression is part of the scene, not a stack of cards. */
body.learning-world .levels.show{
  width:100vw;
  max-width:none;
  min-height:calc(100vh - 104px);
  margin-inline:calc(50% - 50vw);
  padding:18px clamp(18px,3vw,52px) 28px;
  background:
    linear-gradient(90deg,transparent 0 78%,rgba(236,255,249,.16) 100%),
    url('./learning-journey-map-v1.webp') center/cover no-repeat;
  border-radius:0;
  overflow:hidden;
}
body.learning-world:has(.levels.show){overflow-x:hidden}
body.learning-world .levels.show .dashboard-layout{
  width:min(1840px,100%);
  min-height:calc(100vh - 150px);
  margin-inline:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  grid-template-areas:'map profile';
  gap:18px;
  direction:ltr;
}
body.learning-world .levels.show .learning-board{grid-area:map;min-width:0;direction:rtl}
body.learning-world .levels.show .welcome-card{
  grid-area:profile;
  direction:rtl;
  position:sticky;
  top:16px;
  align-self:start;
  max-height:calc(100vh - 138px);
  overflow:auto;
  padding:18px 16px !important;
  border:3px solid rgba(255,255,255,.96) !important;
  border-top:7px solid var(--world-accent) !important;
  border-radius:26px !important;
  background:rgba(255,253,246,.94) !important;
  box-shadow:0 10px 0 rgba(61,93,76,.16),0 22px 42px rgba(35,72,62,.22) !important;
  scrollbar-width:thin;
}
body.learning-world .levels.show .welcome-card::before{width:104px;height:104px;margin:-4px auto 2px}
body.learning-world .levels.show .welcome-card h2{text-align:center;font-size:24px;margin:0;color:var(--world-accent-dark)}
body.learning-world .levels.show .welcome-card p{text-align:center;font-size:13px}
body.learning-world .levels.show .welcome-card .plan-badge{display:table;margin:8px auto}
body.learning-world .levels.show .account-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
body.learning-world .levels.show .account-metric{min-height:64px;padding:9px 6px;background:#fff;border:1px solid #ece3d6;border-radius:15px;box-shadow:0 4px 0 rgba(78,59,40,.07)}
body.learning-world .levels.show .account-metric:nth-child(n+3){display:none}
body.learning-world .levels.show .achievement-list{display:grid;gap:7px;margin-top:10px}
body.learning-world .levels.show .reward-box{margin-top:9px}
body.learning-world .levels.show .next-tip{display:none}
body.learning-world .levels.show .total-stars{margin-top:12px;background:#fff8e8;border:1px solid #f3dfb8;border-radius:16px}

body.learning-world .levels.show .track-board{
  height:calc(100vh - 150px);
  min-height:560px;
  overflow:hidden;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none;
}
body.learning-world .levels.show .track-board::after{display:none}
body.learning-world .levels.show .track-board .section-head{
  position:absolute;
  z-index:8;
  inset:2px 50% auto auto;
  transform:translateX(50%);
  width:min(520px,58%);
  margin:0;
  padding:14px 28px 17px;
  border:3px solid #d59b4b !important;
  border-bottom:8px solid #a96826 !important;
  border-radius:12px 12px 24px 24px !important;
  background:linear-gradient(180deg,#ffe2a2,#f3bd6a) !important;
  box-shadow:0 8px 0 rgba(106,68,31,.22),0 16px 28px rgba(54,57,39,.18) !important;
  text-align:center;
}
body.learning-world .levels.show .track-board .section-head::before,
body.learning-world .levels.show .track-board .section-head::after{
  content:'';position:absolute;top:-42px;width:7px;height:48px;border-radius:9px;background:#88521f;box-shadow:inset 2px 0 #c58a3e
}
body.learning-world .levels.show .track-board .section-head::before{right:20%}
body.learning-world .levels.show .track-board .section-head::after{left:20%}
body.learning-world .levels.show .track-board .section-head h2{font-size:clamp(26px,3vw,42px);color:#643412;text-shadow:0 2px #fff0c5}
body.learning-world .levels.show .track-board .section-head span{display:none}

body.learning-world .levels.show .journey-map{
  position:absolute;
  z-index:5;
  inset:86px 0 185px;
  display:block;
  min-height:0;
  margin:0;
  padding:0;
  overflow:visible;
}
body.learning-world .levels.show .journey-map::before{display:none}
body.learning-world .levels.show .journey-map .journey-step{
  position:absolute;
  width:104px;
  min-width:104px;
  min-height:82px;
  padding:7px 6px 9px;
  transform:none;
  border:3px solid rgba(255,255,255,.96) !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.97),#fff1d2) !important;
  box-shadow:0 7px 0 #c99a55,0 12px 23px rgba(64,54,34,.24);
}
body.learning-world .levels.show .journey-map .journey-step span{width:42px;height:42px;margin-bottom:3px}
body.learning-world .levels.show .journey-map .journey-step strong{font-size:13px;margin:0}
body.learning-world .levels.show .journey-map .journey-step small{font-size:10px}
body.learning-world .levels.show .journey-map .journey-step:nth-child(1){right:5%;top:17%}
body.learning-world .levels.show .journey-map .journey-step:nth-child(2){right:23%;top:5%}
body.learning-world .levels.show .journey-map .journey-step:nth-child(3){right:41%;top:19%}
body.learning-world .levels.show .journey-map .journey-step:nth-child(4){right:57%;top:2%}
body.learning-world .levels.show .journey-map .journey-step:nth-child(5){right:75%;top:22%}
body.learning-world .levels.show .journey-map .journey-step:nth-child(6){right:65%;top:52%}
body.learning-world .levels.show .journey-map .journey-step:nth-child(7){right:82%;top:62%}
body.learning-world .levels.show .journey-map .journey-step:nth-child(8){right:48%;top:64%}
body.learning-world .levels.show .journey-map .journey-step:nth-child(9){right:29%;top:53%}
body.learning-world .levels.show .journey-map .journey-step:nth-child(10){right:12%;top:67%}
body.learning-world .levels.show .journey-map .journey-step:hover,
body.learning-world .levels.show .journey-map .journey-step:focus-visible{transform:translateY(-8px) scale(1.04)}
body.learning-world .levels.show .journey-map .journey-step.done{background:linear-gradient(180deg,#fff,#e6f7d9) !important;box-shadow:0 7px 0 #78ad68,0 12px 23px rgba(51,90,53,.22)}
body.learning-world .levels.show .journey-map .journey-step.locked{opacity:.88;filter:saturate(.65)}
body.learning-world .levels.show .journey-map .journey-step.current{
  z-index:6;
  transform:scale(1.1);
  background:linear-gradient(180deg,#fff9d8,#ffd55f) !important;
  box-shadow:0 9px 0 #d8941e,0 0 0 9px rgba(255,225,78,.34),0 18px 34px rgba(114,73,10,.28);
  animation:map-station-pulse 2.2s ease-in-out infinite;
}

body.learning-world .levels.show .track-board .level-grid{
  position:absolute;
  z-index:7;
  inset:auto auto 82px 50%;
  transform:translateX(-50%);
  width:min(490px,45%);
  min-height:0;
}
body.learning-world .levels.show .track-board .level-card.adventure-active{
  width:100%;
  min-height:0;
  margin:0;
  padding:15px 18px 16px;
  border-radius:25px !important;
  border-top-width:7px !important;
  background:rgba(255,253,246,.96) !important;
  box-shadow:0 10px 0 color-mix(in srgb,var(--level,var(--world-accent)) 30%,#96713f),0 20px 38px rgba(50,57,37,.25) !important;
}
body.learning-world .levels.show .track-board .level-card.adventure-active::before{display:none}
body.learning-world .levels.show .track-board .level-card.adventure-active .num{position:absolute;inset:-17px 18px auto auto}
body.learning-world .levels.show .track-board .level-card.adventure-active h3{font-size:25px;margin:5px 0;text-align:center}
body.learning-world .levels.show .track-board .level-card.adventure-active p{display:none}
body.learning-world .levels.show .track-board .level-card.adventure-active .stats{display:none}
body.learning-world .levels.show .track-board .level-card.adventure-active .level-actions{margin-top:10px}
body.learning-world .levels.show .track-board .level-card.adventure-active .level-actions .btn-primary{font-size:18px;min-height:50px}
body.learning-world .levels.show .adventure-controls{
  position:absolute;
  z-index:8;
  inset:auto auto 7px 50%;
  transform:translateX(-50%);
  width:min(410px,38%);
  margin:0;
  padding:6px;
}
.mobile-child-nav{display:none}

@keyframes map-station-pulse{0%,100%{filter:brightness(1);transform:scale(1.1)}50%{filter:brightness(1.08);transform:scale(1.15)}}

@media(max-width:1050px){
  body.learning-world .levels.show{overflow:visible;padding:14px}
  body.learning-world .levels.show .dashboard-layout{grid-template-columns:1fr;grid-template-areas:'profile' 'map';min-height:0}
  body.learning-world .levels.show .welcome-card{position:relative;top:auto;max-height:none}
  body.learning-world .levels.show .welcome-card::before{width:74px;height:74px}
  body.learning-world .levels.show .achievement-list,body.learning-world .levels.show .reward-box,body.learning-world .levels.show .total-stars{display:none}
  body.learning-world .levels.show .welcome-card .actions{grid-template-columns:1fr}
  body.learning-world .levels.show .track-board{height:auto;min-height:0;padding:14px !important;background:rgba(248,255,250,.82) !important;border-radius:25px !important}
  body.learning-world .levels.show .track-board .section-head{position:relative;inset:auto;transform:none;width:min(520px,90%);margin:0 auto 48px}
  body.learning-world .levels.show .journey-map{position:relative;inset:auto;display:flex;min-height:145px;overflow-x:auto;overflow-y:hidden;padding:20px 6px 28px}
  body.learning-world .levels.show .journey-map .journey-step,
  body.learning-world .levels.show .journey-map .journey-step:nth-child(n){position:relative;inset:auto;right:auto;top:auto;flex:0 0 94px;min-width:94px;transform:none}
  body.learning-world .levels.show .journey-map .journey-step.current{transform:scale(1.06)}
  body.learning-world .levels.show .track-board .level-grid{position:relative;inset:auto;transform:none;width:100%}
  body.learning-world .levels.show .track-board .level-card.adventure-active{width:min(620px,100%);margin:0 auto}
  body.learning-world .levels.show .adventure-controls{position:relative;inset:auto;transform:none;width:min(520px,100%);margin:15px auto 0}
}

@media(max-width:600px){
  body.learning-world .levels.show{margin-inline:calc(50% - 50vw);padding:8px 8px 92px;background-position:42% center}
  body.learning-world .levels.show .dashboard-layout{gap:12px}
  body.learning-world .levels.show .welcome-card{padding:13px !important}
  body.learning-world .levels.show .welcome-card::before{width:62px;height:62px;float:right;margin:0 0 4px 8px}
  body.learning-world .levels.show .welcome-card h2{text-align:right;font-size:20px}
  body.learning-world .levels.show .welcome-card p{text-align:right;font-size:11px}
  body.learning-world .levels.show .account-strip,
  body.learning-world .levels.show .plan-badge,
  body.learning-world .levels.show .sb-more-actions{display:none !important}
  body.learning-world .levels.show .welcome-card .actions{clear:both;margin-top:8px}
  body.learning-world .levels.show .welcome-card #dailyJourneyBtn{min-height:48px}
  body.learning-world .levels.show .track-board{width:100%;padding:10px !important;border-radius:20px !important}
  body.learning-world .levels.show .track-board .section-head{width:calc(100% - 24px);padding:10px 12px 12px;margin:0 auto 18px}
  body.learning-world .levels.show .track-board .section-head::before,
  body.learning-world .levels.show .track-board .section-head::after{top:-29px;height:34px}
  body.learning-world .levels.show .track-board .section-head h2{font-size:25px}
  body.learning-world .levels.show .journey-map{width:100%;min-height:128px;gap:10px;margin:0;scroll-snap-type:x mandatory;scroll-padding-inline:calc(50% - 47px);padding:14px calc(50% - 47px) 20px}
  body.learning-world .levels.show .journey-map .journey-step,
  body.learning-world .levels.show .journey-map .journey-step:nth-child(n){flex-basis:94px;min-width:94px;scroll-snap-align:center}
  body.learning-world .levels.show .adventure-controls{width:100%;margin:0 auto 12px;padding:5px;grid-template-columns:46px 1fr 46px}
  body.learning-world .levels.show .adventure-arrow{width:46px;height:46px;border-radius:14px}
  body.learning-world .levels.show .adventure-position{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.learning-world .levels.show .track-board .level-grid{width:100%}
  body.learning-world .levels.show .track-board .level-card.adventure-active{width:100%;padding:18px 12px 15px;border-radius:20px !important}
  body.learning-world .levels.show .track-board .level-card.adventure-active .level-actions{grid-template-columns:1fr;gap:8px}
  body.learning-world .levels.show .track-board .level-card.adventure-active .level-actions .btn{width:100%;min-width:0}
  body.learning-world .levels.show .track-board .level-card.adventure-active h3{font-size:22px}
  body.learning-world .levels.show .mobile-child-nav{position:fixed;z-index:80;right:8px;left:8px;bottom:max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px;border:2px solid rgba(255,255,255,.95);border-radius:19px;background:rgba(255,253,247,.96);box-shadow:0 7px 0 rgba(54,78,67,.18),0 15px 30px rgba(33,60,53,.22);backdrop-filter:blur(12px)}
  body.learning-world .levels.show .mobile-child-nav button{min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:0;border-radius:13px;background:#f1faf7;color:#246f6a;font:900 11px 'Cairo',sans-serif;cursor:pointer}
  body.learning-world .levels.show .mobile-child-nav button:nth-child(2){background:#fff5df;color:#9a5d16}
  body.learning-world .levels.show .mobile-child-nav button:nth-child(3){background:#fff0eb;color:#a64e3c}
  body.learning-world .levels.show .mobile-child-nav span{font-size:19px;line-height:1}
}
