/* ActuallySpeak Kids — UX pass (12 Oct 2026). Loaded last.
   Small, cross-cutting fixes from the full walk-through: readable text,
   thumb-sized controls, opaque sticky bars, one obvious next step. */

/* ---- thumb-sized header buttons (✕, ?, ⚙): 44px everywhere, even on small phones */
@media (max-width:440px){ .ask-iconbtn{width:44px;height:44px;font-size:19px} }

/* ---- the star counter: a gold star on a WHITE pill (a yellow star on a yellow
   pill was nearly invisible), gold rim so it still reads as treasure */
html[class*="theme-"] .ask-pill--star,
html[class*="theme-"] .ask-pill--star:not(.askfx-pill-hit){
  background:#fff!important;background-image:none!important;animation:none!important;
  color:#7A4A00!important;border:2.5px solid var(--t-gold,#F5B82E)!important;
  box-shadow:0 3px 0 var(--t-gold-edge,#C98A0B)!important;font-weight:900;
}

/* ---- sticky land header on the map: fully opaque, nothing shows through */
html[class*="theme-"] .askm-head{background:#fff}

/* ---- "Skip…" links and small notes on the sky: a readable chip, not white-on-cyan */
html[class*="theme-"] .askrd-skip:not(.askrd-pre__bar .askrd-skip),
html[class*="theme-"] .a2r-skip{
  background:rgba(255,255,255,.88)!important;color:#4C1D95!important;
  box-shadow:0 2px 0 rgba(76,29,149,.18);min-height:44px;padding:0 16px;
}
html[class*="theme-"] .sg-tune{display:inline-block;background:rgba(255,255,255,.88);color:#4C1D95!important;
  padding:4px 12px;border-radius:999px;text-shadow:none!important}

/* ---- grown-up screens (Parent dashboard, Settings): headings in dark ink on a
   calm background, no glowing sky text */
html.ask-grown[class*="theme-"] .ask-sec,
html.ask-grown[class*="theme-"] .ask-pad > .ask-sub{color:var(--t-ink,#1E1B4B)!important;text-shadow:none!important}
html.ask-grown body{background:#EEF2FF}
html.ask-grown #ask-screen{background:linear-gradient(180deg,#EEF2FF,#E0E7FF)}

/* ---- a speech turn that hasn't started yet is never a blank screen */
.sk-turn:empty{display:flex!important}
.sk-turn:empty::before{content:'👂 Listen…';display:block;text-align:center;padding:18px 12px;margin-top:10px;
  border-radius:20px;border:3px dashed rgba(76,29,149,.25);color:#6D28D9;font-weight:900;font-size:1.05em;
  background:rgba(255,255,255,.7);animation:askUxPulse 1.6s ease-in-out infinite}
@keyframes askUxPulse{0%,100%{opacity:.65}50%{opacity:1}}
.ask-reduced .sk-turn:empty::before{animation:none}

/* ---- songs: while the song plays, Skip/Next is a quiet button (the song is the
   point); the big button comes back as "Now you sing!" when it ends */
.sg-next-btn--soft{background:rgba(255,255,255,.92)!important;color:#6D28D9!important;box-shadow:0 3px 0 rgba(76,29,149,.25)!important;font-size:.95em}
.sg-wait{display:inline-block;opacity:.8;animation:askUxPulse 1.4s ease-in-out infinite}

/* ---- My Words: "I know it" readable (white on a deeper green) */
.askw-rate__b--know{background:linear-gradient(180deg,#22C55E,#15803D)!important;box-shadow:0 6px 0 #0F5E2C!important;text-shadow:0 1px 0 rgba(0,0,0,.25)!important}

/* ---- onboarding crew: friends are tappable, and a quiet "Let's go!" skips ahead */
.ob6-thumb{padding:0;cursor:pointer;font:inherit}
button.ob6-thumb{width:44px;height:44px}
.ob6-crew__skip{display:block;margin:6px auto 0;min-height:44px;padding:0 18px;border:0;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.88);color:#6D28D9;font:inherit;font-weight:900;font-size:1em;box-shadow:0 2px 0 rgba(76,29,149,.2)}

/* ---- Games hub: each game its own colour, one "Kiki picks!" */
.askgm-t{position:relative}
.askgm-t .ask-tile__ic{border-radius:18px}
.askgm-t--0 .ask-tile__ic{background:#FFE4E6}.askgm-t--1 .ask-tile__ic{background:#E0F2FE}
.askgm-t--2 .ask-tile__ic{background:#FEF3C7}.askgm-t--3 .ask-tile__ic{background:#EDE9FE}
.askgm-t--4 .ask-tile__ic{background:#DCFCE7}.askgm-t--5 .ask-tile__ic{background:#FFEDD5}
.askgm-t--6 .ask-tile__ic{background:#FCE7F3}.askgm-t--7 .ask-tile__ic{background:#CFFAFE}
.askgm-t.is-pick{box-shadow:0 0 0 3px #FFD34D,0 6px 0 #B45309!important}
.askgm-pick{position:absolute;top:-10px;left:50%;transform:translateX(-50%);white-space:nowrap;background:linear-gradient(180deg,#FFD34D,#F59E0B);
  color:#5A2A00;font-weight:900;font-size:.72em;padding:3px 9px;border-radius:999px;box-shadow:0 2px 0 #B45309;z-index:2}

/* ---- Jungle shop: what the child can afford right now glows and says so */
.ask-shopitem{position:relative}
.ask-shopitem.is-can{box-shadow:0 0 0 3px #FFD34D,0 5px 0 #B45309!important;animation:askUxCan 2s ease-in-out infinite}
.ask-shopitem__can{position:absolute;top:-9px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#22C55E;color:#fff;
  font-weight:900;font-size:.62em;padding:2px 7px;border-radius:999px;box-shadow:0 2px 0 #15803D}
@keyframes askUxCan{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.ask-reduced .ask-shopitem.is-can{animation:none}

/* ---- medal chip on the win page (bronze / silver: no full-screen popup) */
.askg-mchip{display:flex;align-items:center;gap:10px;width:100%;max-width:400px;margin:10px auto 0;padding:10px 14px;border-radius:18px;
  background:linear-gradient(135deg,#FFF7D6,#FFE7A3);color:#5A2A00;text-align:left;box-shadow:0 4px 0 #C98A0B;animation:askfxUp .45s ease both}
.askg-mchip__m{font-size:2em;line-height:1}
.askg-mchip__t b{display:block;font-weight:900;font-size:1.05em}
.askg-mchip__t small{display:block;font-weight:800;opacity:.85;font-size:.85em;line-height:1.25}

/* ---- answer choices all look the SAME until chosen: a white rim and soft
   shadow. A coloured rim on one picture made it look pre-selected or "right".
   Colour is kept for feedback only (is-right green, is-wrong red). */
html[class*="theme-"] .ask-opts .ask-opt:not(.is-right):not(.is-wrong),
html[class*="theme-"] .asks-bpics .ask-opt:not(.is-right):not(.is-wrong),
html[class*="theme-"] .sk-pics .sk-pic:not(.is-right):not(.is-wrong),
html[class*="theme-"] .sk-choice:not(.is-right):not(.is-wrong){
  border-color:#fff!important;box-shadow:0 5px 0 rgba(76,29,149,.22),0 10px 18px rgba(31,37,71,.12)!important}

/* ---- grammar labels ("NEGATIVE: I AM NOT") are for grown-ups and readers:
   hidden for Little Explorers, softer for Adventurers */
html.ask-little .ask-saycard__g{display:none}
.ask-saycard__g{opacity:.7}

/* ---- speaking mission (Little Explorers pick a sentence, then the mic): the
   three picture choices sit in ONE row so the mic stays on screen */
#mOpts.ask-opts{grid-template-columns:repeat(3,1fr)!important;gap:8px}
#mOpts .ask-opt{padding:6px!important;min-height:0}
#mOpts .ask-opt .ask-wordart{max-height:96px}
#mOpts .ask-opt__l{font-size:.82em;line-height:1.15}

/* ---- Skip is always there (no dead ends) but quieter than Hear it / Slowly:
   text-only, so the mic stays the obvious thing to do */
#mSkip.ask-btn--ghost,#raSkip.ask-btn--ghost{background:transparent!important;box-shadow:none!important;border-color:transparent!important;
  color:#5B21B6!important;opacity:.85;text-decoration:underline;text-underline-offset:3px}
