/* /learn/: Kuru, the maths class (and the Chrome side panel). Built on base.css tokens. Mobile first; the side panel is
   400 px wide. Tactile, warm and calm: one question at a time, the picture first, big keys a small hand can find. */

@font-face { font-family: "Kuru Tamil"; src: url(fonts/baloo-thambi-2-tamil.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC; }

.learn {
  --font-display: "Baloo 2", "Kuru Tamil", "Nunito Sans", "Naalai Rupee", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Kuru Tamil", "Naalai Rupee", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lx-g: clamp(14px, 4vw, 32px);
  --lx-line: rgba(30, 42, 90, .12);
  --lx-white: #FFFFFF;
  --lx-edge: #E2D2B6;
  --lx-sun-edge: #DE9C12;
  --lx-blue-edge: #13308F;
  --lx-ok: #23784A; --lx-ok-bg: #E4F6EB; --lx-ok-edge: #94D1AA;
  --lx-no: #A3362E; --lx-no-bg: #FFF0ED; --lx-no-edge: #F2C4BD;
  --lx-hint: #FFF2BF; --lx-hint-edge: #F0D375;
  --lx-warm: #8A4A06;
  font-family: var(--font-body);
  caret-color: var(--blue);
}
.learn ::selection { background: var(--lemon); color: var(--ink); }
.learn :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.learn button { -webkit-tap-highlight-color: transparent; }
.lx.is-ta { --lx-ta: 1; }
.lx-main { display: block; outline: none; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); }
.lx-noscript { max-width: 34ch; margin: 18vh auto; font: 700 20px/1.4 var(--font-display); text-align: center; }
.lx-boot { display: flex; justify-content: center; gap: 10px; padding-top: 30vh; }
.lx-boot span { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); animation: lx-boot 1s var(--ease-swap) infinite alternate; }
.lx-boot span:nth-child(2) { animation-delay: .15s; background: var(--sky); } .lx-boot span:nth-child(3) { animation-delay: .3s; background: var(--mint); }
@keyframes lx-boot { to { transform: translateY(-10px); } }

/* ---------- top bar */
.lx-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px var(--lx-g);
  background: var(--paper); box-shadow: 0 1px 0 var(--lx-line), 0 8px 18px -16px rgba(90, 42, 0, .5); }
.lx-brand { display: inline-flex; align-items: baseline; gap: 8px; margin-right: auto; color: var(--blue); text-decoration: none; white-space: nowrap; }
.lx-brand__k { font-size: 32px; line-height: 1; color: var(--blue); }
.lx-brand__by { font: 700 13px/1 var(--font-body); color: var(--ink-2); }
.lx-brand__by .brandword { font-size: 15px; color: var(--ink); }
.lx-lang { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--lx-line); }
.lx-lang button { min-height: 38px; min-width: 44px; padding: 0 12px; border: 0; border-radius: var(--pill); background: transparent; font: 800 15px/1 var(--font-body); color: var(--ink-2); }
.lx-lang button[lang="ta"] { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.lx-lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(90, 42, 0, .25), 0 4px 10px -6px rgba(90, 42, 0, .35); }
.lx-me { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 12px 4px 4px; border: 0; border-radius: var(--pill); background: var(--card); color: var(--ink);
  box-shadow: 0 1px 2px rgba(90, 42, 0, .22), inset 0 0 0 1px var(--lx-line); font: 800 15px/1 var(--font-body); }
.lx-me img { width: 40px; height: 40px; border-radius: 50%; }
.lx-me svg { width: 20px; height: 20px; color: var(--ink-2); }
.lx-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--card); color: var(--ink);
  box-shadow: 0 1px 2px rgba(90, 42, 0, .22), inset 0 0 0 1px var(--lx-line); }
.lx-icon svg { width: 22px; height: 22px; }
.lx-count { display: inline-flex; align-items: center; gap: 4px; flex: none; min-width: 64px; justify-content: flex-end; font: 800 20px/1 var(--font-display); }
.lx-count__i svg { width: 26px; height: 26px; display: block; }
.lx-count__n.is-pop { animation: lx-pop .5s var(--ease-settle); }
@keyframes lx-pop { 40% { transform: scale(1.35); } }
@media (max-width: 520px) { .lx-me__n { display: none; } .lx-me { padding-right: 8px; } .lx-brand__by { display: none; } }
@media (max-width: 360px) { .lx-lang button { padding: 0 9px; font-size: 14px; } }

/* ---------- progress dots: 10 seeds that turn into stars */
.lx-dots { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 6px; padding: 0; margin: 0; list-style: none; }
.lx-dot { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--paper-deep); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .10); }
.lx-dot > span { width: 30%; aspect-ratio: 1; border-radius: 50%; background: rgba(30, 42, 90, .18); }
.lx-dot svg { width: 78%; height: 78%; }
.lx-dot.is-gold { background: var(--lemon); box-shadow: inset 0 0 0 2px var(--lx-sun-edge); }
.lx-dot.is-star { background: #FFF7DC; box-shadow: inset 0 0 0 2px var(--lemon); }
.lx-dot.is-star svg { width: 62%; height: 62%; }
.lx-dot.is-leaf { background: var(--mint); box-shadow: inset 0 0 0 2px #8ACB9E; }
.lx-dot.is-now { background: var(--card); box-shadow: inset 0 0 0 3px var(--blue), 0 0 0 4px rgba(35, 70, 198, .14); }
.lx-dot.is-now > span { background: var(--blue); }
.lx-dots--bar { flex: 1; max-width: 420px; margin-inline: auto; gap: 5px; }

/* ---------- keys: tactile buttons with a paper edge that presses down */
.lx-key { --edge: var(--lx-sun-edge); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 28px; border: 0; border-radius: 20px;
  background: var(--sun); color: var(--ink); font: 800 20px/1.1 var(--font-display); text-align: center; text-decoration: none;
  box-shadow: 0 5px 0 var(--edge), 0 16px 26px -16px rgba(90, 42, 0, .55); transition: transform .12s var(--ease-settle), box-shadow .12s var(--ease-settle), background-color .2s; }
.lx-key svg { width: 22px; height: 22px; flex: none; }
.lx-key:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--edge), 0 20px 30px -16px rgba(90, 42, 0, .55); }
.lx-key:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 8px 14px -10px rgba(90, 42, 0, .45); }
.lx-key--blue { --edge: var(--lx-blue-edge); background: var(--blue); color: #fff; }
.lx-key--ghost { --edge: var(--lx-edge); background: var(--card); }
.lx-link { min-height: 44px; padding: 6px 10px; border: 0; background: none; color: var(--blue); font: 800 16px/1.3 var(--font-body); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.lx-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border: 0; border-radius: var(--pill); font: 800 17px/1.15 var(--font-body);
  background: var(--card); color: var(--ink); box-shadow: 0 3px 0 var(--lx-edge), inset 0 0 0 2px rgba(30, 42, 90, .08); transition: transform .12s var(--ease-settle), box-shadow .12s; }
.lx-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lx-edge), inset 0 0 0 2px rgba(30, 42, 90, .08); }
.lx-pill--hint { background: var(--lx-hint); box-shadow: 0 3px 0 var(--lx-hint-edge), inset 0 0 0 2px rgba(138, 74, 6, .14); color: #5A3A06; }
.lx-pill[aria-disabled="true"] { opacity: .62; cursor: default; transform: none; }
.lx-pips { display: inline-flex; gap: 4px; }
.lx-pips i { width: 10px; height: 10px; border-radius: 50%; background: rgba(90, 58, 6, .18); box-shadow: inset 0 0 0 1.5px rgba(90, 58, 6, .5); }
.lx-pips i.is-on { background: var(--sun-deep); box-shadow: none; }

/* ---------- Kuru's stage: a soft paper arch he stands in. Size comes from CSS only; the art can change shape. */
.lx-stage { position: relative; width: min(250px, 58vw); aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; background: var(--paper); overflow: hidden; flex: none;
  box-shadow: inset 0 0 0 6px var(--card), 0 0 0 2px rgba(30, 42, 90, .08), 0 22px 40px -24px rgba(90, 42, 0, .55); }
.lx-stage::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 5%; height: 7%; border-radius: 50%; background: rgba(90, 42, 0, .10); z-index: 0; }
.lx-stage__k { position: absolute; inset: 7% 5% 4%; z-index: 1; }
.kuru { position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: var(--k-ar, .88); max-height: 100%; }
.kuru__still { position: absolute; left: 50%; bottom: 0; width: var(--k-w, 100%); height: auto; max-height: 100%; transform: translateX(-50%); object-fit: contain; object-position: 50% 100%; }
.kuru--frames .kuru__still, .kuru__clip { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; max-height: none; transform: none; object-fit: contain; object-position: 50% 100%; }
.kuru__clip { opacity: 0; transition: opacity .09s linear; }
.kuru__clip.is-on { opacity: 1; }
.kuru--clip .kuru__still { opacity: 0; transition: opacity .09s linear .05s; }
.kuru--swap .kuru__still { animation: lx-hop .34s var(--ease-settle); transform-origin: 50% 100%; }
@keyframes lx-hop { 0% { translate: 0 3%; scale: .97 1.02; } 60% { translate: 0 -2%; } }
.lx-stage--sm { width: 92px; border-radius: 999px 999px 20px 20px; box-shadow: inset 0 0 0 4px var(--card), 0 0 0 2px rgba(30, 42, 90, .08), 0 12px 22px -14px rgba(90, 42, 0, .5); }
.lx-stage--done { width: min(210px, 50vw); }

/* speech bubbles */
.lx-bubble { position: relative; margin: 0; padding: 14px 18px; border-radius: 22px; background: var(--card); color: var(--ink); font: 700 19px/1.35 var(--font-display);
  box-shadow: 0 1px 2px rgba(90, 42, 0, .22), 0 14px 26px -18px rgba(90, 42, 0, .45), inset 0 0 0 2px rgba(30, 42, 90, .07); text-wrap: pretty; }
.lx-bubble::before { content: ""; position: absolute; width: 22px; height: 22px; background: inherit; border-radius: 4px; transform: rotate(45deg); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .07); clip-path: polygon(0 100%, 0 0, 100% 100%); }
.lx-bubble.is-new { animation: lx-say .38s var(--ease-settle); }
@keyframes lx-say { from { opacity: .4; transform: translateY(4px) scale(.98); } }

/* ---------- the day */
.lx-today { padding: clamp(20px, 4vw, 30px); }
.lx-today__sub { margin-top: 6px; color: var(--ink-2); font-size: 16.5px; }
.lx-today__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lx-chip-std { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--pill); background: var(--sky); color: var(--blue-deep); font: 800 15px/1 var(--font-body); }
.learn [tabindex="-1"]:focus { outline: none; }
.lx-stat { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 16.5px/1.2 var(--font-body); color: var(--ink-2); }
.lx-stat__i svg { width: 30px; height: 30px; display: block; }
.lx-stat__n { font: 800 26px/1 var(--font-display); color: var(--ink); }
.lx-stat__best { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: var(--pill); background: var(--paper-deep); font-size: 13.5px; font-weight: 800; color: var(--lx-warm); }
.lx-today__go { display: grid; gap: 12px; justify-items: center; }
.lx-today__go .lx-key { width: 100%; }
/* ---------- a question */
.lx-q { display: grid; grid-template-areas: "kuru" "main" "hints"; gap: 14px; max-width: 760px; margin: 0 auto; padding: 14px var(--lx-g) 48px; }
.lx-q__side { display: contents; }
.lx-q__kuru { grid-area: kuru; display: flex; align-items: flex-end; gap: 12px; }
.lx-bubble--q { flex: 1; font-size: 17.5px; padding: 12px 16px; margin-bottom: 16px; }
.lx-bubble--q::before { left: -9px; bottom: 18px; }
.lx-q__main { grid-area: main; min-width: 0; }
.lx-card { padding: clamp(14px, 3.4vw, 26px); }
.lx-visual { margin: 0; padding: clamp(8px, 2vw, 14px); border-radius: 22px; background: var(--lx-white); box-shadow: inset 0 0 0 2px var(--lx-line); display: grid; place-items: center; }
.lx-visual .v { width: 100%; height: auto; max-height: min(44vh, 360px); }
.lx-q__h { margin: 18px 2px 4px; font: 700 clamp(22px, 5.4vw, 30px)/1.28 var(--font-display); letter-spacing: -.005em; color: var(--ink); text-wrap: pretty; }
.lx-q__h:focus { outline: none; }
.lx-q__h:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.lx-answer { margin-top: 14px; }
.lx-answer__h { margin: 0 2px 10px; font: 700 15px/1.2 var(--font-body); color: var(--ink-2); }
.lx-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lx-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lx-choice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 92px; padding: 10px 8px 12px; border: 0; border-radius: 22px;
  background: var(--lx-white); color: var(--ink); box-shadow: 0 5px 0 var(--lx-edge), 0 14px 24px -18px rgba(90, 42, 0, .5), inset 0 0 0 2px rgba(30, 42, 90, .08);
  transition: transform .12s var(--ease-settle), box-shadow .12s var(--ease-settle), background-color .2s; touch-action: manipulation; }
.lx-choice:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--lx-edge), 0 18px 28px -18px rgba(90, 42, 0, .5), inset 0 0 0 2px rgba(35, 70, 198, .25); }
.lx-choice:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lx-edge), inset 0 0 0 2px rgba(35, 70, 198, .3); }
.lx-choice__n { font: 800 clamp(32px, 9vw, 42px)/1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lx-choice__n.is-long { font-size: clamp(24px, 6.4vw, 30px); }
.lx-choice__u { font: 700 14.5px/1.15 var(--font-body); color: var(--ink-2); }
.lx-choice__t { font: 800 18px/1.15 var(--font-display); }
.lx-choice__art { display: block; width: 100%; max-width: 132px; }
.lx-choice__art .v { width: 100%; height: auto; max-height: 92px; }
.lx-choices--art .lx-choice { min-height: 120px; }
/* the tick or cross sits on the corner, clear of a long two-line label */
.lx-choice__mark { position: absolute; top: -9px; right: -7px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 3px var(--card); }
.lx-choice__mark svg { width: 18px; height: 18px; }
.lx-choice.is-wrong { background: var(--lx-no-bg); color: var(--lx-no); box-shadow: 0 2px 0 var(--lx-no-edge), inset 0 0 0 2px var(--lx-no-edge); transform: translateY(3px); cursor: default; }
.lx-choice.is-wrong .lx-choice__u { color: var(--lx-no); }
.lx-choice.is-wrong .lx-choice__mark { background: var(--card); color: var(--lx-no); box-shadow: inset 0 0 0 2px var(--lx-no-edge), 0 0 0 3px var(--card); }
.lx-choice.is-wrong { animation: lx-no .36s var(--ease-swap); }
@keyframes lx-no { 25% { translate: -5px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }
.lx-choice.is-right { background: var(--lx-ok-bg); color: var(--lx-ok); box-shadow: 0 5px 0 var(--lx-ok-edge), 0 0 0 4px rgba(91, 179, 108, .22), inset 0 0 0 2px var(--lx-ok-edge); animation: lx-yes .5s var(--ease-settle); }
.lx-choice.is-right .lx-choice__u { color: var(--lx-ok); }
.lx-choice.is-right .lx-choice__mark { background: var(--leaf); color: #fff; }
@keyframes lx-yes { 40% { transform: scale(1.06); } }
.lx-answer.is-locked .lx-choice:not(.is-right) { opacity: .55; }
.lx-answer.is-locked .lx-choice { cursor: default; }
.lx-answer.is-locked .lx-choice:hover { transform: none; }

/* the number pad */
.lx-pad { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }
.lx-pad__show { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 76px; margin: 0; padding: 0 18px; border-radius: 20px; background: var(--lx-white);
  box-shadow: inset 0 0 0 3px var(--blue), 0 10px 20px -16px rgba(30, 42, 90, .5); font: 800 44px/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.lx-pad__pre { color: var(--ink-2); font-size: .8em; }
.lx-pad__u { margin-left: 6px; font: 700 18px/1 var(--font-body); color: var(--ink-2); }
.lx-pad__caret { width: 3px; height: 1em; border-radius: 2px; background: var(--blue); animation: lx-caret 1s steps(1) infinite; }
@keyframes lx-caret { 50% { opacity: 0; } }
.lx-pad__show.is-empty .lx-pad__v::before { content: ""; }
.lx-pad__show.is-shake { animation: lx-no .36s var(--ease-swap); box-shadow: inset 0 0 0 3px var(--lx-no-edge); }
.lx-pad__show.is-right { box-shadow: inset 0 0 0 3px var(--leaf), 0 0 0 5px rgba(91, 179, 108, .2); color: var(--lx-ok); }
.lx-pad__show.is-shown { box-shadow: inset 0 0 0 3px var(--lx-hint-edge); background: var(--lx-hint); }
.lx-pad__show.is-right .lx-pad__caret, .lx-pad__show.is-shown .lx-pad__caret { display: none; }
.lx-pad__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lx-padkey { display: grid; place-items: center; min-height: 60px; border: 0; border-radius: 18px; background: var(--lx-white); color: var(--ink); font: 800 28px/1 var(--font-display);
  box-shadow: 0 4px 0 var(--lx-edge), inset 0 0 0 2px rgba(30, 42, 90, .07); transition: transform .1s var(--ease-settle), box-shadow .1s; touch-action: manipulation; }
.lx-padkey:active, .lx-padkey.is-hit { transform: translateY(3px); box-shadow: 0 1px 0 var(--lx-edge), inset 0 0 0 2px rgba(35, 70, 198, .3); }
.lx-padkey--del { color: var(--ink-2); }
.lx-padkey svg { width: 30px; height: 26px; }
.lx-pad__check { width: 100%; }
.lx-answer.is-locked .lx-pad__keys, .lx-answer.is-locked .lx-pad__check { display: none; }

/* hints and help */
.lx-help { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.lx-hints { grid-area: hints; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lx-hint { position: relative; padding: 14px 18px 15px; border-radius: 18px; background: var(--lx-hint); box-shadow: 0 1px 2px rgba(90, 42, 0, .2), 0 10px 20px -16px rgba(90, 42, 0, .5); color: #3D2A06; }
.lx-hint__k { font: 800 13.5px/1.2 var(--font-body); color: var(--lx-warm); letter-spacing: .02em; }
.lx-hint__t { margin-top: 3px; font: 600 18px/1.45 var(--font-body); color: #2E2105; }
.lx-hint.is-latest { box-shadow: 0 0 0 3px var(--sun), 0 12px 22px -14px rgba(90, 42, 0, .55); animation: lx-slip .42s var(--ease-settle); }
@keyframes lx-slip { from { opacity: 0; transform: translateY(-8px) rotate(-1deg); } }

/* results */
.lx-result { margin-top: 20px; padding: 18px 18px 20px; border-radius: 22px; animation: lx-slip .42s var(--ease-settle); }
.lx-result--right { background: var(--lx-ok-bg); box-shadow: inset 0 0 0 2px var(--lx-ok-edge); }
.lx-result--how { background: var(--lx-hint); box-shadow: inset 0 0 0 2px var(--lx-hint-edge); }
.lx-result__h { display: flex; align-items: center; gap: 10px; font: 800 22px/1.25 var(--font-display); color: var(--lx-ok); }
.lx-result--how .lx-result__h { color: #5A3A06; }
.lx-result__tick { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--leaf); color: #fff; }
.lx-result__tick svg { width: 20px; height: 20px; }
.lx-result__bulb svg { width: 34px; height: 34px; display: block; }
.lx-result__stars { display: flex; gap: 6px; margin: 10px 0 0 44px; }
.lx-result__stars span svg { width: 30px; height: 30px; display: block; }
.lx-result__stars span:not(.is-on) { opacity: .25; filter: grayscale(1); }
.lx-result__stars .is-on { animation: lx-star .6s var(--ease-settle) both; }
.lx-result__stars .is-on:nth-child(3) { animation-delay: .08s; } .lx-result__stars .is-on:nth-child(4) { animation-delay: .16s; }
@keyframes lx-star { from { transform: scale(.2) rotate(-40deg); opacity: 0; } 60% { transform: scale(1.2); } }
.lx-result__why { margin-top: 12px; font: 600 18px/1.5 var(--font-body); color: var(--ink); }
.lx-result__ans { margin-top: 8px; font: 800 20px/1.3 var(--font-display); color: var(--ink); }
.lx-result__learned { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 700 16px/1.3 var(--font-body); color: var(--lx-ok); }
.lx-result__learned svg { width: 26px; height: 26px; flex: none; }
.lx-result__next { width: 100%; margin-top: 18px; }
.lx-how { margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--lx-ok-edge); }
.lx-how__h { font: 800 20px/1.2 var(--font-display); color: var(--ink); }
.lx-how__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.lx-how__o { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px; border: 0; border-radius: 18px; background: var(--lx-white); color: var(--ink); text-align: left;
  font: 800 16px/1.2 var(--font-body); box-shadow: 0 3px 0 var(--lx-edge), inset 0 0 0 2px rgba(30, 42, 90, .07); transition: transform .12s var(--ease-settle), box-shadow .12s; }
.lx-how__o svg { width: 44px; height: 44px; flex: none; }
.lx-how__o:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lx-edge); }
.lx-how__o[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--lx-blue-edge); }
.lx-how__reply { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); font: 700 17px/1.4 var(--font-display); color: var(--ink); box-shadow: inset 0 0 0 2px var(--lx-ok-edge); animation: lx-say .38s var(--ease-settle); }

/* stacked fractions in text and choices */
.fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 .12em; font-size: .78em; line-height: 1.02; font-variant-numeric: tabular-nums; font-weight: 800; }
.fr > span:first-child { padding: 0 .18em .06em; border-bottom: .12em solid currentColor; }
.fr > span:last-child { padding-top: .06em; }
.fr--big { font: 800 34px/1 var(--font-display); }

/* the flying stars */
.lx-fly { position: fixed; z-index: 60; width: 28px; height: 28px; pointer-events: none; }
.lx-fly svg { width: 100%; height: 100%; display: block; }

@media (min-width: 1000px) {
  .lx-q { grid-template-columns: 290px minmax(0, 1fr); grid-template-areas: none; max-width: 1180px; gap: 36px; padding-top: 34px; }
  .lx-q__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; align-self: start; grid-column: 1; grid-row: 1; }
  .lx-q__main { grid-column: 2; grid-row: 1; }
  .lx-q__kuru { flex-direction: column-reverse; align-items: center; gap: 4px; }
  .lx-stage--sm { width: 200px; border-radius: 999px 999px 28px 28px; }
  .lx-bubble--q { margin: 0; align-self: stretch; font-size: 19px; }
  .lx-bubble--q::before { left: 50%; bottom: -9px; margin-left: -11px; transform: rotate(-45deg); }
  .lx-visual .v { max-height: 340px; max-width: 600px; }
  .lx-choices { gap: 16px; }
  .lx-choice { min-height: 104px; }
}

/* ---------- the end of the day */
.lx-done { max-width: 760px; margin: 0 auto; padding: 22px var(--lx-g) 56px; display: grid; gap: 22px; }
.lx-done__top { display: flex; align-items: flex-end; gap: 18px; }
.lx-done__h { font-size: clamp(30px, 7vw, 46px); line-height: 1.04; }
.lx-done__stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.lx-family__h { font-size: clamp(24px, 5vw, 32px); margin: 0 0 12px; }
.lx-fcard { position: relative; padding: 0 0 20px; border-radius: 28px; background: var(--card); overflow: hidden;
  box-shadow: 0 1px 2px rgba(90, 42, 0, .25), 0 26px 46px -26px rgba(90, 42, 0, .55), inset 0 0 0 2px rgba(30, 42, 90, .06); }
.lx-fcard__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--sun); }
.lx-fcard__head img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px var(--card); flex: none; }
.lx-fcard__head > div { flex: 1; min-width: 0; }
.lx-fcard__name { font: 800 24px/1.1 var(--font-display); color: var(--ink); }
.lx-fcard__sub { margin-top: 3px; font: 700 14.5px/1.3 var(--font-body); color: #5A3A06; }
.lx-fcard__big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 20px 4px; }
.lx-fcard__big p { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--paper); }
.lx-fcard__big b { font: 800 40px/1 var(--font-display); color: var(--blue); }
.lx-fcard__big span { font: 700 16px/1.2 var(--font-body); color: var(--ink-2); }
.lx-fcard__rows { display: grid; gap: 8px; padding: 14px 20px 0; }
.lx-fcard__rows li { display: flex; align-items: center; gap: 10px; font: 600 17px/1.3 var(--font-body); }
.lx-fcard__i svg { width: 26px; height: 26px; display: block; }
.lx-fcard__k { margin: 18px 20px 8px; font: 800 15px/1.2 var(--font-body); color: var(--ink-2); }
.lx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.lx-chips li { padding: 6px 12px; border-radius: var(--pill); background: var(--sky); font: 800 14.5px/1.2 var(--font-body); color: var(--blue-deep); }
.lx-howbars { display: grid; gap: 8px; padding: 0 20px; }
.lx-howbars li { display: grid; grid-template-columns: 36px minmax(0, 9em) 1fr 2ch; align-items: center; gap: 10px; font: 700 15.5px/1.2 var(--font-body); }
.lx-howbars__art svg { width: 36px; height: 36px; display: block; }
.lx-howbars__bar { height: 12px; border-radius: var(--pill); background: var(--paper-deep); overflow: hidden; }
.lx-howbars__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--blue-2, #5F7FE8); transform: scaleX(var(--w, 0)); transform-origin: 0 50%; transition: transform .6s var(--ease-settle); }
.lx-howbars b { font: 800 18px/1 var(--font-display); text-align: right; }
.lx-fcard__note { margin: 16px 20px 0; font-size: 15px; color: var(--ink-2); }
.lx-done__go { display: grid; gap: 12px; }
@media (min-width: 640px) { .lx-done__go { grid-template-columns: 1fr 1fr; } }

/* ---------- sheets (menu, Standards) */
.lx-sheet { width: min(520px, 100%); max-width: 100%; max-height: 92vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: var(--paper); color: var(--ink);
  box-shadow: 0 -20px 50px -20px rgba(24, 34, 77, .5); }
.lx-sheet::backdrop { background: rgba(24, 34, 77, .46); }
.lx-sheet[open] { animation: lx-sheet .32s var(--ease-settle); }
@keyframes lx-sheet { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 640px) { .lx-sheet { margin: auto; border-radius: 28px; } }
.lx-sheet__in { display: grid; gap: 10px; padding: 18px 20px 26px; }
.lx-sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.lx-sheet__top h2 { font-size: 26px; }
.lx-who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--lx-line); }
.lx-who img { border-radius: 50%; }
.lx-who__n { font: 800 20px/1.1 var(--font-display); }
.lx-who__c { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.lx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--card); color: var(--ink);
  font: 800 17px/1.2 var(--font-body); text-align: left; box-shadow: 0 2px 0 var(--lx-edge), inset 0 0 0 1px var(--lx-line); }
.lx-row svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.lx-row--out { color: var(--lx-no); }
.lx-confirm { padding: 14px 16px; border-radius: 18px; background: var(--lx-hint); }
.lx-confirm p { font-size: 16.5px; }
.lx-confirm__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.lx-confirm__go .lx-key { min-height: 50px; font-size: 17px; padding: 0 20px; }
.lx-sheet__note { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.lx-stds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lx-std { position: relative; display: grid; justify-items: center; gap: 2px; width: 100%; min-height: 104px; padding: 12px 6px; border: 0; border-radius: 20px; background: var(--card); color: var(--ink);
  box-shadow: 0 4px 0 var(--lx-edge), inset 0 0 0 2px rgba(30, 42, 90, .07); }
.lx-std b { font: 800 40px/1 var(--font-display); color: var(--blue); }
.lx-std span { font: 700 14px/1.2 var(--font-body); color: var(--ink-2); }
.lx-std em { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: var(--pill); background: var(--sun); font: 800 12px/1.2 var(--font-body); font-style: normal; white-space: nowrap; }
.lx-std.is-on { background: var(--blue); box-shadow: 0 4px 0 var(--lx-blue-edge); }
.lx-std.is-on b, .lx-std.is-on span { color: #fff; }

/* ---------- sign-in in the Chrome side panel */
.si { max-width: 520px; margin: 0 auto; padding: 22px var(--lx-g) 40px; display: grid; gap: 14px; }
.si__h { font-size: clamp(26px, 6vw, 34px); line-height: 1.1; }
.si__h:focus { outline: none; }
.si__p { color: var(--ink-2); }
.si__form { display: grid; gap: 10px; }
.si__label { font: 800 15px/1.2 var(--font-body); color: var(--ink-2); }
.si__code { min-height: 64px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--lx-white); box-shadow: inset 0 0 0 3px var(--blue); font: 800 30px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.si__err { min-height: 1.4em; font: 700 16px/1.35 var(--font-body); color: var(--lx-no); }
.si__hint { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; }
.si__sample { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); }
.si__chip { min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--pill); background: var(--sky); color: var(--blue-deep); font: 800 17px/1 var(--font-display); letter-spacing: .05em; }
.si__note { font-size: 15px; color: var(--ink-2); }
.si__back { justify-self: start; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--pill); background: var(--card); font: 800 15px/1 var(--font-body); box-shadow: inset 0 0 0 1px var(--lx-line); }
.si__kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.si__kid { display: grid; justify-items: center; gap: 6px; width: 100%; min-height: 112px; padding: 10px 6px; border: 0; border-radius: 20px; background: var(--card); font: 800 16px/1.2 var(--font-body); color: var(--ink);
  box-shadow: 0 3px 0 var(--lx-edge), inset 0 0 0 2px rgba(30, 42, 90, .07); }
.si__kid img { width: 64px; height: 64px; border-radius: 50%; }
.si__me img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px var(--sun); }
.si__slots { display: flex; gap: 10px; padding: 0; margin: 0; list-style: none; }
.si__slots li { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .14); font: 800 22px/1 var(--font-display); color: var(--ink-3); }
.si__slots li.is-on { background: var(--lemon); box-shadow: inset 0 0 0 2px var(--lx-sun-edge); }
.si__slots.is-shake { animation: lx-no .36s var(--ease-swap); }
.si__animals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.si__animal { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 0; border-radius: 22px; background: var(--card); box-shadow: 0 4px 0 var(--lx-edge), inset 0 0 0 2px rgba(30, 42, 90, .07); }
.si__animal img { width: 74%; height: auto; }
.si__animal:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lx-edge); }
.si__clear { justify-self: center; min-height: 44px; border: 0; background: none; color: var(--blue); font: 800 16px/1 var(--font-body); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- pictures (visuals.js) */
.v { display: block; margin: 0 auto; overflow: visible; }
.v text { font-family: var(--font-display); }
.v .v-t { font-weight: 700; fill: var(--ink); }
.v .v-n { font-weight: 800; fill: var(--ink); }
.v .v-s { font-family: var(--font-body); font-weight: 700; fill: var(--ink-2); }
.v .v-hi { fill: #A24E05; }
.v .v-ask { fill: #B05A00; font-weight: 800; }
.v .v-ok { fill: var(--lx-ok); }
.v .v-no { fill: var(--lx-no); }
.v .v-zero { fill: var(--blue); }
.v .v-on-dark { fill: #fff; }
.v .v-in { animation: v-in .46s var(--ease-settle) both; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes v-in { from { opacity: 0; transform: translateY(6px) scale(.94); } }
.v-chip { width: 100%; height: auto; }

/* ---------- Tamil: rounder letters need a little more room */
.is-ta .lx-q__h { font-size: clamp(20px, 4.9vw, 27px); line-height: 1.5; }
.is-ta .lx-bubble { line-height: 1.5; }
.is-ta .lx-hint__t, .is-ta .lx-result__why { line-height: 1.65; font-size: 17px; }
.is-ta .lx-key { font-size: 18px; }
.is-ta .lx-pill { font-size: 16px; }
.is-ta .lx-done__h { line-height: 1.2; }
.is-ta .lx-choice__t { font-size: 16.5px; line-height: 1.3; }

/* ---------- the side panel and small phones */
@media (max-width: 420px) {
  .lx-choice { min-height: 84px; border-radius: 20px; }
  .lx-choices { gap: 10px; }
  .lx-how__o { font-size: 15px; gap: 8px; padding: 8px 10px; }
  .lx-how__o svg { width: 38px; height: 38px; }
  .is-ta .lx-how__o { flex-direction: column; justify-content: center; gap: 2px; padding: 8px 6px; text-align: center; }
  .lx-pad__show { min-height: 68px; font-size: 40px; }
  .lx-padkey { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .lx-key, .lx-choice, .lx-padkey, .lx-pill, .lx-how__o { transition: none; }
  .lx-boot span { animation: none; }
}

/* ---------- practise a chapter */
.lx-chapters { padding: 20px 20px 22px; }
.lx-chapters__h { font-size: 26px; line-height: 1.1; }
.lx-chapters__sub { margin: 6px 0 14px; font-size: 16px; color: var(--ink-2); }
.lx-chapters__board { display: block; margin-top: 2px; font-weight: 800; color: var(--blue-deep); }
.lx-chapters__list { display: grid; gap: 8px; }
.lx-chapter { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 14px 8px 8px; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); text-align: left;
  font: 700 17px/1.25 var(--font-display); box-shadow: 0 3px 0 var(--lx-edge), inset 0 0 0 1px var(--lx-line); transition: transform .12s var(--ease-settle), box-shadow .12s; }
.lx-chapter:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--lx-edge), inset 0 0 0 2px rgba(35, 70, 198, .22); }
.lx-chapter:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lx-edge); }
.lx-chapter__t { flex: 1; min-width: 0; }
.lx-chapter > svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.lx-chapter__n { display: inline-flex; align-items: center; gap: 3px; font: 800 15px/1 var(--font-display); color: var(--lx-warm); }
.lx-chapter__n svg { width: 18px; height: 18px; }
.lx-sign { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; font: 800 17px/1 var(--font-display); color: var(--ink); }
.lx-sign svg { width: 24px; height: 24px; }
.lx-sign--sky { background: var(--sky); color: var(--blue-deep); } .lx-sign--sun { background: var(--lemon); color: #6B4500; }
.lx-sign--mint { background: var(--mint); color: #1F6B3B; } .lx-sign--pink { background: var(--pink); color: #8A2440; } .lx-sign--moon { background: var(--moon); color: #3B2E86; }
.lx-sheet__k { margin-top: 6px; font: 800 15px/1.2 var(--font-body); color: var(--ink-2); }
.lx-boards { display: grid; gap: 8px; }
.lx-board { min-height: 54px; padding: 8px 16px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); text-align: left; font: 800 16.5px/1.25 var(--font-body);
  box-shadow: 0 3px 0 var(--lx-edge), inset 0 0 0 1px var(--lx-line); }
.lx-board.is-on { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--lx-blue-edge); }

/* ---------- install Kuru */
.lx-install { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg); background: var(--sky);
  box-shadow: inset 0 0 0 2px rgba(35, 70, 198, .12); }
.lx-install img { border-radius: 16px; box-shadow: 0 8px 16px -10px rgba(11, 26, 85, .5); }
.lx-install__h { font-size: 22px; line-height: 1.1; }
.lx-install__p { margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.lx-install__how { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); font: 700 16px/1.4 var(--font-body); color: var(--ink); }
.lx-install__go { grid-column: 1 / -1; min-height: 54px; font-size: 18px; }
@media (min-width: 900px) { .lx-install { grid-column: 2; } .lx-install__go { grid-column: 2; justify-self: start; } }

/* ---------- Classes 7 to 9 and every board: the picker, chapters that are coming next, longer maths answers */
.lx-sheet { overflow-y: auto; overscroll-behavior: contain; }
.lx-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 480px) { .lx-boards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lx-board { min-height: 48px; padding: 8px 12px; font-size: 15.5px; line-height: 1.2; text-align: center; }
.lx-boards__name { margin: 2px 2px 0; font: 700 15px/1.35 var(--font-body); color: var(--ink-2); }
.lx-stds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 380px) { .lx-stds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lx-std { min-height: 92px; }
.lx-std b { font-size: 36px; }
.lx-std.is-soon { background: transparent; box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .16); cursor: default; }
.lx-std.is-soon b { color: var(--ink-3, #8A90A8); }
.lx-std i { font: 800 11.5px/1.15 var(--font-body); font-style: normal; color: var(--ink-2); }
.lx-soon { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--pill); background: var(--moon); color: #3B2E86; font: 800 13px/1.25 var(--font-body); white-space: nowrap; }
.lx-chapters__count { display: block; margin-top: 4px; font-weight: 700; color: var(--ink-2); }
.lx-practice { background: var(--mint, #C9EFD9); color: #1E5A38; font-size: 15px; }
.lx-std.is-on i { color: #fff; }
.lx-chapters__note { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.lx-chapter__t { display: grid; gap: 2px; }
.lx-chapter__sub { font: 600 14px/1.3 var(--font-body); color: var(--ink-2); }
.lx-chapter__term { justify-self: start; padding: 1px 8px; border-radius: var(--pill); background: var(--lemon); font: 800 12px/1.35 var(--font-body); color: #6B4500; }
.lx-chapter.is-soon { background: transparent; box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .10); color: var(--ink-2); cursor: default; }
.lx-chapter.is-soon:hover, .lx-chapter.is-soon:active { transform: none; box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .10); }
.lx-sign--soon { background: transparent; color: var(--ink-3, #8A90A8); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .12); }
.lx-choice__n.is-longer { font-size: clamp(19px, 5vw, 24px); line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.lx-choice__n .fr { font-size: .62em; }
.lx-choices--wide { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lx-choices--wide .lx-choice { min-height: 64px; padding: 12px 16px 14px; }
.lx-choices--wide .lx-choice__n, .lx-choices--wide .lx-choice__n.is-long, .lx-choices--wide .lx-choice__n.is-longer { font: 700 clamp(18px, 4.8vw, 20px)/1.35 var(--font-body); letter-spacing: 0; overflow-wrap: normal; text-align: center; }
.is-ta .lx-choices--wide .lx-choice__n { font-size: 18px; line-height: 1.5; }
.lx-choice__neg { font: 800 30px/1 var(--font-display); margin-right: 2px; }
.lx-q__h .fr, .lx-hint__t .fr, .lx-result__why .fr { font-size: .74em; }
@media (min-width: 1000px) { .lx-chapters__list { grid-template-columns: 1fr 1fr; } }
