/* communication.css — Communication Assessment: warm, encouraging, kid-friendly.
   Teal + blue theme (distinct from the Learning Assessment's purple). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:    #F2563B;
  --teal-d:  #D9442B;
  --teal-l:  #FFF3C4;
  --blue:    #2563EB;
  --blue-l:  #DBEAFE;
  --coral:   #F97316;
  --coral-l: #FFEDD5;
  --green:   #10B981;
  --green-l: #D1FAE5;
  --yellow:  #FBBF24;
  --text:    #14181F;
  --muted:   #5A6472;
  --radius:  20px;
  --shadow:  0 8px 30px rgba(20,24,31,0.10);
}

body {
  font-family: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  background: linear-gradient(160deg, #FFFFFF 0%, #F2F7FC 55%, #F2F7FC 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.screen {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  padding: 24px 20px 40px;
  gap: 20px;
}
.screen.active { display: flex; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.top-bar { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.back-btn { border: none; background: #fff; border-radius: 14px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; box-shadow: var(--shadow); }

.brand { text-align: center; margin-top: 28px; }
.logo-mark { font-size: 64px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.brand h1 { font-size: 30px; margin-top: 6px; background: linear-gradient(90deg, var(--teal), var(--teal-d)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tagline { color: var(--muted); font-size: 14px; margin-top: 4px; font-weight: 600; }

.hero-text { text-align: center; }
.hero-text h2 { font-size: 26px; line-height: 1.25; }
.hero-text h2 em { color: var(--coral); font-style: normal; }
.hero-text p { color: var(--muted); margin-top: 10px; font-size: 15px; line-height: 1.65; }

.section-pills { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.pill { background: #fff; border-radius: 999px; padding: 9px 15px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); }

.btn-primary {
  border: none; background: linear-gradient(120deg, var(--teal), var(--teal-d));
  color: #fff; font-size: 18px; font-weight: 800; padding: 17px 24px;
  border-radius: var(--radius); cursor: pointer; width: 100%;
  box-shadow: 0 10px 26px rgba(13,148,136,0.38);
  transition: transform .12s;
}
.btn-primary:active { transform: scale(0.96); }
.fine-print { text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 600; }

.card { background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.card h2 { font-size: 21px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.optional { color: var(--muted); font-weight: 500; }
input, select {
  border: 2.5px solid #D6EFEA; border-radius: 14px; padding: 14px;
  font-size: 16px; font-family: inherit; background: #FAFEFD; width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--teal); }

.section-intro { text-align: center; margin: auto 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.section-emoji { font-size: 76px; animation: pop .5s cubic-bezier(.2,1.4,.5,1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.section-intro h2 { font-size: 27px; }
.section-intro p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 330px; }
.section-intro .btn-primary { margin-top: 8px; max-width: 300px; }
.sec-count { background: var(--teal-l); color: var(--teal-d); font-weight: 800; font-size: 13px; padding: 7px 16px; border-radius: 999px; }
.done-level { font-weight: 800; font-size: 18px; color: var(--teal-d); }

.progress-wrap { display: flex; align-items: center; gap: 12px; }
.progress-bar { flex: 1; height: 14px; background: #DCF2ED; border-radius: 999px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,.05); }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--teal-d)); border-radius: 999px; transition: width .4s cubic-bezier(.3,1,.4,1); }
.progress-count { font-size: 13px; font-weight: 800; color: var(--teal-d); white-space: nowrap; }

.q-card { background: #fff; border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; animation: fadeUp .35s ease; }
.q-kicker { font-size: 12.5px; font-weight: 800; color: var(--coral); text-transform: uppercase; letter-spacing: .05em; }
.q-card h2 { font-size: 20px; line-height: 1.45; }

.option-list { display: flex; flex-direction: column; gap: 11px; }
.option-btn {
  border: 2.5px solid #DCF2ED; background: #FAFEFD; border-radius: 16px;
  padding: 15px 16px; font-size: 15.5px; font-family: inherit; text-align: left;
  cursor: pointer; line-height: 1.4; transition: all .14s;
  display: flex; align-items: center; gap: 12px; font-weight: 600;
}
.option-btn:hover { border-color: var(--teal); transform: translateX(3px); }
.option-btn.selected { border-color: var(--teal); background: var(--teal-l); transform: scale(1.02); }
.option-btn:disabled { cursor: default; }
.option-emoji { font-size: 30px; line-height: 1; }

.likert-scale { display: flex; gap: 8px; justify-content: space-between; }
.likert-scale .option-btn { flex: 1; flex-direction: column; gap: 6px; text-align: center; padding: 14px 6px; font-size: 12.5px; }
.likert-scale .option-emoji { font-size: 32px; }

.junior .q-card h2 { font-size: 22px; }
.junior .option-btn { font-size: 17px; padding: 17px; }

.cheer {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
  background: #fff; color: var(--teal-d); font-weight: 800; font-size: 22px;
  padding: 18px 30px; border-radius: 999px; box-shadow: var(--shadow); z-index: 50;
  pointer-events: none;
}
.cheer.milestone { font-size: 26px; padding: 22px 34px; color: #fff; background: linear-gradient(120deg, var(--teal), var(--teal-d)); box-shadow: 0 12px 34px rgba(242,86,59,0.35); }
.cheer.show { animation: cheerPop 1s ease forwards; }
.cheer.milestone.show { animation: cheerPop 1.5s ease forwards; }
@keyframes cheerPop {
  0% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
  25% { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
  70% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-58%) scale(.9); opacity: 0; }
}

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* soft timer chip */
#timer-chip {
  /* #49 (her 4 Oct): "did not see timer during assessment". It WAS there and
     counting down, but at 81px wide with 14px text in the top-right corner — and
     at the start it sits behind the "Ready?" overlay, so the first thing a student
     sees has no clock at all. Bigger, higher contrast, and lifted above the
     overlay so it is visible from question one. */
  position: fixed; top: 10px; right: 12px; z-index: 1200;
  background: var(--ink, #14181F); color: #fff;
  font-weight: 800; font-size: 17px; letter-spacing: .01em;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(20,24,31,.45);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) { #timer-chip { font-size: 16px; padding: 8px 13px; top: 8px; right: 8px; } }
#timer-chip.warn { background: var(--coral-l); color: #9A3412; }
#timer-chip.danger { background: #FEE2E2; color: #B91C1C; }
#timer-chip.over { background: #B91C1C; color: #fff; }

/* 7 Oct 2026 — the timer was hidden again whenever the child came from a class page
   (/start/?class=N): the fixed class banner (z-index 9999; 59px tall on a phone, 42px on
   desktop) sat on top of the pill — fully covered at 375px, a sliver showing on desktop.
   With the banner present the pill now sits INSIDE the banner strip, at its right edge and
   above it. The strip is already fixed and solid, so the clock is always in view and never
   lies over the question, even when a small phone is scrolled down to the last option.
   app.js sets html.ls-banner + --ls-banner-h (the banner's real height, kept current) and
   html.ls-timer-on while the clock is on screen; the banner makes room for the pill only
   then. Every test has the banner (app.js gradeBanner, called when a test starts or resumes),
   so the rules above this block are only the pill's look, not where it sits. */
html.ls-banner #timer-chip { top: calc(var(--ls-banner-h, 42px) / 2); transform: translateY(-50%); z-index: 10000;
  box-shadow: none; border: 1.5px solid #FFD93B; padding: 6px 13px; }
html.ls-banner.ls-timer-on .grade-banner { padding-right: 128px !important; }   /* room for the pill at its widest */
/* wide screens: the same room on the left, so the banner words stay centred */
@media (min-width: 1000px) { html.ls-banner.ls-timer-on .grade-banner { padding-left: 128px !important; } }
@media (max-width: 560px) {
  html.ls-banner #timer-chip { font-size: 15px; padding: 5px 10px; }
  /* phone: room on the right only (108px = the pill at its widest, "⏱ +10:00", plus its 8px
     margin), and the banner words a touch smaller (14.4px → 13.4px) while they share the strip,
     so they keep their two lines at 375px for every class, 3 to 12 */
  html.ls-banner.ls-timer-on .grade-banner { padding-left: 10px !important; padding-right: 108px !important; font-size: .84rem !important; }
}

/* labs */
.lab-note { font-size: 13px; color: var(--muted); line-height: 1.55; }
.lab-para { font-size: 17px; line-height: 1.6; font-weight: 600; }
.btn-ghost {
  border: 2px solid var(--teal); background: transparent; color: var(--teal-d);
  font-size: 15px; font-weight: 700; padding: 12px 18px; border-radius: 14px;
  cursor: pointer; font-family: inherit; width: 100%;
}
.rec-row { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #B91C1C; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #EF4444; animation: recPulse 1s ease-in-out infinite; }
@keyframes recPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
#lab-cam, #lab-play { width: 100%; border-radius: 16px; background: #000; max-height: 340px; }

/* Junior picture layer — emoji scene above grade 3-5 questions */
.q-pic {
  font-size: 52px;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 6px;
  padding: 10px 0 2px;
  animation: picPop .35s ease;
}
@keyframes picPop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
body.junior .q-pic { font-size: 60px; }

/* ── GLOBAL BUG FIXES (team report, 2026-08-16) ─────────────────
   1/3/4/5: option tiles keep one height; the selected tick is absolutely
   positioned in reserved space so nothing reflows or shifts on selection.
   6: scrollbar gutter reserved so the card never shifts left/right.        */
html { scrollbar-gutter: stable; }
.screen { margin: 0 auto; }
.option-btn {
  position: relative;
  min-height: 62px;
  padding-right: 46px;          /* reserved slot for the tick */
  box-sizing: border-box;
}
.option-btn > .option-emoji { flex: 0 0 34px; width: 34px; text-align: center; }
.option-btn > .option-text   { flex: 1 1 auto; }
.option-tick {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 800; color: #10B981; line-height: 1;
  opacity: 0; transition: opacity .12s;
}
.option-btn.selected .option-tick { opacity: 1; }
/* compact 5-across likert row: tick sits in the corner, no reserved padding */
.likert-scale .option-btn { padding: 14px 6px; min-height: 96px; justify-content: center; }
.likert-scale .option-btn > .option-emoji { flex: 0 0 auto; width: auto; }
.likert-scale .option-tick { top: 5px; right: 6px; transform: none; font-size: 15px; }


/* ── vibe polish: info screen + brand (2026-08-23, consistency ruling) ── */
.top-bar{display:flex;align-items:center;gap:10px}
.tb-brand{margin-left:auto;font-family:'Bricolage Grotesque','Segoe UI',sans-serif;font-weight:800;font-size:14px;color:#14181F}
.tb-brand i{font-style:normal;color:#F2563B}
#screen-info .card{border:2.5px solid #14181F;border-radius:26px;box-shadow:8px 8px 0 #FFD93B;background:#fff}
.eyebrow-app{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#F2563B;margin:0 0 6px}
#screen-info .card .sub{font-size:13.5px;color:#5A6472;margin:4px 0 10px}
.hl2{background:#FFD93B;padding:0 .14em;border-radius:.14em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
#screen-info .btn-primary{border-radius:999px;background:#F2563B;box-shadow:0 12px 28px -10px rgba(242,86,59,.55);font-weight:800;max-width:340px;margin:0 auto;display:block;width:100%;transition:transform .15s}
#screen-info .btn-primary:hover{background:#D9442B;transform:translateY(-2px)}
#screen-info .card input:focus,#screen-info .card select:focus{border-color:#F2563B}
.trustrow{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;font-size:12.5px;font-weight:600;color:#5A6472;margin-top:2px}

/* back = marketing page; brand lockup consistent with site header */
.tb-brand{display:inline-flex;flex-direction:column;align-items:flex-end;gap:1px;line-height:1.05}
.tb-by{font:600 8.5px 'Inter','Segoe UI',sans-serif;color:#5A6472;display:inline-flex;align-items:center;gap:3px}
.tb-by img{display:block}

/* playful info form: class pills + live greeting */
.clsgrid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(52px,1fr));gap:8px;margin-top:8px}
.clspill{border:2px solid transparent;border-radius:14px;padding:10px 0;font-weight:800;font-size:15px;font-family:inherit;cursor:pointer;transition:all .12s}
.clspill:hover{transform:translateY(-2px)}
.clspill.sel{border-color:#14181F;box-shadow:4px 4px 0 #FFD93B;transform:scale(1.05)}
/* 28 Oct 2026 — the two adult levels (Graduate, Working professional): wider pills, each half the row */
.clspill-adult{grid-column:span 2;padding-left:6px;padding-right:6px}
.clspill-adult[data-v="14"]{grid-column:span 3}
select.vhide{display:none}
#screen-info .card .sub.pop{animation:subpop .5s}
@keyframes subpop{0%{transform:scale(.92)}55%{transform:scale(1.03)}100%{transform:scale(1)}}

/* ── compact registration: one-screen form ── */
#screen-info.screen{gap:10px}
#screen-info .card{padding:18px 18px 16px}
#screen-info .card h2{font-size:19px;margin:2px 0}
#screen-info .card .sub{font-size:12px;margin:2px 0 4px}
.eyebrow-app{font-size:10px;margin:0 0 2px}
#screen-info .card label{font-size:13px;margin:9px 0 0;display:block}
#screen-info .card input,#screen-info .card select{padding:9px 12px;font-size:14.5px;border-radius:11px}
.clsgrid2{gap:6px;margin-top:6px}
.clspill{padding:7px 0;font-size:14px;border-radius:11px}
.optrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.optrow input{flex:1 1 45%;min-width:130px}
#screen-info .btn-primary{margin-top:2px;padding:12px 18px;font-size:15px}
.trustrow{gap:10px;font-size:11px;margin-top:4px}

/* ── test screens: vibe + centering + motivation (2026-08-23) ── */
.grade-banner{background:#14181F!important;color:#FFD93B!important;box-shadow:0 2px 10px rgba(20,24,31,.28)!important}
.screen.active:has(.q-card),.screen.active:has(.options-grid){justify-content:center;min-height:calc(100dvh - 170px)}
@media(max-height:820px){
  #screen-info .card .sub{display:none}
  #screen-info .card{padding:14px 14px 12px}
  #screen-info .card label{margin:7px 0 0;font-size:12.5px}
  #screen-info .card input,#screen-info .card select{padding:8px 11px;font-size:14px}
  .clspill{padding:6px 0;font-size:13px}
  .optrow{margin-top:8px}
  #screen-info .btn-primary{padding:11px 16px}
  .trustrow{display:none}
}
.q-card,.screen:not(#screen-info):not(#screen-landing) .card{background:#fff;border:2.5px solid #14181F;border-radius:24px;box-shadow:8px 8px 0 #FFD93B;padding:24px}
.q-card h2{font-family:'Bricolage Grotesque','Segoe UI',sans-serif;letter-spacing:-.02em}
.option-btn,.options-grid button{border:2px solid #DDE6F1;border-radius:16px;background:#FFFDF7;transition:all .13s}
.option-btn:hover,.options-grid button:hover{border-color:#F2563B;transform:translateX(3px)}
.option-btn.selected,.options-grid button.selected{border-color:#F2563B;background:#FFF6F1;box-shadow:3px 3px 0 #FFD93B}
.progress-bar{background:#DDE6F1;border-radius:999px}
.progress-fill,[id$="-progress"]{background:linear-gradient(90deg,#F2563B,#FFD93B)!important;border-radius:999px}
.progress-count{font-weight:800;color:#D9442B}
.moto{text-align:center;font-size:12.5px;font-weight:700;color:#5A6472;margin-top:12px;transition:opacity .3s}

/* ── section intro: brand, greeting, vibe button, countdown ── */
.btn-primary{background:#F2563B!important;background-image:none!important;box-shadow:0 12px 26px -10px rgba(242,86,59,.5)!important}
.btn-primary:hover{background:#D9442B!important}
.si-brand{font-family:'Bricolage Grotesque','Segoe UI',sans-serif;font-weight:800;font-size:16px;color:#14181F}
.si-brand i{font-style:normal;color:#F2563B}
.si-brand .by{display:block;font:600 9px 'Inter','Segoe UI',sans-serif;color:#5A6472;letter-spacing:.02em;margin-top:1px}
.si-hi{font-weight:700;font-size:15px;color:#D9442B;margin-top:6px}

/* ── question number chip (old-design personality) ── */
.qnum{display:inline-block;font-family:'Bricolage Grotesque','Segoe UI',sans-serif;font-weight:800;font-size:14px;color:#8A6A00;background:#FFF3C4;border:2px solid #14181F;border-radius:999px;padding:3px 13px;margin-bottom:10px}

.si-test{font:700 12.5px 'Inter','Segoe UI',sans-serif;color:#5A6472;margin-top:2px}
.si-inst{margin:14px auto 8px;max-width:430px;background:#fff;border:2px solid #DDE6F1;border-radius:16px;padding:12px 16px;text-align:left;display:flex;flex-direction:column;gap:6px}
.si-inst b{font:800 11px 'Inter','Segoe UI',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#D9442B}
.si-inst span{font:600 13px 'Inter','Segoe UI',sans-serif;color:#5A6472}

/* ── question screen v2: hierarchy variation + test header (2026-08-24) ── */
.q-card,.card:has(.options-grid){background:transparent;border:0;box-shadow:none;padding:0}
.q-card h2{font-size:clamp(20px,2.6vw,26px);margin:10px 0 18px;line-height:1.25}
.qnum{margin-bottom:2px}
.option-btn,.options-grid button{background:#fff;border:2.5px solid #14181F;border-radius:18px;box-shadow:4px 4px 0 #DDE6F1;padding:14px 16px;font-weight:600;text-align:left}
.option-btn:hover,.options-grid button:hover{box-shadow:4px 4px 0 #FFD93B;transform:translateY(-2px);border-color:#14181F}
.option-btn.selected,.options-grid button.selected{border-color:#F2563B;background:#FFF6F1;box-shadow:4px 4px 0 #FFD93B}
.option-list{counter-reset:opt}
.option-btn{counter-increment:opt;position:relative}
.option-btn:not(:has(.option-emoji)){padding-left:52px}
.option-btn:not(:has(.option-emoji))::before{content:counter(opt,upper-alpha);position:absolute;left:12px;top:50%;transform:translateY(-50%);width:26px;height:26px;display:flex;align-items:center;justify-content:center;font:800 13px 'Bricolage Grotesque','Segoe UI',sans-serif;color:#8A6A00;background:#FFF3C4;border:2px solid #14181F;border-radius:50%}
.test-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}
.th-brand{font-family:'Bricolage Grotesque','Segoe UI',sans-serif;font-weight:800;font-size:14px;color:#14181F}
.th-brand i{font-style:normal;color:#F2563B}
.th-meta{font:700 12px 'Inter','Segoe UI',sans-serif;color:#5A6472}
.th-inst{flex-basis:100%;text-align:center;font:600 11.5px 'Inter','Segoe UI',sans-serif;color:#8A6A00;background:#FFF3C4;border-radius:999px;padding:4px 12px;margin:2px 0 0}

/* ── header card + calm green progress (2026-08-24) ── */
.test-head{background:#fff;border:2px solid #DDE6F1;border-radius:18px;padding:12px 14px 12px;margin-bottom:16px}
.test-head .progress-wrap{flex-basis:100%;width:100%;margin:8px 0 0;display:flex;align-items:center;gap:10px}
.th-inst{margin-top:6px}
.progress-fill,[id$="-progress"]{background:#188A5E!important;transition:width .35s ease}
.progress-count{color:#188A5E}

/* ── header v3: brand lockup, longest progress; instruction with question ── */
.th-brand{display:inline-flex;flex-direction:column;line-height:1.05;font-size:15px}
.th-by{font:600 8.5px 'Inter','Segoe UI',sans-serif;color:#5A6472;letter-spacing:.02em;margin-top:1px}
.th-meta{font:700 11.5px 'Inter','Segoe UI',sans-serif;color:#5A6472;text-align:right}
.th-inst{display:none}
.test-head .progress-wrap{margin-top:10px}
.test-head .progress-bar{flex:1}
.q-inst{display:inline-block;font:700 11px 'Inter','Segoe UI',sans-serif;color:#0F6B4F;background:#DFF3E9;border:2px solid #14181F;border-radius:999px;padding:3px 11px;margin:0 0 10px 8px;vertical-align:middle}
.moto{margin:16px 0 2px}
@media(max-width:520px){.q-inst{margin-left:0;display:block;width:max-content}}

/* ── declutter: quiet question label, no page instruction/moto (they live in the ready overlay) ── */
.qnum{background:none!important;border:0!important;padding:0!important;box-shadow:none!important;margin:0 0 6px!important;font:800 12px 'Inter','Segoe UI',sans-serif!important;letter-spacing:.09em;text-transform:uppercase;color:#D9442B!important}
.q-inst,.moto{display:none!important}

/* ── cheers v2 (big, slower, emoji), neon select, clearer back ── */
.cheer{font-size:30px!important;padding:12px 22px!important}
.cheer.show{animation-duration:1.6s!important}
.cheer.milestone{font-size:22px!important}
#cheer{font-size:22px}
.option-btn.selected,.options-grid button.selected{animation:optpop .35s ease;box-shadow:0 0 0 3px #FFD93B,0 0 20px rgba(242,86,59,.45)!important}
@keyframes optpop{0%{transform:scale(.96)}55%{transform:scale(1.04)}100%{transform:scale(1)}}
.test-head .back-btn{width:34px;height:34px;border-radius:50%;border:2px solid #DDE6F1;background:#fff;font-size:16px;cursor:pointer}
.test-head .back-btn:hover{border-color:#F2563B;color:#D9442B}

/* ── header meta as badges: name chip + class·assessment chip ── */
.th-meta{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end;text-align:right}
.th-name{background:#FFF3C4;color:#8A6A00;border:2px solid #14181F;border-radius:999px;padding:3px 11px;font:800 11.5px 'Inter','Segoe UI',sans-serif;white-space:nowrap}
.th-test{border:2px solid #14181F;border-radius:999px;padding:3px 11px;font:800 11.5px 'Inter','Segoe UI',sans-serif;white-space:nowrap}

.th-assess{background:#fff;color:#14181F;border:2px solid #14181F;border-radius:999px;padding:3px 11px;font:800 11.5px 'Inter','Segoe UI',sans-serif;white-space:nowrap}

/* ── "your test is waiting" offer (7 Oct 2026) ─────────────────────────────
   A saved, unfinished test is offered back on EVERY way into this page, before
   anything can replace it (app.js showResumeOffer). It is its own layer — like the
   "Ready?" screen — because the marketing Start links skip the landing screen
   where the old box lived. Same look as the Ready screen: white, brand lockup,
   ink-bordered card with the yellow shadow. */
#resume-offer{position:fixed;inset:0;z-index:99999;background:rgba(255,255,255,.97);display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto}
#resume-offer .ro-card{width:100%;max-width:400px;background:#fff;border:2.5px solid #14181F;border-radius:22px;box-shadow:8px 8px 0 #FFD93B;padding:22px 20px 18px;text-align:center}
#resume-offer .ro-brand{font-family:'Bricolage Grotesque','Segoe UI',sans-serif;font-weight:800;font-size:16px;color:#14181F;line-height:1.1}
#resume-offer .ro-brand i{font-style:normal;color:#F2563B}
#resume-offer .ro-brand span{display:block;font:600 9px 'Inter','Segoe UI',sans-serif;color:#5A6472;margin-top:2px}
#resume-offer .ro-emoji{font-size:40px;line-height:1;margin:14px 0 4px}
#resume-offer h2{font-size:22px;line-height:1.2;color:#14181F;margin:0 0 6px;overflow-wrap:anywhere}
#resume-offer .ro-line{font:700 14px 'Inter','Segoe UI',sans-serif;color:#5A6472;margin:0 0 16px}
#resume-offer .btn-primary{border-radius:999px;font-size:17px;padding:15px 20px}
#resume-offer .ro-again{display:block;width:100%;margin-top:10px;background:#fff;border:2.5px solid #14181F;border-radius:999px;color:#14181F;font:800 15px 'Inter','Segoe UI',sans-serif;padding:12px 20px;cursor:pointer}
#resume-offer .ro-again:hover{background:#FFF3C4}
#resume-offer .ro-fine{font:600 12px 'Inter','Segoe UI',sans-serif;color:#5A6472;margin:12px 0 0;line-height:1.45}

/* ══ G82 — the question card (her rulings of 11 Oct 2026) ══════════════════════════════════════════════
   ONE block, appended; no rule above is edited. The drag, the slow fly, the rise, the refusal and the base
   look of the card (.qc-deck, .qc-under, .qc-card, .qc-next, .qc-sel, .qc-kick, the stamps, the toast) live
   in qcard.css — shared by every live assessment, loaded AFTER this file. This block only fits that card to
   this screen. Everything that was on the question screen stays: the header card, "Question N of M", the
   area line, the question, the answers and their letters, the picture and "Hear it" for Classes 3-5.     */

/* the card: its padding back (the "question screen v2" rule above took it away when the card was invisible);
   the old fade-up on .q-card must not fight the card's own rise */
.qc-deck .q-card{padding:18px 14px 16px}
.qc-deck .q-card:not(.qc-shake){animation:none}
@media(min-width:560px){.qc-deck .q-card{padding:22px 20px 20px}}
/* a card that follows a card moves by itself: the header and the pile behind it stay still. app.js sets
   .qc-still for those moves only — after a part intro or a reload the screen fades in exactly as before */
.screen.qc-still.active{animation:none}

/* the small label in the dark shade of the card's colour, so it reads on the fill (the area line gets the
   same shade from .qc-kick in qcard.css) */
.qc-card .qnum{color:var(--qc-deep,#D9442B)!important}

/* answers stay white on the fill; their offset shadow in neutral ink, so it sits on any of the four colours */
.qc-card .option-btn{box-shadow:4px 4px 0 rgba(20,24,31,.13)}
.qc-card .option-btn:hover{box-shadow:4px 4px 0 #FFD93B}

/* the chosen answer (G82.9): solid dark fill + white text + yellow edge are .qc-sel in qcard.css. Here the
   letter turns into a tick, the self-rating tick turns white, and the old glow and 2% swell of .selected
   give way to the solid look. The little pop plays on a fresh tap only, not when a card comes back. */
.qc-card .option-btn.qc-sel{box-shadow:4px 4px 0 #FFD93B!important;transform:none}
.qc-card .option-btn.qc-sel:not(:has(.option-emoji))::before{content:"\2713";background:#FFFFFF;color:var(--qc-deep,#14181F);font-size:15px}
.qc-card .option-btn.qc-sel .option-tick{color:#FFFFFF;opacity:1}
.qc-card .option-btn.selected{animation:none}
.qc-card .option-btn.selected.qc-pop{animation:optpop .35s ease}

/* Next: bigger for small hands in Classes 3-5 */
.junior .qc-card .q-next{font-size:18px;padding:14px 34px}
/* Next has ONE place: the end of the card, after the answers — grey and awake alike, as in the demo she approved
   (G82.10: "on the card from the start … so nothing jumps when it wakes up"). qcard.css keeps Next stuck to the
   bottom of the screen on a tall card (position:sticky). On this test's tall cards that put Next OVER the answers
   and over "Hear it": the words under it could not be read, and a tap aimed at another answer could land on Next
   and move on (checker's finding, 12 Oct). In its own place nothing ever lies over an answer, and it does not
   move when it wakes. The child reaches it at the end of the card — or swipes, or uses the arrow by the bar. */
.qc-card .q-next{position:static}
/* after a move made with the keyboard the focus is put on the question (app.js, cardShown) — the same ring as
   Next and the two arrows */
.qc-card h2:focus{outline:none}
.qc-card h2:focus-visible{outline:3px solid #2B6CB8;outline-offset:4px;border-radius:6px}

/* the forward arrow: the back arrow's twin; dim until this question has an answer */
.test-head .q-fwd:disabled{opacity:.35;cursor:default}
.test-head .q-fwd:disabled:hover{border-color:#DDE6F1;color:inherit}
.test-head .back-btn:focus-visible{outline:3px solid #2B6CB8;outline-offset:2px}

@media (prefers-reduced-motion:reduce){
  .qc-card .option-btn.selected.qc-pop{animation:none}
}

/* ══ B60 (14 Nov 2026) — taking the test as the Ideal Career Test does since B57 ═══════════════════════════════════════
   Her notes on the Ideal Career Test (12 Nov) and her "yes to all :)" for Life Skills (14 Nov). ONE block, appended.
   app.js (window.go, setProgress, showSectionIntro) and index.html (the Ready card) do the rest.                       */

/* "Dont write on top section name as it gives away algorithm" + "a bar and % not sectional but overall test": the top
   reads "Part 2 of 4", the counter "23%" (the bar was always the whole test's); the card carries no area line and no
   "Question n of M" (app.js empties and hides both) */
.part-label{flex:none;font:800 12.5px 'Inter','Segoe UI',sans-serif;color:#14181F;white-space:nowrap}
.progress-count{min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
.qc-card .q-kicker[hidden],.qc-card .qnum[hidden],.q-card .q-kicker[hidden],.q-card .qnum[hidden]{display:none!important}
@media(max-width:360px){.part-label{font-size:11.5px}.test-head .progress-wrap{gap:7px}}

/* "phases can be on popup instead of a complete page": the break between parts is a card over the question just
   answered, which stays under it, dimmed and out of reach (app.js puts .under and inert on it) */
.screen.under{display:flex;opacity:.35;filter:blur(1.5px);pointer-events:none;user-select:none;animation:none}
.screen.under:has(.q-card){justify-content:center;min-height:calc(100dvh - 170px)}
.screen.under .qc-card{transition:none}
#screen-section.active{position:fixed!important;inset:0;z-index:60;   /* !important: the element carries style="position:relative" */
  max-width:none;min-height:0;margin:0;padding:calc(var(--ls-banner-h,0px) + 18px) 16px 56px;
  background:rgba(20,24,31,.55);align-items:center;justify-content:center;overflow-y:auto;animation:none}
#screen-section.active .section-intro{flex:none;width:100%;max-width:420px;margin:auto;background:#fff;border:2.5px solid #14181F;
  border-radius:24px;box-shadow:8px 8px 0 #FFD93B;padding:22px 20px 22px;gap:10px;animation:fadeUp .35s ease}
#screen-section .section-emoji{font-size:52px;line-height:1}
#screen-section .section-intro h2{font-size:26px}
#screen-section .section-intro p{font-size:15.5px}
#screen-section .section-intro .btn-primary{margin-top:6px}
#screen-section .sec-count[hidden]{display:none}
/* the popup says the part, the line and "Let's go" — the greeting and "How it works" are on the Ready card already */
#screen-section .si-hi,#screen-section .si-inst{display:none}
#sec-celebrate{margin:4px 0 0;font:800 13px 'Inter','Segoe UI',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#0F6B4F}
#sec-title:focus{outline:none}
#sec-title:focus-visible{outline:3px solid #2B6CB8;outline-offset:4px;border-radius:6px}
#screen-section.active .rp-line{position:fixed;left:0;right:0;bottom:6px}
#screen-section.active .rp-line a{color:#FFFFFF}
/* before question 1 the Ready card (index.html) opens over this screen by itself: the break card and the second dim
   wait under it (app.js .si-first; shown after all if the Ready card has not come in 1.5 s) */
#screen-section.active.si-first{background:transparent}
#screen-section.active.si-first .section-intro,#screen-section.active.si-first .rp-line{visibility:hidden;animation:none}
/* the celebrations show over the popup: confetti (pointer-events:none) and the cheer / milestone */
#confetti{z-index:65}
.cheer{z-index:70}
/* a milestone that falls on a part's last answer pops above the break card, not over its words */
#screen-section.active ~ #cheer{top:calc(var(--ls-banner-h,0px) + 64px)}
@media (prefers-reduced-motion:reduce){
  #screen-section.active .section-intro{animation:none}
  .screen.under{filter:none}
}

/* "Logins on popup": the details form reads as a sheet over the test — Life Skills' own blue behind it, the form card on top */
#screen-info.active{max-width:none;background:linear-gradient(160deg,#0C3B5E 0%,#15709F 62%,#2AA7DA 100%);align-items:center}
#screen-info.active > .top-bar,#screen-info.active > .card,#screen-info.active > .trustrow,#screen-info.active > .fine-print{width:100%;max-width:440px}
#screen-info.active > .top-bar{background:#FFFFFF;border-radius:18px;padding:8px 12px}
#screen-info.active > .top-bar .back-btn{box-shadow:none;border:2px solid #DDE6F1}
#screen-info.active > .card{box-shadow:0 30px 60px -20px rgba(0,0,0,.55),8px 8px 0 #FFD93B}
#screen-info.active .trustrow,#screen-info.active .fine-print{color:#E6F0FA}
#screen-info.active > .rp-line{max-width:none}   /* it spans the screen (position:absolute, left:0; right:0) */
#screen-info.active .rp-line a{color:#E6F0FA}
