/* ActuallySpeak Kids — A2 "My Jungle World" (Home + Map + Level-2 celebration).
   Only applies to an A2 child: kids-app.js adds .is-a2 to Home (.askh) and the
   Map (.askm), .a2w-top to the header, html.ask-a2 for the bottom nav, and the
   .a2w-* pieces only render for A2. A1 children never match anything here.
   Deep emerald/teal jungle at golden hour, parchment explorer cards with a
   CSS paper grain, a golden dotted trail and a compass. Loaded after the
   theme, so rules that must beat theme !important repeat html[class*="theme-"]. */

/* ============================== tokens ============================== */
.askh.is-a2, .askm.is-a2, .a2w-top, .a2w-cel, .a2w-readpad, html.ask-a2 .ask-nav {
  --a2-deep: #072E28; --a2-em: #0D5446; --a2-em-2: #12715E; --a2-teal: #149079;
  --a2-gold: #F6C453; --a2-gold-2: #FFDF8A; --a2-gold-d: #A8670F; --a2-amber: #F29A1F;
  --a2-paper: #FFF9EC; --a2-paper-2: #F8ECD0; --a2-paper-edge: #E2C98F;
  --a2-ink: #1B2E28; --a2-ink-2: #4F6259;
  --a2-grain: radial-gradient(rgba(140,98,30,.07) 1px, transparent 1.3px), radial-gradient(rgba(140,98,30,.05) 1px, transparent 1.3px);
  /* jewel-tone candy edges for an older explorer */
  --c1: #E0517F; --c1d: #9E2C55; --c2: #17A99D; --c2d: #0B6E66; --c3: #8A5CE0; --c3d: #5534A0;
  --c4: #62B22F; --c4d: #3B7A16; --c5: #F29A1F; --c5d: #B2620A; --c6: #2D8AD8; --c6d: #1A5B9C;
}

/* ============================== backdrop ============================== */
.a2w-bg {
  position: fixed; top: 0; bottom: 0; left: 50%; width: 100%; max-width: 520px; transform: translateX(-50%);
  z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(130% 55% at 88% -6%, rgba(255,205,110,.62), rgba(255,170,70,.20) 42%, rgba(255,170,70,0) 66%),
    radial-gradient(90% 40% at 0% 100%, rgba(5,40,34,.55), rgba(5,40,34,0) 70%),
    linear-gradient(180deg, #0F5E4E 0%, #127261 34%, #138069 62%, #0E6A57 100%);
}
.a2w-bg__sun {
  position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,170,.75) 0 22%, rgba(255,200,95,.28) 46%, rgba(255,200,95,0) 70%);
}
.a2w-bg__leaf { position: absolute; width: 190px; height: 300px; opacity: .55; background-repeat: no-repeat; background-size: contain; }
.a2w-bg__leaf--l {
  left: -70px; top: 34%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 300'%3E%3Cg fill='%23083F35'%3E%3Cpath d='M10 290C40 200 100 150 180 140 150 220 90 270 10 290z'/%3E%3Cpath d='M0 180C20 110 70 60 150 40 130 120 70 170 0 180z'/%3E%3Cpath d='M0 90C10 50 40 20 90 0 85 50 50 80 0 90z'/%3E%3C/g%3E%3Cg stroke='%23136B58' stroke-width='3' fill='none'%3E%3Cpath d='M14 286C70 220 120 180 176 142'/%3E%3Cpath d='M4 176C50 120 90 80 146 42'/%3E%3C/g%3E%3C/svg%3E");
}
.a2w-bg__leaf--r {
  right: -80px; bottom: 6%; transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 300'%3E%3Cg fill='%23083F35'%3E%3Cpath d='M10 290C40 200 100 150 180 140 150 220 90 270 10 290z'/%3E%3Cpath d='M0 180C20 110 70 60 150 40 130 120 70 170 0 180z'/%3E%3C/g%3E%3C/svg%3E");
}
.a2w-bg__compass {
  position: absolute; right: -34px; top: 40%; width: 170px; height: 170px; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23FFE6A6' stroke-width='1.6'%3E%3Ccircle cx='50' cy='50' r='46'/%3E%3Ccircle cx='50' cy='50' r='38' stroke-dasharray='2 3'/%3E%3C/g%3E%3Cg fill='%23FFE6A6'%3E%3Cpath d='M50 6l6 44-6 6-6-6z'/%3E%3Cpath d='M50 94l-6-44 6-6 6 6z' opacity='.6'/%3E%3Cpath d='M6 50l44-6 6 6-6 6z' opacity='.6'/%3E%3Cpath d='M94 50l-44 6-6-6 6-6z' opacity='.6'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}

/* ============================== header + nav ============================== */
html[class*="theme-"] .ask-top.a2w-top {
  background: linear-gradient(115deg, #0A4A3F 0%, #0F6655 52%, #1A8466 100%) !important;
  border-bottom: 4px solid var(--a2-gold) !important;
  box-shadow: 0 3px 0 #8E5A0F, 0 8px 18px rgba(4,30,25,.4);
}
.a2w-top .ask-top__sub { display: none; }
.a2w-top .ask-av { box-shadow: 0 0 0 3px var(--a2-gold), 0 3px 0 rgba(0,0,0,.25); }
.a2w-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 2px 9px 2px 2px; max-width: 100%;
  border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 11px; font-weight: 900; letter-spacing: .01em; line-height: 1.3; color: #4A2B00;
  background: linear-gradient(180deg, #FFE69A, #F6C453 60%, #E9A93A); box-shadow: 0 2px 0 #8E5A0F;
}
@media (max-width: 440px) { .a2w-badge span { display: none; } }
.a2w-badge b { display: inline-grid; place-items: center; min-width: 22px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--a2-em); color: #FFE69A; font-size: 10px; }
html.ask-a2[class*="theme-"] .ask-nav {
  background: linear-gradient(180deg, #0B4439, #062B24) !important; border-top: 4px solid var(--a2-gold) !important;
  box-shadow: 0 -4px 16px rgba(4,30,25,.4);
}
html.ask-a2[class*="theme-"] .ask-nav button { color: #D9F2E6; }
html.ask-a2[class*="theme-"] .ask-nav button.is-on { background: var(--a2-paper) !important; color: var(--a2-em) !important; box-shadow: 0 4px 0 #031A16, 0 0 16px rgba(246,196,83,.55) !important; }

/* ============================== HOME ============================== */
html[class*="theme-"] .askh.is-a2 .askh-adult__h,
html[class*="theme-"] .is-a2 .askm-lvl { text-shadow: 0 2px 0 rgba(4,30,25,.6), 0 3px 10px rgba(4,30,25,.4) !important; }

/* the Play card: gold frame, a banner foot in the land's own colours */
html[class*="theme-"] .askh.is-a2 .askh-hero { border-color: var(--a2-gold); box-shadow: 0 7px 0 #8E5A0F, 0 18px 34px rgba(3,26,22,.5); }
html[class*="theme-"] .askh.is-a2 .askh-hero__foot {
  position: relative; border-top: 5px solid var(--rc);
  background-color: var(--a2-paper);
  background-image: var(--a2-grain), linear-gradient(180deg, color-mix(in srgb, var(--rs, #FFF) 85%, #fff) 0%, var(--a2-paper) 78%);
  background-size: 7px 7px, 11px 11px, auto; background-position: 0 0, 3px 5px, 0 0;
}
html[class*="theme-"] .askh.is-a2 .askh-hero__k { color: color-mix(in srgb, var(--rc) 72%, #1B1B1B); letter-spacing: .04em; }
html[class*="theme-"] .askh.is-a2 .askh-hero__t { color: var(--a2-ink); }
html[class*="theme-"] .askh.is-a2 .askh-hero__s { color: var(--a2-ink-2); }
.askh.is-a2 .askh-hero__ic {
  background: var(--rc); border: 3px solid #fff; border-radius: 16px;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--rc) 60%, #000), 0 0 0 2px var(--rc); font-size: 27px;
}
html[class*="theme-"] .askh.is-a2 .askh-play {
  background-color: var(--a2-amber);
  background-image: var(--t-gloss), linear-gradient(180deg, #FFD866 0%, #F7B22E 48%, #E8801B 100%);
  color: #fff; text-shadow: 0 2px 0 rgba(122,62,0,.55);
  box-shadow: 0 6px 0 #9A5A0E, 0 12px 22px rgba(154,90,14,.35);
}
html[class*="theme-"] .askh.is-a2 .askh-play:active { box-shadow: 0 1px 0 #9A5A0E; }
html[class*="theme-"] .askh.is-a2 .askh-play__i { color: #E8801B; }

/* tiles: parchment with jewel edges */
html[class*="theme-"] .askh.is-a2 .askh-tile {
  background-color: var(--a2-paper) !important;
  background-image: var(--a2-grain), linear-gradient(180deg, #FFFCF4, #FBF0D6) !important;
  background-size: 7px 7px, 11px 11px, auto !important; background-position: 0 0, 3px 5px, 0 0 !important;
  box-shadow: 0 6px 0 var(--tcd), 0 12px 20px rgba(3,26,22,.35);
}
html[class*="theme-"] .askh.is-a2 .askh-tile b { color: var(--a2-ink); }
html[class*="theme-"] .askh.is-a2 .askh-tile small { color: var(--a2-ink-2); }
html[class*="theme-"] .askh.is-a2 .askh-chip { background: var(--a2-paper); box-shadow: 0 4px 0 rgba(3,26,22,.45); color: var(--a2-ink); }
html[class*="theme-"] .askh.is-a2 .askh-more .askfun-card:not(.askfun-streak) { background: var(--a2-paper); }
html[class*="theme-"] .askh.is-a2 .askh-more .askfun-card { box-shadow: 0 5px 0 rgba(3,26,22,.45), 0 10px 18px rgba(3,26,22,.25); }
html[class*="theme-"] .askh.is-a2 .askh-adult { background: rgba(4,40,33,.35); border-color: rgba(255,230,160,.55); }

/* level card: A2 + the five lands on a dotted trail */
html[class*="theme-"] .askh.is-a2 .a2w-prog {
  background-color: var(--a2-paper); border: 3px solid var(--a2-paper-edge);
  background-image: var(--a2-grain); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px;
  box-shadow: 0 6px 0 rgba(3,26,22,.5), 0 14px 24px rgba(3,26,22,.3);
}
.askh.is-a2 .a2w-prog .ask-levelhead__tag { background: linear-gradient(180deg, var(--a2-em-2), var(--a2-em)); box-shadow: 0 3px 0 var(--a2-deep); color: #FFE69A; }
.askh.is-a2 .a2w-prog .asks-progcard__go { background: linear-gradient(180deg, var(--a2-em-2), var(--a2-em)); box-shadow: 0 2px 0 var(--a2-deep); color: #FFF3CF; }
html[class*="theme-"] .askh.is-a2 .a2w-prog .ask-prog { background: #EADFC4 !important; }
.askh.is-a2 .a2w-prog .ask-prog__b { background: linear-gradient(90deg, var(--a2-teal), #3CC08E) !important; }
.a2w-lands {
  position: relative; display: flex; justify-content: space-between; align-items: center; margin: 12px 2px 2px; padding: 0 2px;
}
.a2w-lands::before {
  content: ''; position: absolute; left: 18px; right: 18px; top: 50%; height: 0; border-top: 3px dotted #C9A35A; z-index: 0;
}
.a2w-land {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  background: conic-gradient(var(--la) calc(var(--p) * 1%), #E7DABB 0);
}
.a2w-land span {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1;
  background: color-mix(in srgb, var(--ls) 70%, #fff);
}
.a2w-land.is-cur { width: 50px; height: 50px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--la), 0 4px 10px rgba(0,0,0,.2); }
.a2w-land.is-cur span { width: 40px; height: 40px; font-size: 23px; }
.a2w-land.is-done::after { content: '✓'; position: absolute; right: -4px; top: -4px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; background: var(--a2-teal); border: 2px solid #fff; }
.a2w-land.is-locked span { filter: grayscale(.9); opacity: .5; background: #EFE7D3; }

/* ---------- My storybooks shelf ---------- */
.a2w-shelf {
  margin-top: 18px; padding: 12px 0 6px; border-radius: 22px; position: relative;
  background: linear-gradient(180deg, rgba(4,40,33,.42), rgba(4,40,33,.22)); border: 2px solid rgba(255,230,160,.35);
}
.a2w-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 14px 8px; }
.a2w-sh b { font-weight: 900; font-size: 1.05em; color: #FFF3CF; text-shadow: 0 2px 0 rgba(3,26,22,.6); }
.a2w-sh > span { font-weight: 900; font-size: .78em; color: #4A2B00; padding: 2px 10px; border-radius: 999px; background: var(--a2-gold); box-shadow: 0 2px 0 #8E5A0F; white-space: nowrap; }
.a2w-books {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 14px 14px; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  /* the wooden shelf the books stand on */
  background: linear-gradient(180deg, transparent calc(100% - 14px), #8A5523 calc(100% - 14px), #6B3F17 calc(100% - 4px), rgba(0,0,0,.25) 100%);
}
.a2w-books::-webkit-scrollbar { display: none; }
.a2w-book {
  flex: 0 0 auto; width: 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.a2w-book__c {
  position: relative; display: block; width: 104px; height: 136px; border-radius: 6px 14px 14px 6px; overflow: hidden;
  background: linear-gradient(135deg, var(--la), color-mix(in srgb, var(--la) 65%, #000));
  box-shadow: inset 7px 0 0 rgba(0,0,0,.22), inset 9px 0 0 rgba(255,255,255,.18), 0 5px 0 rgba(3,26,22,.55), 0 10px 16px rgba(3,26,22,.3);
  transition: transform .12s ease;
}
.a2w-book:active .a2w-book__c { transform: translateY(3px) rotate(-1deg); }
.a2w-book__fb {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 60% 42%, color-mix(in srgb, var(--ls) 90%, #fff) 0 30px, transparent 31px),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 6px, transparent 6px 14px);
}
.a2w-book__fb i { font-style: normal; font-size: 40px; line-height: 1; margin: 0 0 18px 10px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.a2w-book__fb small { position: absolute; left: 16px; bottom: 8px; font-size: 16px; opacity: .9; }
.a2w-book__c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.a2w-book__t {
  font-weight: 900; font-size: .8em; line-height: 1.15; color: #FFF7E2; text-shadow: 0 1px 0 rgba(3,26,22,.7);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; padding: 0 2px;
}
.a2w-book__ok, .a2w-book__new, .a2w-book__lk { position: absolute; z-index: 2; }
.a2w-book__ok { right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff; background: var(--a2-teal); border: 2.5px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.a2w-book__new { right: -2px; top: 10px; padding: 2px 8px 2px 7px; border-radius: 6px 0 0 6px; font-size: 11px; font-weight: 900; letter-spacing: .06em; color: #4A2B00; background: var(--a2-gold); box-shadow: 0 2px 0 #8E5A0F; }
.a2w-book.is-locked .a2w-book__c { filter: grayscale(.55) brightness(.9); }
.a2w-book.is-locked .a2w-book__c::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,46,40,0) 40%, rgba(7,46,40,.45)); }
.a2w-book__lk { right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: rgba(255,249,236,.96); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.a2w-book.is-locked .a2w-book__t { opacity: .75; }
.a2w-book.is-nudge .a2w-book__c { animation: a2wNo .4s ease; }

/* the Stories tab shows the whole shelf at the top */
.a2w-readpad .a2w-shelf { margin: 14px 0 4px; background: linear-gradient(180deg, #0F5E4E, #0B4A3E); box-shadow: 0 6px 0 rgba(4,30,25,.35); }

/* ---------- Grammar games strip ---------- */
.a2w-games {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 10px 14px; min-height: 64px;
  border: 3px solid #fff; border-radius: 20px; font: inherit; text-align: left; cursor: pointer; color: var(--a2-ink);
  background-color: var(--a2-paper);
  background-image: var(--a2-grain), linear-gradient(90deg, #E6F2FD, var(--a2-paper) 60%);
  background-size: 7px 7px, 11px 11px, auto; background-position: 0 0, 3px 5px, 0 0;
  box-shadow: 0 5px 0 #2D8AD8, 0 10px 18px rgba(3,26,22,.3);
}
.a2w-games:active { transform: translateY(4px); box-shadow: 0 1px 0 #2D8AD8; }
.a2w-games__ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(180deg, #5AAEF0, #2D8AD8); box-shadow: 0 3px 0 #1A5B9C; }
.a2w-games__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.a2w-games__b b { font-weight: 900; font-size: 1em; line-height: 1.1; }
.a2w-games__b small { font-weight: 800; font-size: .76em; color: var(--a2-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a2w-games__pc { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.a2w-games__pc i { width: 16px; height: 9px; border-radius: 3px; background: #E3D6B6; }
.a2w-games__pc i.on { background: linear-gradient(180deg, #5AAEF0, #2D8AD8); }
.a2w-games__pc i.nx { background: var(--a2-gold); box-shadow: 0 0 0 2px rgba(246,196,83,.35); }
.a2w-games__n { flex: 0 0 auto; font-weight: 900; font-size: 1.25em; color: var(--a2-em); }
.a2w-games__n small { font-size: .62em; color: var(--a2-ink-2); }

/* ============================== MAP ============================== */
html[class*="theme-"] .askm.is-a2 .askm-head {
  background-color: var(--a2-paper);
  background-image: var(--a2-grain), linear-gradient(90deg, color-mix(in srgb, var(--us, #fff) 80%, #fff), var(--a2-paper) 70%);
  background-size: 7px 7px, 11px 11px, auto; background-position: 0 0, 3px 5px, 0 0;
  box-shadow: 0 4px 0 rgba(3,26,22,.4), 0 8px 16px rgba(3,26,22,.25);
}
.askm.is-a2 .askm-head__lv { background: linear-gradient(180deg, var(--a2-em-2), var(--a2-em)) !important; color: #FFE69A !important; box-shadow: 0 2px 0 var(--a2-deep) !important; }
.askm.is-a2 .askm-head__ic {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: var(--uc); border: 3px solid #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--uc) 60%, #000);
}
.a2w-headn { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.a2w-headn small { font-size: .62em; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--uc) 70%, #1B1B1B); }
.a2w-headn b { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--a2-ink); }
html[class*="theme-"] .askm.is-a2 .askm-head__bar { background: #EADFC4; }
html[class*="theme-"] .askm.is-a2 .askm-head__bar i { background: linear-gradient(90deg, var(--uc), color-mix(in srgb, var(--uc) 60%, var(--a2-gold))); }

/* the level divider: a gold explorer ribbon */
.askm.is-a2 .a2w-lvl { margin: 20px 0 6px; justify-content: center; font-size: .95em; letter-spacing: .02em; }
.askm.is-a2 .a2w-lvl span { background: linear-gradient(180deg, #FFE69A, var(--a2-gold) 60%, #E9A93A) !important; color: #4A2B00; box-shadow: 0 2px 0 #8E5A0F; }
.askm.is-a2 .a2w-lvl::before, .askm.is-a2 .a2w-lvl::after { content: ''; flex: 1; max-width: 60px; border-top: 3px dotted rgba(255,230,160,.7); }

/* the current land's banner */
.a2w-banner {
  position: relative; margin: 10px 0 4px; padding: 12px 14px 16px; border-radius: 22px; overflow: hidden;
  background-color: var(--a2-paper);
  background-image: var(--a2-grain), linear-gradient(160deg, color-mix(in srgb, var(--us) 92%, #fff) 0%, var(--a2-paper) 72%);
  background-size: 7px 7px, 11px 11px, auto; background-position: 0 0, 3px 5px, 0 0;
  border: 3px solid #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--uc) 70%, #000), 0 14px 24px rgba(3,26,22,.35);
}
.a2w-banner::after { /* a little compass in the corner */
  content: ''; position: absolute; right: -14px; top: -14px; width: 84px; height: 84px; opacity: .22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231B2E28' stroke-width='2'%3E%3Ccircle cx='50' cy='50' r='44'/%3E%3C/g%3E%3Cg fill='%231B2E28'%3E%3Cpath d='M50 8l7 42-7 7-7-7z'/%3E%3Cpath d='M50 92l-7-42 7-7 7 7z' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.a2w-banner__top { display: flex; align-items: center; gap: 12px; }
.a2w-banner__ic {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; line-height: 1;
  background: var(--uc); border: 3px solid #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--uc) 60%, #000);
}
.a2w-banner__b { min-width: 0; display: flex; flex-direction: column; }
.a2w-banner__b small { font-size: .7em; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: color-mix(in srgb, var(--uc) 70%, #1B1B1B); }
.a2w-banner__b b { font-size: 1.3em; font-weight: 900; line-height: 1.1; color: var(--a2-ink); }
.a2w-banner__b > span { font-size: .8em; font-weight: 800; color: var(--a2-ink-2); line-height: 1.25; margin-top: 2px; }
.a2w-banner__st { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.a2w-banner__st span { padding: 3px 10px; border-radius: 999px; font-weight: 900; font-size: .8em; background: #fff; color: var(--a2-ink); box-shadow: 0 2px 0 rgba(27,46,40,.18); white-space: nowrap; }
.a2w-banner__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(27,46,40,.12); }
.a2w-banner__bar i { display: block; height: 100%; background: var(--uc); border-radius: 0 999px 999px 0; }
html[class*="theme-"] .askm.is-a2 .asks-goals__card { background: rgba(255,249,236,.95); box-shadow: 0 4px 0 rgba(3,26,22,.4), 0 8px 16px rgba(3,26,22,.2); }

/* the golden dotted trail */
html[class*="theme-"] .askm.is-a2 .askm-path__dim { stroke: #FFE6A6; stroke-opacity: .45; }
html[class*="theme-"] .askm.is-a2 .askm-path__lit,
html[class*="theme-"] .askm.is-a2 .askm-reg.is-cur .askm-path__lit { stroke: var(--a2-gold); stroke-opacity: 1; }
html[class*="theme-"] .askm.is-a2 .askm-stars { background: rgba(255,249,236,.95); box-shadow: 0 2px 0 rgba(3,26,22,.35); }
html[class*="theme-"] .askm.is-a2 .askm-title { background: var(--a2-paper); color: var(--a2-ink); box-shadow: 0 2px 0 rgba(3,26,22,.35); }
html[class*="theme-"] .askm.is-a2 .askm-stop.is-locked .askm-node { background: #D7E6DF; border-color: #EEF6F2; box-shadow: 0 4px 0 #8DB3A4; }
html[class*="theme-"] .askm.is-a2 .askm-stop.is-open .askm-node { background: var(--a2-paper); }
/* "you are here": gold instead of candy purple */
html[class*="theme-"] .askm.is-a2 .askm-stop.is-here .askm-node {
  background-color: var(--a2-amber) !important;
  background-image: var(--t-gloss), radial-gradient(circle at 35% 30%, #FFE69A, #F6B83A 55%, #DB7F14) !important;
  color: #fff !important; text-shadow: 0 2px 0 rgba(122,62,0,.5);
  box-shadow: 0 7px 0 #8E5A0F, 0 0 0 10px rgba(255,230,160,.3), 0 0 30px rgba(255,200,90,.6) !important;
}
html[class*="theme-"] .askm.is-a2 .askm-play { background-image: var(--t-gloss), linear-gradient(180deg, #FFD866 0%, #F7B22E 48%, #E8801B 100%); box-shadow: 0 4px 0 #9A5A0E; text-shadow: 0 2px 0 rgba(122,62,0,.5); }

/* 📚 storybook stops: a book (spine + pages) */
html[class*="theme-"] .askm.is-a2 .a2w-sbook .askm-node,
html[class*="theme-"] .askm.is-a2 .a2w-spuz .askm-node { width: 84px; height: 84px; }
html[class*="theme-"] .askm.is-a2 .a2w-sbook:not(.is-here) .askm-node {
  border-radius: 10px 20px 20px 10px; border: 4px solid #FFF6DC;
  background: linear-gradient(90deg, #7A2E12 0 13px, #FFF1D2 13px 17px, #C2522B 17px, #9C3B1B) !important;
  box-shadow: 0 6px 0 #5A200B, 0 0 0 4px rgba(255,214,120,.45), 0 12px 18px rgba(3,26,22,.35) !important; color: #fff;
}
html[class*="theme-"] .askm.is-a2 .a2w-sbook.is-here .askm-node { border-radius: 14px 30px 30px 14px !important; }
/* 🧩 grammar-game stops: a tilted puzzle tile */
html[class*="theme-"] .askm.is-a2 .a2w-spuz:not(.is-here) .askm-node {
  border-radius: 24px; border: 4px solid #EEF7FF; transform: rotate(-8deg);
  background: radial-gradient(circle at 30% 25%, #8CCBFF, #2D8AD8 55%, #1A5B9C) !important;
  box-shadow: 0 6px 0 #123F6E, 0 0 0 4px rgba(140,200,255,.4), 0 12px 18px rgba(3,26,22,.35) !important; color: #fff;
}
html[class*="theme-"] .askm.is-a2 .a2w-spuz:not(.is-here) .askm-node__f { transform: rotate(8deg); }
html[class*="theme-"] .askm.is-a2 .a2w-spuz.is-here .askm-node { border-radius: 30px !important; }
html[class*="theme-"] .askm.is-a2 .a2w-sbook .askm-node.is-big .askm-node__f,
html[class*="theme-"] .askm.is-a2 .a2w-spuz .askm-node.is-big .askm-node__f { font-size: 36px; }
.askm.is-a2 .a2w-sbook.is-locked .askm-node__f, .askm.is-a2 .a2w-spuz.is-locked .askm-node__f { filter: none; opacity: 1; }
html[class*="theme-"] .askm.is-a2 .a2w-sbook.is-locked .askm-node { filter: saturate(.55) brightness(1.08); }
html[class*="theme-"] .askm.is-a2 .a2w-spuz.is-locked .askm-node { filter: saturate(.55) brightness(1.05); }
.a2w-stoplk {
  position: absolute; left: -8px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; background: #FFF9EC; box-shadow: 0 2px 0 rgba(0,0,0,.3); filter: none;
}
.a2w-spuz .a2w-stoplk { transform: rotate(8deg); }
.a2w-stoplbl {
  margin-top: 7px; padding: 2px 10px; border-radius: 999px; font-weight: 900; font-size: .74em; letter-spacing: .02em; white-space: nowrap;
  color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.a2w-sbook .a2w-stoplbl { background: #9C3B1B; }
.a2w-spuz .a2w-stoplbl { background: #1A5B9C; }
.askm-stop.is-locked .a2w-stoplbl { opacity: .8; }

/* lands still ahead / already walked */
html[class*="theme-"] .askm.is-a2 .a2w-reg .askm-row { border-color: #fff; box-shadow: 0 4px 0 rgba(3,26,22,.4); }
html[class*="theme-"] .askm.is-a2 .a2w-reg .askm-row.is-done { background: var(--a2-paper); border-left: 8px solid var(--uc); }
html[class*="theme-"] .askm.is-a2 .a2w-reg .askm-row.is-locked {
  background: rgba(255,249,236,.78) !important; border-color: rgba(255,249,236,.9) !important; border-left: 8px solid color-mix(in srgb, var(--uc) 55%, #CFC6B0) !important;
  color: var(--a2-ink-2) !important; box-shadow: 0 3px 0 rgba(3,26,22,.3) !important; min-height: 64px;
}
.askm.is-a2 .a2w-reg .askm-row__ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--us, #eee) 80%, #fff); border: 2.5px solid var(--uc);
}
.askm.is-a2 .a2w-reg .askm-row.is-locked .askm-row__ic { filter: grayscale(.5); opacity: .85; }
.a2w-rowt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.a2w-rowt b { flex: none !important; font-weight: 900; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a2w-rowt small { font-size: .72em; font-weight: 800; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a2w-rowbar { flex: 0 0 44px; height: 7px; border-radius: 999px; background: #EADFC4; overflow: hidden; font-style: normal; }
.a2w-rowbar i { display: block; height: 100%; background: var(--uc); }
.askm.is-a2 .askm-reg.a2w-reg .askm-row__ok { background: var(--uc); }

/* ============================== Level-2 celebration ============================== */
.a2w-cel {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,205,110,.55), rgba(255,170,70,0) 62%),
    linear-gradient(180deg, #0C5244 0%, #0F6A57 45%, #0A4639 100%);
  opacity: 0; transition: opacity .35s ease;
  font-family: inherit; color: #fff;
}
.a2w-cel.is-in { opacity: 1; }
.a2w-cel.is-out { opacity: 0; pointer-events: none; }
.a2w-cel__sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.a2w-cel__rays {
  position: absolute; left: 50%; top: 30%; width: 900px; height: 900px; margin: -450px 0 0 -450px; opacity: .22;
  background: repeating-conic-gradient(from 0deg, rgba(255,230,160,.9) 0 9deg, rgba(255,230,160,0) 9deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 62%); mask: radial-gradient(circle, #000 0 30%, transparent 62%);
  animation: a2wSpin 40s linear infinite;
}
.a2w-cel__sun { position: absolute; left: 50%; top: 30%; width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,236,170,.6), rgba(255,200,95,0) 70%); }
.a2w-cel__in { position: relative; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; text-align: center; margin: auto 0; }
.a2w-cel__lv span {
  display: inline-block; padding: 6px 26px; font-weight: 900; font-size: 1.05em; letter-spacing: .14em; text-transform: uppercase; color: #4A2B00;
  background: linear-gradient(180deg, #FFE69A, var(--a2-gold) 60%, #E9A93A); box-shadow: 0 3px 0 #8E5A0F;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
}
.a2w-cel__kiki { width: 150px; margin: 8px 0 -4px; }
.a2w-cel__kiki img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(3,26,22,.5)); }
.a2w-cel__t { margin: 6px 0 0; font-weight: 900; font-size: 2.1em; line-height: 1.02; color: #FFF3CF; text-shadow: 0 3px 0 #8E5A0F, 0 6px 18px rgba(3,26,22,.5); }
.a2w-cel__t small { display: block; font-size: .44em; letter-spacing: .08em; text-transform: uppercase; color: #BFF0DC; text-shadow: 0 2px 0 rgba(3,26,22,.5); margin-bottom: 4px; }
.a2w-cel__s { margin: 10px 6px 0; font-weight: 800; font-size: 1em; line-height: 1.35; color: #E6FFF3; }
.a2w-cel__s b { color: var(--a2-gold-2); }
.a2w-cel__lands { list-style: none; margin: 16px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 8px; }
.a2w-cel__lands li {
  grid-column: span 2; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  animation: a2wLand .55s cubic-bezier(.2,1.5,.4,1) both; animation-delay: var(--d, 0s);
}
.a2w-cel__lands li:nth-child(4) { grid-column: 2 / span 2; }
.a2w-cel__lands li i {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 30px; line-height: 1;
  background: color-mix(in srgb, var(--ls) 80%, #fff); border: 4px solid var(--la); box-shadow: 0 4px 0 color-mix(in srgb, var(--la) 55%, #000), 0 0 0 3px rgba(255,255,255,.6);
}
.a2w-cel__lands li b { font-size: .74em; font-weight: 900; line-height: 1.1; color: #fff; text-shadow: 0 1px 0 rgba(3,26,22,.7); }
.a2w-cel__go { margin-top: 22px; width: 100%; max-width: 320px; font-size: 1.35em !important; padding: 16px 10px !important; }
html[class*="theme-"] .a2w-cel .a2w-cel__go {
  background-color: var(--a2-amber);
  background-image: var(--t-gloss), linear-gradient(180deg, #FFD866 0%, #F7B22E 48%, #E8801B 100%);
  color: #fff; text-shadow: 0 2px 0 rgba(122,62,0,.55); box-shadow: 0 6px 0 #9A5A0E, 0 12px 22px rgba(3,26,22,.4);
}
.a2w-cel__go:focus-visible { outline: 3px solid #FFE69A; outline-offset: 3px; }
/* entrance */
.a2w-cel.is-in .a2w-cel__lv { animation: a2wDrop .6s cubic-bezier(.2,1.4,.4,1) both .1s; }
.a2w-cel.is-in .a2w-cel__kiki { animation: a2wKiki .8s cubic-bezier(.2,1.5,.4,1) both .2s; }
.a2w-cel.is-in .a2w-cel__t, .a2w-cel.is-in .a2w-cel__s { animation: a2wUp .5s ease both .45s; }
.a2w-cel.is-in .a2w-cel__go { animation: a2wUp .5s ease both 2.5s, a2wPulse 2.4s ease-in-out 3.2s infinite; }
@media (max-height: 700px) {
  .a2w-cel__kiki { width: 110px; }
  .a2w-cel__t { font-size: 1.8em; }
  .a2w-cel__lands li i { width: 50px; height: 50px; font-size: 26px; }
}

@keyframes a2wSpin { to { transform: rotate(360deg); } }
@keyframes a2wDrop { from { opacity: 0; transform: translateY(-24px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes a2wKiki { 0% { opacity: 0; transform: translateY(40px) scale(.6) rotate(-8deg); } 100% { opacity: 1; transform: none; } }
@keyframes a2wUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes a2wLand { from { opacity: 0; transform: translateY(18px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes a2wPulse { 0%, 80%, 100% { transform: none; } 88% { transform: scale(1.04); } }
@keyframes a2wNo { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ============================== reduced motion ============================== */
@media (prefers-reduced-motion: reduce) {
  .a2w-cel, .a2w-cel *, .a2w-book.is-nudge .a2w-book__c { animation: none !important; transition: none !important; }
  .a2w-cel__lands li { opacity: 1; transform: none; }
}
html.ask-reduced .a2w-cel, html.ask-reduced .a2w-cel *, .a2w-cel.is-reduced, .a2w-cel.is-reduced *,
html.ask-reduced .a2w-book.is-nudge .a2w-book__c { animation: none !important; transition: none !important; }
