/* KidsJig styles. The font (DM Sans, open licence) is served from our own server: no third-party requests. */
@font-face { font-family: "KJ Body"; src: url("../fonts/DMSans.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "KJ Head"; src: url("../fonts/DMSans.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
:root {
  --navy: #1E2A4A; --ink: #1E2A4A; --muted: #4A5578; --cream: #FFFBF5; --warm: #FFF1DE; --line: #F1E6D8;
  --coral: #FF6B4A; --coral-d: #D9502F; --sun: #FFC93C; --sun-d: #D9A51C; --sky: #3FA9F5; --blue: #2A86D1; --leaf: #2F9E5B;
  --r: 18px; --head: "KJ Head", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; --body: "KJ Body", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--coral-d); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 56px); } h2 { font-size: clamp(26px, 3.2vw, 34px); } h3 { font-size: 24px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.kj-wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.kj-skip { position: absolute; left: -999px; } .kj-skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 10px 16px; border-radius: 10px; }
.kj-muted { color: var(--muted); } .kj-small { font-size: 14px; color: var(--muted); }
.kj-lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 0 20px; }
.kj-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .kj-tight { gap: 6px; }
.kj-center { text-align: center; } .kj-center img { display: block; margin: 0 auto 12px; }
.kj-sec { padding-top: 44px; padding-bottom: 8px; }
.kj-eyebrow { margin: 0 0 8px; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); }
.ic { flex: none; vertical-align: -.2em; }

/* buttons */
.kj-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; font: 800 17px var(--body); text-decoration: none; cursor: pointer; color: var(--navy); background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: transform .12s; }
.kj-btn:hover { color: var(--navy); transform: translateY(-1px); } .kj-btn:active { transform: translateY(1px); }
.kj-btn:disabled { opacity: .45; cursor: default; transform: none; }
.kj-big { min-height: 58px; padding: 0 28px; font-size: 19px; border-radius: 16px; }
.kj-sun { background: var(--sun); box-shadow: 0 4px 0 var(--sun-d); } .kj-hot { background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral-d); } .kj-hot:hover { color: #fff; }
.kj-navy { background: var(--navy); color: #fff; box-shadow: none; } .kj-navy:hover { color: #fff; }
.kj-outline { background: #fff; box-shadow: inset 0 0 0 2px var(--navy); } .kj-ghost { background: #fff; }
.kj-icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px; background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; font: 800 18px var(--body); }
.kj-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--warm); color: var(--navy); font-weight: 800; font-size: 13px; white-space: nowrap; }
.kj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kj-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font: 800 16px var(--body); text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 2px var(--line); }
.kj-chip.on { background: var(--navy); color: #fff; box-shadow: none; } .kj-chip:hover { color: var(--navy); } .kj-chip.on:hover { color: #fff; }
.kj-input { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); font: 600 17px var(--body); }
.kj-label { display: block; margin: 16px 0 6px; font-weight: 800; }
.kj-check { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; font-weight: 600; cursor: pointer; } .kj-check input { width: 22px; height: 22px; accent-color: var(--coral); }

/* header and footer */
.kj-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.kj-head-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.kj-logo img { display: block; height: 48px; width: auto; }
.kj-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.kj-nav a { padding: 10px 14px; border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 800; white-space: nowrap; }
.kj-nav a:hover, .kj-nav a[aria-current] { background: var(--warm); color: var(--navy); }
.kj-stars-link { display: inline-flex; align-items: center; gap: 6px; background: #FFF4DA; } .kj-stars-link .ic { color: var(--sun-d); fill: var(--sun); } .kj-stars-link b { min-width: 22px; text-align: center; }
.kj-nav-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--warm); color: var(--navy); cursor: pointer; }
@media (max-width: 900px) {
  .kj-nav-btn { display: grid; place-items: center; }
  .kj-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -20px rgba(30,42,74,.4); }
  .kj-nav.open { display: flex; } .kj-nav a { padding: 14px 16px; font-size: 18px; }
  .kj-logo img { height: 42px; }
}
.kj-foot { margin-top: 72px; background: var(--navy); color: #C9D2EA; padding: 36px 0 24px; }
.kj-foot a { color: #fff; text-decoration: none; } .kj-foot a:hover { color: var(--sun); }
.kj-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
.kj-foot-brand p { margin: 10px 0 0; max-width: 360px; }
.kj-foot-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 36px; font-weight: 700; }
.kj-foot-small { margin-top: 24px; font-size: 14px; opacity: .85; }

/* home */
.kj-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding-top: 48px; padding-bottom: 24px; }
.kj-hero-txt { flex: 1 1 460px; min-width: 0; }
.kj-hero h1 span { color: var(--coral); }
.kj-badge { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: #E2F4EA; color: #1D6B3E; font-weight: 800; font-size: 14px; }
.kj-hero-art { flex: 1 1 360px; position: relative; display: flex; justify-content: center; min-width: 0; }
.kj-blob { width: min(400px, 82vw); aspect-ratio: 1; border-radius: 46% 54% 50% 50%; background: #FFE7A8; display: grid; place-items: center; }
.kj-blob img { width: 64%; height: auto; }
.kj-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px -12px rgba(30,42,74,.45); font-weight: 800; font-size: 18px; }
.kj-float.f1 { left: 2%; top: 10%; transform: rotate(-6deg); color: var(--blue); font-family: var(--head); font-size: 24px; }
.kj-float.f2 { right: 2%; top: 34%; transform: rotate(5deg); color: #237A45; }
.kj-float.f3 { left: 8%; bottom: 6%; } .kj-float.f3 .ic { color: var(--coral); }
.kj-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.kj-grade { display: block; padding: 18px 20px; border-radius: 22px; background: var(--g); color: var(--gt); text-decoration: none; box-shadow: 0 5px 0 var(--gd); transition: transform .12s; }
.kj-grade:hover { color: var(--gt); transform: translateY(-3px); }
.kj-grade span { display: block; font-weight: 800; font-size: 15px; opacity: .92; } .kj-grade b { font-family: var(--head); font-size: 56px; line-height: 1; }
.kj-band { margin-top: 48px; padding: 48px 0; background: #fff; } .kj-band-warm { background: var(--warm); }
.kj-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.kj-way { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; background: var(--cb); color: var(--muted); text-decoration: none; transition: transform .12s; }
.kj-way:hover { transform: translateY(-3px); color: var(--muted); }
.kj-way-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--ci); color: #fff; }
.kj-way b { font-family: var(--head); font-size: 30px; color: var(--navy); } .kj-way em { font-style: normal; font-weight: 800; color: var(--c); display: inline-flex; gap: 6px; align-items: center; }
.kj-split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; } .kj-split > * { flex: 1 1 400px; min-width: 0; }
.kj-mission { padding: 28px; border-radius: 26px; background: var(--navy); color: #fff; }
.kj-mission h3 { color: #fff; font-size: 28px; margin: 14px 0 14px; }
.kj-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.kj-tabs button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 800 15px var(--body); cursor: pointer; }
.kj-tabs button[aria-selected="true"] { background: var(--sun); color: var(--navy); }
.kj-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kj-steps a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; }
.kj-steps a:hover { background: rgba(255,255,255,.16); color: #fff; }
.kj-steps .n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--navy); }
.kj-steps small { display: block; font-size: 13px; color: var(--sun); text-transform: uppercase; letter-spacing: .06em; }
.kj-steps-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kj-subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kj-subjects a { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 18px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 18px; box-shadow: inset 0 0 0 2px var(--line); }
.kj-subjects a:hover { color: var(--navy); box-shadow: inset 0 0 0 2px var(--c); }
.kj-subjects span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cb); color: var(--c); flex: none; }
.kj-promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kj-promises li { display: flex; gap: 10px; align-items: center; padding: 18px; border-radius: 18px; background: #fff; font-weight: 800; }
.kj-promises .ic { color: var(--leaf); stroke-width: 3; }
.kj-promises-big li { align-items: flex-start; font-weight: 400; background: #fff; box-shadow: inset 0 0 0 2px var(--line); } .kj-promises-big b { font-weight: 800; }
@media (max-width: 560px) { .kj-promises, .kj-subjects { grid-template-columns: 1fr; } .kj-float { font-size: 15px; } .kj-float.f1 { font-size: 20px; } }

/* page heads, cards, books */
.kj-pagehead { background: var(--g); color: var(--gt); padding: 36px 0 30px; }
.kj-pagehead h1 { color: var(--gt); display: flex; align-items: center; gap: 12px; } .kj-pagehead .kj-lead { color: inherit; opacity: .85; }
.kj-crumbs { margin: 0 0 8px; font-weight: 700; font-size: 15px; } .kj-crumbs a { color: inherit; }
.kj-pagehead .kj-chip { background: rgba(255,255,255,.9); } .kj-pagehead .kj-chip.on { background: var(--navy); color: #fff; }
.kj-sec > h2 { display: flex; align-items: center; gap: 10px; }
.kj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.kj-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: #fff; color: var(--muted); text-decoration: none; box-shadow: inset 0 0 0 2px var(--line); transition: transform .12s, box-shadow .12s; }
.kj-card:hover { color: var(--muted); transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--c), 0 14px 26px -18px rgba(30,42,74,.5); }
.kj-card-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--cb); color: var(--c); }
.kj-card b { font-family: var(--head); font-size: 24px; color: var(--navy); line-height: 1.15; }
.kj-card-d { font-size: 15.5px; line-height: 1.5; }
.kj-card-f { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kj-card-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--c); }
.kj-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.kj-book-card { display: flex; gap: 16px; padding: 16px; border-radius: 22px; background: #fff; color: var(--muted); text-decoration: none; box-shadow: inset 0 0 0 2px var(--line); transition: transform .12s; }
.kj-book-card:hover { color: var(--muted); transform: translateY(-3px); }
.kj-cover { flex: none; width: 112px; min-height: 150px; border-radius: 6px 14px 14px 6px; background: var(--c); color: #fff; padding: 12px 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; box-shadow: inset 6px 0 0 rgba(0,0,0,.18); text-align: center; }
.kj-cover-t { font-family: var(--head); font-size: 16px; line-height: 1.1; }
.kj-book-txt { display: flex; flex-direction: column; gap: 6px; font-size: 14px; } .kj-book-txt .kj-card-d { color: var(--navy); font-size: 16px; }

/* game */
.kj-playwrap, .kj-bookwrap { padding-top: 18px; max-width: 980px; }
.kj-playbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.kj-playbar h1 { flex: 1; margin: 0; font-size: clamp(26px, 4vw, 38px); }
.kj-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--navy); text-decoration: none; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); white-space: nowrap; }
.kj-game { background: #fff; border-radius: 28px; box-shadow: inset 0 0 0 3px var(--cb), 0 18px 40px -28px rgba(30,42,74,.5); padding: 24px; min-height: 520px; display: flex; flex-direction: column; }
.kj-game:fullscreen { border-radius: 0; padding: 4vh 6vw; font-size: 130%; overflow: auto; }
.kj-stage { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.kj-start { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: auto 0; }
.kj-start h2 { margin: 6px 0 0; } .kj-field { margin-top: 14px; } .kj-field .kj-label { margin: 0 0 8px; } .kj-field .kj-chips { justify-content: center; }
.kj-start .kj-row { justify-content: center; margin-top: 16px; }
.kj-jiggy { width: 132px; height: auto; }
.kj-stars { display: inline-flex; gap: 4px; vertical-align: middle; }
.kj-star { fill: #E8E2D8; } .kj-star.on { fill: var(--sun); stroke: var(--sun-d); stroke-width: 1; }
.kj-end .kj-star { width: 54px; height: 54px; }
.kj-top { display: flex; align-items: center; gap: 12px; }
.kj-dots { flex: 1; display: flex; gap: 6px; } .kj-dots span { flex: 1; height: 10px; border-radius: 99px; background: #EDE6DA; } .kj-dots .done { background: var(--leaf); } .kj-dots .now { background: var(--sun); }
.kj-q { text-align: center; font-size: 22px; font-weight: 700; } .kj-q p { margin: 8px 0; }
.kj-sum { display: inline-block; font-family: var(--head); font-size: clamp(40px, 7vw, 64px); color: var(--navy); line-height: 1.1; }
.kj-pic { display: flex; justify-content: center; } .kj-pic .kj-clock { width: 190px; height: 190px; }
.kj-coins { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.kj-sent { font-size: 24px; } .kj-blank { display: inline-block; min-width: 3.5em; border-bottom: 3px solid var(--coral); color: var(--coral); }
.kj-fr { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; vertical-align: middle; font-weight: 800; } .kj-fr sup, .kj-fr sub { font-size: 1em; vertical-align: baseline; } .kj-fr > span { width: 100%; height: 0; border-top: 2px solid currentColor; font-size: 0; margin: 2px 0; }
.kj-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin: 0 auto; width: 100%; }
.kj-choice { min-height: 72px; padding: 10px 14px; border: 0; border-radius: 18px; background: var(--cream); color: var(--navy); font: 800 24px var(--body); cursor: pointer; box-shadow: inset 0 0 0 3px var(--line), 0 4px 0 var(--line); }
.kj-choice:hover { box-shadow: inset 0 0 0 3px var(--c, var(--sky)), 0 4px 0 var(--line); }
.kj-choice.right, .kj-typed.right, .kj-tile.right { background: #CFF2DC; box-shadow: inset 0 0 0 3px var(--leaf); }
.kj-choice.wrong, .kj-typed.wrong, .kj-tile.wrong { background: #FFE1DA; box-shadow: inset 0 0 0 3px var(--coral); }
.kj-typed { margin: 0 auto; min-width: 200px; min-height: 66px; padding: 6px 22px; border-radius: 16px; background: var(--cream); box-shadow: inset 0 0 0 3px var(--line); font: 800 40px var(--head); text-align: center; letter-spacing: .04em; }
.kj-word { min-width: 280px; letter-spacing: .14em; }
.kj-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; justify-content: center; margin-top: 12px; }
.kj-pad button, .kj-kb button { min-height: 60px; border: 0; border-radius: 14px; background: var(--cream); color: var(--navy); font: 800 26px var(--body); cursor: pointer; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
.kj-pad .kj-ok, .kj-kb .kj-ok { background: var(--leaf); color: #fff; font-size: 19px; box-shadow: 0 3px 0 #237A45; }
.kj-kb { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 10px; } .kj-kb > div { display: flex; gap: 6px; }
.kj-kb button { width: 48px; min-height: 54px; font-size: 22px; } .kj-kb .kj-wide { width: 72px; } .kj-kb .kj-wide2 { width: 220px; }
.kj-hear { align-self: center; }
.kj-map { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 8px; max-width: 620px; width: 100%; margin: 0 auto; }
.kj-tile { aspect-ratio: 1.15; border: 0; border-radius: 14px; background: #E2F4EA; color: #1D6B3E; font: 800 20px var(--body); cursor: pointer; box-shadow: inset 0 0 0 2px #B9E2C8; }
.kj-tile.kj-terr { background: #EAF5FE; color: #1E68A6; box-shadow: inset 0 0 0 2px #B9DDF7; }
.kj-tile:hover { box-shadow: inset 0 0 0 3px var(--navy); }
.kj-feedback { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 12px 16px; border-radius: 16px; text-align: center; font-size: 19px; }
.kj-feedback:empty { padding: 0; min-height: 0; }
.kj-feedback.good { background: #E2F4EA; color: #1D6B3E; } .kj-feedback.oops { background: #FFF1DE; color: var(--navy); }
.kj-right { font-weight: 800; color: #1D6B3E; } .kj-explain { display: block; width: 100%; font-size: 16px; color: var(--muted); }
.kj-about-game { color: var(--muted); }
@media (max-width: 560px) {
  .kj-game { padding: 16px 12px; border-radius: 22px; } .kj-playbar .kj-back { padding: 8px 10px; font-size: 15px; }
  .kj-choice { min-height: 64px; font-size: 21px; } .kj-pad { grid-template-columns: repeat(3, 64px); }
  .kj-kb > div { gap: 4px; } .kj-kb button { width: calc((100vw - 90px) / 10); min-width: 26px; min-height: 48px; font-size: 18px; } .kj-kb .kj-wide { width: 54px; }
  .kj-tile { font-size: 15px; border-radius: 10px; } .kj-map { gap: 5px; }
  .kj-pic .kj-clock { width: 160px; height: 160px; }
}

/* modal */
.kj-modal { position: fixed; inset: 0; z-index: 100; background: rgba(30,42,74,.55); display: grid; place-items: center; padding: 16px; }
.kj-modal-box { width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 26px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.kj-modal-box .kj-row { justify-content: center; margin-top: 18px; } .kj-modal-box .kj-label { text-align: left; }
.kj-gate-err { color: var(--coral-d); font-weight: 700; margin: 8px 0 0; }

/* books */
.kj-book { background: #fff; border-radius: 28px; padding: clamp(20px, 4vw, 44px); box-shadow: inset 0 0 0 3px var(--line); }
.kj-book:fullscreen { overflow: auto; border-radius: 0; font-size: 130%; }
.kj-book-cover { text-align: center; padding: 26px; border-radius: 22px; background: var(--c); color: #fff; margin-bottom: 26px; }
.kj-book-cover h1 { color: #fff; } .kj-book-cover p { margin: 0 auto 12px; max-width: 560px; font-size: 18px; } .kj-book-cover img { display: block; margin: 8px auto; } .kj-book-cover .kj-small { color: rgba(255,255,255,.85); }
.kj-bpage { position: relative; min-height: 200px; padding-bottom: 30px; } .kj-bpage p { font-size: 24px; line-height: 1.75; margin: 0; }
.kj-big-text .kj-bpage p { font-size: 32px; }
.kj-pnum { position: absolute; right: 0; bottom: 0; color: var(--muted); font-weight: 700; font-size: 15px; }
.kj-bnav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--line); }
.kj-bq { border: 0; padding: 0; margin: 0 0 22px; } .kj-bq legend { font-weight: 800; font-size: 21px; margin-bottom: 10px; }
.kj-bq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .kj-bq legend { grid-column: 1 / -1; } .kj-bq .kj-choice { font-size: 17px; min-height: 64px; }
.kj-bdone { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px; border-radius: 18px; background: #E2F4EA; font-size: 18px; } .kj-bdone p { margin: 0; flex: 1 1 260px; }
@media (max-width: 560px) { .kj-bpage p { font-size: 20px; } .kj-big-text .kj-bpage p { font-size: 26px; } .kj-bq { grid-template-columns: 1fr; } }

/* parents, stars, certificate, prose */
.kj-cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.kj-list { padding-left: 20px; margin: 0; } .kj-list li { margin-bottom: 12px; }
.kj-settings { max-width: 520px; padding: 22px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.kj-settings .kj-row { margin-top: 20px; }
.kj-prose { max-width: 760px; } .kj-prose h2 { margin-top: 1.2em; }
.kj-bigstar { flex: 0 0 auto !important; display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; background: var(--sun); box-shadow: 0 6px 0 var(--sun-d); text-align: center; line-height: 1; }
.kj-bigstar b { font-family: var(--head); font-size: 64px; } .kj-bigstar span { font-weight: 800; display: block; margin-top: -40px; }
.kj-progress { display: grid; gap: 8px; margin-bottom: 30px; }
.kj-prow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.kj-prow > a { font-weight: 800; color: var(--navy); text-decoration: none; font-size: 18px; } .kj-prow.done { box-shadow: inset 0 0 0 2px #9FE0B4; }
.kj-pgrades { display: flex; flex-wrap: wrap; gap: 6px; } .kj-pg { padding: 4px 10px; border-radius: 999px; background: #F3EEE6; color: var(--muted); font-weight: 800; font-size: 14px; }
.kj-pg.s1, .kj-pg.s2, .kj-pg.s3 { background: #FFF4DA; color: #8A6300; } .kj-pg.s3 { background: var(--sun); color: var(--navy); }
.kj-pbook { font-weight: 700; color: var(--muted); }
.kj-cert-tools { max-width: 640px; padding-top: 24px; } .kj-cert-tools .kj-input { flex: 1 1 240px; width: auto; }
.kj-cert { max-width: 1000px; margin: 24px auto 0; padding: 18px; background: #fff; border: 10px solid var(--sun); border-radius: 24px; }
.kj-cert-in { border: 3px dashed var(--coral); border-radius: 14px; padding: 30px 26px; text-align: center; }
.kj-cert-in img { display: block; margin: 0 auto; } .kj-cert-in p { margin: 6px 0; font-size: 20px; }
.kj-cert-t { font-family: var(--head); font-weight: 800; font-size: 46px !important; color: var(--coral); }
.kj-cert-name { font-family: var(--head); font-weight: 800; font-size: 54px !important; border-bottom: 3px solid var(--navy); display: inline-block; min-width: 60%; }
.kj-cert-skill { font-family: var(--head); font-weight: 800; font-size: 34px !important; color: var(--blue); }
.kj-cert-foot { display: flex; justify-content: space-between; margin-top: 26px; font-weight: 700; color: var(--muted); }

/* worksheets: builder + preview */
.kj-ws-wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 18px; }
.kj-ws-side { flex: 1 1 300px; max-width: 360px; position: sticky; top: 90px; }
.kj-ws-side h1 { font-size: 36px; margin-top: 14px; } .kj-ws-form .kj-row { margin-top: 20px; } #ws-link { min-height: 40px; font-size: 13px; }
.kj-ws-out { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ws-page { background: #fff; width: 100%; max-width: 8.5in; aspect-ratio: 8.5 / 11; margin: 0 auto; padding: .45in .5in; box-shadow: 0 10px 30px -14px rgba(30,42,74,.4); display: flex; flex-direction: column; color: #111; font: 400 15px/1.45 var(--body); overflow: hidden; }
.ws-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; border-bottom: 2px solid #1E2A4A; padding-bottom: 8px; }
.ws-brand img { height: 30px; width: auto; display: block; } .ws-head h1 { font-size: 24px; margin: 0; flex: 1; } .ws-head h1 small { font-size: 15px; color: #555; font-family: var(--body); }
.ws-name { width: 100%; font-weight: 700; }
.ws-instr { margin: 10px 0 12px; font-weight: 700; }
.ws-body { flex: 1; } .ws-foot { margin-top: 10px; padding-top: 6px; border-top: 1px solid #ccc; font-size: 10.5px; color: #555; text-align: center; }
.ws-line { display: inline-block; border-bottom: 1.5px solid #333; height: 1.3em; vertical-align: bottom; margin: 0 .2em; }
.ws-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 18px; counter-reset: q; }
.ws-grid > li { counter-increment: q; position: relative; padding-left: 26px; }
.ws-grid > li::before { content: counter(q) "."; position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 700; color: #777; }
.ws-arith { gap: 44px 18px; }
.ws-v { display: inline-grid; justify-items: end; font: 700 21px/1.25 ui-monospace, "DejaVu Sans Mono", monospace; min-width: 5.5em; }
.ws-v span { white-space: nowrap; } .ws-v em { font-style: normal; margin-right: .4em; } .ws-v i { display: block; width: 100%; border-top: 2px solid #111; margin-top: 3px; height: 1.8em; }
.ws-h { font-size: 18px; font-weight: 600; display: inline-block; line-height: 2; }
.ws-facts { gap: 10px 18px; } .ws-lines { gap: 12px; } .ws-lines .ws-h { font-size: 17px; }
.ws-ld { display: inline-flex; font: 700 20px ui-monospace, "DejaVu Sans Mono", monospace; margin-bottom: 110px; } .ws-ld span:first-child { padding: 2px 4px 0 0; } .ws-ld span:last-child { border-left: 2px solid #111; border-top: 2px solid #111; border-top-left-radius: 10px; padding: 2px 8px 0; }
.ws-bonds .ws-bond { width: 120px; height: 100px; } .ws-pics { gap: 18px; } .ws-c { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ws-clocks .kj-clock { width: 128px; height: 128px; } .ws-money .kj-coins { gap: 4px; }
.ws-box { display: inline-block; width: 1.6em; height: 1.6em; border: 2px solid #333; border-radius: 4px; vertical-align: middle; } .ws-box-l { width: 46px; height: 46px; border-radius: 8px; border-style: dashed; }
.ws-circ { display: inline-block; width: 1.5em; height: 1.5em; border: 2px solid #333; border-radius: 50%; vertical-align: middle; margin: 0 .4em; }
.ws-p { margin: 0 0 6px; font-size: 16px; } .ws-work { min-height: 90px; display: flex; align-items: flex-end; font-weight: 700; } .ws-probs { gap: 18px 26px; }
.ws-spells { gap: 6px; } .ws-spell { display: flex; align-items: flex-end; gap: 12px; } .ws-spell b { width: 9em; font-size: 19px; } .ws-spell .ws-line { flex: 1; }
.ws-scr { letter-spacing: .25em; font-size: 20px; text-transform: lowercase; } .ws-clue { display: block; color: #555; font-size: 13px; line-height: 1.3; }
.ws-gaps { letter-spacing: .12em; font-size: 22px; } .ws-gap { display: inline-block; width: .9em; border-bottom: 2px solid #111; margin: 0 .05em; height: 1em; }
.ws-search { display: grid; gap: 0; width: min(100%, 5.6in); margin: 0 auto; border: 2px solid #1E2A4A; border-radius: 6px; }
.ws-search span { aspect-ratio: 1; display: grid; place-items: center; font: 700 18px ui-monospace, monospace; } .ws-search span.on { background: #FFE7A8; border-radius: 50%; }
.ws-bank { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 16px; font-size: 17px; font-weight: 700; } .ws-bank span::before { content: "☐ "; }
.ws-mazes { display: grid; gap: 14px; justify-items: center; } .ws-maze { width: 100%; max-height: 4.2in; } .ws-mazes-1 .ws-maze { max-height: 7.6in; }
.ws-maze line { stroke: #1E2A4A; stroke-width: 2.2; stroke-linecap: round; } .ws-mz-t { font: 700 9px var(--body); fill: #FF6B4A; } .ws-mz-sol { fill: none; stroke: #FF6B4A; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.ws-small .ws-maze { max-height: 3.6in; } .ws-small .ws-sud span { font-size: 13px; }
.ws-pats { gap: 18px; } .ws-pat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ws-shape { width: 46px; height: 46px; } .ws-numpat { font-size: 21px; font-weight: 700; }
.ws-suds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; justify-items: center; } .ws-suds4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-sud { display: grid; border: 3px solid #1E2A4A; width: 100%; } .ws-sud4 { max-width: 1.9in; } .ws-sud6 { max-width: 2.9in; }
.ws-sud span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #999; font: 800 20px var(--body); } .ws-sud .br { border-right: 3px solid #1E2A4A; } .ws-sud .bb { border-bottom: 3px solid #1E2A4A; }
.ws-trace { display: flex; align-items: center; gap: 18px; padding: 8px 0; border-bottom: 1.5px solid #888; font: 400 42px/1.3 var(--head); }
.ws-trace b { width: 2.2em; color: #1E2A4A; } .ws-trace span { color: transparent; -webkit-text-stroke: 1.4px #9a9a9a; letter-spacing: .12em; white-space: nowrap; overflow: hidden; }
.ws-trace-w { font-size: 34px; } .ws-trace-w b { width: auto; min-width: 4em; }
.ws-match { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; font-size: 18px; } .ws-match ol, .ws-match ul { margin: 0; padding-left: 22px; display: grid; gap: 14px; } .ws-match ul { list-style: none; padding: 0; } .ws-match ul b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #FFF4DA; margin-right: 8px; }
.ws-key { columns: 3; column-gap: 30px; margin: 0; padding-left: 26px; font-size: 14px; } .ws-key li { break-inside: avoid; margin-bottom: 4px; }
.ws-keypage { aspect-ratio: auto; min-height: 0; }
@media (max-width: 760px) { .kj-ws-side { position: static; max-width: none; } .ws-page { aspect-ratio: auto; padding: 18px 14px; font-size: 13px; } .ws-grid { gap: 12px; } }

/* print */
@page { size: letter; margin: .4in; }
@media print {
  body { background: #fff; }
  .kj-head, .kj-foot, .no-print, .kj-skip, .kj-cert-tools, .kj-bnav, .kj-playbar { display: none !important; }
  .kj-wspage .kj-ws-wrap { display: block; padding: 0; max-width: none; } .kj-wspage .kj-ws-out { display: block; }
  .ws-page { box-shadow: none; width: 7.7in; height: 10.15in; max-width: none; aspect-ratio: auto; padding: .05in .1in; overflow: hidden; page-break-after: always; break-after: page; margin: 0; }
  .ws-keypage { height: auto; min-height: 0; }
  .kj-bookpage .kj-book { box-shadow: none; padding: 0; } .kj-bookpage .kj-bpage { display: block !important; min-height: 0; padding-bottom: 12px; } .kj-bookpage .kj-bpage p { font-size: 17pt; } .kj-pnum { display: none; }
  .kj-bookpage .kj-bquiz { display: none !important; }
  .kj-certpage .kj-cert { margin: 0 auto; page-break-inside: avoid; } .kj-certpage main { padding: 0; }
}
.kj-bookwrap .kj-playbar { flex-wrap: wrap; } .kj-playbar .kj-tight { flex-wrap: nowrap; margin-left: auto; }
.kj-book-txt .kj-pill { align-self: flex-start; }
