/* ============================================================================
   v9 — PRODUCT REDESIGN (everything BELOW the hero). Inherits the hero language:
   white surfaces · orange #DD571C for action/active/progress · charcoal for
   hierarchy. Big bold cards, thick radii, strong shadows, generous space,
   minimal text. Fresh rx-* classes so there is no cascade fight.
   The hero / navbar are untouched.
   ============================================================================ */
:root{
  --rx-line:rgba(35,39,31,.10);
  --rx-shadow:0 2px 4px rgba(35,39,31,.04), 0 26px 50px -30px rgba(35,39,31,.38);
  --rx-shadow-sm:0 1px 2px rgba(35,39,31,.05), 0 14px 26px -18px rgba(35,39,31,.28);
  --rx-coral-shadow:0 14px 30px -12px rgba(221, 87, 28,.5);
  --rx-r:26px;   /* card radius */
  --rx-r-sm:16px;
}

/* drop the "02 · Grow" style eyebrow tags on every section */
.chap-tag{ display:none !important; }

/* shared section scaffolding — more breathing room than the old chapters */
.rx-sec{ padding-block:clamp(56px,8vw,110px); }
.rx-card{ background:var(--paper); border:1px solid var(--rx-line); border-radius:var(--rx-r); box-shadow:var(--rx-shadow-sm); }
.rx-tag{ font-size:.72rem; font-weight:800; letter-spacing:.02em; text-transform:uppercase; color:var(--muted);
  background:var(--cream-raise); border:1px solid var(--rx-line); padding:5px 11px; border-radius:999px; }
.rx-live{ display:inline-flex; align-items:center; gap:7px; font-size:.74rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--coral); }
.rx-live::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--coral); box-shadow:0 0 0 4px rgba(221, 87, 28,.18); }
.rx-mic{ width:60px; height:60px; border-radius:50%; flex:none; border:none; background:var(--coral); color:#fff; display:grid; place-items:center; cursor:pointer; box-shadow:var(--rx-coral-shadow); transition:transform .2s cubic-bezier(.34,1.56,.64,1); }
.rx-mic:hover{ transform:scale(1.06); }
.rx-mic svg{ width:26px; }
.rx-wave{ display:flex; align-items:center; gap:4px; height:34px; }
.rx-wave i{ width:4px; border-radius:4px; background:var(--coral); animation:rxwv 1.1s ease-in-out infinite; }
.rx-wave i:nth-child(2n){ animation-delay:.15s } .rx-wave i:nth-child(3n){ animation-delay:.3s } .rx-wave i:nth-child(4n){ animation-delay:.45s }
@keyframes rxwv{ 0%,100%{ height:8px } 50%{ height:30px } }

/* ============================================================
   SECTION 01 — ONE APP. EVERY SKILL.
   One dominant Conversation + a supporting stack (Translate · Pronounce · Progress)
   ============================================================ */
.rx-grow{ display:grid; grid-template-columns:1.5fr 1fr; gap:clamp(16px,2vw,26px); align-items:start; }
@media(max-width:900px){ .rx-grow{ grid-template-columns:1fr; } }

/* — dominant conversation card — */
.rx-convo{ background:var(--paper); border:1px solid var(--rx-line); border-radius:var(--rx-r); box-shadow:var(--rx-shadow);
  padding:clamp(18px,2vw,26px); display:flex; flex-direction:column; gap:16px; }
.rx-convo__head{ display:flex; align-items:center; gap:13px; }
.rx-convo__head .rx-ava{ width:46px; height:46px; border-radius:14px; overflow:hidden; flex:none; background:var(--coral-tint); display:grid; place-items:center; border:1px solid var(--rx-line); }
.rx-convo__head .rx-ava img{ width:38px; }
.rx-convo__head b{ font-size:1.12rem; font-weight:900; letter-spacing:-.01em; display:block; }
.rx-convo__head .rx-sub{ display:inline-flex; align-items:center; gap:7px; margin-top:5px; padding:5px 12px; border-radius:999px;
  background:rgba(255,255,255,.5); border:1px solid var(--rx-line); -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px);
  font-size:.8rem; font-weight:800; color:var(--muted); box-shadow:inset 0 1px 0 rgba(255,255,255,.6); }
.rx-flagic{ width:18px; height:12px; border-radius:3px; flex:none; box-shadow:0 0 0 1px rgba(0,0,0,.08); }
/* pronunciation bars alternate orange / black */
.rx-pron .rx-wave i:nth-child(even){ background:#1b1a18 !important; }
/* pronunciation meter → black (progress bar stays orange) */
.rx-pron .rx-meter i{ background:#1b1a18 !important; }
.rx-convo__head .rx-live{ margin-left:auto; }

.rx-chat{ display:flex; flex-direction:column; gap:13px; min-height:0; padding:2px; }
.rx-bub{ max-width:84%; font-size:1.1rem; font-weight:600; line-height:1.45; padding:16px 22px; border-radius:22px; }
.rx-bub.me{ align-self:flex-end; background:var(--charcoal); color:#fff; border-bottom-right-radius:7px; }
.rx-bub.them{ align-self:flex-start; background:#fff; color:var(--ink); border:1px solid var(--rx-line); border-bottom-left-radius:7px; box-shadow:var(--rx-shadow-sm); display:inline-flex; align-items:center; gap:10px; }
.rx-bub .rx-play{ width:26px; height:26px; flex:none; border-radius:50%; background:var(--coral); color:#fff; display:grid; place-items:center; font-size:.7rem; }
.rx-bub .rx-hl{ background:var(--coral-tint); color:var(--coral-deep); padding:.1em .45em; border-radius:8px; font-weight:800; }
.rx-fix{ align-self:flex-end; display:inline-flex; align-items:center; gap:8px; font-size:.92rem; font-weight:700; color:var(--charcoal);
  background:var(--cream-raise); border:1px solid var(--rx-line); border-radius:14px; padding:9px 14px; }
.rx-fix b{ color:var(--coral); }
.rx-mem{ align-self:flex-start; display:inline-flex; align-items:center; gap:9px; font-size:.88rem; font-weight:700; color:var(--ink);
  background:var(--coral-tint); border-radius:14px; padding:9px 14px; }
.rx-mem .rx-memdot{ width:20px; height:20px; border-radius:50%; background:var(--coral); color:#fff; display:grid; place-items:center; font-weight:900; font-size:.8rem; }
.rx-mem b{ color:var(--coral-deep); }
.rx-gword{ display:inline-flex; align-items:center; padding:3px 11px; border-radius:999px; background:rgba(255,255,255,.6);
  border:1px solid var(--rx-line); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); font-weight:800; font-size:.9rem;
  color:var(--coral-deep); box-shadow:inset 0 1px 0 rgba(255,255,255,.6); }
.rx-typing{ align-self:flex-start; display:inline-flex; gap:5px; padding:6px 2px; }
.rx-typing i{ width:8px; height:8px; border-radius:50%; background:var(--muted-soft); animation:rxdot 1s infinite; }
.rx-typing i:nth-child(2){ animation-delay:.15s } .rx-typing i:nth-child(3){ animation-delay:.3s }
@keyframes rxdot{ 0%,100%{ opacity:.3; transform:translateY(0) } 50%{ opacity:1; transform:translateY(-3px) } }

.rx-rec{ display:flex; align-items:center; gap:14px; background:var(--cream-raise); border:1px solid var(--rx-line); border-radius:20px; padding:12px 12px 12px 20px; }
.rx-rec .rx-ph{ font-size:.98rem; font-weight:700; color:var(--muted); flex:1; }

/* — supporting stack — */
.rx-stack{ display:flex; flex-direction:column; gap:clamp(16px,2vw,22px); }
.rx-stack .rx-card{ padding:clamp(16px,1.8vw,22px); display:flex; flex-direction:column; gap:14px; flex:1; }
.rx-card__h{ display:flex; align-items:center; gap:10px; }
.rx-card__h b{ font-size:1.04rem; font-weight:900; letter-spacing:-.01em; }
.rx-card__h .rx-tag, .rx-card__h .rx-score{ margin-left:auto; }
.rx-card__h .rx-score{ font-size:1.1rem; font-weight:900; color:var(--coral); }

/* translate */
.rx-tr{ display:flex; flex-direction:column; gap:10px; position:relative; }
.rx-tr__row{ display:flex; align-items:center; justify-content:space-between; background:var(--cream-raise); border:1px solid var(--rx-line); border-radius:14px; padding:14px 16px; font-size:1.15rem; font-weight:800; }
.rx-tr__row.out{ background:var(--coral-tint); color:var(--coral-deep); border-color:transparent; }
.rx-tr__row .rx-trlang{ font-size:1.15rem; font-weight:800; color:var(--muted); line-height:1; }
.rx-tr__row.out .rx-trlang{ color:var(--coral-deep); }
.rx-swap{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:40px; height:40px; border-radius:50%; border:3px solid var(--paper); background:var(--coral); color:#fff; display:grid; place-items:center; font-weight:900; cursor:pointer; z-index:2; box-shadow:var(--rx-shadow-sm); transition:transform .3s; }
.rx-swap:hover{ transform:translate(-50%,-50%) rotate(180deg); }
.rx-tr__tools{ display:flex; gap:10px; justify-content:center; }
.rx-tr__tools button{ width:56px; height:56px; flex:none; border:none; background:#1b1a18; color:#fff; border-radius:15px; display:grid; place-items:center; cursor:pointer; transition:transform .18s, background .18s; }
.rx-tr__tools button:hover{ transform:translateY(-2px); background:#000; }
.rx-tr__tools button svg{ width:26px; height:26px; }

/* pronunciation */
.rx-pron .rx-mic{ width:50px; height:50px; } .rx-pron .rx-mic svg{ width:22px; }
.rx-pronbody{ display:flex; align-items:center; gap:14px; }
.rx-pronbody .rx-wave{ flex:1; height:40px; }
.rx-pronbody .rx-wave i{ flex:1; }
.rx-meter{ height:12px; border-radius:999px; background:var(--cream-raise); border:1px solid var(--rx-line); overflow:hidden; }
.rx-meter i{ display:block; height:100%; border-radius:999px; background:var(--coral); }

/* progress */
.rx-stats{ display:flex; gap:10px; }
.rx-stat{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:7px; background:#fff; border:1px solid var(--rx-line); border-radius:16px; padding:14px 6px; box-shadow:var(--rx-shadow-sm); }
.rx-stat b{ display:inline-block; background:none; border:none; -webkit-backdrop-filter:none; backdrop-filter:none;
  padding:0; border-radius:0; font-size:1.3rem; font-weight:900; letter-spacing:-.02em; color:var(--coral); line-height:1; }
.rx-stat span{ font-size:.66rem; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
.rx-bar{ height:14px; border-radius:999px; background:var(--cream-raise); border:1px solid var(--rx-line); overflow:hidden; }
.rx-bar i{ display:block; height:100%; border-radius:999px; background:var(--coral); }

/* ============================================================
   SECTION 02 — MEMORY · tappable memory nodes → Fluent recalls
   ============================================================ */
.rx-mem-grid{ display:grid; grid-template-columns:0.78fr 1.22fr; gap:clamp(16px,2.4vw,30px); align-items:stretch; }
@media(max-width:860px){ .rx-mem-grid{ grid-template-columns:1fr; } }
.rx-mem-left, .rx-mem-right{ padding:clamp(20px,2.2vw,28px); display:flex; flex-direction:column; gap:16px; }
.rx-mem-day{ font-size:.78rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.rx-mem-day.on{ color:var(--coral); }
.rx-mem-left .rx-mem-day{ text-align:center; }
.rx-nodes{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.rx-node{ display:flex; align-items:center; justify-content:center; gap:9px; text-align:center; width:100%; background:#fff; border:1px solid var(--rx-line); border-radius:15px; padding:11px 10px; font-size:.98rem; font-weight:800; color:var(--ink); cursor:pointer; box-shadow:var(--rx-shadow-sm); transition:transform .2s cubic-bezier(.34,1.56,.64,1), border-color .2s, background .2s; }
.rx-node:hover{ transform:translateY(-2px); border-color:var(--coral); }
.rx-node__ic{ width:34px; height:34px; flex:none; border-radius:10px; background:var(--cream-raise); border:1px solid var(--rx-line); display:grid; place-items:center; font-size:1.05rem; }
.rx-node.used{ border-color:transparent; background:var(--coral-tint); color:var(--coral-deep); }
.rx-node.used .rx-node__ic{ background:#fff; }
.rx-mem-hint{ font-size:.86rem; font-weight:800; color:var(--coral); margin-top:auto; }

.rx-mem-right{ background:var(--cream-raise); }
.rx-recall{ flex:1; display:flex; flex-direction:column; gap:13px; justify-content:center; min-height:190px; }
.rx-recall__slot{ display:flex; flex-wrap:wrap; gap:10px; }
.rx-recall__slot .memtag.recall{ display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--rx-line); border-radius:999px; padding:10px 16px; font-size:1rem; font-weight:800; color:var(--ink); box-shadow:var(--rx-shadow-sm); animation:rxpop .3s cubic-bezier(.34,1.56,.64,1); }
.rx-recall__slot .memtag.recall .c{ width:20px; height:20px; flex:none; border-radius:50%; background:var(--coral); color:#fff; display:grid; place-items:center; font-size:.7rem; }
@keyframes rxpop{ from{ opacity:0; transform:scale(.8) } to{ opacity:1; transform:scale(1) } }
.rx-recall__bubble{ align-self:flex-start; background:var(--charcoal); color:#fff; font-size:1.06rem; font-weight:700; line-height:1.45; padding:16px 20px; border-radius:20px; border-bottom-left-radius:7px; max-width:92%; }
.rx-recall__bubble b{ color:#fff; }
.rx-recall__actions{ display:flex; gap:10px; justify-content:center; }
.rx-act{ flex:1; display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--rx-line); background:#fff; border-radius:15px; padding:14px 10px; font-weight:800; font-size:.95rem; color:var(--ink); cursor:pointer; transition:.18s; }
.rx-act:hover{ border-color:var(--coral); color:var(--coral); transform:translateY(-2px); }
.rx-act.primary{ background:var(--coral); color:#fff; border-color:transparent; box-shadow:var(--rx-coral-shadow); }
.rx-act.primary:hover{ color:#fff; }
.rx-act.primary.big{ flex:0 1 auto; font-size:1.14rem; font-weight:900; padding:16px 38px; }
.rx-act.sq{ flex:none; width:58px; height:58px; padding:0; background:#1b1a18; color:#fff; border-color:transparent; border-radius:15px; }
.rx-act.sq:hover{ background:#000; color:#fff; transform:translateY(-2px); }
.rx-act.sq svg{ width:26px; height:26px; }

/* ============================================================
   SECTION 03 — LEARN · phone is the hero, pickers + goal orbit it
   ============================================================ */
.rx-learn{ display:grid; grid-template-columns:.82fr 1fr .82fr; gap:clamp(16px,2vw,28px); align-items:start; }
@media(max-width:1000px){ .rx-learn{ grid-template-columns:1fr; max-width:460px; margin-inline:auto; } }
.rx-learn__side{ display:flex; flex-direction:column; gap:24px; }
.rx-pick-lab{ font-size:.74rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:12px; }
.rx-langs{ display:flex; flex-direction:column; gap:10px; }
.rx-lang{ display:flex !important; flex-direction:row !important; align-items:center !important; gap:12px; width:100%; text-align:left !important; background:#fff; border:1px solid var(--rx-line); border-radius:16px; padding:13px 16px !important; font-size:1.04rem; font-weight:800; color:var(--ink); cursor:pointer; box-shadow:var(--rx-shadow-sm); transition:transform .18s, border-color .18s; }
.rx-lang:hover{ border-color:var(--coral); transform:translateY(-2px); }
.rx-lang.active{ background:var(--coral); color:#fff; border-color:transparent; box-shadow:var(--rx-coral-shadow); }
.rx-flag{ width:36px; height:25px; flex:none; border-radius:7px; background:var(--cream-raise); border:1px solid var(--rx-line); display:grid; place-items:center; font-size:1.15rem; line-height:1; font-weight:900; color:var(--ink); }
.rx-lang.active .rx-flag{ background:rgba(255,255,255,.22); color:#fff; border-color:transparent; }
.rx-flag--img{ padding:0; overflow:hidden; background:none !important; }
.rx-flag--img svg{ width:100%; height:100%; display:block; }
.rx-lang__t{ flex:1; } .rx-lang__lv{ font-size:.74rem; font-weight:800; opacity:.65; }
.rx-lang.more{ justify-content:flex-start; color:var(--muted); }
.rx-topics{ display:flex; flex-wrap:wrap; gap:9px; }
.rx-chip{ background:#fff; border:1px solid var(--rx-line); border-radius:999px; padding:11px 16px; font-size:.95rem; font-weight:800; color:var(--ink); cursor:pointer; box-shadow:var(--rx-shadow-sm); transition:.16s; }
.rx-chip:hover{ border-color:var(--coral); color:var(--coral); }
.rx-chip[data-on="1"]{ background:var(--coral); color:#fff; border-color:transparent; box-shadow:var(--rx-coral-shadow); }

.rx-phone-wrap{ display:flex; flex-direction:column; align-items:center; gap:clamp(16px,2.2vw,26px); }
.rx-phone{ width:min(340px,100%) !important; }

.rx-goal{ align-items:stretch; }
.rx-ring{ margin:2px auto 4px; }
.rx-start{ width:100%; background:var(--coral); color:#fff; border:none; border-radius:16px; padding:16px; font-size:1.02rem; font-weight:900; cursor:pointer; box-shadow:var(--rx-coral-shadow); transition:transform .2s; }
.rx-start:hover{ transform:translateY(-2px); }
.rx-goal-stats{ display:flex; gap:10px; margin-top:10px; }
.rx-gstat{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; text-align:center; background:#fff; border:none; border-radius:14px; padding:12px 6px; box-shadow:none; }
.rx-gstat b{ display:block; font-size:1.2rem; font-weight:900; color:var(--coral); line-height:1; }
.rx-gstat span{ font-size:.66rem; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
/* white box that fills the rest of the goal column */
.rx-goal-fill{ flex:1 1 auto; min-height:70px; margin-top:10px; background:#fff; border-radius:14px; }

/* locked leaderboard teaser — blurred board behind, crisp lock overlay on top */
.rx-goal-fill.rx-lock{ flex:0 0 auto; position:relative; overflow:hidden; padding:10px; min-height:0; }
.rx-lb{ display:flex; flex-direction:column; gap:7px; filter:blur(3.5px); opacity:.7; pointer-events:none; -webkit-user-select:none; user-select:none; }
.rx-lb__h{ display:flex; align-items:center; justify-content:space-between; font-size:.82rem; font-weight:900; color:var(--ink); }
.rx-lb__h span{ font-size:.62rem; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.rx-lb__row{ display:flex; align-items:center; gap:10px; }
.rx-lb__rk{ width:18px; font-size:.82rem; font-weight:900; color:var(--coral); text-align:center; }
.rx-lb__av{ width:24px; height:24px; border-radius:50%; flex:none; background:linear-gradient(135deg,var(--coral),#f5a07f); }
.rx-lb__nm{ flex:1; font-size:.86rem; font-weight:800; color:var(--ink); }
.rx-lb__pt{ font-size:.8rem; font-weight:800; color:var(--muted); }
.rx-lock__ov{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; padding:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.82)); -webkit-backdrop-filter:blur(1px); backdrop-filter:blur(1px); }
.rx-lock__ic{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:#0f0f0f; color:#fff; margin-bottom:1px; box-shadow:var(--rx-shadow-sm); }
.rx-lock__ic svg{ width:17px; height:17px; }
.rx-lock__ov b{ font-size:.98rem; font-weight:900; color:var(--ink); letter-spacing:-.01em; }
.rx-lock__sub{ font-size:.76rem; font-weight:800; color:var(--muted); letter-spacing:.04em; }
.rx-lock__sub b{ color:var(--coral); font-weight:900; }

/* LEARN — nudge the French (pending) lesson section down a bit */
.rx-conv-box .rx-phone-sec:last-of-type{ margin-top:14px; }

/* scenario cards — each its own personality */
.rx-scenes{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(12px,1.6vw,20px); margin-top:clamp(28px,4vw,48px); }
@media(max-width:820px){ .rx-scenes{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:460px){ .rx-scenes{ grid-template-columns:1fr; } }
.rx-scene{ position:relative; border-radius:var(--rx-r); padding:24px; min-height:196px; display:flex; flex-direction:column; justify-content:flex-end; gap:6px; cursor:pointer; border:1px solid var(--rx-line); box-shadow:var(--rx-shadow-sm); overflow:hidden; transition:transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.rx-scene:hover{ transform:translateY(-6px); box-shadow:var(--rx-shadow); }
.rx-scene__ic{ position:absolute; top:16px; right:18px; font-size:4rem; line-height:1; }
.rx-scene h3{ font-size:1.4rem; font-weight:900; letter-spacing:-.02em; }
.rx-scene p{ align-self:flex-start; display:inline-block; max-width:100%; padding:6px 13px; border-radius:999px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-size:.8rem; font-weight:700; opacity:1; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
/* glass pill needs more contrast on the light cards */
.rx-scene--food p, .rx-scene--biz p{ background:rgba(255,255,255,.6); border-color:rgba(0,0,0,.06); }
.rx-scene__go{ margin-top:8px; font-size:.88rem; font-weight:900; }
.rx-scene--travel{ background:var(--coral); color:#fff; border-color:transparent; }
.rx-scene--food{ background:#F3ECE0; color:var(--ink); }
.rx-scene--biz{ background:#EBECEA; color:var(--ink); }
.rx-scene--night{ background:#0f0f0f; color:#fff; border-color:transparent; }
.rx-scene--night h3{ color:#fff; }
.rx-scene--night p{ color:rgba(255,255,255,.85); opacity:1; }
.rx-scene--food .rx-scene__go, .rx-scene--biz .rx-scene__go{ color:var(--coral); }

/* ============================================================
   SECTION 04 — EXPLORE · progression · games · league
   ============================================================ */
.rx-xp{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(12px,1.6vw,18px); margin-bottom:clamp(16px,2vw,24px); }
@media(max-width:820px){ .rx-xp{ grid-template-columns:repeat(2,1fr); } }
.rx-xpc{ background:var(--paper); border:1px solid var(--rx-line); border-radius:16px; box-shadow:var(--rx-shadow-sm); padding:10px 12px; display:flex; flex-direction:column; gap:6px; }
.rx-xpc__h{ display:flex; align-items:center; justify-content:space-between; font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.rx-xpc__h span{ font-size:1rem; }
.rx-xpc__big{ font-size:1.55rem; font-weight:900; letter-spacing:-.02em; color:var(--muted); line-height:1; }
.rx-xpc__big small{ font-size:.85rem; font-weight:800; color:var(--muted); margin-left:4px; }
.rx-xpc__sub{ font-size:.76rem; font-weight:700; color:var(--muted); margin-top:4px; }
.rx-bar.sm{ height:8px; }
.rx-dots{ display:flex; gap:6px; }
.rx-dots i{ flex:1; height:8px; border-radius:4px; background:var(--cream-raise); border:1px solid var(--rx-line); }
.rx-dots i.on{ background:var(--coral); border-color:transparent; }
.rx-achs{ display:flex; gap:10px; font-size:1.2rem; }
.rx-achs .lock{ filter:grayscale(1); opacity:.4; }

/* EXPLORE widgets — 4 colours matching the scenario cards, clean single-colour icons */
.rx-xpc.c-coral{ background:var(--coral); border-color:transparent; }
.rx-xpc.c-cream{ background:#F3ECE0; border-color:transparent; }
.rx-xpc.c-gray{ background:#EBECEA; border-color:transparent; }
.rx-xpc.c-charcoal{ background:var(--charcoal); border-color:transparent; }
/* titles + icons coloured like each source card's title (white on dark, ink on light) */
.rx-xpc.c-coral .rx-xpc__h, .rx-xpc.c-charcoal .rx-xpc__h{ color:#fff; }
.rx-xpc.c-cream .rx-xpc__h, .rx-xpc.c-gray .rx-xpc__h{ color:var(--ink); }
.rx-xpc__ic{ display:inline-flex; }
.rx-xpc__ic svg{ width:23px; height:23px; }
/* big values grey */
.rx-xpc.c-coral .rx-xpc__big, .rx-xpc.c-charcoal .rx-xpc__big,
.rx-xpc.c-coral .rx-xpc__big small, .rx-xpc.c-charcoal .rx-xpc__big small,
.rx-xpc.c-charcoal .rx-xpc__sub{ color:rgba(255,255,255,.72); }
/* progress bars — first (coral) white, 2nd & 3rd orange */
.rx-xpc.c-coral .rx-bar, .rx-xpc.c-charcoal .rx-bar{ background:rgba(255,255,255,.22); border-color:transparent; }
.rx-xpc.c-coral .rx-bar i, .rx-xpc.c-charcoal .rx-bar i{ background:#fff !important; }
.rx-xpc.c-cream .rx-bar i, .rx-xpc.c-gray .rx-bar i{ background:var(--coral) !important; }

/* centre content vertically, keep all text left-aligned */
.rx-xpc{ justify-content:center; align-items:flex-start; text-align:left; }
.rx-xpc__h, .rx-xpc .rx-bar{ width:100%; }
/* big value colours — white on the first (coral) box, orange on the rest */
.rx-xpc.c-coral .rx-xpc__big, .rx-xpc.c-coral .rx-xpc__big small{ color:#fff !important; }
.rx-xpc.c-cream .rx-xpc__big, .rx-xpc.c-gray .rx-xpc__big,
.rx-xpc.c-cream .rx-xpc__big small, .rx-xpc.c-gray .rx-xpc__big small{ color:var(--coral) !important; }
/* "3 of 4 unlocked" → bottom-right of the achievements box */
.rx-xpc.c-charcoal .rx-xpc__sub{ align-self:flex-end; margin-top:auto; text-align:right; }
/* last box — all achievements inside a glass box */
.rx-xpc.c-charcoal .rx-achs{ width:100%; justify-content:space-between; padding:9px 12px; border-radius:12px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }

/* games — keep gameplay, make the shells premium */
.games{ gap:clamp(16px,2vw,24px) !important; margin-bottom:clamp(16px,2vw,24px) !important; }
.games .game{ border:1px solid var(--rx-line) !important; border-radius:var(--rx-r) !important; box-shadow:var(--rx-shadow-sm) !important; padding:clamp(18px,2vw,26px) !important; }
.games .tag.daily{ background:var(--coral) !important; color:#fff !important; }
.games .hintb{ border-radius:999px; }

/* leaderboard — tall rows, avatars, movement, highlight */
.rx-lb-card{ padding:clamp(20px,2.2vw,28px); }
.rx-lb__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.rx-lb__title{ font-size:1.35rem; font-weight:900; letter-spacing:-.01em; }
.rx-lb__tabs{ display:flex; gap:8px; }
.rx-lb__tabs span{ font-size:.82rem; font-weight:800; padding:9px 15px; border-radius:999px; border:1px solid var(--rx-line); color:var(--muted); cursor:pointer; transition:.16s; }
.rx-lb__tabs span:hover{ border-color:var(--coral); color:var(--coral); }
.rx-lb__tabs .on{ background:var(--coral-tint); color:var(--coral-deep); border-color:transparent; }
.rx-lb__rows{ display:flex; flex-direction:column; gap:10px; }
.rx-lb__row{ display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--rx-line); border-radius:16px; padding:13px 18px; box-shadow:var(--rx-shadow-sm); transition:transform .16s; }
.rx-lb__row:hover{ transform:translateX(3px); }
.rx-lb__row.me{ background:var(--coral); border-color:transparent; box-shadow:var(--rx-coral-shadow); }
.rx-lb__row.me, .rx-lb__row.me b, .rx-lb__row.me .rx-xp{ color:#fff; }
.rx-rk{ width:30px; height:30px; flex:none; border-radius:10px; background:var(--cream-raise); border:1px solid var(--rx-line); display:grid; place-items:center; font-weight:900; font-size:.9rem; color:var(--muted); }
.rx-rk.first{ background:var(--coral); color:#fff; border-color:transparent; }
.rx-lb__row.me .rx-rk{ background:rgba(255,255,255,.25); color:#fff; border-color:transparent; }
.rx-av{ width:42px; height:42px; flex:none; border-radius:50%; background:var(--cream-raise); border:1px solid var(--rx-line); display:grid; place-items:center; font-weight:900; color:var(--ink); }
.rx-lb__row.me .rx-av{ background:rgba(255,255,255,.22); color:#fff; border-color:transparent; }
.rx-lb__row b{ flex:1; font-size:1.06rem; font-weight:800; }
.rx-cc{ font-size:1rem; margin-left:5px; line-height:1; }
/* "Weekly league" label → glass box */
.rx-lb__lab{ display:inline-block; margin-bottom:12px; padding:5px 12px; border-radius:999px;
  background:rgba(35,39,31,.05); border:1px solid var(--rx-line); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:var(--muted); }
/* movement indicators → glass pills */
.rx-mv{ font-size:.76rem; font-weight:900; padding:4px 9px; border-radius:999px;
  background:rgba(35,39,31,.05); border:1px solid var(--rx-line); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.rx-mv.up{ color:var(--coral); } .rx-mv.dn{ color:var(--muted-soft); }
.rx-lb__row.me .rx-mv{ background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.25); }
.rx-lb__row.me .rx-mv{ color:#fff; }
.rx-xp{ font-weight:900; font-size:1.05rem; color:var(--coral); min-width:54px; text-align:right; }

/* ============================================================
   SECTION 05 — FINAL CTA · centered closing screen + tight footer
   ============================================================ */
.chapter.meet{ padding-block:clamp(48px,7vw,90px) clamp(20px,3vw,36px) !important; }
.rx-final{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; }
.rx-final__mascot{ width:min(140px,34vw); filter:drop-shadow(0 22px 34px rgba(35,39,31,.2)); }
.rx-final__h{ font-size:clamp(2.4rem,6vw,4rem); font-weight:900; letter-spacing:-.02em; line-height:1; }
.rx-final__sub{ font-size:1.15rem; font-weight:700; color:var(--muted); }
.rx-final__sub.credit{ text-transform:uppercase; letter-spacing:.16em; font-size:.92rem; font-weight:800; color:var(--muted); }
.rx-final__cta{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; margin-top:10px; }
.rx-dl{ display:inline-flex; align-items:center; gap:10px; font-size:1.05rem; font-weight:900; padding:17px 30px; border-radius:999px; cursor:pointer; transition:transform .2s; }
.rx-dl.ios{ background:var(--coral); color:#fff; box-shadow:var(--rx-coral-shadow); }
.rx-dl.and{ background:var(--charcoal); color:#fff; }
.rx-dl:hover{ transform:translateY(-3px); }
.rx-trust{ display:flex; flex-wrap:wrap; justify-content:center; gap:9px; margin-top:14px; }
.rx-trust span{ font-size:.82rem; font-weight:800; color:var(--ink); background:var(--paper); border:1px solid var(--rx-line); border-radius:999px; padding:8px 15px; box-shadow:var(--rx-shadow-sm); }

.rx-foot{ display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; margin-top:clamp(40px,6vw,68px); padding-top:22px; border-top:1px solid var(--rx-line); }
.rx-foot .brand{ font-size:1.15rem; }
.rx-foot nav{ display:flex; gap:8px; flex-wrap:wrap; }
.rx-foot nav a{ font-size:.92rem; font-weight:700; color:var(--charcoal); padding:6px 10px; border-radius:10px; transition:.16s; }
.rx-foot nav a:hover{ color:var(--coral); background:var(--cream-raise); }
.rx-foot .muted{ font-size:.86rem; font-weight:600; color:var(--muted); }

/* ============================================================
   SIDE NAV → vertical scroll-line with dots; only the current label shows
   ============================================================ */
.dotnav{ background:none !important; border:none !important; box-shadow:none !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
  padding:0 !important; gap:0 !important; align-items:flex-end !important; }
.dotnav::before{ content:""; position:absolute; right:5px; top:12px; bottom:12px; width:2px; border-radius:2px; background:var(--rx-line); }
.dotnav a{ display:flex !important; align-items:center; justify-content:flex-end; gap:11px; padding:12px 0 !important; background:none !important; position:relative; }
.dotnav a .t{ position:static !important; opacity:0; transform:translateX(8px); transition:.22s; background:none !important; box-shadow:none !important; padding:0 !important;
  font-size:.78rem; font-weight:800; color:var(--ink) !important; white-space:nowrap; }
.dotnav a .d{ display:block !important; width:11px; height:11px; border-radius:50%; background:var(--muted-soft); border:2px solid var(--cream); flex:none; transition:.2s; position:relative; z-index:1; }
.dotnav a:hover .t, .dotnav a.active .t{ opacity:1; transform:none; }
.dotnav a:hover .d{ background:var(--coral); }
.dotnav a.active .d{ background:var(--coral); box-shadow:0 0 0 4px rgba(221, 87, 28,.2); transform:scale(1.18); }

/* LEARN phone — black frame, cream screen dropped, bottom cropped a bit */
.rx-phone{ box-shadow:none !important; background:#0f0f0f !important; }
.rx-phone .phone__screen{ height:auto !important; min-height:0 !important; background:none !important; }
.rx-phone-wrap{ overflow:hidden; width:-moz-fit-content; width:fit-content; margin-inline:auto; border-radius:44px; border:2.5px solid var(--coral,#DD571C); }
.rx-phone-wrap .rx-phone{ margin-bottom:-44px; }
@media(max-width:1000px){ .rx-phone-wrap{ border-radius:44px; } .rx-phone-wrap .rx-phone{ margin-bottom:0; } }
.rx-phone .rx-phone-div{ height:1px; background:rgba(35,39,31,.1); margin:16px 0; border-radius:1px; }
.rx-phone .rx-phone-sec{ background:#fff; border:1px solid var(--rx-line); border-radius:18px; padding:12px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.rx-phone .rx-phone-sec + .rx-phone-sec{ margin-top:11px; }
/* compact so both sections fit the phone well */
.rx-phone .rx-phone-sec .phone__head{ margin-bottom:9px; }
.rx-phone .rx-phone-sec .preview{ margin-top:0; gap:7px; }
.rx-phone .rx-phone-sec .bubble{ padding:8px 12px; font-size:12px; max-width:86%; }
.rx-phone .rx-phone-sec .phone__compose{ margin-top:9px; padding:6px 6px 6px 13px; }
.rx-phone .rx-phone-sec .bubble.them{ white-space:nowrap; }
.rx-phone .phone__lv{ display:inline-flex; align-items:center; gap:5px; }
.rx-phone .phone__lv .rx-flagic{ width:16px; height:11px; }
/* completed-state accents (green) */
.rx-phone-sec .playb.tick{ background:#34a45e !important; color:#fff !important; box-shadow:0 6px 14px -6px rgba(52,164,94,.6) !important; }
.rx-phone-sec .tg-done{ background:#e6f4ec !important; color:#2c7d4d !important; box-shadow:none !important; font-weight:800; }
/* section titles: Completed (1st) green · Pending lesson (2nd) orange */
.rx-phone-sec:first-child .phone__head b{ color:#2c7d4d !important; font-size:1.18rem !important; }
.rx-phone-sec:first-child .bubble.me{ background:#34a45e !important; color:#fff !important; }
.rx-phone-sec:last-child .phone__head b{ color:var(--coral) !important; }
/* Spanish (completed) box → green A1 pill + green speaker button */
.rx-phone-sec:first-child .phone__lv{ background:#e6f4ec !important; color:#2c7d4d !important; }
.rx-phone-sec:first-child .phone__compose .mic{ background:#34a45e !important; box-shadow:0 8px 16px -8px rgba(52,164,94,.7) !important; }

/* ============================================================
   LEARN — drop the phone frame; keep only the 2 section cards
   ============================================================ */
.rx-phone-wrap{ overflow:visible !important; width:auto !important; max-width:380px; margin-inline:auto; border:none !important; border-radius:0 !important; align-self:flex-start; }
.rx-phone-wrap .rx-phone{ margin-bottom:0 !important; }
.rx-phone{ width:100% !important; background:none !important; padding:0 !important; box-shadow:none !important; border:none !important; }
.rx-phone::before{ display:none !important; }
.rx-phone .phone__bar{ display:none !important; }
.rx-phone .phone__screen{ background:none !important; padding:0 !important; border-radius:0 !important; display:flex; flex-direction:column; gap:14px; }
.rx-phone .rx-phone-sec{ box-shadow:var(--rx-shadow-sm) !important; }
.rx-phone .rx-phone-sec .bubble.them{ white-space:nowrap; }
/* tidy the 3-column Learn layout around the cards */
.rx-learn{ align-items:start; }

/* LEARN — wrap pick/goal groups in alternating orange / white boxes */
.rx-lbox{ border-radius:20px; padding:clamp(15px,1.7vw,19px); border:1px solid var(--rx-line); }
.rx-lbox.c-orange{ background:var(--coral-tint); border-color:var(--coral-soft); }
.rx-lbox.c-white{ background:#fff; box-shadow:var(--rx-shadow-sm); }
.rx-learn__side{ gap:clamp(14px,1.8vw,20px); }
.rx-goal.rx-lbox{ align-self:start; }

/* LEARN — three equal-width boxes in a row, each trimmed to its content */
.rx-learn.rx-learn-3{ grid-template-columns:repeat(3,1fr) !important; align-items:start !important; gap:clamp(16px,2vw,24px); }
.rx-learn-3 .rx-lcol{ display:flex; flex-direction:column; gap:14px; }
.rx-learn-3 > *{ align-self:start !important; }
.rx-learn-3 .rx-goal{ align-self:start !important; justify-content:flex-start; }
.rx-conv-box{ padding:14px !important; align-self:start !important; }
/* dissolve the leftover phone wrappers so the two cards are plain flex children */
.rx-conv-box .phone, .rx-conv-box .phone__screen{ display:contents !important; }
/* middle box black (white text), sides white */
.rx-lbox.c-black{ background:#0f0f0f !important; border-color:transparent !important; box-shadow:var(--rx-shadow-sm) !important; }
.rx-lbox.c-black .rx-pick-lab{ color:rgba(255,255,255,.7) !important; }

/* LEARN — two highlight boxes under the heading (22 languages / unlimited) */
.rx-learn-badges{ display:flex; gap:12px; margin-top:14px; flex-wrap:nowrap; }
.rx-lbadge{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap; background:#fff; border:1px solid var(--rx-line); border-radius:14px; padding:11px 18px; font-size:1rem; font-weight:800; color:var(--ink); box-shadow:var(--rx-shadow-sm); }
.rx-lbadge b{ color:var(--coral); font-size:1.2rem; font-weight:900; line-height:1; }

/* LEARN — all three box titles centred + a bit larger */
.rx-learn-3 .rx-pick-lab{ text-align:center !important; font-size:.96rem !important; letter-spacing:.06em !important; }

/* LEARN — match all 3 boxes to the middle box's height */
.rx-learn.rx-learn-3{ align-items:stretch !important; }
.rx-learn-3 > *, .rx-learn-3 .rx-goal{ align-self:stretch !important; }
.rx-learn-3 .rx-lcol{ min-height:0; }
.rx-learn-3 .rx-langs{ flex:1 1 0 !important; min-height:0; }

/* LEARN — "view more" as a small pill, nudged a bit left & up from the corner */
.rx-more-link{ align-self:flex-end; margin-top:auto; margin-right:8px; margin-bottom:8px; display:inline-block; padding:7px 14px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); font-size:.82rem; font-weight:800; color:var(--coral); letter-spacing:.01em; transition:transform .18s, background .18s; }
.rx-more-link:hover{ background:rgba(255,255,255,.14); transform:translateY(-1px); }
/* goal box on black — make ring text readable */
.rx-lbox.c-black .ring__c b{ color:#fff !important; }
.rx-lbox.c-black .ring__c span{ color:rgba(255,255,255,.7) !important; }

/* remove the square box around the goal ring */
.rx-goal .ring, .rx-goal .rx-ring, .rx-goal .ring__c{ background:none !important; border:none !important; box-shadow:none !important; }

/* GROW left column: conversation + white fill box to complete the grid */
.rx-grow{ align-items:stretch !important; }
.rx-left{ display:flex; flex-direction:column; gap:clamp(16px,2vw,22px); }
.rx-left .rx-convo{ flex:none; }
.rx-fillbox{ flex:1; background:#fff; border:1px solid var(--rx-line); border-radius:var(--rx-r); box-shadow:var(--rx-shadow-sm); padding:clamp(20px,2.2vw,28px); display:flex; flex-direction:column; justify-content:center; gap:10px; }
.rx-fillbox b{ font-size:1.35rem; font-weight:900; letter-spacing:-.01em; }
.rx-fillbox p{ font-size:.97rem; color:var(--muted); font-weight:600; line-height:1.5; max-width:34ch; }
.rx-fill-cta{ align-self:flex-start; margin-top:6px; background:var(--coral); color:#fff; font-weight:800; padding:13px 24px; border-radius:14px; box-shadow:var(--rx-coral-shadow); transition:transform .2s; }
.rx-fill-cta:hover{ transform:translateY(-2px); }

/* ── HERO quick-action tiles (Games / Languages) ────────────────────────────
   Games → black, Languages → orange (black border). Both identical layout:
   big icon, small label, centred and balanced. */
.dash .qa.qa-2 button{ flex-direction:column !important; align-items:center !important; justify-content:center !important; gap:8px !important; padding:16px 12px !important; font-size:.92rem !important; font-weight:800 !important; letter-spacing:.01em; }
.dash .qa.qa-2 button[data-qa="practice"],
.dash .qa.qa-2 button[data-qa="practice"]:hover,
.dash .qa.qa-2 button[data-qa="practice"]:focus,
.dash .qa.qa-2 button[data-qa="practice"]:focus-visible{ background:#0f0f0f !important; color:#fff !important; box-sizing:border-box !important; border:4px solid #0f0f0f !important; outline:none !important; box-shadow:inset 0 0 0 2px #fff !important; gap:2px !important; }
.dash .qa.qa-2 button[data-qa="practice"]{ padding:10px 12px 26px !important; }
.dash .qa.qa-2 button[data-qa="practice"] .em{ margin-top:0 !important; margin-bottom:-8px !important; }

/* ── HERO dashboard stats → three clean, separate, aligned boxes ──────────────
   (replaces the connected skewed-pill group). */
/* slanted segmented stat bar — diagonal dividers, upright text, gray sides + coral middle */
#dash .dstats{ display:flex !important; flex-wrap:nowrap !important; gap:6px !important; background:none !important; border:none !important; box-shadow:none !important; overflow:hidden !important; border-radius:13px !important; padding:0 !important; }
#dash .dstats .dstat.bigstat{ flex:1 1 0 !important; min-width:0 !important; margin:0 !important; padding:10px 10px !important; border-radius:0 !important; transform:skewX(-11deg) !important; display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; text-align:center !important; }
#dash .dstats .dstat.bigstat:first-child{ margin-left:-16px !important; padding-left:22px !important; }
#dash .dstats .dstat.bigstat:last-child{ margin-right:-16px !important; padding-right:22px !important; }
#dash .dstats .dstat.bigstat::before{ display:none !important; }
#dash .dstats .dstat.bigstat .cellin{ transform:skewX(11deg) !important; display:flex !important; flex-direction:column !important; align-items:center !important; gap:1px !important; }
#dash .dstat.bigstat .num{ font-size:1.18rem !important; line-height:1 !important; }
#dash .dstat.bigstat .lab{ font-size:.54rem !important; letter-spacing:.04em !important; }

/* Today's lesson card → smaller */
#dash #dg-lesson{ padding:7px 11px !important; }
#dash #dg-lesson b{ font-size:.82rem !important; }
#dash #dg-lesson .ic{ width:30px !important; height:30px !important; font-size:15px !important; }
#dash #dg-lesson .sub, #dash #dg-lesson .metapill{ font-size:.66rem !important; }
/* Continue chat card → popped up */
#dash #dg-continue{ transform:translateY(-2px); border-color:rgba(221, 87, 28,.5) !important; box-shadow:0 12px 26px -10px rgba(221, 87, 28,.4) !important; }
.dash .qa.qa-2 button[data-qa="review"]{ background:var(--coral,#DD571C) !important; color:#fff !important; border:none !important; }
.dash .qa.qa-2 button .em{ display:inline-flex !important; align-items:center; justify-content:center; line-height:0; }
.dash .qa.qa-2 button .em svg{ width:52px !important; height:52px !important; }
.dash .qa.qa-2 button[data-qa="practice"] .em svg{ width:74px !important; height:74px !important; }

/* ── GROW (app) section — split the bottom-left box into two empty white boxes
   at 70% / 30% width. */
.rx-fillbox.rx-fillsplit{ flex-direction:row !important; gap:clamp(12px,1.4vw,18px) !important; padding:0 !important; background:none !important; border:none !important; box-shadow:none !important; }
.rx-fcell{ background:#fff; border:1px solid var(--rx-line); border-radius:var(--rx-r); box-shadow:var(--rx-shadow-sm); min-height:120px; align-self:stretch; }
.rx-fcell--70{ flex:62 1 0; min-width:0; background:#0f0f0f; border-color:transparent; }
.rx-fcell--30{ flex:38 1 0; min-width:0; }
/* container holds the 4 widget boxes stacked — equal size, even spacing.
   No box behind them (transparent), boxes stay exactly in place. */
.rx-fcell.rx-xp-stack{ background:none !important; border:none !important; box-shadow:none !important; }
.rx-xp-stack{ display:flex; flex-direction:column; gap:10px; padding:11px; }
.rx-xp-stack .rx-xpc{ width:100%; flex:1 1 0; min-height:40px; padding:6px 10px; border-radius:15px; gap:2px; border:3px solid #fff !important; }
.rx-xp-stack .rx-xpc{ justify-content:flex-start; }
.rx-xp-stack .rx-xpc__h{ font-size:.9rem !important; margin-top:-1px; width:100%; justify-content:center !important; }
.rx-xp-stack .rx-xpc__big{ font-size:1.12rem; margin-top:7px; }
.rx-xp-stack .rx-xpc .rx-bar, .rx-xp-stack .rx-xpc .rx-achs{ margin-top:7px; }
.rx-xp-stack .rx-xpc__ic svg{ width:18px; height:18px; }
/* achievement box — black bg, thicker black border, all-white symbols */
.rx-xp-stack .rx-xpc.c-charcoal{ background:#0f0f0f !important; border:3px solid #fff !important; }
.rx-xp-stack .rx-xpc.c-charcoal .rx-achs span{ filter:brightness(0) invert(1); }
.rx-xp-stack .rx-xpc.c-charcoal .rx-achs .lock{ filter:brightness(0) invert(1); opacity:.4; }

/* ===================== GAMES — clean dark cards ===================== */
.card.game{ background:#0f0f0f !important; border:1px solid rgba(255,255,255,.08) !important; box-shadow:var(--rx-shadow) !important; color:#fff !important; border-radius:22px !important; min-height:470px !important; padding:22px !important; gap:18px !important; }
.games .xp-hidden{ display:none !important; }
/* header — name centred on top, meta row below (lives+task left, timer+hint right) */
.game-head{ display:flex; flex-direction:column; gap:22px; }
.game-name{ align-self:center; text-align:center; font-size:1.1rem; font-weight:900; letter-spacing:-.01em; color:#fff;
  padding:8px 20px; border-radius:999px; background:var(--coral); border:1px solid transparent; }
.game-meta{ display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 12px; border-radius:14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.game-meta__l, .game-meta__r{ display:inline-flex; align-items:center; gap:10px; }
.game-task{ font-size:.82rem; font-weight:800; color:rgba(255,255,255,.6); }
.game .lives{ display:inline-flex; gap:2px; font-size:.95rem; }
/* pills + hint on the dark card */
.game .pillstat{ background:rgba(255,255,255,.1) !important; color:#fff !important; box-shadow:none !important; border:1px solid rgba(255,255,255,.14); font-weight:800; }
.game .hintb{ margin-left:0 !important; background:var(--coral) !important; color:#fff !important; box-shadow:none !important; font-weight:800; }
.game .hintb:hover{ background:var(--coral) !important; filter:brightness(1.07); }
/* WORD MATCH — orange word chip, white answer boxes with black text */
.game .wm{ gap:26px; }
.game .draggable{ background:var(--coral) !important; color:#fff !important; font-size:1.05rem; padding:.7em 1.45em; box-shadow:0 12px 26px -12px rgba(221, 87, 28,.75) !important; }
.game .wm__targets{ gap:12px; }
.game .drop{ background:#fff !important; color:#0f0f0f !important; border:2px solid transparent !important; border-radius:14px; font-weight:800; box-shadow:0 8px 18px -12px rgba(0,0,0,.6) !important; }
.game .drop.over{ background:#fff !important; border-color:var(--coral) !important; }
.game .drop.good{ background:#dcefd2 !important; color:#2f5d33 !important; border-color:#54c08a !important; }
/* Word Match — bottom control bar as a glassy row (prev · points · 1/5 · skip) */
.wm__bar{ display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 14px; border-radius:14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.wm__nav, .wm__skip{ background:rgba(255,255,255,.12); color:#fff; border:none; border-radius:10px; padding:6px 14px; font-weight:800; font-size:.85rem; cursor:pointer; transition:background .18s; }
.wm__nav{ font-size:1.2rem; line-height:1; padding:3px 14px; }
.wm__nav:hover, .wm__skip:hover{ background:rgba(255,255,255,.22); }
.wm__stat{ color:#fff; font-weight:800; font-size:.85rem; }
.wm__stat.coral{ background:var(--coral); color:#fff; padding:6px 14px; border-radius:10px; }

/* Word Match copy inside the app section's black box — fit & realign */
.rx-fcell.rx-game-cell{ padding:0 !important; overflow:hidden; }
.rx-game-cell .card.game{ height:100%; min-height:0 !important; background:transparent !important; border:none !important; box-shadow:none !important; border-radius:0 !important; padding:16px !important; gap:14px !important; justify-content:space-between; }
.rx-game-cell .game-head{ gap:14px; }
.rx-game-cell .game-name{ font-size:.98rem; padding:6px 16px; }
/* top meta row — keep everything on one line in the glass row */
.rx-game-cell .game-meta{ padding:6px 9px; gap:6px; flex-wrap:nowrap; }
.rx-game-cell .game-meta__l, .rx-game-cell .game-meta__r{ gap:6px; min-width:0; }
.rx-game-cell .game-task{ font-size:.72rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rx-game-cell .lives{ font-size:.82rem; flex:none; }
.rx-game-cell .pillstat, .rx-game-cell .hintb{ padding:.32em .6em !important; font-size:.72rem !important; white-space:nowrap; }
.rx-game-cell .wm{ gap:16px !important; }
.rx-game-cell .draggable{ font-size:.98rem !important; padding:.6em 1.2em !important; }
/* options stacked in a column, each with an A/B/C circle label (both games) */
.game .wm__targets{ width:100%; flex-direction:column !important; gap:10px !important; flex-wrap:nowrap !important; align-items:center !important; }
.game .wm__opt{ display:flex; align-items:center; gap:12px; width:70%; }
.game .wm__lbl{ width:34px; height:34px; flex:none; border-radius:50%; display:grid; place-items:center; font-weight:900; font-size:.9rem; color:#fff; background:rgba(255,255,255,.1); border:2px solid rgba(255,255,255,.32); }
.game .wm__opt .drop{ flex:1 1 auto; min-width:0 !important; text-align:left !important; padding:.7em 1em !important; font-size:.9rem; }
/* word row with a "1" circle */
.game .wm__q{ display:flex; align-items:center; justify-content:center; gap:12px; }
.game .wm__qc{ width:38px; height:38px; flex:none; border-radius:50%; display:grid; place-items:center; font-weight:900; font-size:.8rem; color:#fff; background:rgba(255,255,255,.12); border:2px solid rgba(255,255,255,.32); }
/* SENTENCE BUILDER — dark answer tray, white word tiles with black text */
.game .sb{ gap:18px; align-items:center; }
.game .sb__qtext{ font-size:1rem; font-weight:800; color:#fff; text-align:center; }
/* answer tray — roomy enough to hold the whole sentence, centred */
.game .sb__ans{ width:100%; max-width:100%; min-height:66px !important; padding:12px 18px !important; justify-content:center; align-content:center; }
.game .sb__pool{ justify-content:center; }
.game .sb__ans{ background:rgba(255,255,255,.06) !important; border:2px dashed rgba(255,255,255,.25) !important; color:#fff; }
.game .sb__ans:empty::before{ color:rgba(255,255,255,.45) !important; }
.game .tile{ background:#fff !important; color:#0f0f0f !important; border:1px solid transparent !important; border-radius:12px; font-weight:800; box-shadow:0 8px 18px -12px rgba(0,0,0,.6) !important; }
.game .tile:hover{ border-color:var(--coral) !important; }
.game .tile.inans{ background:var(--coral) !important; color:#fff !important; border-color:transparent !important; }

/* QUIZ — option buttons, answer states, end screen + score ring */
/* `hidden` must win over the flex display so screens REPLACE each other in place */
.game .wm[hidden], .game .wm__bar[hidden], .game .quiz__end[hidden], .game .quiz__start[hidden], .game .game-head[hidden]{ display:none !important; }
/* start screen — big white symbol, grey name, orange Play */
.quiz__start{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; text-align:center; }
.quiz__start-ic{ color:#fff; }
.quiz__start-ic svg{ width:64px; height:64px; }
.quiz__start-name{ font-size:1.6rem; font-weight:900; color:rgba(255,255,255,.5); letter-spacing:-.01em; }
.quiz__play-btn{ background:var(--coral); color:#fff; border:none; border-radius:14px; padding:13px 36px; font-weight:900; font-size:1rem; cursor:pointer; box-shadow:var(--rx-coral-shadow); transition:transform .18s, filter .18s; }
.quiz__play-btn:hover{ transform:translateY(-2px); filter:brightness(1.07); }
.game .wm__opt .drop{ cursor:pointer; font-family:inherit; transition:transform .16s, border-color .16s, box-shadow .16s; }
.game .wm__opt .drop:hover{ transform:translateY(-2px); border-color:var(--coral) !important; box-shadow:0 12px 22px -12px rgba(0,0,0,.7) !important; }
.game .wm__opt:hover .wm__lbl{ border-color:var(--coral); color:var(--coral); }
.game .drop:active{ transform:scale(.97); }
.game .drop.bad{ background:#f6d6d0 !important; color:#a32a17 !important; border-color:#e0856b !important; animation:quizShake .32s; }
.game .drop.good{ animation:quizPop .32s; }
.game .drop.hint{ border-color:var(--coral) !important; box-shadow:0 0 0 3px rgba(221, 87, 28,.25) !important; }
@keyframes quizShake{ 0%,100%{ transform:translateX(0) } 25%{ transform:translateX(-5px) } 75%{ transform:translateX(5px) } }
@keyframes quizPop{ 0%{ transform:scale(1) } 45%{ transform:scale(1.05) } 100%{ transform:scale(1) } }
/* feedback toast — Good! / Nice try! (absolute, no layout shift) */
.quiz__fb{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) scale(.8); padding:10px 24px; border-radius:999px; font-weight:900; font-size:1.05rem; color:#fff; opacity:0; pointer-events:none; transition:opacity .18s, transform .18s; z-index:6; box-shadow:0 14px 30px -12px rgba(0,0,0,.55); }
.quiz__fb.show{ opacity:1; transform:translate(-50%,-50%) scale(1); }
.quiz__fb.ok{ background:#34a45e; }
.quiz__fb.no{ background:#d9534f; }
.quiz__end{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; }
.quiz__ring{ position:relative; width:128px; height:128px; }
.quiz__ring svg{ width:100%; height:100%; display:block; }
.quiz__ringc{ position:absolute; inset:0; display:grid; place-content:center; color:#fff; }
.quiz__ringc b{ font-size:2rem; font-weight:900; line-height:1; }
.quiz__ringc span{ font-size:.78rem; font-weight:800; color:rgba(255,255,255,.6); }
.quiz__endlbl{ font-size:1.1rem; font-weight:900; color:#fff; }
.quiz__restart{ background:var(--coral); color:#fff; border:none; border-radius:12px; padding:12px 28px; font-weight:800; font-size:.95rem; cursor:pointer; transition:filter .18s; }
.quiz__restart:hover{ filter:brightness(1.08); }

/* GROW + EXPLORE — drop the tint so all sections share one continuous bg */
#grow.chapter.tint, #explore.chapter.tint{ background:none !important; box-shadow:none !important; }

/* tighten the gap between sections — even top/bottom */
.chapter{ padding-block:clamp(52px,6.5vw,100px); }

/* ===== Leaderboard → black card + dark rows, white text (orange accents kept) ===== */
.rx-lb-card{ background:#0f0f0f !important; border-color:transparent !important; }
.rx-lb__title{ color:#fff; }
.rx-lb__lab{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16); color:rgba(255,255,255,.75); }
.rx-lb__tabs span{ color:rgba(255,255,255,.7); border-color:rgba(255,255,255,.18); }
.rx-lb__tabs .on{ background:var(--coral); color:#fff; border-color:transparent; }
.rx-lb__row{ background:#1b1a18 !important; border-color:rgba(255,255,255,.08) !important; box-shadow:none !important; color:#fff; }
.rx-lb__row.me{ background:var(--coral) !important; border-color:transparent !important; }
.rx-lb__row b{ color:#fff; }
.rx-rk{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.14); color:#fff; }
.rx-av{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.14); color:#fff; font-size:1.35rem; overflow:hidden; }
/* SVG flags fill their badge/circle (emoji flags don't render on Windows) */
.rx-av svg{ width:100%; height:100%; display:block; }
.rx-flag{ overflow:hidden; padding:0; }
.rx-flag svg{ width:100%; height:100%; display:block; }
.rx-tr__row .rx-trlang svg{ width:22px; height:15px; border-radius:3px; display:block; }
.draggable .fl, .sb__qtext .fl{ width:22px; height:15px; border-radius:3px; vertical-align:middle; display:inline-block; }
.rx-mv{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.16); }

/* HERO greeting → small glass box */
.dash #dg-name{ display:inline-block; font-size:.66rem !important; font-weight:800; letter-spacing:.03em; padding:6px 14px; border-radius:999px; line-height:1.1; color:var(--muted) !important;
  background:rgba(255,255,255,.55); border:1px solid var(--line,rgba(35,39,31,.12)); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.dash #dg-level-name{ color:#0f0f0f !important; }

/* ── Swap section order: Play (games) before Learn (language) ── */
main{ display:flex; flex-direction:column; }
#home{ order:1; } #grow{ order:2; } #explore{ order:3; } #learn{ order:4; } #meet{ order:5; }

/* ── HERO — clickable feel + a little life ── */
.dash .qa.qa-2 button{ cursor:pointer; transition:transform .2s cubic-bezier(.34,1.56,.64,1), filter .18s !important; }
.dash .qa.qa-2 button:hover{ transform:translateY(-3px) scale(1.015); filter:brightness(1.07); }
.dash .qa.qa-2 button:active{ transform:translateY(-1px) scale(.98); }
.dash #dg-continue{ cursor:pointer; animation:contPulse 2.6s ease-in-out infinite; }
.dash #dg-continue:hover{ transform:translateY(-4px) !important; box-shadow:0 18px 32px -12px rgba(221, 87, 28,.55) !important; }
.dash #dg-continue .go{ transition:transform .18s; }
.dash #dg-continue:hover .go{ transform:translateX(3px); }
@keyframes contPulse{ 0%,100%{ box-shadow:0 12px 26px -10px rgba(221, 87, 28,.38) } 50%{ box-shadow:0 15px 30px -8px rgba(221, 87, 28,.6) } }

/* ============================================================
   ALIVE PASS — transitions, hovers & playable cues (layout untouched)
   ============================================================ */
.rx-scene, .rx-lang, .rx-lbadge, .rx-start, .rx-fill-cta, .rx-dl, .rx-swap, .rx-more-link,
.rx-lb__tabs span, .topics .chip, .rx-convo, .rx-card, .rx-lbox, .rx-xpc, .rx-fillbox,
.rx-lb-card, .dcard, .rx-lb__row, .rx-tr__row{ transition:transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, border-color .2s, background .2s, color .2s, filter .2s; }

/* display cards — gentle lift + glow (no zoom) */
.rx-convo:hover, .rx-card:hover{ transform:translateY(-3px); box-shadow:var(--rx-shadow); border-color:var(--coral-soft); }
.rx-lbox:hover{ transform:translateY(-2px); box-shadow:0 18px 36px -18px rgba(35,39,31,.5); }
.rx-xp-stack .rx-xpc:hover{ transform:translateY(-2px); box-shadow:0 14px 26px -14px rgba(0,0,0,.5); }

/* clearly clickable — pressable feedback */
.rx-start{ cursor:pointer; }
.rx-start:hover{ transform:translateY(-2px); filter:brightness(1.05); box-shadow:var(--rx-coral-shadow); }
.rx-start:active{ transform:scale(.98); }
.rx-lb__tabs span{ cursor:pointer; }
.rx-lb__tabs span:hover{ color:var(--coral); border-color:var(--coral); }
.rx-swap{ cursor:pointer; }
.rx-swap:hover{ transform:translate(-50%,-50%) rotate(180deg) !important; }
.rx-swap:active{ transform:translate(-50%,-50%) rotate(180deg) scale(.9) !important; }
.rx-tr__row:hover{ filter:brightness(.97); }
.rx-fill-cta:active, .rx-dl:active, .rx-lbadge:active{ transform:scale(.97); }

/* PLAYABLE cues — Play buttons pulse; app-section game invites a tap */
.quiz__play-btn{ animation:playPulse 2.2s ease-in-out infinite; }
@keyframes playPulse{ 0%,100%{ box-shadow:var(--rx-coral-shadow); transform:translateY(0) } 50%{ box-shadow:0 18px 36px -10px rgba(221, 87, 28,.7); transform:translateY(-1px) } }
.rx-game-cell{ transition:box-shadow .3s; }
.rx-game-cell:hover{ box-shadow:inset 0 0 0 2px rgba(221, 87, 28,.4); }

/* fun on-scroll fills + typewriter */
.rx-bar i, .rx-meter i{ transform-origin:left center; }
.fa-fill{ animation:faFill 1.05s cubic-bezier(.22,1,.36,1) both; }
@keyframes faFill{ from{ transform:scaleX(0) } to{ transform:scaleX(1) } }
.fa-caret{ border-right:2px solid var(--coral); padding-right:1px; animation:faCaret .7s step-end infinite; }
@keyframes faCaret{ 50%{ border-color:transparent } }
/* gentle floating life on key icons / mascots */
.rx-convo__head .rx-ava, .rx-final__mascot{ animation:faFloat 4s ease-in-out infinite; }
@keyframes faFloat{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-5px) } }
/* live dot + recording wave already pulse; add a soft sheen to coral CTAs on hover */
.rx-dl.ios:hover, .rx-fill-cta:hover, .rx-start:hover{ box-shadow:0 16px 34px -10px rgba(221, 87, 28,.6) !important; }

/* ── HERO scroll hint — bottom-centre, merged with the bg ── */
.hero-scroll{ position:absolute; left:50%; bottom:16px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:2px;
  font-size:.66rem; font-weight:800; letter-spacing:.28em; text-transform:uppercase; color:var(--muted); opacity:.4; pointer-events:none; animation:heroScroll 1.9s ease-in-out infinite; }
.hero-scroll svg{ width:15px; height:15px; }
@keyframes heroScroll{ 0%,100%{ transform:translateX(-50%) translateY(0); opacity:.32 } 50%{ transform:translateX(-50%) translateY(5px); opacity:.62 } }

/* ============================================================================
   ANIMATION REFINEMENT — one easing language, GPU-friendly, no clutter.
   Transitions touch only transform / box-shadow / colour (compositor-safe).
   ============================================================================ */
:root{ --fa:cubic-bezier(.22,1,.36,1); }

/* drop the costly / cluttered ambient loops (infinite box-shadow & extra floats) */
.rx-convo__head .rx-ava{ animation:none !important; }
.dash #dg-continue{ animation:none !important; }
/* play cue → cheap transform pulse (not an animated shadow) */
.quiz__play-btn{ animation:faPlay 2.4s ease-in-out infinite !important; }
@keyframes faPlay{ 0%,100%{ transform:scale(1) } 50%{ transform:scale(1.045) } }
.quiz__play-btn:hover{ animation:none !important; transform:translateY(-2px) scale(1.03); }

/* unified transition timing + easing on every interactive surface */
.rx-scene, .rx-lang, .rx-lbadge, .rx-start, .rx-fill-cta, .rx-dl, .rx-more-link, .rx-lb__tabs span,
.rx-convo, .rx-card, .rx-lbox, .rx-xp-stack .rx-xpc, .dcard, .rx-lb__row, .rx-swap,
.game .wm__opt .drop, .quiz__restart, .dash .qa.qa-2 button, .dash #dg-continue{
  transition:transform .24s var(--fa), box-shadow .24s var(--fa), border-color .2s ease, background .2s ease, color .2s ease;
}
/* consistent hover lift: clickable = -3px, display cards = -2px */
.rx-scene:hover, .rx-lang:hover, .rx-lbadge:hover, .rx-lb__row:hover{ transform:translateY(-3px) !important; }
.rx-convo:hover, .rx-card:hover, .rx-lbox:hover, .rx-xp-stack .rx-xpc:hover, .dcard:hover{ transform:translateY(-2px); }
/* consistent press feedback */
.rx-scene:active, .rx-lang:active, .rx-lbadge:active, .rx-start:active, .rx-dl:active,
.game .wm__opt .drop:active, .quiz__restart:active, .dash .qa.qa-2 button:active{ transform:scale(.97); }
/* respect reduced-motion */
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }

/* ============================================================================
   PEN CURSOR + quick white/orange ink trail
   ============================================================================ */
html, html *{ cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 3 L8 5 L23 20 L20 23 L5 8 Z' fill='%23DD571C' stroke='%23ffffff' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M3 3 L8 5 L5 8 Z' fill='%231b1a18'/%3E%3C/svg%3E") 3 2, auto !important; }
.ink{ position:fixed; width:9px; height:9px; border-radius:50%; pointer-events:none; z-index:99999; transform:translate(-50%,-50%); will-change:transform,opacity; animation:inkFade .42s ease-out forwards; }
.ink--w{ background:#fff; box-shadow:0 0 5px rgba(255,255,255,.55); }
.ink--o{ background:#DD571C; box-shadow:0 0 5px rgba(221, 87, 28,.5); }
@keyframes inkFade{ 0%{ opacity:.85; transform:translate(-50%,-50%) scale(1) } 100%{ opacity:0; transform:translate(-50%,-50%) scale(.25) } }

/* ============================================================================
   RESPONSIVE — fluid across desktop sizes + refined tablet / mobile
   ============================================================================ */
html, body{ overflow-x:hidden; }   /* safety against any 1px overflow from skews/shadows */

/* TABLET ≤1000px — the 3-up Learn grid stacks (overrides the !important 3-col) */
@media (max-width:1000px){
  .rx-learn.rx-learn-3{ grid-template-columns:1fr !important; max-width:520px; margin-inline:auto; }
  .rx-learn-3 .rx-langs{ flex:0 1 auto !important; }
}

/* ≤860px — app-section game + widget column stack vertically */
@media (max-width:860px){
  .rx-fillbox.rx-fillsplit{ flex-direction:column !important; }
  .rx-fillbox.rx-fillsplit > .rx-fcell{ width:100% !important; flex:1 1 auto !important; }
  .rx-game-cell .card.game{ min-height:340px !important; }
  /* stacked: xp cards have no tall sibling to match, so size them to content
     (otherwise flex:1 1 0 collapses each to min-height and the numbers spill) */
  .rx-xp-stack .rx-xpc{ flex:0 0 auto !important; min-height:0 !important; padding:12px 14px !important; }
  .rx-xp-stack .rx-xpc__big{ margin-top:5px; }
}

/* ≤760px — single-column games with comfortable heights */
@media (max-width:760px){
  .games{ grid-template-columns:1fr !important; }
  .card.game{ min-height:auto !important; }
  .game .wm__opt{ width:84% !important; }
  .appwin .dash{ height:auto !important; }
}

/* ≤560px — phone polish */
@media (max-width:560px){
  #dash .dstats{ gap:4px !important; }
  #dash .dstats .dstat.bigstat{ padding:8px 5px !important; }
  #dash .dstat.bigstat .num{ font-size:1.05rem !important; }
  #dash .dstat.bigstat .lab{ font-size:.5rem !important; }
  .rx-learn-badges{ flex-wrap:wrap; }
  .rx-scene{ min-height:148px; }
  .game-name{ font-size:1rem !important; }
  .hero-scroll{ display:none; }   /* avoid overlap on a short mobile hero */
  .ink{ display:none; }           /* lighten very small screens */
}

/* ============================================================================
   LAUNCH POPUP — shown when the iOS / Android download buttons are clicked
   ============================================================================ */
.launch-modal{ position:fixed; inset:0; z-index:2000; display:none; align-items:center; justify-content:center; padding:20px; }
.launch-modal.is-open, .launch-modal.is-closing{ display:flex; }
.launch-modal__backdrop{ position:absolute; inset:0; background:rgba(35,39,31,.55);
  -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px); }
.launch-modal.is-open .launch-modal__backdrop{ animation:lm-bg-in .45s ease both; }
.launch-modal.is-closing .launch-modal__backdrop{ animation:lm-bg-out .34s ease both; }
.launch-modal__card{ position:relative; z-index:1; width:min(430px,100%);
  background:var(--paper); border-radius:28px; padding:36px 30px 32px; text-align:center;
  box-shadow:0 34px 80px -22px rgba(35,39,31,.45); transform-origin:center bottom; will-change:transform,opacity,filter; }
.launch-modal.is-open .launch-modal__card{ animation:lm-in .62s cubic-bezier(.16,1.12,.3,1.05) both; }
.launch-modal.is-closing .launch-modal__card{ animation:lm-out .4s cubic-bezier(.55,-0.2,.75,.2) both; }
.launch-modal__mascot{ width:104px; height:104px; object-fit:contain; margin:0 auto 4px; display:block; }
.launch-modal__h{ font-size:clamp(1.2rem,5.2vw,1.85rem); color:var(--coral); margin:0 0 10px; letter-spacing:-.02em; white-space:nowrap; }
.launch-modal__p{ color:rgba(35,39,31,.72); font-weight:600; font-size:1.1rem; line-height:1.5; margin:0 auto 24px; max-width:380px; }
.launch-modal__p .coral-text{ color:var(--coral); font-weight:800; }
.launch-modal__x{ position:absolute; top:13px; right:14px; width:36px; height:36px; border:none; border-radius:50%;
  background:var(--sage); color:var(--ink); font-size:22px; line-height:1; cursor:pointer; transition:background .2s, color .2s; }
.launch-modal__x:hover{ background:var(--coral); color:#fff; transform:rotate(90deg); }

/* --- staggered entrance + playful motion (only while open) --- */
.launch-modal.is-open .launch-modal__mascot{
  animation:lm-mascot .6s cubic-bezier(.34,1.56,.64,1) both, bobbing 6s var(--ease) .6s infinite;
}
.launch-modal.is-open .launch-modal__h{ animation:lm-in-up .5s ease .1s both; }
.launch-modal.is-open .launch-modal__p{ animation:lm-in-up .5s ease .18s both; }
.launch-modal.is-open .launch-modal__card .btn{
  animation:lm-in-up .5s ease .26s both, lm-glow 2.4s ease 1.1s infinite;
}
.launch-modal.is-open .launch-modal__x{ animation:lm-fade .5s ease .3s both; }

@keyframes lm-fade{ from{opacity:0} to{opacity:1} }
@keyframes lm-bg-in{ from{opacity:0} to{opacity:1} }
@keyframes lm-bg-out{ from{opacity:1} to{opacity:0} }
@keyframes lm-in-up{ from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none} }
/* cooler entrance — rise + spring-scale with a soft blur focus-in */
@keyframes lm-in{
  0%{ opacity:0; transform:translateY(52px) scale(.8) rotate(-2.5deg); filter:blur(9px); }
  55%{ opacity:1; filter:blur(0); }
  100%{ opacity:1; transform:none; filter:blur(0); }
}
/* creative exit — a small lift, then swoop away with fade + blur */
@keyframes lm-out{
  0%{ opacity:1; transform:none; filter:blur(0); }
  22%{ transform:translateY(-10px) scale(1.03) rotate(.6deg); }
  100%{ opacity:0; transform:translateY(64px) scale(.84) rotate(1.5deg); filter:blur(7px); }
}
@keyframes lm-mascot{
  0%{ opacity:0; transform:translateY(18px) scale(.5) rotate(-12deg) }
  55%{ opacity:1; transform:translateY(0) scale(1.12) rotate(6deg) }
  75%{ transform:scale(.96) rotate(-3deg) }
  100%{ opacity:1; transform:none }
}
@keyframes lm-glow{
  0%,100%{ box-shadow:0 12px 26px -10px rgba(221, 87, 28,.4) }
  50%{ box-shadow:0 16px 34px -8px rgba(221, 87, 28,.72) }
}
@media (prefers-reduced-motion:reduce){
  .launch-modal *,
  .launch-modal__backdrop,
  .launch-modal__card{ animation:none !important; filter:none !important; }
}

/* ===================== v9 · HERO CTA + PHONE TWEAKS ===================== */
/* Hero buttons: black border on Start Learning, slightly thicker border on both */
.hero2 .btn-coral.btn-lg{
  border:4px solid #111 !important;
  box-shadow:var(--sh-coral), 0 0 0 0 #111 !important;
}
.hero2 .btn-ghost.btn-lg{
  box-shadow:inset 0 0 0 4px var(--line) !important;
}
.hero2 .btn-ghost.btn-lg:hover{
  box-shadow:inset 0 0 0 4px var(--coral) !important;
}
/* Nudge the CTA row right so it sits centre-aligned under the title text */
.hero2 .reveal .wrap-flex{ margin-left:.6em !important; }

/* Phone UI: Games + Languages boxes a touch smaller */
.dash .qa.qa-2 button{ padding:12px 10px !important; font-size:.86rem !important; }
.dash .qa.qa-2 button[data-qa="practice"]{ padding:8px 10px 20px !important; }
.dash .qa.qa-2 button .em svg{ width:44px !important; height:44px !important; }
.dash .qa.qa-2 button[data-qa="practice"] .em svg{ width:62px !important; height:62px !important; }

/* Continue chat box: thicker orange border, more popped up */
.dash #dg-continue{
  border:2.5px solid rgba(221, 87, 28,.85) !important;
  transform:translateY(-4px) !important;
  box-shadow:0 18px 34px -10px rgba(221, 87, 28,.55), 0 3px 8px rgba(0,0,0,.08) !important;
}
.dash #dg-continue:hover{
  transform:translateY(-6px) !important;
  box-shadow:0 24px 42px -12px rgba(221, 87, 28,.6), 0 4px 10px rgba(0,0,0,.1) !important;
}

/* ============================================================================
   FINAL QA POLISH — keyboard focus, a little more life, staggered reveals.
   Purely additive; base states stay visible, so nothing hides if JS is off.
   The universal reduced-motion guard above (`* { animation/transition:none }`)
   already neutralises everything here for reduced-motion users.
   ============================================================================ */

/* keyboard focus — clear coral ring on every interactive surface (was missing) */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible,
.btn:focus-visible, .rx-lang:focus-visible, .rx-scene:focus-visible, .rx-node:focus-visible,
.chip:focus-visible, .rx-lb__tabs span:focus-visible, .rx-dl:focus-visible, .rx-start:focus-visible,
.rx-more-link:focus-visible, .nav__toggle:focus-visible, .dotnav a:focus-visible{
  outline:3px solid var(--coral,#DD571C) !important; outline-offset:3px; border-radius:12px;
}
/* subtle press for keyboard users too */
.rx-scene:focus-visible, .rx-lang:focus-visible, .rx-node:focus-visible{ transform:translateY(-2px); }

/* a touch more life on the closing "trust" pills (were static) */
.rx-trust span{ transition:transform .2s var(--fa,cubic-bezier(.22,1,.36,1)), box-shadow .2s ease, border-color .2s ease; }
.rx-trust span:hover{ transform:translateY(-2px); border-color:var(--coral-soft,rgba(221, 87, 28,.4)); box-shadow:0 12px 22px -14px rgba(35,39,31,.4); }

/* gentle staggered rise for list-like groups as their section reveals in.
   Base = visible; the rise only plays once the parent gets `.in`. */
@keyframes rxRise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
/* `backwards` (not `both`): hidden during the stagger delay, then returns to
   normal styles after — so the row/scene :hover transform keeps working. */
.rx-scenes.reveal.in .rx-scene,
.rx-lb-card.reveal.in .rx-lb__row{ animation:rxRise .5s var(--fa,cubic-bezier(.22,1,.36,1)) backwards; }
.rx-scenes.reveal.in .rx-scene:nth-child(1){ animation-delay:.04s }
.rx-scenes.reveal.in .rx-scene:nth-child(2){ animation-delay:.10s }
.rx-scenes.reveal.in .rx-scene:nth-child(3){ animation-delay:.16s }
.rx-scenes.reveal.in .rx-scene:nth-child(4){ animation-delay:.22s }
.rx-lb-card.reveal.in .rx-lb__row:nth-child(1){ animation-delay:.03s }
.rx-lb-card.reveal.in .rx-lb__row:nth-child(2){ animation-delay:.08s }
.rx-lb-card.reveal.in .rx-lb__row:nth-child(3){ animation-delay:.13s }
.rx-lb-card.reveal.in .rx-lb__row:nth-child(4){ animation-delay:.18s }
.rx-lb-card.reveal.in .rx-lb__row:nth-child(5){ animation-delay:.23s }
.rx-lb-card.reveal.in .rx-lb__row:nth-child(6){ animation-delay:.28s }
