/* ActuallySpeak Kids — A2 grammar games (js/kids-a2games.js).
   Tropical Pop look: candy cards, Fredoka type, the shared coach row,
   word tiles and option cards. Plus the toys: town map, clock, sticker
   chart, flip cards, story order, weather panels. And the How-to clips
   for these games (ht-a2*), which live here so kids-howto.css stays as is. */

.a2g-root{padding-top:6px;font-family:'Baloo 2',var(--font)}
.a2g-foot{height:30px}

/* ---- round trail: one dot per round, filled with the stars it earned ---- */
.a2g-trail{display:flex;justify-content:center;gap:6px;margin:6px 0 2px;flex-wrap:wrap}
.a2g-trail i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-style:normal;font:700 13px/1 'Fredoka',var(--font);
  color:#6E6890;background:rgba(255,255,255,.75);border:2.5px solid rgba(255,255,255,.95);box-shadow:0 2px 0 rgba(76,29,149,.18)}
.a2g-trail i.is-now{color:#fff;background:var(--t-pick-grad,#A030E8);border-color:#fff;transform:scale(1.12);box-shadow:0 0 0 4px rgba(236,72,153,.25);animation:a2gNow 1.6s ease-in-out infinite}
.a2g-trail i.is-2{background:linear-gradient(180deg,#FFF06A,#FFC400);border-color:#fff;font-size:15px}
.a2g-trail i.is-1{background:#FFF3C4;border-color:#fff;font-size:14px}
.a2g-trail i.is-0{background:#E9E5F6;color:#8C86AE}
.a2g-trail i.is-skip{background:#E6F6FF;font-size:13px}
@keyframes a2gNow{0%,100%{transform:scale(1.12)}50%{transform:scale(1.2)}}

/* ---- Kiki's coach row (shared look) + a hear-again button ---- */
.a2g-coach{margin:8px 0 12px}
.a2g-coach .ask-coachrow__say{flex:1;min-width:0;font-size:1.12em}
.a2g-coach .ask-coachrow__say b{font-size:1.05em}
.a2g-coach.is-many .ask-coachrow__say{line-height:1.55}
.a2g-nw{white-space:nowrap}
.a2g-nw b{white-space:normal}
.a2g-coach.is-many .ask-coachrow__say b{display:inline;margin:0;padding:1px 7px 2px;font-size:1em;transform:none;animation:none;border-radius:10px;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;box-shadow:0 2px 0 #C21E5C}
.a2g-hear{flex:0 0 auto;width:46px;height:46px;border-radius:50%;border:3px solid #fff;cursor:pointer;font-size:20px;line-height:1;
  background:linear-gradient(180deg,#22D3EE,#0EA5E9 55%,#0369A1);box-shadow:0 4px 0 #075985;align-self:center}
.a2g-hear:active{transform:translateY(3px);box-shadow:0 1px 0 #075985}

/* ---- the picture / visual card above the answers ---- */
.a2g-vis{padding:10px;margin:0 0 10px;text-align:center}
.a2g-vis--clock{padding:8px}
.a2g-pair{display:flex;align-items:center;justify-content:center;gap:10px}
.a2g-pair__mid i{font-style:normal;font:700 1.3em 'Fredoka',var(--font);color:#A030E8}
.a2g-mini{display:inline-flex;flex-direction:column;align-items:center;gap:3px;vertical-align:middle}
.a2g-mini__p{display:block;width:84px;height:84px;border-radius:16px;overflow:hidden;box-shadow:0 3px 0 rgba(76,29,149,.18)}
.a2g-mini__p .ask-wordart{width:100%;height:100%;aspect-ratio:auto;border-radius:0}
.a2g-mini b{font:600 .9em/1.1 'Fredoka',var(--font);color:var(--t-ink,#1F2547);max-width:110px;text-align:center}

/* emoji cards and picture files that sit on the word-card base */
.a2g-emo{display:grid;place-items:center;container-type:inline-size;
  background:radial-gradient(circle at 50% 38%,#FFFFFF 0%,#E6F7FF 55%,#BDE6FF 100%)}
.a2g-emo span{font-size:48px;font-size:52cqw;line-height:1;filter:drop-shadow(0 4px 3px rgba(31,37,71,.18))}
.a2g-img{display:grid;place-items:center;container-type:inline-size;background:radial-gradient(circle at 50% 40%,#FFF8DD,#FFE08A)}
.a2g-img span{font-size:44px;font-size:44cqw;line-height:1}
.a2g-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* things of different sizes, standing on the same ground */
.a2g-sz{position:relative;width:100%;aspect-ratio:1/1;display:flex;align-items:flex-end;justify-content:center}
.a2g-sz__in{width:calc(var(--s,1) * 100%);border-radius:14px;overflow:hidden;transition:transform .3s}
.a2g-sz__in .ask-wordart{border-radius:14px}
.a2g-pics .a2g-sz{border-radius:14px;background:linear-gradient(180deg,#F1F5FF 0%,#F1F5FF 78%,#D8F5C8 78%)}

/* ---- intro card ---- */
.a2g-photo{height:118px;margin-top:6px}
.a2g-intro{text-align:center;margin-top:-26px;position:relative;z-index:2;padding:14px 12px 12px}
.a2g-demo{margin:12px 0 6px}
.a2g-demo__row{display:flex;align-items:flex-end;justify-content:center;gap:10px;flex-wrap:wrap}
.a2g-demo__item{display:flex;flex-direction:column;align-items:center;gap:4px}
.a2g-demo__item b{font:600 .92em/1.1 'Fredoka',var(--font);color:#6D28D9}
.a2g-demo__grow .a2g-sz{width:84px}
.a2g-demo__grow .a2g-demo__item:nth-child(3) .a2g-sz{width:96px}
.a2g-demo__item .a2g-signcard{width:72px;aspect-ratio:1/1}
.a2g-demo__then{align-self:center;font:700 1.1em 'Fredoka',var(--font);color:#A030E8}
.a2g-demo__row > .a2g-signcard{width:84px;aspect-ratio:1/1}
.a2g-demo__clock .a2g-clock{width:120px}
.a2g-demo__story .a2g-demo__item{position:relative;width:70px}
.a2g-demo__story .ask-wordart{width:70px;height:70px;aspect-ratio:auto;border-radius:12px}
.a2g-demo__story i{position:absolute;left:-4px;top:-6px;z-index:3;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  font:700 12px 'Fredoka',var(--font);font-style:normal;color:#fff;background:var(--t-pick-grad,#A030E8);border:2px solid #fff}
.a2g-intro__meta{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:10px}
.a2g-intro__meta span{font:600 .8em 'Fredoka',var(--font);color:#5B1A9E;background:#F4ECFF;border-radius:999px;padding:3px 10px}
.a2g-go{margin-top:4px}

/* ---- answers: sentence buttons, picture cards, word tiles ---- */
.a2g-list{grid-template-columns:1fr;gap:10px;margin-top:4px}
.a2g-line{display:flex;align-items:center;gap:10px;text-align:left;padding:12px 14px;min-height:60px;cursor:pointer;
  font:600 1.12em/1.2 'Fredoka',var(--font);color:var(--t-ink,#1F2547)}
.a2g-line__ic{flex:0 0 auto;font-size:1.4em;line-height:1}
.a2g-line__t{flex:1}
.a2g-pics{margin-top:4px}
.a2g-pic{cursor:pointer}
.a2g-pic__in{position:relative}
.a2g-pic .ask-opt__l{font:600 .92em/1.15 'Fredoka',var(--font)}
.ask-opts.a2g-pics:not(.ask-opts--three) .a2g-pic{padding:8px}
.a2g-sentcard{text-align:center;padding:14px 10px}
.a2g-sent{font:600 1.3em/1.9 'Fredoka',var(--font);color:var(--t-ink,#1F2547)}
.a2g-gap.asks-gapslot{min-width:92px;min-height:46px;font-size:.95em;color:#A030E8;border-color:#C6B6FA;background:#F4ECFF}
.a2g-gap.is-fill{color:#06361A}
.a2g-stem{white-space:nowrap;display:inline-flex;align-items:center}
.a2g-gap.is-suffix{margin-left:2px;min-width:70px}
.a2g-gap.is-suffix.is-fill{border-color:#22C55E;background:#E6FFE0;color:#0E8F43}
.a2g-tiles{margin:10px 0 2px}
.a2g-tiles .asks-wtile{font-family:'Fredoka',var(--font);font-weight:600;min-width:64px}
.asks-wtile.is-right{background:var(--t-success,#22C55E) !important;box-shadow:0 4px 0 #0E8F43 !important;color:#06361A}
.asks-wtile.is-wrong{background:var(--t-wrong,#FF4D6D) !important;box-shadow:0 4px 0 #C21E5C !important}
.asks-wtile.is-dim{opacity:.32;box-shadow:none}
.a2g-tip{text-align:center;font-weight:800;font-size:.84em;color:var(--t-ink-2,#4A5182);margin-top:6px;opacity:.9}
#gGap.is-over,.a2g-flip.is-over .a2g-flip__f,.a2g-chart__d.is-over,.a2g-oslot.is-over,.a2g-fm__c.is-over{
  border-color:var(--t-pick,#A030E8) !important;box-shadow:0 0 0 5px rgba(160,48,232,.28) !important;transform:scale(1.06)}

/* Kiki reads this option now (Little Explorers) */
.is-reading{box-shadow:0 0 0 5px #FFE14D,0 0 22px rgba(255,200,0,.7) !important;transform:scale(1.03);transition:transform .2s,box-shadow .2s}

/* ---- build the sentence ---- */
.a2g-build{text-align:center;padding:12px 10px}
.a2g-wslots{align-items:flex-end}
.a2g-wslot{font-family:'Fredoka',var(--font);font-weight:600}
.a2g-wslot.is-given{background:#F1F5FF;border:3px solid #E3DAFF;color:var(--t-ink-2,#4A5182)}
.a2g-wslots.is-win .a2g-wslot,.a2g-wslots.is-done .a2g-wslot{border-color:var(--t-success-solid,#22C55E);background:var(--t-success-soft,#E6FFE0)}
.a2g-end{font:700 1.4em/1 'Fredoka',var(--font);color:var(--t-ink,#1F2547);padding-bottom:6px}
.a2g-bar{display:flex;gap:10px;margin-top:12px}
.a2g-bar .ask-btn--ghost{flex:0 0 64px;min-height:52px;padding:0}
.a2g-bar .ask-btn--blue{flex:1;min-height:52px}

/* ---- feedback strip under every round ---- */
.a2g-fb{display:none;margin:12px 0 0;border-radius:20px;padding:12px 14px;font:600 1.05em/1.3 'Fredoka',var(--font);color:#2B1A5E;
  animation:askSayIn .35s cubic-bezier(.2,1.5,.4,1) both}
.a2g-fb.is-good,.a2g-fb.is-hint,.a2g-fb.is-show{display:block}
.a2g-fb.is-good{background:var(--t-success-soft,#E6FFE0);border:3px solid #7EE2A0}
.a2g-fb.is-good b{color:#0E8F43}
.a2g-fb.is-hint{background:#FFF4E5;border:3px solid #FFC98A}
.a2g-fb.is-show{background:var(--t-pick-soft,#F4ECFF);border:3px solid #C6B6FA}
.a2g-fb.is-show b{color:#6D28D9}
.a2g-fb__go{width:100%;margin-top:10px;min-height:56px}

.a2g-shake{animation:askshake .4s,a2gShake .4s}
@keyframes a2gShake{0%,100%{translate:0}25%{translate:-7px}75%{translate:7px}}
.a2g-mic{margin-top:4px}

/* ---- weather: day panels with thermometers and wind ---- */
.a2g-day{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 6px;border-radius:16px;background:linear-gradient(180deg,#E6F7FF,#fff);min-width:96px}
.a2g-day__l{font:700 .92em 'Fredoka',var(--font);color:#5B1A9E}
.a2g-day__row{display:flex;align-items:center;gap:10px}
.a2g-day__ic{font-size:38px;line-height:1}
.a2g-thermo{position:relative;width:18px;height:74px;border-radius:12px;background:#fff;border:3px solid #C6B6FA;box-sizing:content-box;margin-bottom:10px}
.a2g-thermo i{position:absolute;left:3px;right:3px;bottom:3px;height:var(--t);max-height:calc(100% - 6px);border-radius:8px;background:var(--c);transition:height .6s}
.a2g-thermo:after{content:'';position:absolute;left:50%;bottom:-14px;width:26px;height:26px;transform:translateX(-50%);border-radius:50%;background:var(--c);border:3px solid #C6B6FA}
.a2g-day__t{font:700 1.3em/1 'Fredoka',var(--font)}
.a2g-day__gust{font-size:18px;line-height:1;min-height:20px;letter-spacing:-2px}
.a2g-day__wind{position:relative;width:96px;height:84px;overflow:hidden}
.a2g-tree{position:absolute;left:8px;bottom:0;font-size:52px;line-height:1;transform-origin:50% 100%;animation:a2gSway var(--spd,1.4s) ease-in-out infinite alternate}
.a2g-day__wind i{position:absolute;left:-20px;font-style:normal;font-size:18px;animation:a2gLeaf 1.8s linear infinite;animation-delay:var(--d,0s)}
@keyframes a2gSway{from{transform:rotate(calc(var(--sway,8deg) * -.3))}to{transform:rotate(var(--sway,8deg))}}
@keyframes a2gLeaf{0%{transform:translateX(0) rotate(0)}100%{transform:translateX(130px) rotate(320deg)}}
.a2g-pics .a2g-day{width:100%;box-sizing:border-box;min-width:0}
.ask-opts--three.a2g-pics .a2g-day{padding:6px 2px}
.ask-opts--three.a2g-pics .a2g-day__ic{font-size:28px}
.ask-opts--three.a2g-pics .a2g-day__l{font-size:.8em}

/* ---- clock ---- */
.a2g-clock{display:block;width:100%;height:auto}
.a2g-clock__rim{fill:#FF9214}
.a2g-clock__face{fill:#fff}
.a2g-clock__tick{fill:#C6B6FA}
.a2g-clock__n{font:600 17px 'Fredoka','Baloo 2',sans-serif;fill:#2B1A5E}
.a2g-clock__n.is-q{font-size:21px;fill:#A030E8}
.a2g-clock__pin{fill:#2B1A5E}
.a2g-hand{transform-origin:100px 100px;transform-box:view-box;transition:transform .45s cubic-bezier(.3,1.35,.5,1)}
.a2g-hand line{stroke-linecap:round}
.a2g-hand--h line{stroke:#FF3D7F;stroke-width:10}
.a2g-hand--h circle{fill:#FF3D7F}
.a2g-hand--m line{stroke:#1D7BE0;stroke-width:6}
.a2g-hand--m circle{fill:#1D7BE0}
.a2g-hand circle{stroke:#fff;stroke-width:3}
.a2g-clock.is-live{touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
.a2g-clock.is-live .a2g-hand.is-on{filter:drop-shadow(0 0 5px rgba(255,200,0,.95))}
.a2g-clock.is-drag .a2g-hand{transition:none}
.a2g-clock.is-right .a2g-clock__rim{fill:#22C55E}
.a2g-clockcard{text-align:center;padding:12px 12px 10px}
.a2g-clockwrap{width:min(236px,64vw);margin:0 auto}
.a2g-hands{display:flex;gap:10px;margin-top:10px}
.a2g-handchip{flex:1;min-height:56px;border-radius:16px;cursor:pointer;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  font:600 1em/1.1 'Fredoka',var(--font);border:3px solid;box-shadow:0 4px 0 rgba(76,29,149,.16)}
.a2g-handchip small{font-size:.76em;opacity:.8}
.a2g-handchip i{display:block;height:6px;border-radius:4px;margin-bottom:3px}
.a2g-handchip.is-m{color:#1D7BE0;border-color:#9ED0FF}
.a2g-handchip.is-m i{width:44px;background:#1D7BE0}
.a2g-handchip.is-h{color:#E0246A;border-color:#FFB3CF}
.a2g-handchip.is-h i{width:26px;height:8px;background:#FF3D7F}
.a2g-handchip.is-m.is-on{background:#1D7BE0;color:#fff;border-color:#fff;box-shadow:0 4px 0 #0B4F9E}
.a2g-handchip.is-h.is-on{background:#FF3D7F;color:#fff;border-color:#fff;box-shadow:0 4px 0 #C21E5C}
.a2g-handchip.is-on i{background:#fff}
.a2g-check{margin-top:12px}
.a2g-clockvis{width:min(176px,48vw);margin:0 auto}
.a2g-clockpic{width:100%;aspect-ratio:1/1;display:grid;place-items:center;padding:4px;box-sizing:border-box}
.a2g-clockpic--s{width:96px;padding:0}

/* ---- town map ---- */
.a2g-mapwrap{margin:0 -4px}
.a2g-map{position:relative;display:grid;grid-template-columns:1fr 1fr 44px 1fr 1fr;grid-template-rows:auto 44px auto 44px;
  border-radius:24px;overflow:hidden;border:4px solid #fff;box-shadow:0 6px 0 rgba(76,29,149,.22),0 12px 24px rgba(31,37,71,.16);
  background:radial-gradient(circle at 20% 15%,#B8F28B 0,transparent 40%),linear-gradient(160deg,#8EE06A,#5CC64A)}
.a2g-road{background:#5D6780;position:relative;z-index:0}
.a2g-road--v{grid-column:3;grid-row:1/5;background-image:linear-gradient(#fff 50%,transparent 50%);background-size:4px 22px;background-repeat:repeat-y;background-position:center;background-color:#5D6780}
.a2g-road--h{grid-column:1/6;grid-row:2;background-image:linear-gradient(90deg,#fff 50%,transparent 50%);background-size:22px 4px;background-repeat:repeat-x;background-position:center;background-color:#5D6780}
.a2g-cross{background:#5D6780;z-index:1}
.a2g-lot{position:relative;z-index:1;margin:6px 4px;padding:4px 4px 3px;border-radius:14px;border:3px solid #fff;background:#fff;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 4px 0 rgba(31,37,71,.22);font:inherit}
.a2g-lot .ask-wordart{aspect-ratio:1/1;border-radius:10px}
.a2g-lot span{font:600 .78em/1.1 'Fredoka',var(--font);color:var(--t-ink,#1F2547);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.a2g-lot:active{transform:scale(.96)}
.a2g-lot.is-right{border-color:#22C55E;box-shadow:0 0 0 4px #22C55E,0 0 18px rgba(34,197,94,.7);animation:askpop .35s}
.a2g-lot.is-wrong{border-color:var(--t-wrong,#FF4D6D);animation:askshake .4s}
.a2g-lot.is-dim{opacity:.55}
.a2g-grass{display:flex;align-items:center;justify-content:center;font-size:20px;letter-spacing:6px}
.a2g-start{display:flex;align-items:flex-end;justify-content:center;background:#5D6780;padding-bottom:2px;z-index:0}
.a2g-start span{font:700 9px 'Fredoka',var(--font);color:#fff;letter-spacing:.08em;opacity:.8}
.a2g-walker{position:absolute;left:50%;top:92%;z-index:4;width:40px;height:40px;border-radius:50%;transform:translate(-50%,-50%);
  display:grid;place-items:center;font-size:24px;line-height:1;background:#fff;border:3px solid #FF3D7F;box-shadow:0 4px 8px rgba(31,37,71,.35);
  transition:left .55s ease-in-out,top .55s ease-in-out;pointer-events:none}

/* ---- often: the sticker chart ---- */
.a2g-chart{text-align:left}
.a2g-chart__who{display:flex;align-items:center;gap:10px;margin-bottom:8px;font:600 1.05em/1.2 'Fredoka',var(--font);color:var(--t-ink,#1F2547)}
.a2g-chart__who .a2g-mini__p{width:52px;height:52px;border-radius:12px}
.a2g-chart__who b{color:#6D28D9}
.a2g-chart__row{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.a2g-chart__d{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 0 6px;border-radius:12px;border:2.5px dashed #C6B6FA;background:#fff;min-height:62px;transition:transform .2s}
.a2g-chart__d small{font:600 .72em 'Fredoka',var(--font);color:var(--t-ink-2,#4A5182)}
.a2g-chart__d .a2g-stk{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:19px;line-height:1}
.a2g-chart__d.is-on{border-style:solid;border-color:#FFC400;background:#FFF8D6}
.a2g-chart__d.is-on .a2g-stk{background:radial-gradient(circle at 35% 30%,#FFF6A8,#FFC400);box-shadow:0 2px 0 #D97706;transform:rotate(-8deg)}
.a2g-chart__d[data-day]{cursor:pointer;min-height:70px}
.a2g-chart__d.is-pop .a2g-stk{animation:a2gStick .4s cubic-bezier(.3,1.6,.5,1)}
@keyframes a2gStick{0%{transform:scale(.2) rotate(-40deg)}100%{transform:scale(1) rotate(-8deg)}}
.a2g-vis--chart{padding:10px 8px}
.a2g-chartcard{padding:12px 8px}
.a2g-stkbar{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0 0}
.a2g-stkbar__t{font:600 1em 'Fredoka',var(--font);color:var(--t-on-bg,#fff);text-shadow:var(--t-on-bg-shadow)}
.asks-wtile.a2g-stksrc{width:60px;height:60px;min-height:0;padding:0;border-radius:50%;font-size:30px;line-height:1;
  background:radial-gradient(circle at 35% 30%,#FFF6A8,#FFC400);box-shadow:0 4px 0 #D97706;border:3px solid #fff;animation:a2gWig 2.4s ease-in-out infinite}
@keyframes a2gWig{0%,80%,100%{transform:none}86%{transform:rotate(-12deg)}93%{transform:rotate(10deg)}}
.a2g-clear.ask-btn{width:56px;min-height:52px;padding:0;font-size:1.3em}

/* ---- past: diary page + flip cards ---- */
.a2g-diary{position:relative;background:repeating-linear-gradient(180deg,#fff 0,#fff 31px,#DCE8FF 31px,#DCE8FF 33px) !important;
  padding-top:30px !important;border-left:10px solid #FFB3CF !important}
.a2g-diary__tag{position:absolute;left:10px;top:6px;font:700 .8em 'Fredoka',var(--font);color:#fff;background:linear-gradient(160deg,#FFB21A,#FF3D7F);padding:2px 10px;border-radius:999px}
.a2g-flip{display:inline-block;position:relative;vertical-align:middle;min-width:6.4em;height:1.9em;margin:0 4px;perspective:700px;line-height:1}
.a2g-flip__in{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.3,1.45,.45,1)}
.a2g-flip__f,.a2g-flip__b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:14px;padding:0 8px;
  -webkit-backface-visibility:hidden;backface-visibility:hidden;font:700 1em 'Fredoka',var(--font);white-space:nowrap}
.a2g-flip__f{background:#F4ECFF;border:3px dashed #A030E8;color:#6D28D9}
.a2g-flip__b{transform:rotateY(180deg);background:var(--t-success,#3FE07A);border:3px solid #fff;color:#06361A;box-shadow:0 3px 0 #0E8F43}
.a2g-flip__b u{text-decoration:none;color:#fff;background:#FF3D7F;border-radius:6px;padding:0 3px;margin-left:1px}
.a2g-flip.is-flipped .a2g-flip__in{transform:rotateY(180deg)}
.a2g-flip.is-auto .a2g-flip__in{animation:a2gAutoFlip 4s ease-in-out infinite}
.a2g-flip.is-late .a2g-flip__in{animation-delay:1s}
.a2g-demo .a2g-flip{font-size:1.25em}
@keyframes a2gAutoFlip{0%,25%{transform:none}40%,85%{transform:rotateY(180deg)}100%{transform:none}}
.a2g-fmcard{padding:14px 8px 12px}
.a2g-fm{display:flex;gap:8px;justify-content:center}
.a2g-fm__c{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:6px 2px 8px;border-radius:16px;border:3px solid transparent;transition:transform .2s}
.a2g-fm__c .a2g-mini__p{width:72px;height:72px}
.a2g-fm__c .a2g-flip{display:block;width:92%;min-width:0;margin:0;font-size:1.1em}
.a2g-fm__c.is-active{border-color:#FFE14D;background:rgba(255,225,77,.18)}
.a2g-fm__c.is-done .a2g-mini__p{box-shadow:0 0 0 3px #22C55E}

/* ---- what happened: story order ---- */
.a2g-ordercard{padding:10px}
.a2g-oslots{display:flex;flex-direction:column;gap:6px}
.a2g-oslot{display:flex;align-items:center;gap:10px;min-height:50px;padding:4px 8px;border-radius:14px;border:3px dashed #C6B6FA;background:#F8F5FF;transition:transform .2s}
.a2g-oslot b{flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font:700 15px 'Fredoka',var(--font);color:#fff;background:var(--t-pick-grad,#A030E8)}
.a2g-oslot .ask-wordart{flex:0 0 auto;width:44px;height:44px;aspect-ratio:auto;border-radius:10px}
.a2g-oslot span{font:600 1em/1.15 'Fredoka',var(--font);color:var(--t-ink,#1F2547)}
.a2g-oslot.is-fill{border-style:solid;border-color:#7EE2A0;background:var(--t-success-soft,#E6FFE0);animation:asksDrop .3s ease-out}
.a2g-ocards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.a2g-ordercard + .a2g-fb{margin-top:10px}
.a2g-ocards.a2g-n3{grid-template-columns:repeat(3,1fr)}
.asks-wtile.a2g-ocard{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:6px;min-height:0;border-radius:18px;
  background:#fff;color:var(--t-ink,#1F2547);border:3px solid #fff;box-shadow:0 5px 0 rgba(76,29,149,.25),0 10px 18px rgba(31,37,71,.14);text-align:center}
.a2g-ocard .ask-wordart{aspect-ratio:16/10;border-radius:12px}
.a2g-ocards.is-done{display:none}
.a2g-ocards.a2g-n3 .a2g-ocard .ask-wordart{aspect-ratio:1/1}
.a2g-ocard span{font:600 .84em/1.15 'Fredoka',var(--font);padding:0 2px 2px}
.asks-wtile.a2g-ocard.is-used{opacity:.25;box-shadow:none}
.a2g-ocard.is-hint{animation:a2gHint 1s ease-in-out infinite}
@keyframes a2gHint{0%,100%{box-shadow:0 0 0 0 rgba(255,200,0,.0),0 5px 0 rgba(76,29,149,.25)}50%{box-shadow:0 0 0 6px #FFE14D,0 5px 0 rgba(76,29,149,.25)}}
.asks-wtile.is-hint{animation:a2gHint 1s ease-in-out infinite}

/* ---- matter: a friend who is not feeling well ---- */
.a2g-friend{display:flex;align-items:center;justify-content:center;gap:12px}
.a2g-friend__av{position:relative;flex:0 0 auto}
.a2g-friend__av .ask-buddy{width:74px;height:74px;font-size:44px}
.a2g-friend__sym{position:absolute;right:-8px;bottom:-6px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:24px;
  background:#fff;box-shadow:0 2px 6px rgba(31,37,71,.3);animation:a2gWig 2.6s ease-in-out infinite}
.a2g-friend__txt{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left}
.a2g-friend__txt b{font:700 1.1em 'Fredoka',var(--font);color:#6D28D9}
.a2g-friend__say{font:600 1em/1.2 'Fredoka',var(--font);color:#2B1A5E;background:#F4ECFF;border-radius:14px 14px 14px 4px;padding:6px 10px}
.a2g-pair .a2g-friend__txt{display:none}

/* ---- directions: road signs ---- */
.a2g-signcard{display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#fff,#DDF1FF)}
.a2g-sign{width:72%;height:auto;filter:drop-shadow(0 3px 2px rgba(31,37,71,.25))}

/* ---- end: the grammar ribbon on the win page ---- */
.a2g-winrule{display:flex;flex-direction:column;align-items:center;gap:2px;margin:8px auto 4px;padding:6px 14px;border-radius:16px;background:rgba(255,255,255,.9);
  font:700 .95em 'Fredoka',var(--font);color:#5B1A9E;max-width:320px}
.a2g-winrule small{font-weight:600;color:var(--t-ink-2,#4A5182)}

/* little explorers: bigger everything */
.a2g-root.is-little .a2g-line{min-height:66px;font-size:1.2em}
.a2g-root.is-little .a2g-tiles .asks-wtile{min-height:58px;font-size:1.2em}

@media (max-width:360px){
  .a2g-map{grid-template-columns:1fr 1fr 38px 1fr 1fr}
  .a2g-lot span{font-size:.7em}
  .a2g-sent{font-size:1.15em}
}
@media (prefers-reduced-motion:reduce){
  .a2g-trail i.is-now,.a2g-tree,.a2g-day__wind i,.a2g-flip.is-auto .a2g-flip__in,.asks-wtile.a2g-stksrc,.a2g-friend__sym,.a2g-ocard.is-hint{animation:none}
  .a2g-walker{transition:none}
}

/* ================= How-to clips for the grammar games (js/kids-howto.js) ================= */
.ht-a2 .ht-tag{position:absolute;top:10px;right:10px;background:#fff;border-radius:999px;padding:3px 10px;font-weight:700;font-size:15px;color:#2B1A5E;box-shadow:0 3px 0 #C6B6FA}
/* directions: tap where you arrive, then walk there */
.ht-a2map{position:relative;width:200px;height:140px;border-radius:16px;background:#7ED957;border:3px solid #fff;overflow:hidden}
.ht-a2map .r{position:absolute;background:#5D6780}
.ht-a2map .r.v{left:86px;top:0;width:28px;height:100%}
.ht-a2map .r.h{left:0;top:52px;width:100%;height:28px}
.ht-a2map .b{position:absolute;width:40px;height:40px;border-radius:10px;background:#fff;display:grid;place-items:center;font-size:24px;box-shadow:0 3px 0 rgba(0,0,0,.18)}
.ht-a2map .b1{left:12px;top:8px}.ht-a2map .b2{left:40px;top:8px;left:42px}.ht-a2map .b3{left:42px;top:88px}.ht-a2map .b4{left:130px;top:8px}
.ht-a2map .w{position:absolute;left:88px;top:112px;font-size:22px;font-style:normal}
.ht-a2dir.is-play .ht-a2map .w{animation:htA2Walk 5s ease-in-out infinite}
@keyframes htA2Walk{0%,30%{left:88px;top:112px}48%{left:88px;top:54px}64%,100%{left:20px;top:54px}}
.ht-a2dir.is-play .ht-a2map .b1{animation:htA2Glow 5s ease infinite}
@keyframes htA2Glow{0%,22%{box-shadow:0 3px 0 rgba(0,0,0,.18)}26%,92%{box-shadow:0 0 0 4px #22C55E}100%{box-shadow:0 3px 0 rgba(0,0,0,.18)}}
.ht-a2dir.is-play .ht-hand{animation:htA2DirHand 5s ease-in-out infinite}
@keyframes htA2DirHand{0%{left:80%;top:110%}18%{left:27%;top:30%}22%{left:27%;top:27%;transform:scale(.85)}26%{left:27%;top:30%;transform:none}40%,100%{left:80%;top:110%}}
.ht-a2dir.is-play .ht-star{left:22%;top:12%;animation:htStar2 5s ease infinite}
/* compare: tap the biggest */
.ht-a2cmp .ht-card{align-items:end}
.ht-a2cmp .s1{font-size:24px}.ht-a2cmp .s2{font-size:36px}.ht-a2cmp .s3{font-size:52px}
.ht-a2cmp.is-play .ht-hand{animation:htA2CmpHand 4.5s ease-in-out infinite}
@keyframes htA2CmpHand{0%{left:80%;top:110%}20%{left:80%;top:110%}45%{left:68%;top:58%}52%{left:68%;top:54%;transform:scale(.85)}58%,100%{left:68%;top:58%;transform:none}}
.ht-a2cmp.is-play .ht-ok{animation:htGood 4.5s ease infinite}
.ht-a2cmp.is-play .ht-star{left:66%;top:30%;animation:htStar 4.5s ease infinite}
/* weather: tap the hotter day */
.ht-thermo{position:relative;width:16px;height:60px;border-radius:10px;background:#fff;border:3px solid #C6B6FA;margin:0 auto 10px}
.ht-thermo i{position:absolute;left:2px;right:2px;bottom:2px;border-radius:6px}
.ht-thermo.c i{height:30%;background:#2E9BFF}.ht-thermo.h i{height:85%;background:#FF3D3D}
.ht-a2wx .ht-card{width:84px;height:98px;flex-direction:column;font-size:26px;display:flex;align-items:center;justify-content:center;gap:2px}
.ht-a2wx.is-play .ht-hand{animation:htA2CmpHand 4.5s ease-in-out infinite}
.ht-a2wx.is-play .ht-ok{animation:htGood 4.5s ease infinite}
.ht-a2wx.is-play .ht-star{left:62%;top:22%;animation:htStar 4.5s ease infinite}
/* matter: hear the problem, tap the advice */
.ht-a2mat .ht-bubble{opacity:1;font-size:15px}
.ht-a2mat .ht-who{font-size:40px;line-height:1;position:relative}
.ht-a2mat .ht-who i{position:absolute;right:-12px;bottom:-4px;font-size:22px;font-style:normal}
.ht-a2mat .ht-card{width:62px;height:62px;font-size:32px}
.ht-a2mat.is-play .ht-hand{animation:htA2MatHand 4.5s ease-in-out infinite}
@keyframes htA2MatHand{0%{left:80%;top:110%}20%{left:80%;top:110%}45%{left:50%;top:80%}52%{left:50%;top:76%;transform:scale(.85)}58%,100%{left:50%;top:80%;transform:none}}
.ht-a2mat.is-play .ht-ok{animation:htGood 4.5s ease infinite}
.ht-a2mat.is-play .ht-star{left:48%;top:52%;animation:htStar 4.5s ease infinite}
/* time: drag the long hand to 6 */
.ht-clock{position:relative;width:118px;height:118px;border-radius:50%;background:#fff;border:6px solid #FF9214;box-shadow:0 4px 0 #C2410C}
.ht-clock b{position:absolute;font-size:15px;color:#A030E8;font-weight:700;transform:translate(-50%,-50%)}
.ht-clock .n12{left:50%;top:13%}.ht-clock .n3{left:87%;top:50%}.ht-clock .n6{left:50%;top:87%}.ht-clock .n9{left:13%;top:50%}
.ht-clock .hh,.ht-clock .mm{position:absolute;left:50%;bottom:50%;transform-origin:50% 100%;border-radius:4px}
.ht-clock .hh{width:8px;height:28px;margin-left:-4px;background:#FF3D7F;transform:rotate(105deg)}
.ht-clock .mm{width:5px;height:44px;margin-left:-2.5px;background:#1D7BE0;transform:rotate(0deg)}
.ht-a2time.is-play .mm{animation:htA2Min 5s ease-in-out infinite}
@keyframes htA2Min{0%,25%{transform:rotate(0)}65%,100%{transform:rotate(180deg)}}
.ht-a2time.is-play .ht-hand{animation:htA2TimeHand 5s ease-in-out infinite}
@keyframes htA2TimeHand{0%{left:80%;top:110%}20%{left:52%;top:26%}25%{left:52%;top:26%;transform:scale(.85)}45%{left:66%;top:42%;transform:scale(.85)}65%{left:52%;top:62%;transform:scale(.85)}72%,100%{left:52%;top:62%;transform:none}}
.ht-a2time.is-play .ht-star{left:70%;top:18%;animation:htStar2 5s ease infinite}
/* often: put stickers on the days */
.ht-week{display:flex;gap:4px}
.ht-week i{width:30px;height:38px;border-radius:8px;background:#fff;border:2px dashed #A030E8;display:grid;place-items:center;font-style:normal;font-size:16px;color:transparent}
.ht-a2often.is-play .ht-week i{animation:htA2Stk 5s ease infinite}
.ht-a2often.is-play .ht-week i:nth-child(2){animation-delay:.25s}.ht-a2often.is-play .ht-week i:nth-child(3){animation-delay:.5s}
.ht-a2often.is-play .ht-week i:nth-child(4){animation-delay:.75s}.ht-a2often.is-play .ht-week i:nth-child(5){animation-delay:1s}
.ht-a2often.is-play .ht-week i:nth-child(6){animation-delay:1.25s}.ht-a2often.is-play .ht-week i:nth-child(7){animation-delay:1.5s}
@keyframes htA2Stk{0%,20%{color:transparent;background:#fff}26%,92%{color:#000;background:#FFE14D;border-style:solid;border-color:#FFC400}100%{color:transparent}}
.ht-a2often.is-play .ht-hand{animation:htA2OftHand 5s linear infinite}
@keyframes htA2OftHand{0%{left:80%;top:110%}18%{left:14%;top:52%}52%{left:80%;top:52%}62%,100%{left:80%;top:110%}}
.ht-a2often.is-play .ht-word{animation:htShow2 5s ease infinite}
/* past: drag the word on, the card flips */
.ht-a2past .ht-line{display:flex;align-items:center;gap:6px}
.ht-a2flip{position:relative;display:inline-block;width:82px;height:36px;perspective:400px}
.ht-a2flip span{position:absolute;inset:0;display:grid;place-items:center;border-radius:10px;font-size:19px;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.ht-a2flip .f{background:#F4ECFF;border:2px dashed #A030E8;color:#6D28D9}
.ht-a2flip .b{background:#3FE07A;color:#06361A;transform:rotateY(180deg)}
.ht-a2flip em{position:absolute;inset:0;transform-style:preserve-3d;font-style:normal}
.ht-a2past.is-play .ht-a2flip em{animation:htA2Flip 5s ease infinite}
@keyframes htA2Flip{0%,44%{transform:none}54%,92%{transform:rotateY(180deg)}100%{transform:none}}
.ht-a2past .ht-tiles span{width:auto;padding:0 12px}
.ht-a2past.is-play .ht-fly{animation:htA2PastFly 5s ease-in-out infinite}
@keyframes htA2PastFly{0%,15%{opacity:0;left:28%;top:70%}17%{opacity:1;left:28%;top:70%;transform:scale(1.15) rotate(-5deg)}40%{opacity:1;left:58%;top:40%;transform:scale(1.15) rotate(-5deg)}44%,100%{opacity:0;left:58%;top:40%}}
.ht-a2past.is-play .ht-tiles .t1{animation:htGone 5s ease infinite}
.ht-a2past.is-play .ht-hand{animation:htA2PastHand 5s ease-in-out infinite}
@keyframes htA2PastHand{0%{left:80%;top:110%}14%{left:32%;top:78%}17%{left:32%;top:78%;transform:scale(.85)}40%{left:62%;top:48%;transform:scale(.85)}44%,100%{left:62%;top:48%;transform:none}}
.ht-a2past.is-play .ht-star{left:62%;top:20%;animation:htStar2 5s ease infinite}
/* story: tap the pictures in order */
.ht-slots3{display:flex;gap:6px}
.ht-slots3 i{width:48px;height:48px;border-radius:10px;border:3px dashed #A030E8;background:#fff;display:grid;place-items:center;font-style:normal;font-size:24px;color:transparent;position:relative}
.ht-slots3 i:before{content:attr(data-n);position:absolute;left:-6px;top:-8px;width:18px;height:18px;border-radius:50%;background:#A030E8;color:#fff;font-size:11px;display:grid;place-items:center}
.ht-a2story .ht-card{width:56px;height:56px;font-size:28px}
.ht-a2story.is-play .ht-slots3 .s1{animation:htA2S1 5.4s ease infinite}
.ht-a2story.is-play .ht-slots3 .s2{animation:htA2S2 5.4s ease infinite}
.ht-a2story.is-play .ht-slots3 .s3{animation:htA2S3 5.4s ease infinite}
@keyframes htA2S1{0%,22%{color:transparent}26%,94%{color:#000;border-style:solid;border-color:#22C55E;background:#E6FFE0}100%{color:transparent}}
@keyframes htA2S2{0%,44%{color:transparent}48%,94%{color:#000;border-style:solid;border-color:#22C55E;background:#E6FFE0}100%{color:transparent}}
@keyframes htA2S3{0%,66%{color:transparent}70%,94%{color:#000;border-style:solid;border-color:#22C55E;background:#E6FFE0}100%{color:transparent}}
.ht-a2story.is-play .c1{animation:htA2Used1 5.4s ease infinite}
.ht-a2story.is-play .c2{animation:htA2Used2 5.4s ease infinite}
.ht-a2story.is-play .c3{animation:htA2Used3 5.4s ease infinite}
@keyframes htA2Used1{0%,22%{opacity:1}26%,94%{opacity:.25}100%{opacity:1}}
@keyframes htA2Used2{0%,44%{opacity:1}48%,94%{opacity:.25}100%{opacity:1}}
@keyframes htA2Used3{0%,66%{opacity:1}70%,94%{opacity:.25}100%{opacity:1}}
.ht-a2story.is-play .ht-hand{animation:htA2StoryHand 5.4s ease-in-out infinite}
@keyframes htA2StoryHand{0%{left:80%;top:110%}18%{left:52%;top:74%}22%{left:52%;top:72%;transform:scale(.85)}26%{left:52%;top:74%;transform:none}40%{left:76%;top:74%}44%{left:76%;top:72%;transform:scale(.85)}48%{left:76%;top:74%;transform:none}62%{left:30%;top:74%}66%{left:30%;top:72%;transform:scale(.85)}70%,100%{left:30%;top:74%;transform:none}}

/* Oct 2026 · A1 talk games: "these are" stacks, a face, two friends */
.a1g-many{display:flex;justify-content:center;align-items:center;padding:4px 0}
.a1g-many__c{width:84px;margin-left:-26px;transform:rotate(calc((var(--i) - 1) * 6deg));filter:drop-shadow(0 3px 4px rgba(0,0,0,.15))}
.a1g-many__c:first-child{margin-left:0}
.a1g-many__c .ask-wordart{width:100%;height:auto}
.a2g-pic__in .a1g-many__c{width:62px;margin-left:-22px}
.a2g-mini .a1g-many__c{width:46px;margin-left:-16px}
.a1g-face{font-size:44px;line-height:1;align-self:center}
.a1g-two{display:inline-flex;align-items:center;gap:4px}
.a1g-two b{margin-left:6px;font-weight:900;color:#3B1A7A}
