/* Bigsun Learn - hub and activity styles.
 * Loaded AFTER the site's blog-home.css and learn.css; it only adds new classes (lh-* for the hub, lp-* for the player),
 * so the 15 classic activity tiles keep their existing look.
 * Brand colours are the variables just below. */
:root {
  --lh-ink: #1b2437;
  --lh-muted: #566074;
  --lh-line: #dfe4ee;
  --lh-bg: #f5f7fb;
  --lh-card: #ffffff;
  --lh-brand: #2446c9;
  --lh-brand-dark: #1a349a;
  --lh-focus: #ffb703;
  --lh-radius: 12px;
  --lh-head: 'Sora', 'Source Sans 3', system-ui, sans-serif;
  --lh-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* One accent per age group (c = strong, t = tint, d = dark text on tint) */
.lh-c-orange { --c: #c2570c; --t: #fff3e6; --d: #8a3e07; }
.lh-c-teal   { --c: #0b7a70; --t: #e5f6f3; --d: #075a52; }
.lh-c-indigo { --c: #4338ca; --t: #eceafd; --d: #31299a; }
.lh-c-rose   { --c: #be1f5b; --t: #fdebf2; --d: #8e1745; }
.lh-c-green  { --c: #1b7a3a; --t: #e8f6ec; --d: #135a2a; }

.lh a:focus-visible, .lh button:focus-visible, .lh summary:focus-visible, .lh input:focus-visible, .lh textarea:focus-visible,
.lp-root a:focus-visible, .lp-root button:focus-visible, .lp-root input:focus-visible, .lp-root textarea:focus-visible, .lp-root summary:focus-visible {
  outline: 3px solid var(--lh-focus); outline-offset: 2px;
}
.lh, .lp-root { font-family: var(--lh-body); color: var(--lh-ink); }
.lh button.bsw-btn, .lp-root button.bsw-btn, .lp-root a.bsw-btn, .lh a.bsw-btn { cursor: pointer; font-family: inherit; }
.lh .bsw-btn-ghost, .lp-root .bsw-btn-ghost { background: #fff; color: var(--lh-brand); border: 2px solid var(--lh-brand); }
.lh .bsw-btn-ghost:hover, .lp-root .bsw-btn-ghost:hover { background: #eef2ff; }
.lp-root button:disabled { cursor: default; }

/* ---------- Hub ---------- */
.lh-hero { padding: 36px 0 12px; max-width: 820px; }
.lh-hero h1 { font-family: var(--lh-head); font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.15; margin: 4px 0 12px; }
.lh-lead { font-size: 1.15rem; color: var(--lh-muted); line-height: 1.55; margin: 0 0 14px; }
.lh-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 14px 0 0; color: var(--lh-ink); font-weight: 600; }
.lh-facts li::before { content: '\2713\00a0'; color: var(--lh-brand); }

.lh-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 26px 0 8px; padding: 0; list-style: none; }
.lh-why li { background: var(--lh-card); border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 16px 18px; }
.lh-why strong { display: block; font-family: var(--lh-head); font-size: 1rem; margin-bottom: 4px; }
.lh-why span { color: var(--lh-muted); font-size: .98rem; line-height: 1.45; }

.lh h2.lh-h2 { font-family: var(--lh-head); font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 38px 0 6px; }
.lh-sub { color: var(--lh-muted); margin: 0 0 16px; }

.lh-ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 12px 0 0; }
.lh-agecard { display: block; height: 100%; text-decoration: none; background: var(--t); border: 2px solid transparent; border-top: 6px solid var(--c); border-radius: var(--lh-radius); padding: 16px 16px 18px; color: var(--lh-ink); transition: transform .15s, box-shadow .15s; }
.lh-agecard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20, 30, 60, .12); }
.lh-agecard b { display: block; font-family: var(--lh-head); font-size: 1.25rem; color: var(--d); }
.lh-agecard em { display: block; font-style: normal; font-weight: 600; margin: 2px 0 8px; }
.lh-agecard span { display: block; color: var(--lh-muted); font-size: .95rem; line-height: 1.4; }
.lh-agecard small { display: block; margin-top: 10px; font-weight: 600; color: var(--d); }

/* Age sections */
.lh-age { margin: 34px 0 0; border: 1px solid var(--lh-line); border-left: 8px solid var(--c); border-radius: var(--lh-radius); background: var(--lh-card); scroll-margin-top: 90px; }
.lh-age-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 18px 20px; }
.lh-age-head h2 { font-family: var(--lh-head); font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0; }
.lh-age-head h2 small { display: block; font-family: var(--lh-body); font-size: 1rem; font-weight: 600; color: var(--c); margin-top: 2px; }
.lh-toggle { font: inherit; font-weight: 700; background: var(--t); color: var(--d); border: 2px solid var(--c); border-radius: 999px; padding: 8px 18px; cursor: pointer; min-height: 44px; }
.lh-toggle:hover { background: #fff; }
.lh-age-body { padding: 0 20px 20px; }
.lh-prog { color: var(--lh-muted); font-size: .95rem; margin: 0 0 12px; }

.lh-cat { border: 1px solid var(--lh-line); border-radius: 10px; margin: 10px 0 0; background: #fff; scroll-margin-top: 90px; }
.lh-cat > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 52px; font-weight: 700; font-family: var(--lh-head); font-size: 1rem; }
.lh-cat > summary::-webkit-details-marker { display: none; }
.lh-cat > summary::after { content: '+'; margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--c); font-family: var(--lh-body); }
.lh-cat[open] > summary::after { content: '\2212'; }
.lh-cat[open] > summary { border-bottom: 1px solid var(--lh-line); background: var(--t); border-radius: 10px 10px 0 0; }
.lh-cat-ico { font-size: 1.25rem; }
.lh-cat-count { font-family: var(--lh-body); font-weight: 600; color: var(--lh-muted); font-size: .9rem; }
.lh-cat-blurb { margin: 12px 16px 4px; color: var(--lh-muted); }

.lh-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 12px; list-style: none; padding: 12px 16px 16px; margin: 0; }
.lh-act { display: flex; flex-direction: column; border: 1px solid var(--lh-line); border-radius: 10px; padding: 12px 14px 14px; background: #fff; }
.lh-act h3 { font-family: var(--lh-head); font-size: 1rem; line-height: 1.3; margin: 0 0 6px; }
.lh-act p { margin: 0 0 10px; color: var(--lh-muted); font-size: .95rem; line-height: 1.4; flex: 1; }
.lh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.lh-chips li { font-size: .8rem; font-weight: 600; background: var(--t); color: var(--d); border-radius: 999px; padding: 2px 10px; }
.lh-chips li.lh-done { background: #e3f6e8; color: #115a28; }
.lh-start { display: inline-block; text-align: center; text-decoration: none; font-weight: 700; background: var(--c); color: #fff; border-radius: 8px; padding: 10px 14px; min-height: 44px; box-sizing: border-box; }
.lh-start:hover { filter: brightness(.92); color: #fff; }
.lh-loading, .lh-error { padding: 16px; color: var(--lh-muted); }

.lh-classic h2, .lh-classic h3 { font-family: var(--lh-head); }
.lh-classic-note { color: var(--lh-muted); margin: 0 0 6px; }

.lh-about { margin: 40px 0 0; background: var(--lh-bg); border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 22px 24px; }
.lh-about h2 { font-family: var(--lh-head); margin: 0 0 8px; font-size: 1.4rem; }
.lh-about p { margin: 0 0 14px; color: var(--lh-muted); max-width: 70ch; line-height: 1.55; }
.lh-about-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Player ---------- */
.lp-wrap { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }
.lp-root { --c: var(--lh-brand); --t: #eef2ff; --d: #1a349a; }
.lp-card { background: var(--lh-card); border: 1px solid var(--lh-line); border-top: 6px solid var(--c); border-radius: var(--lh-radius); padding: 22px 22px 24px; margin: 12px 0; }
.lp-eyebrow { color: var(--c); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px; }
.lp-h1 { font-family: var(--lh-head); font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; margin: 0 0 10px; }
.lp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.lp-meta span { font-size: .85rem; font-weight: 600; background: var(--t); color: var(--d); border-radius: 999px; padding: 3px 12px; }
.lp-lead { font-size: 1.1rem; line-height: 1.55; color: var(--lh-ink); margin: 0 0 14px; }
.lp-how { background: var(--lh-bg); border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; }
.lp-how h2 { font-family: var(--lh-head); font-size: 1rem; margin: 0 0 6px; }
.lp-how p { margin: 0 0 6px; line-height: 1.5; }
.lp-small { color: var(--lh-muted); font-size: .92rem; margin: 4px 0 10px; }
.lp-top { margin: 10px 0 0; }
.lp-bar { height: 10px; background: #e4e8f1; border-radius: 99px; overflow: hidden; }
.lp-bar span { display: block; height: 100%; width: 0; background: var(--c); transition: width .25s; }
.lp-step { color: var(--lh-muted); font-size: .9rem; margin: 6px 0 0; }
.lp-q { font-family: var(--lh-head); font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.4; margin: 0 0 14px; }
.lp-vis { font-size: clamp(1.6rem, 5.5vw, 2.3rem); line-height: 1.35; margin: 0 0 10px; letter-spacing: .08em; white-space: pre-line; word-break: break-word; }
.lp-situation { margin: 0 0 14px; padding: 12px 16px; background: var(--lh-bg); border-left: 5px solid var(--c); border-radius: 0 10px 10px 0; line-height: 1.55; font-size: 1.05rem; }

.lp-opts { display: grid; gap: 10px; margin: 0 0 12px; }
.lp-opt { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; font: inherit; font-size: 1.02rem; line-height: 1.4; background: #fff; color: var(--lh-ink); border: 2px solid var(--lh-line); border-radius: 10px; padding: 12px 14px; min-height: 48px; cursor: pointer; }
.lp-opt:hover:not(:disabled) { border-color: var(--c); background: var(--t); }
.lp-opt:disabled { color: var(--lh-ink); opacity: 1; }
.lp-key { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--t); color: var(--d); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.lp-opt.is-right { border-color: #1f8a3f; background: #e8f7ed; }
.lp-opt.is-wrong { border-color: #b42318; background: #fdecea; }
.lp-opt.is-ok { border-color: #b7791f; background: #fff6e0; }
.lp-opt.is-chosen { border-color: var(--c); background: var(--t); }
.lp-opt.is-sel { border-color: var(--c); background: var(--t); box-shadow: 0 0 0 2px var(--c) inset; }
.lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-col { display: grid; gap: 10px; align-content: start; }
@media (max-width: 520px) { .lp-two { gap: 8px; } .lp-opt { padding: 10px; font-size: .98rem; } }

.lp-fbhost { margin: 6px 0 4px; }
.lp-fb { border-radius: 10px; padding: 12px 14px; margin: 8px 0; line-height: 1.5; }
.lp-fb p { margin: 4px 0 0; }
.lp-fb-good { background: #e8f7ed; border: 1px solid #a8dcb8; color: #0f4d24; }
.lp-fb-soft { background: #fff6e0; border: 1px solid #efd18a; color: #5b3d00; }
.lp-status { min-height: 1.4em; color: var(--lh-muted); margin: 8px 0 0; font-size: .95rem; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 0; }
.lp-foot { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.lp-link { font: inherit; background: none; border: 0; padding: 8px 2px; color: var(--lh-brand); text-decoration: underline; cursor: pointer; min-height: 40px; }
.lp-hintwrap { margin: 8px 0 0; }
.lp-hint { background: #eef2ff; border-radius: 8px; padding: 10px 12px; margin: 6px 0 0; }

.lp-memgrid { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 16px; }
.lp-memgrid li { background: var(--t); border: 2px solid var(--c); border-radius: 10px; padding: 10px 16px; font-size: 1.5rem; font-weight: 600; min-width: 56px; text-align: center; }

.lp-placed { margin: 0 0 12px; padding-left: 26px; min-height: 8px; }
.lp-placed li { padding: 4px 0; font-weight: 600; color: #0f4d24; }
.lp-buildline { display: flex; flex-wrap: wrap; gap: 8px; min-height: 58px; align-items: center; padding: 10px; border: 2px dashed var(--c); border-radius: 10px; background: var(--t); margin: 0 0 12px; }
.lp-placeholder { color: var(--lh-muted); }
.lp-tokens { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.lp-tok { font: inherit; font-size: 1.1rem; font-weight: 600; background: #fff; color: var(--lh-ink); border: 2px solid var(--c); border-radius: 8px; padding: 8px 14px; min-height: 46px; min-width: 46px; cursor: pointer; }
.lp-tok.is-used { opacity: .35; }
.lp-tok.is-in { background: #fff; }

.lp-sortlist { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.lp-sortrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; border: 2px solid var(--lh-line); border-radius: 10px; padding: 10px 12px; }
.lp-sortrow.is-done { border-color: #1f8a3f; background: #e8f7ed; }
.lp-sorttext { font-weight: 600; flex: 1 1 160px; }
.lp-sortbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip { font: inherit; font-weight: 600; background: var(--t); color: var(--d); border: 2px solid var(--c); border-radius: 999px; padding: 6px 14px; min-height: 44px; cursor: pointer; }
.lp-chip:hover { background: #fff; }
.lp-done { font-weight: 700; color: #115a28; }

.lp-pick { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.lp-pick legend { padding: 0; }
.lp-check { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--lh-line); border-radius: 10px; padding: 11px 14px; margin: 0 0 10px; cursor: pointer; line-height: 1.4; min-height: 46px; box-sizing: border-box; }
.lp-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--c); }
.lp-check.is-right { border-color: #1f8a3f; background: #e8f7ed; }
.lp-check.is-wrong { border-color: #b42318; background: #fdecea; }
.lp-check.is-missed { border-color: #b7791f; background: #fff6e0; }

.lp-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; }
.lp-input { font: inherit; font-size: 1.1rem; flex: 1 1 200px; min-width: 0; padding: 11px 14px; border: 2px solid var(--lh-line); border-radius: 10px; min-height: 48px; box-sizing: border-box; }
.lp-text { width: 100%; font: inherit; font-size: 1.05rem; line-height: 1.5; padding: 12px 14px; border: 2px solid var(--lh-line); border-radius: 10px; box-sizing: border-box; resize: vertical; margin: 0 0 6px; }
.lp-after { margin-top: 14px; }
.lp-model { background: #eef2ff; border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.lp-model h3 { font-family: var(--lh-head); font-size: 1rem; margin: 0 0 6px; }
.lp-model p { margin: 0; line-height: 1.55; white-space: pre-line; }
.lp-rec { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lp-rec audio { max-width: 100%; }

.lp-tip { background: var(--t); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; line-height: 1.5; }
.lp-recap { border: 1px solid var(--lh-line); border-radius: 10px; margin: 0 0 16px; }
.lp-recap > summary { cursor: pointer; font-weight: 700; padding: 12px 14px; min-height: 44px; box-sizing: border-box; }
.lp-recap-item { border-top: 1px solid var(--lh-line); padding: 12px 14px; }
.lp-recap-item p { margin: 0 0 4px; line-height: 1.45; }
.lp-recap-h { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .03em; }
.lp-mark { text-transform: none; letter-spacing: 0; color: var(--lh-muted); font-weight: 600; }
.lp-recap-q { font-weight: 600; }
.lp-recap-a { color: #0f4d24; }
.lp-recap-w { color: var(--lh-muted); }

.is-shake { animation: lpShake .35s; }
@keyframes lpShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .is-shake { animation: none; } .lp-bar span, .lh-agecard { transition: none; } }

/* Longer text shown above a question (reading passage or puzzle) */
.lp-passage { margin: 0 0 14px; padding: 12px 16px; background: var(--lh-bg); border-left: 5px solid var(--c); border-radius: 0 10px 10px 0; line-height: 1.6; font-size: 1.05rem; white-space: pre-line; }

/* ======================= Levels, stars, XP and badges ======================= */
/* Journey panel on the hub */
.lh-me { margin: 26px 0 0; background: linear-gradient(180deg, #f3f6ff, #fff); border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 4px 20px 20px; }
.lh-me .lh-h2 { margin-top: 18px; }
.lh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.lh-stat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--lh-line); border-radius: 10px; padding: 12px 14px; }
.lh-stat-i { font-size: 1.7rem; line-height: 1; }
.lh-stat strong { display: block; font-family: var(--lh-head); font-size: 1.1rem; line-height: 1.2; }
.lh-stat small { display: block; color: var(--lh-muted); font-size: .85rem; line-height: 1.3; }
.lh-stat-rank { grid-column: span 2; }
.lh-stat-rank > div { flex: 1; min-width: 0; }
.lh-xpbar { height: 8px; background: #e4e8f1; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.lh-xpbar span { display: block; height: 100%; background: linear-gradient(90deg, #2446c9, #7c3aed); border-radius: 99px; }
@media (max-width: 520px) { .lh-stat-rank { grid-column: auto; } }
.lh-continue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 14px 0 0; padding: 14px 16px; background: #fff7e0; border: 1px solid #f2d27a; border-radius: 10px; }
.lh-continue p { margin: 0; }
.lh-continue-k { font-weight: 700; color: #6a4a00; flex: 1 1 100%; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.lh-continue-t { flex: 1 1 240px; font-family: var(--lh-head); font-weight: 600; font-size: 1.05rem; }
.lh-note { margin: 12px 0 0; color: #5b3d00; background: #fff6e0; border-radius: 8px; padding: 10px 12px; }
.lh-badges { margin: 14px 0 0; border: 1px solid var(--lh-line); border-radius: 10px; background: #fff; }
.lh-badges > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; min-height: 44px; box-sizing: border-box; }
.lh-bg-h { font-family: var(--lh-head); font-size: .95rem; margin: 10px 14px 4px; color: var(--lh-muted); }
.lh-bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; list-style: none; padding: 4px 14px 12px; margin: 0; }
.lh-badge { display: flex; gap: 10px; align-items: center; border: 1px solid var(--lh-line); border-radius: 10px; padding: 8px 10px; background: #f7f8fb; color: #4b5568; }
.lh-badge strong { display: block; font-size: .92rem; }
.lh-badge small { display: block; font-size: .8rem; line-height: 1.3; }
.lh-badge-i { font-size: 1.5rem; flex: none; filter: grayscale(1); opacity: .6; }
.lh-badge.is-got { background: #fff8e1; border-color: #f0cf72; color: var(--lh-ink); }
.lh-badge.is-got .lh-badge-i { filter: none; opacity: 1; }
.lh-reset { margin: 10px 0 0; font-size: .9rem; color: var(--lh-muted); }
.lh-reset .lp-link { font-size: .9rem; }

/* Age cards: tiny progress bar */
.lh-mini { display: block; height: 6px; background: rgba(0, 0, 0, .1); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.lh-mini b { display: block; height: 100%; background: var(--c); border-radius: 99px; }

/* Level path above the cards */
.lh-path { display: flex; align-items: center; gap: 0; list-style: none; padding: 14px 16px 2px; margin: 0; overflow-x: auto; }
.lh-pt { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; background: #fff; border: 3px solid var(--lh-line); color: var(--lh-muted); margin-right: 18px; }
.lh-pt::after { content: ''; position: absolute; left: 100%; top: 50%; width: 18px; height: 3px; background: var(--lh-line); transform: translateY(-50%); }
.lh-pt:last-child { margin-right: 0; }
.lh-pt:last-child::after { display: none; }
.lh-pt-done { background: var(--c); border-color: var(--c); color: #fff; }
.lh-pt-done::after { background: var(--c); }
.lh-pt-open { border-color: var(--c); color: var(--d); background: var(--t); }
.lh-pt-now { box-shadow: 0 0 0 4px var(--t), 0 0 0 6px var(--c); }
.lh-pt-locked { font-size: .8rem; background: #f1f3f8; }

/* Level cards */
.lh-lvl { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.lh-act.lh-locked { background: #f5f6fa; border-style: dashed; }
.lh-act.lh-locked h3, .lh-act.lh-locked .lh-desc { color: #6b7385; }
.lh-act.lh-now { border-color: var(--c); box-shadow: 0 0 0 2px var(--c) inset; background: var(--t); }
.lh-act.lh-done .lh-chips li.lh-done { letter-spacing: .08em; }
.lh-lock { margin: 0; padding: 10px 12px; border-radius: 8px; background: #e9ecf3; color: #4b5568; font-weight: 600; font-size: .92rem; }

/* Player: level strip, goal and locked screen */
.lp-lvl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.lp-lvl-b { font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; background: var(--c); color: #fff; border-radius: 999px; padding: 3px 12px; }
.lp-lvl-s { font-weight: 700; color: #a15c00; letter-spacing: .1em; }
.lp-path { display: flex; align-items: center; list-style: none; padding: 4px 0 12px; margin: 0; overflow-x: auto; }
.lp-pt { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; background: #fff; border: 3px solid var(--lh-line); color: var(--lh-muted); margin-right: 14px; }
.lp-pt::after { content: ''; position: absolute; left: 100%; top: 50%; width: 14px; height: 3px; background: var(--lh-line); transform: translateY(-50%); }
.lp-pt:last-child { margin-right: 0; }
.lp-pt:last-child::after { display: none; }
.lp-pt-done { background: var(--c); border-color: var(--c); color: #fff; }
.lp-pt-done::after { background: var(--c); }
.lp-pt-open { border-color: var(--c); background: var(--t); color: var(--d); }
.lp-pt.is-here { box-shadow: 0 0 0 3px var(--t), 0 0 0 5px var(--c); }
.lp-pt-locked { font-size: .7rem; background: #f1f3f8; }
.lp-goal { font-weight: 600; }
.lp-locked .lp-lead { margin-top: 4px; }

/* Player: results */
.lp-stars { display: flex; gap: 6px; margin: 4px 0 8px; font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: 1; }
.lp-stars span { color: #c9ced9; display: inline-block; }
.lp-stars span.on { color: #f5a300; text-shadow: 0 2px 0 rgba(150, 90, 0, .25); animation: lpPop .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes lpPop { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.lp-rewards { background: var(--lh-bg); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.lp-rewards p { margin: 0 0 8px; line-height: 1.45; }
.lp-xp strong { font-family: var(--lh-head); font-size: 1.25rem; color: #1a349a; }
.lp-xp span { color: var(--lh-muted); font-size: .92rem; }
.lp-rankup { font-weight: 800; color: #7a3df0; font-size: 1.05rem; }
.lp-rank { display: grid; gap: 4px; }
.lp-rank-n { font-weight: 700; }
.lp-rank .lp-bar span { background: linear-gradient(90deg, #2446c9, #7c3aed); width: 0; }
.lp-streak { margin: 8px 0 0 !important; font-weight: 600; }
.lp-newbadge { display: flex; gap: 12px; align-items: center; background: #fff8e1; border: 2px solid #f0cf72; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; animation: lpPop .5s both; }
.lp-bico { font-size: 2rem; line-height: 1; }
.lp-newbadge strong { display: block; }
.lp-newbadge small { display: block; color: #5b4a1a; }
.lp-next { border: 2px solid var(--c); background: var(--t); border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
.lp-next p { margin: 0; }
.lp-next-k { font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--d); margin-bottom: 4px !important; }
.lp-next-t { font-family: var(--lh-head); font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.lp-next-d { color: var(--lh-muted); margin: 4px 0 0 !important; line-height: 1.45; }
.lp-next .lp-actions { margin: 14px 0 6px; }

.lp-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.lp-confetti span { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: lpFall linear forwards; }
@keyframes lpFall { 0% { opacity: 1; margin-top: 0; } 100% { opacity: 0; margin-top: 105vh; } }
@media (prefers-reduced-motion: reduce) { .lp-stars span.on, .lp-newbadge { animation: none; } .lp-confetti { display: none; } }

/* keep level label and lock note at natural height inside the card */
.lh-act p.lh-lvl { flex: none; margin: 0 0 4px; font-size: .78rem; color: var(--c); }
.lh-act p.lh-lock { flex: none; margin: 0; color: #4b5568; font-size: .92rem; }
.lh-act .lh-chips { margin-top: auto; }
.lh-cat-count { white-space: nowrap; }
@media (max-width: 520px) { .lh-cat > summary { flex-wrap: wrap; } .lh-cat > summary > span:nth-child(2) { flex: 1 1 140px; } }

/* ===== Language bars, Listen button, business-quiz ask card ===== */
.lh-lang, .lp-lang { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--lh-line); border-radius: 999px; padding: 4px 6px 4px 12px; margin: 8px 0; }
.lh-lang-i, .lp-lang-i { font-size: 1.1rem; }
.lh-lang-b, .lp-lang-b { font: inherit; font-weight: 600; font-size: .95rem; min-height: 40px; min-width: 44px; padding: 4px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--lh-ink); cursor: pointer; }
.lh-lang-b.is-on, .lp-lang-b.is-on { background: var(--lh-brand); color: #fff; }
.lp-listenrow { margin: 0 0 10px; }
.lp-listen { font: inherit; font-weight: 600; font-size: .95rem; min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--c, var(--lh-brand)); background: #fff; color: var(--lh-ink); cursor: pointer; }
.lp-listen:hover { background: var(--t, var(--lh-bg)); }
.lh-ask { border: 2px dashed var(--lh-line); background: var(--lh-bg); border-radius: var(--lh-radius); padding: 16px 18px; margin: 14px 0; }
.lh-ask-t { font-family: var(--lh-head); font-weight: 700; margin: 0 0 4px; }
.lh-ask-d { color: var(--lh-muted); margin: 0 0 10px; line-height: 1.5; }
.lh-ask-b { font: inherit; font-weight: 600; min-height: 44px; padding: 8px 18px; border-radius: 10px; border: 2px solid var(--lh-brand); background: #fff; color: var(--lh-brand); cursor: pointer; margin: 0 8px 8px 0; }
.lh-ask-b:first-of-type { background: var(--lh-brand); color: #fff; }
.lh-pref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0; color: var(--lh-muted); }
.lh-pref button { font: inherit; min-height: 44px; padding: 6px 16px; border-radius: 10px; border: 2px solid var(--lh-line); background: #fff; cursor: pointer; }
/* Devanagari needs a little more line height */
html[lang="hi"] body, html[lang="mr"] body { line-height: 1.65; }
html[lang="hi"] .lp-opt, html[lang="mr"] .lp-opt { line-height: 1.55; }

/* ===== Mobile-first pass (phones) ===== */
button, .lp-opt, .lp-tok, .lh-agecard, .lh-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }
  .lp-card { padding: 16px 14px 18px; border-radius: 12px; margin: 8px 0; }
  .lp-opt { min-height: 54px; font-size: 1.05rem; padding: 12px; }
  .lp-opts { gap: 10px; }
  .lp-q { font-size: 1.15rem; }
  .lp-tok, .lp-chip, .lp-key { min-height: 46px; min-width: 46px; font-size: 1.05rem; }
  .lp-sortbtns button, .lp-sortrow button { min-height: 46px; }
  .lp-input, .lp-text, textarea, input[type="text"] { font-size: 16px; } /* stops iOS zoom-on-focus */
  /* progress bar stays visible while answering */
  .lp-top { position: sticky; top: 0; z-index: 20; background: var(--lh-card); padding: 8px 0 6px; margin: 0 -2px; }
  /* main actions pinned to the bottom edge, thumb-reachable */
  .lp-foot, .lp-actions { position: sticky; bottom: 0; z-index: 20; background: linear-gradient(to top, #fff 82%, rgba(255,255,255,0)); padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); margin: 12px 0 0; flex-wrap: nowrap; }
  .lp-foot > button, .lp-foot > a, .lp-actions > button, .lp-actions > a { flex: 1 1 0; min-height: 52px; font-size: 1.05rem; text-align: center; justify-content: center; }
  .lp-result .lp-foot > *, .lp-result .lp-actions > * { flex-basis: 100%; }
  .lp-result .lp-foot, .lp-result .lp-actions { flex-wrap: wrap; }
  .lp-start, .lh-start, .lh-continue a { width: 100%; min-height: 52px; justify-content: center; text-align: center; }
  .lp-lang, .lh-lang { display: flex; width: 100%; justify-content: space-between; }
  .lp-lang-b, .lh-lang-b { flex: 1; }
  .lp-listen { width: 100%; }
  .lh-ask-b { width: 100%; margin-right: 0; }
  .lh-pref button { width: 100%; }
  /* hub */
  .lh-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lh-stat-rank { grid-column: 1 / -1; }
  .lh-ages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 12px 0 0; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; }
  .lh-ages > li { flex: 0 0 78%; scroll-snap-align: center; }
  .lh-age { margin-top: 24px; border-left-width: 6px; }
  .lh-age-head { padding: 14px; }
  .lh-age-body { padding: 0 12px 14px; }
  .lh-bgrid { grid-template-columns: 1fr; }
  .lh-acts { grid-template-columns: 1fr; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 360px) { .lp-opt { font-size: 1rem; } .lp-h1 { font-size: 1.4rem; } }

/* ===== Picture Play: big pictures, icon buttons, tile answers (for children who cannot read yet) ===== */
.lp-visual .lp-vis { font-size: clamp(2.6rem, 14vw, 4.4rem); line-height: 1.25; text-align: center; margin: 4px 0 14px; letter-spacing: .12em; }
.lp-visual .lp-q { text-align: center; font-size: clamp(1.25rem, 5vw, 1.7rem); }
.lp-visual .lp-opts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.lp-visual .lp-opt { flex-direction: column; justify-content: center; text-align: center; min-height: 96px; font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.15; border-width: 3px; border-radius: 16px; padding: 10px 8px; gap: 4px; }
.lp-visual .lp-opt .lp-key { display: none; }
.lp-visual .lp-opt span { font-size: inherit; }
.lp-visual .lp-opt:active:not(:disabled) { transform: scale(.96); }
.lp-visual .lp-tok, .lp-visual .lp-chip { font-size: clamp(1.6rem, 7vw, 2.2rem); min-height: 60px; border-radius: 14px; }
.lp-visual .lp-sorttext { font-size: 2rem; }
.lp-visual .lp-memgrid { font-size: clamp(2.2rem, 11vw, 3.4rem); }
.lp-visual .lp-fb { font-size: 1.1rem; }
.lp-icobtn { min-width: 64px; min-height: 64px !important; font-size: 1.8rem !important; border-radius: 50% !important; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.lp-visual .lp-listen { min-width: 64px; min-height: 64px; border-radius: 50%; font-size: 1.6rem; padding: 0; }
.lp-visual .lp-foot, .lp-visual .lp-actions { justify-content: center; gap: 16px; }
@media (max-width: 640px) {
  .lp-visual .lp-foot > button, .lp-visual .lp-actions > button, .lp-visual .lp-foot > a { flex: 0 0 auto; }
  .lp-visual .lp-opts { grid-template-columns: 1fr 1fr; }
  .lp-visual .lp-listen { width: 64px; }
}
.lh-lang[hidden], .lp-lang[hidden], .lp-lang-none, [hidden].lh-lang { display: none !important; }

/* "About Bigsun Technologies" buttons: explicit colours (with !important) so site-wide link/button styles can never hide them */
section.lh-about .lh-about-actions { display: flex !important; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; }
section.lh-about .lh-about-actions a, section.lh-about .lh-about-actions a.bsw-btn { display: inline-flex !important; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px !important; border-radius: 10px !important; font-weight: 700 !important; font-size: 1rem !important; line-height: 1.2; text-decoration: none !important; background: #2446c9 !important; color: #ffffff !important; border: 2px solid #2446c9 !important; opacity: 1 !important; visibility: visible !important; box-shadow: none; text-indent: 0; width: auto; height: auto; }
section.lh-about .lh-about-actions a:hover, section.lh-about .lh-about-actions a:focus-visible { background: #1a349a !important; border-color: #1a349a !important; color: #ffffff !important; }
section.lh-about .lh-about-actions a.bsw-btn-ghost { background: #ffffff !important; color: #2446c9 !important; border-color: #2446c9 !important; }
section.lh-about .lh-about-actions a.bsw-btn-ghost:hover, section.lh-about .lh-about-actions a.bsw-btn-ghost:focus-visible { background: #eef2ff !important; color: #1a349a !important; }
@media (max-width: 640px) { section.lh-about .lh-about-actions a { flex: 1 1 100%; } }
