/*!
 * DLArabic Kids – front-end styles. Mobile-first, RTL. Colours come from the dlarabic theme palette (its variables), so the academy follows the site's theme and dark mode.
 * Everything is scoped under .dlk-root / #dlk-ai / .dlk-dialog-wrap so the theme and other plugins are not affected.
 * Dark mode follows the dlarabic theme switch (html[data-theme="dark"]).
 */

.dlk-root, #dlk-ai, .dlk-dialog-wrap, .dlk-toasts {
	--dlk-primary: var(--teal-d, #1F7A56);
	--dlk-primary-2: var(--mint, #41C48D);
	--dlk-deep: var(--navy-2, #15362A);
	--dlk-sky: var(--teal-soft, #E3F6EE);
	--dlk-grad: var(--grad-135, linear-gradient(135deg, var(--grad-a, #0B1914), var(--grad-b, #15362A) 45%, var(--grad-c, #1F7A56)));
	--dlk-sun: #FFC93C;
	--dlk-mint: #34C38F;
	--dlk-coral: #FF6B6B;
	--dlk-orange: #FF8A3D;
	--dlk-violet: #8E6CEF;
	--dlk-bg: transparent;
	--dlk-card: var(--card, #FFFFFF);
	--dlk-text: var(--ink, #111C18);
	--dlk-muted: var(--muted, #6E8279);
	--dlk-line: var(--line, #DCE5E0);
	--dlk-ok: #1E9E6A;
	--dlk-ok-bg: #E5F8EF;
	--dlk-bad: #D64545;
	--dlk-bad-bg: #FDECEC;
	--dlk-radius: 18px;
	--dlk-shadow: var(--shadow, 0 4px 14px rgba(11, 25, 20, .06));
	--dlk-focus: 0 0 0 3px #fff, 0 0 0 6px #FFB020;
	--dlk-font: var(--font, "Cairo"), "Cairo", "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
html[data-theme="dark"] .dlk-root, html[data-theme="dark"] #dlk-ai, html[data-theme="dark"] .dlk-dialog-wrap, html[data-theme="dark"] .dlk-toasts {
	--dlk-primary: var(--teal, #9C86FF);
	--dlk-deep: var(--ink, #EEEDF7);
	--dlk-ok-bg: #12352A;
	--dlk-bad-bg: #3B1C22;
	--dlk-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

/* ---------- base ---------- */
.dlk-root { font-family: var(--dlk-font); color: var(--dlk-text); background: var(--dlk-bg); line-height: 1.8; font-size: 17px; direction: rtl; text-align: right; }
.dlk-root *, .dlk-root *::before, .dlk-root *::after { box-sizing: border-box; }
.dlk-page { padding: 18px 0 48px; }
.dlk-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.dlk-root h1, .dlk-root h2, .dlk-root h3 { color: var(--dlk-deep); line-height: 1.4; margin: 0 0 .5em; font-weight: 800; }
.dlk-root h1 { font-size: clamp(1.6rem, 4.8vw, 2.4rem); }
.dlk-root h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); }
.dlk-root h3 { font-size: 1.15rem; }
.dlk-root p { margin: 0 0 .8em; }
.dlk-root a { color: var(--dlk-primary); }
.dlk-root img, .dlk-root svg { max-width: 100%; }
.dlk-root :focus-visible, #dlk-ai :focus-visible, .dlk-dialog-wrap :focus-visible { outline: none; box-shadow: var(--dlk-focus); border-radius: 10px; }
.dlk-root [hidden], #dlk-ai [hidden] { display: none !important; }
/* Text alignment (1.0.1). The theme forces its own justify rules on .site-main/.entry p and li; inside the academy:
   - text follows its container (right, or centred in heroes, tiles and cards);
   - text longer than two lines gets .dlk-just from kids-core.js: justified on both sides, last line at the start,
     or centred when the container is centred (.dlk-just-c).
   The doubled class only raises specificity above the theme's selectors. */
body .dlk-root.dlk-root p, body .dlk-root.dlk-root li, body .dlk-root.dlk-root blockquote, body .dlk-root.dlk-root dd { text-align: inherit !important; text-align-last: auto !important; }
body .dlk-root.dlk-root .dlk-hero p, body .dlk-root.dlk-root .dlk-hero-text, body .dlk-root.dlk-root .dlk-slogan { text-align: center !important; text-align-last: center !important; }
body .dlk-root.dlk-root .dlk-hero-text { margin-inline: auto !important; }
body .dlk-root.dlk-root .dlk-just, body #dlk-ai.dlk-ai .dlk-just { text-align: justify !important; text-align-last: start !important; text-justify: inter-word; hyphens: none; }
body .dlk-root.dlk-root .dlk-just.dlk-just-c { text-align-last: center !important; }
.dlk-sr, .dlk-root .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dlk-muted { color: var(--dlk-muted); }
.dlk-small { font-size: .85rem; }
.dlk-center { text-align: center; }
.dlk-en, [dir="ltr"].dlk-en { direction: ltr; unicode-bidi: isolate; }
.dlk-loading { color: var(--dlk-muted); text-align: center; padding: 24px; }
.dlk-notice { background: #FFF6DB; color: #6B4E00; border: 1px solid #F5DE95; padding: 12px 16px; border-radius: 12px; }
html[data-theme="dark"] .dlk-notice { background: #3A3218; color: #FFE9A8; border-color: #5E5124; }
.dlk-empty { text-align: center; padding: 28px 16px; color: var(--dlk-muted); background: var(--dlk-card); border: 2px dashed var(--dlk-line); border-radius: var(--dlk-radius); }
.dlk-empty svg { color: var(--dlk-primary); }

/* ---------- buttons ---------- */
.dlk-btn, .dlk-root button.dlk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--dlk-primary); color: #fff !important; font: 700 1rem/1.3 var(--dlk-font); text-decoration: none !important; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.dlk-btn:hover { transform: translateY(-1px); background: #185FBD; }
.dlk-btn:active { transform: translateY(1px); box-shadow: none; }
.dlk-btn:disabled, .dlk-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.dlk-btn-alt { background: var(--dlk-mint); }
.dlk-btn-alt:hover { background: #26A877; }
.dlk-btn-soft { background: var(--dlk-sky); color: var(--dlk-primary) !important; box-shadow: none; }
.dlk-btn-soft:hover { background: color-mix(in srgb, var(--dlk-primary) 18%, var(--dlk-card)); }
.dlk-btn-ghost { background: transparent; color: var(--dlk-primary) !important; border: 2px solid var(--dlk-line); box-shadow: none; }
.dlk-btn-ghost:hover { background: var(--dlk-sky); }
.dlk-btn-danger { background: var(--dlk-bad); }
.dlk-btn-danger:hover { background: #B83535; }
.dlk-btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.1rem; }
.dlk-btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.dlk-link-btn { background: none; border: 0; color: var(--dlk-primary); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
.dlk-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--dlk-line); background: var(--dlk-card); color: var(--dlk-primary); cursor: pointer; }
.dlk-icon-btn:disabled { opacity: .35; cursor: default; }
.dlk-actions, .dlk-g-actions, .dlk-q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; align-items: center; }
.dlk-chip-btn { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--dlk-line); background: var(--dlk-card); color: var(--dlk-text); font: 600 .95rem var(--dlk-font); cursor: pointer; }
.dlk-chip-btn:hover, .dlk-chip-btn[aria-pressed="true"] { border-color: var(--dlk-primary); background: var(--dlk-sky); color: var(--dlk-primary); }
.dlk-input, .dlk-root input[type="text"], .dlk-root input[type="search"], .dlk-root input[type="number"], .dlk-root textarea, .dlk-root select { font: 1rem var(--dlk-font); padding: 10px 14px; border: 2px solid var(--dlk-line); border-radius: 12px; background: var(--dlk-card); color: var(--dlk-text); min-height: 44px; max-width: 100%; }
.dlk-root input:focus, .dlk-root textarea:focus, .dlk-root select:focus { border-color: var(--dlk-primary); }

/* ---------- chips, crumbs, page heads ---------- */
.dlk-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.dlk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--dlk-sky); color: var(--dlk-deep); font-size: .85rem; font-weight: 600; }
.dlk-chip svg { color: var(--dlk-primary); }
.dlk-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--dlk-muted); margin-bottom: 10px; }
.dlk-crumbs a { text-decoration: none; }
.dlk-page-head { text-align: center; margin: 8px auto 24px; max-width: 760px; }
.dlk-page-head p { color: var(--dlk-muted); }
.dlk-sec { margin: 40px 0; }
.dlk-sec-head { text-align: center; margin-bottom: 18px; }
.dlk-sec-head h2 { margin-bottom: 4px; }
.dlk-sec-head p { color: var(--dlk-muted); max-width: 680px; margin: 0 auto 6px; }
.dlk-more { font-weight: 700; text-decoration: none; }
.dlk-box { background: var(--dlk-card); border: 1px solid var(--dlk-line); border-radius: var(--dlk-radius); padding: 18px; box-shadow: var(--dlk-shadow); margin: 16px 0; }
.dlk-box > h2:first-child, .dlk-box > h3:first-child { display: flex; gap: 8px; align-items: center; }
.dlk-box-tip { border-inline-start: 6px solid var(--dlk-sun); }
.dlk-box-think { border-inline-start: 6px solid var(--dlk-violet); }
.dlk-box-story { border-inline-start: 6px solid var(--dlk-ok); background: linear-gradient(180deg, rgba(52,195,143,.08), transparent 70%), var(--dlk-card); font-size: 1.04em; }
.dlk-box-example { border-inline-start: 6px solid var(--dlk-mint); }
.dlk-box-goals { border-inline-start: 6px solid var(--dlk-primary); }
.dlk-box-quiz { border-inline-start: 6px solid var(--dlk-orange); }
.dlk-box-cert { text-align: center; }

/* ---------- hero (centred, no badge) ---------- */
.dlk-hero { text-align: center; padding: 34px 18px 30px; border-radius: calc(var(--dlk-radius) + 8px); background: radial-gradient(circle at 4% 6%, rgba(255,201,60,.22) 0 46px, transparent 47px), radial-gradient(circle at 97% 96%, rgba(52,195,143,.2) 0 64px, transparent 65px), var(--dlk-grad); color: #fff; box-shadow: var(--dlk-shadow); }
.dlk-hero h1 { color: #fff; margin-bottom: 6px; }
.dlk-slogan { font-size: clamp(1.1rem, 3.4vw, 1.45rem); font-weight: 800; color: var(--dlk-sun); margin-bottom: 8px; }
.dlk-hero-text { max-width: 640px; margin: 0 auto 18px; opacity: .95; }
.dlk-search { position: relative; display: flex; gap: 8px; max-width: 620px; margin: 0 auto 18px; }
.dlk-search input { flex: 1; min-width: 0; border-color: transparent !important; border-radius: 999px !important; padding-inline: 18px !important; }
.dlk-hero .dlk-search .dlk-btn { background: var(--dlk-sun); color: var(--dlk-deep) !important; }
html[data-theme="dark"] .dlk-hero .dlk-search .dlk-btn { color: #15122E !important; }
.dlk-search-results { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 30; background: var(--dlk-card); color: var(--dlk-text); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 6px; text-align: right; max-height: 360px; overflow: auto; }
.dlk-sr-item { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--dlk-text) !important; }
.dlk-sr-item small { color: var(--dlk-muted); }
.dlk-sr-item:hover, .dlk-sr-item[aria-selected="true"] { background: var(--dlk-sky); }
.dlk-age-label { font-weight: 700; margin-bottom: 8px; }
.dlk-age-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 760px; margin: 0 auto; }
.dlk-age-pick a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; background: rgba(255,255,255,.95); color: var(--dlk-accent, var(--dlk-primary)) !important; border-radius: 16px; text-decoration: none; text-align: center; transition: transform .15s; }
.dlk-age-pick a:hover { transform: translateY(-2px); }
.dlk-age-pick b { font-size: 1.05rem; }
.dlk-age-pick small { color: #4A5D55; font-weight: 600; }
.dlk-robot-lg { width: 120px; height: 120px; }
.dlk-robot-md { width: 72px; height: 72px; }
.dlk-ask, .dlk-ask-chip { cursor: pointer; }

/* ---------- grids, tiles, cards (centred text) ---------- */
.dlk-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.dlk-two { display: grid; gap: 18px; grid-template-columns: 1fr; }
.dlk-tile { text-align: center; background: var(--dlk-card); border: 1px solid var(--dlk-line); border-radius: var(--dlk-radius); padding: 18px 14px; box-shadow: var(--dlk-shadow); }
.dlk-tile b { display: block; font-size: 1.15rem; color: var(--dlk-deep); margin: 6px 0 2px; }
.dlk-tile p { color: var(--dlk-muted); margin: 0; }
.dlk-tile-ico, .dlk-card-ico, .dlk-track-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--dlk-sky); color: var(--dlk-accent, var(--dlk-primary)); }
.dlk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.dlk-stat { text-align: center; background: var(--dlk-card); border-radius: 14px; padding: 10px; border: 1px solid var(--dlk-line); }
.dlk-stat b { display: block; font-size: 1.5rem; color: var(--dlk-primary); }
.dlk-stat span { color: var(--dlk-muted); font-size: .9rem; }
.dlk-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--dlk-card); border: 1px solid var(--dlk-line); border-top: 5px solid var(--dlk-accent, var(--dlk-primary)); border-radius: var(--dlk-radius); padding: 18px 16px; box-shadow: var(--dlk-shadow); text-decoration: none !important; color: var(--dlk-text) !important; transition: transform .15s, box-shadow .15s; height: 100%; }
a.dlk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h, 0 10px 26px rgba(11,25,20,.14)); }
.dlk-card-art { width: 84px; height: 84px; display: block; }
.dlk-card-art svg, .dlk-card-art img { width: 100%; height: 100%; object-fit: contain; }
.dlk-card-title { font-weight: 800; font-size: 1.1rem; color: var(--dlk-deep); }
.dlk-card-sub { font-size: .85rem; color: var(--dlk-muted); }
.dlk-card-text { color: var(--dlk-muted); font-size: .95rem; }
.dlk-card-cta { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--dlk-primary); }
.dlk-card .dlk-done-mark { position: absolute; top: 10px; inset-inline-start: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--dlk-mint); color: #fff; display: none; place-items: center; }
.dlk-card.is-done .dlk-done-mark { display: grid; }
.dlk-card-sm { padding: 12px; }

/* ---------- tracks ---------- */
.dlk-track-card { border-top-width: 8px; }
.dlk-track-age { font-weight: 800; color: var(--dlk-accent, var(--dlk-primary)); }
.dlk-track-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: .85rem; color: var(--dlk-muted); }
.dlk-track-progress, .dlk-bar { display: block; width: 100%; height: 10px; border-radius: 999px; background: var(--dlk-sky); overflow: hidden; }
.dlk-bar > i, .dlk-track-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--dlk-mint), var(--dlk-primary)); border-radius: inherit; transition: width .4s; }
.dlk-bar-lg { height: 16px; }
.dlk-track-head { text-align: center; padding: 26px 16px; border-radius: calc(var(--dlk-radius) + 6px); background: var(--dlk-grad); border-bottom: 5px solid var(--dlk-accent, var(--dlk-primary-2)); color: #fff; margin-bottom: 18px; }
.dlk-track-head h1, .dlk-track-head p { color: #fff; }
.dlk-track-ico-lg { width: 76px; height: 76px; border-radius: 24px; background: rgba(255,255,255,.18); color: #fff; display: inline-grid; place-items: center; }
.dlk-track-label { display: inline-block; font-weight: 700; opacity: .9; }
.dlk-continue { margin-top: 10px; }
.dlk-units { display: grid; gap: 14px; }
.dlk-unit { background: var(--dlk-card); border: 1px solid var(--dlk-line); border-radius: var(--dlk-radius); padding: 16px; box-shadow: var(--dlk-shadow); }
.dlk-unit-head { display: flex; align-items: center; gap: 12px; }
.dlk-unit-head h3 { margin: 0; }
.dlk-unit-num { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--dlk-accent, var(--dlk-primary)); color: #fff; font-weight: 800; }
.dlk-lesson-list, .dlk-mini-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.dlk-lesson-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--dlk-bg); text-decoration: none !important; color: var(--dlk-text) !important; border: 1px solid transparent; }
.dlk-lesson-link:hover { border-color: var(--dlk-line); background: var(--dlk-sky); }
.dlk-lesson-link.is-done { background: var(--dlk-ok-bg); }
.dlk-lesson-link.is-done .dlk-done-mark { color: var(--dlk-ok); }
.dlk-ll-title { font-weight: 700; flex: 1; }
.dlk-ll-meta { font-size: .8rem; color: var(--dlk-muted); }
.dlk-progress-mini { max-width: 520px; margin: 10px auto; text-align: center; }
.dlk-levels, .dlk-lvl { display: inline-flex; gap: 4px; }

/* ---------- lessons ---------- */
.dlk-lesson { max-width: 860px; margin: 0 auto; }
.dlk-lesson-head { text-align: center; margin-bottom: 16px; }
.dlk-lesson-head .dlk-card-art, .dlk-lesson-head .dlk-term-art-lg { margin: 0 auto 8px; width: 120px; height: 120px; }
.dlk-content { font-size: 1.05rem; }
.dlk-content ul, .dlk-content ol { padding-inline-start: 1.4em; }
.dlk-content li { margin-bottom: .3em; }
.dlk-figure { margin: 16px auto; text-align: center; }
.dlk-figure img, .dlk-figure svg { border-radius: 14px; }
.dlk-figure figcaption { color: var(--dlk-muted); font-size: .9rem; }
.dlk-video { position: relative; aspect-ratio: 16 / 9; background: var(--code-bg, #0B1914); border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.dlk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dlk-video-play { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; background: none; border: 0; cursor: pointer; font: 700 1rem var(--dlk-font); }
.dlk-video-play small { opacity: .8; font-weight: 400; max-width: 320px; }
.dlk-complete-box { text-align: center; }
.dlk-complete-msg { color: var(--dlk-ok); font-weight: 700; }
.dlk-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.dlk-pn-prev, .dlk-pn-next { display: block; padding: 12px; border-radius: 14px; background: var(--dlk-card); border: 1px solid var(--dlk-line); text-decoration: none !important; color: var(--dlk-text) !important; }
.dlk-pn-next { text-align: left; }
.dlk-pn-prev small, .dlk-pn-next small { display: block; color: var(--dlk-muted); }
.dlk-term-chips, .dlk-chiplist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0; justify-content: center; }
.dlk-term-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--dlk-sky); text-decoration: none !important; font-weight: 600; }

/* ---------- activities ---------- */
.dlk-activities { display: grid; gap: 14px; }
.dlk-activity { background: var(--dlk-card); border: 2px dashed var(--dlk-line); border-radius: var(--dlk-radius); padding: 16px; }
.dlk-activity h3 { display: flex; gap: 8px; align-items: center; }
.dlk-reveal { margin-top: 10px; padding: 10px 14px; background: var(--dlk-sky); border-radius: 12px; }
.dlk-classify .dlk-cls-bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 10px 0; }
.dlk-cls-bins > * { min-height: 90px; border: 2px dashed var(--dlk-line); border-radius: 14px; padding: 8px; text-align: center; }
.dlk-cls-bins > .is-target, .dlk-cls-bins > .is-over { border-color: var(--dlk-primary); background: var(--dlk-sky); }
.dlk-cls-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; margin: 4px; border-radius: 12px; border: 2px solid var(--dlk-line); background: var(--dlk-card); cursor: pointer; font: 600 .95rem var(--dlk-font); color: var(--dlk-text); }
.dlk-cls-item.is-picked, .dlk-cls-item[aria-pressed="true"] { border-color: var(--dlk-primary); }
.dlk-cls-item.is-done { opacity: .6; }
.dlk-cls-art { width: 36px; height: 36px; display: inline-block; }
.dlk-cls-art svg, .dlk-cls-art img { width: 100%; height: 100%; }
.dlk-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 8px; }
.dlk-steps > li { position: relative; padding: 10px 52px 10px 12px; background: var(--dlk-bg); border-radius: 12px; }
.dlk-steps > li::before { counter-increment: s; content: counter(s); position: absolute; inset-inline-start: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--dlk-primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.dlk-steps > li.is-done { background: var(--dlk-ok-bg); }
.dlk-steps > li.is-done::before { background: var(--dlk-mint); content: "✓"; }
.dlk-steps label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }

/* ---------- quiz (6 types) ---------- */
.dlk-quiz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dlk-quiz-head b { white-space: nowrap; }
.dlk-q { background: var(--dlk-card); border-radius: var(--dlk-radius); padding: 16px; border: 1px solid var(--dlk-line); }
.dlk-q-text { font-size: 1.15rem; font-weight: 800; color: var(--dlk-deep); }
.dlk-opts { display: grid; gap: 10px; margin: 12px 0; }
.dlk-opts-tf, .dlk-opts-row { grid-template-columns: 1fr 1fr; }
.dlk-opts-img { grid-template-columns: repeat(2, 1fr); }
.dlk-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--dlk-line); border-radius: 14px; background: var(--dlk-card); cursor: pointer; min-height: 52px; font-weight: 600; transition: border-color .15s, background .15s; }
.dlk-opt:hover { border-color: var(--dlk-primary-2); }
.dlk-opt input { width: 20px; height: 20px; accent-color: var(--dlk-primary); flex: none; }
.dlk-opt:has(input:checked) { border-color: var(--dlk-primary); background: var(--dlk-sky); }
.dlk-opts-img .dlk-opt { flex-direction: column; text-align: center; }
.dlk-opt-art { width: 84px; height: 84px; display: block; }
.dlk-opt-art svg, .dlk-opt-art img { width: 100%; height: 100%; object-fit: contain; }
.dlk-opt.is-right, .dlk-g-opt.is-right, .dlk-order-item.is-right, .dlk-match-row.is-right, .dlk-blank.is-right { border-color: var(--dlk-ok) !important; background: var(--dlk-ok-bg) !important; }
.dlk-opt.is-wrong, .dlk-g-opt.is-wrong, .dlk-order-item.is-wrong, .dlk-match-row.is-wrong, .dlk-blank.is-wrong { border-color: var(--dlk-bad) !important; background: var(--dlk-bad-bg) !important; }
.dlk-match { display: grid; gap: 10px; margin: 12px 0; }
.dlk-match-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px; border: 2px solid var(--dlk-line); border-radius: 14px; }
.dlk-match-l { font-weight: 700; }
.dlk-match-arrow { color: var(--dlk-primary); font-weight: 800; }
.dlk-match-row select { width: 100%; }
.dlk-order { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.dlk-order-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--dlk-line); border-radius: 14px; background: var(--dlk-card); cursor: grab; }
.dlk-order-item.is-drag { opacity: .5; }
.dlk-order-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--dlk-sky); color: var(--dlk-primary); display: grid; place-items: center; font-weight: 800; }
.dlk-order-t { flex: 1; font-weight: 600; }
.dlk-order-btns { display: inline-flex; gap: 4px; }
.dlk-blank { display: inline-block; min-width: 140px; border: 2px solid var(--dlk-line); border-radius: 12px; }
.dlk-bank { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.dlk-q-feedback, .dlk-fb { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; margin: 12px 0; }
.dlk-q-feedback.is-ok, .dlk-fb.is-ok { background: var(--dlk-ok-bg); color: var(--dlk-text); border: 2px solid var(--dlk-ok); }
.dlk-q-feedback.is-bad, .dlk-fb.is-bad { background: var(--dlk-bad-bg); color: var(--dlk-text); border: 2px solid var(--dlk-bad); }
.dlk-fb-ic { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; }
.is-ok > .dlk-fb-ic, li.is-ok > .dlk-fb-ic { background: var(--dlk-ok); }
.is-bad > .dlk-fb-ic, li.is-bad > .dlk-fb-ic { background: var(--dlk-bad); }
.dlk-fb p, .dlk-q-why { margin: 4px 0 0; }
.dlk-q-verdict { font-weight: 800; }
.dlk-quiz-result { text-align: center; }
.dlk-score-ring { --p: 0; width: 140px; height: 140px; margin: 10px auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--dlk-mint) calc(var(--p) * 1%), var(--dlk-sky) 0); }
.dlk-score-ring > * { width: 110px; height: 110px; border-radius: 50%; background: var(--dlk-card); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--dlk-deep); }
.dlk-score-ring.is-pass > * { color: var(--dlk-ok); }
.dlk-score-ring.is-try > * { color: var(--dlk-orange); }
.dlk-quiz-builder { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: end; }
.dlk-quiz-builder label { display: grid; gap: 4px; font-weight: 700; }
.dlk-form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }

/* ---------- glossary / encyclopedia ---------- */
.dlk-letters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 16px; }
.dlk-letters a, .dlk-letters span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; background: var(--dlk-card); border: 1px solid var(--dlk-line); text-decoration: none !important; font-weight: 700; }
.dlk-letters .current, .dlk-letters [aria-current] { background: var(--dlk-primary); color: #fff !important; border-color: var(--dlk-primary); }
.dlk-letters span:not(.current) { opacity: .35; }
.dlk-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 0 0 18px; }
.dlk-filters input[type="search"] { flex: 1 1 220px; }
.dlk-term-card { align-items: center; }
.dlk-term-art { width: 64px; height: 64px; display: block; }
.dlk-term-art-lg { width: 140px; height: 140px; display: block; margin: 0 auto; }
.dlk-term-art svg, .dlk-term-art img, .dlk-term-art-lg svg, .dlk-term-art-lg img { width: 100%; height: 100%; object-fit: contain; }
.dlk-term-day { text-align: center; }
.dlk-mini-quiz .dlk-opts { margin-top: 8px; }

/* ---------- labs ---------- */
.dlk-lab-app, .dlk-game-app { min-height: 200px; }
.dlk-lab-sec { background: var(--dlk-card); border: 1px solid var(--dlk-line); border-radius: var(--dlk-radius); padding: 16px; margin: 14px 0; box-shadow: var(--dlk-shadow); }
.dlk-lab-h { font-size: 1.2rem !important; }
.dlk-lab-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.dlk-lab-row-tight { gap: 6px; }
.dlk-lab-pic { width: 96px; height: 96px; border-radius: 14px; background: var(--dlk-bg); border: 2px solid var(--dlk-line); display: inline-grid; place-items: center; padding: 4px; position: relative; }
.dlk-lab-pic svg { width: 100%; height: 100%; }
.dlk-lab-pic-sm { width: 64px; height: 64px; }
.dlk-lab-pic.is-right { border-color: var(--dlk-ok); }
.dlk-lab-pic.is-wrong { border-color: var(--dlk-bad); }
.dlk-lab-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.dlk-lab-result { padding: 12px; border-radius: 14px; background: var(--dlk-sky); font-weight: 700; }
.dlk-lab-plot svg, .dlk-scatter { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; background: var(--dlk-bg); border-radius: 12px; border: 1px solid var(--dlk-line); }
.dlk-cm { border-collapse: collapse; margin: 8px 0; }
.dlk-cm td, .dlk-cm th { border: 1px solid var(--dlk-line); padding: 6px 10px; text-align: center; }
.dlk-sliders { display: grid; gap: 8px; }
.dlk-slider { display: grid; grid-template-columns: minmax(110px, auto) 1fr 48px; gap: 10px; align-items: center; }
.dlk-slider input[type="range"] { width: 100%; accent-color: var(--dlk-primary); min-height: 32px; }
.dlk-slider output { font-weight: 800; color: var(--dlk-primary); text-align: center; direction: ltr; }
.dlk-honest { font-size: .92rem; background: #FFF9E8; border-inline-start: 5px solid var(--dlk-sun); padding: 10px 14px; border-radius: 10px; color: #4A3B10; }
html[data-theme="dark"] .dlk-honest { background: #2E2814; color: #F8E7B0; }
.dlk-tokens, .dlk-pattern-stage, .dlk-g-seq { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 12px 0; }
.dlk-tok { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 4px; border-radius: 12px; background: var(--dlk-bg); border: 2px solid var(--dlk-line); }
.dlk-tok-t { font-weight: 800; font-size: 1.2rem; color: var(--dlk-deep); padding: 0 10px; }
.dlk-tok-q { border-style: dashed; border-color: var(--dlk-primary); color: var(--dlk-primary); font-weight: 800; font-size: 1.3rem; }
.dlk-net svg { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; }
.dlk-pad, .dlk-g-pad { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
/* Robot boards (robot lab, coding lab, algorithm maze): big enough for a child's finger. The wrap fills its row
   (inside a flex row it used to shrink to ~110px) up to 600px; cells are at least ~40px on a phone. (1.0.5) */
.dlk-grid-wrap { flex: 1 1 100%; width: 100%; max-width: 600px; margin: 8px auto; }
.dlk-grid-board { position: relative; display: grid; gap: 4px; background: var(--dlk-line); padding: 4px; border-radius: 16px; direction: ltr; width: 100%; max-width: 600px; margin: 0 auto; }
.dlk-gc { aspect-ratio: 1; min-width: 0; background: var(--dlk-card); border-radius: 8px; display: grid; place-items: center; color: var(--dlk-sun); }
.dlk-gc svg { width: 72%; height: 72%; }
/* Larger command buttons around the boards. */
.dlk-lab-sec .dlk-lab-row .dlk-btn, .dlk-lab-sec .dlk-lab-row button { min-height: 52px; font-size: 1.05rem; padding-inline: 18px; }
.dlk-gc.is-wall { background: #5A6B86; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px); }
.dlk-gc.is-start { background: var(--dlk-sky); }
.dlk-gc.is-goal { background: #FFF6D6; }
.dlk-gc.is-trail { background: #D9F5E9; }
html[data-theme="dark"] .dlk-gc.is-start { background: #1D3558; }
html[data-theme="dark"] .dlk-gc.is-goal { background: #3D3518; }
html[data-theme="dark"] .dlk-gc.is-trail { background: #1B4436; }
.dlk-gbot { position: absolute; padding: 0; display: grid; place-items: center; transition: left .3s, top .3s, transform .3s; pointer-events: none; }
.dlk-gbot svg { width: 82% !important; height: 82% !important; max-width: none; display: block; }
.dlk-gbot.is-bump { animation: dlk-shake .3s; }
@keyframes dlk-shake { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
.dlk-palette { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.dlk-block { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 12px; color: #fff; font-weight: 700; background: var(--dlk-primary); margin: 4px 0; }
.dlk-block-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dlk-block-head select, .dlk-block-head input { min-height: 34px; padding: 2px 8px; color: var(--dlk-text); }
.dlk-block-ctl { margin-inline-start: auto; display: inline-flex; gap: 4px; }
.dlk-block-ctl button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255,255,255,.25); color: #fff; cursor: pointer; }
.dlk-cmd-move { background: var(--dlk-primary); } .dlk-cmd-right, .dlk-cmd-left { background: #8E6CEF; } .dlk-cmd-repeat { background: #FF8A3D; } .dlk-cmd-ifwall { background: #1E9E6A; } .dlk-cmd-stop { background: #D64545; } .dlk-cmd-start { background: var(--dlk-deep); }
.dlk-blist { min-height: 44px; padding: 6px 6px 6px 0; padding-inline-start: 14px; border-inline-start: 3px dashed rgba(255,255,255,.55); border-radius: 6px; }
.dlk-code-area > .dlk-blist { border-inline-start-color: var(--dlk-line); background: var(--dlk-bg); border-radius: 12px; padding: 8px; }
.dlk-blist.is-target { outline: 3px solid var(--dlk-sun); outline-offset: 2px; }
.dlk-blist-empty { color: var(--dlk-muted); font-weight: 400; font-size: .9rem; padding: 6px; }
.dlk-block .dlk-blist-empty { color: rgba(255,255,255,.85); }
.dlk-scene { width: 100%; max-width: 520px; aspect-ratio: 4 / 3; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--dlk-line); display: block; }
.dlk-scene svg { width: 100%; height: 100%; display: block; }
.dlk-checks { list-style: none; padding: 0; display: grid; gap: 6px; }
.dlk-crit { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--dlk-bg); }
.dlk-crit.is-done { background: var(--dlk-ok-bg); }
.dlk-code { direction: ltr; text-align: left; background: var(--code-bg, #0B1914); color: #E8F0EC; border-radius: 14px; padding: 14px; overflow: auto; font: 14px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre; }
.dlk-copy { margin-top: 6px; }

/* ---------- games ---------- */
.dlk-g-intro, .dlk-g-result { text-align: center; }
.dlk-g-hero { display: block; width: 110px; height: 110px; margin: 0 auto 8px; }
.dlk-g-hero svg, .dlk-g-art svg, .dlk-g-big svg, .dlk-g-hero img, .dlk-g-art img, .dlk-g-big img { width: 100%; height: 100%; object-fit: contain; }
.dlk-g-how { text-align: right; max-width: 560px; margin: 0 auto 14px; padding-inline-start: 1.4em; }
.dlk-g-levels { display: grid; gap: 10px; grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.dlk-g-level { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 14px; border: 2px solid var(--dlk-line); background: var(--dlk-bg); color: var(--dlk-text); font: 600 1rem var(--dlk-font); cursor: pointer; }
.dlk-g-level:hover { border-color: var(--dlk-primary); }
.dlk-g-level b { color: var(--dlk-primary); }
.dlk-g-intro .dlk-g-actions, .dlk-g-result .dlk-g-actions { justify-content: center; }
.dlk-g-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: var(--dlk-card); border: 1px solid var(--dlk-line); border-radius: 14px; margin-bottom: 12px; }
.dlk-g-head > b { flex: 1 1 100%; color: var(--dlk-deep); }
.dlk-g-step, .dlk-g-score, .dlk-g-timer { padding: 2px 12px; border-radius: 999px; background: var(--dlk-sky); font-weight: 700; color: var(--dlk-deep); }
.dlk-g-score { background: #FFF2C7; color: #6B4E00; }
.dlk-g-timer.is-low { background: var(--dlk-bad-bg); color: var(--dlk-bad); }
.dlk-g-head .dlk-btn { margin-inline-start: auto; }
.dlk-g-stage { background: var(--dlk-card); border: 1px solid var(--dlk-line); border-radius: var(--dlk-radius); padding: 16px; box-shadow: var(--dlk-shadow); outline: none; }
.dlk-g-q { font-size: 1.12rem; font-weight: 700; text-align: center; color: var(--dlk-deep); }
.dlk-g-q .dlk-g-art { display: block; width: 110px; height: 110px; margin: 0 auto 6px; }
.dlk-g-stmt { font-size: 1.3rem; padding: 18px; background: var(--dlk-sky); border-radius: 16px; }
.dlk-g-opts { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 12px 0; }
.dlk-g-tf, .dlk-g-bins { grid-template-columns: 1fr 1fr; }
.dlk-g-opt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--dlk-line); background: var(--dlk-card); color: var(--dlk-text); font: 700 1.05rem var(--dlk-font); cursor: pointer; transition: border-color .15s, transform .15s; }
.dlk-g-opt:hover:not(:disabled) { border-color: var(--dlk-primary); transform: translateY(-1px); }
.dlk-g-opt.is-picked, .dlk-g-opt[aria-checked="true"] { border-color: var(--dlk-primary); background: var(--dlk-sky); }
.dlk-g-opt:disabled { cursor: default; }
.dlk-g-bin { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dlk-g-bin .dlk-g-art { width: 48px; height: 48px; display: block; }
.dlk-g-robot { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 8px 12px; border-radius: 14px; background: var(--dlk-bg); font-weight: 700; }
.dlk-g-robot .dlk-g-art { width: 44px; height: 44px; display: block; }
.dlk-g-vs { font-size: 1.1rem; }
.dlk-g-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dlk-g-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px; border: 2px solid var(--dlk-line); border-radius: 14px; }
.dlk-g-card .dlk-g-art { width: 64px; height: 64px; display: block; }
.dlk-g-mini { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dlk-g-sortitem { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 1.2rem; }
.dlk-g-big { display: block; width: 140px; height: 140px; }
.dlk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dlk-g-table, .dlk-table { border-collapse: separate; border-spacing: 4px; margin: 0 auto; }
.dlk-g-table th { background: var(--dlk-sky); color: var(--dlk-deep); padding: 6px 10px; border-radius: 8px; font-size: .9rem; }
.dlk-g-table td { padding: 0; }
.dlk-g-cell { min-width: 74px; min-height: 44px; width: 100%; border-radius: 10px; border: 2px solid var(--dlk-line); background: var(--dlk-card); color: var(--dlk-text); font: 600 .95rem var(--dlk-font); cursor: pointer; padding: 4px 8px; }
.dlk-g-cell[aria-pressed="true"] { border-color: var(--dlk-coral); background: var(--dlk-bad-bg); }
.dlk-g-net { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
.dlk-g-plotbox svg { width: 100%; max-width: 340px; display: block; margin: 0 auto; border-radius: 14px; border: 1px solid var(--dlk-line); }
.dlk-g-netctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dlk-g-stepper { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dlk-g-stepper output { min-width: 32px; text-align: center; font-size: 1.2rem; color: var(--dlk-primary); }
.dlk-g-sel { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.dlk-g-info { font-weight: 600; }
.dlk-g-mazewrap { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
.dlk-g-board { max-width: 420px; width: 100%; margin: 0 auto; }
.dlk-g-progrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dlk-g-prog { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 6px; margin: 0; min-height: 44px; flex: 1 1 200px; background: var(--dlk-bg); border: 2px dashed var(--dlk-line); border-radius: 12px; }
.dlk-g-prog li { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--dlk-primary); color: #fff; font-weight: 800; }
.dlk-stars { display: inline-flex; gap: 4px; justify-content: center; color: var(--dlk-line); }
.dlk-stars .is-on { color: var(--dlk-sun); }
.dlk-g-result > .dlk-stars svg { width: 42px; height: 42px; }
.dlk-g-sum { font-size: 1.1rem; font-weight: 700; }
.dlk-g-notes { text-align: right; margin: 12px 0; }
.dlk-g-notes summary { cursor: pointer; font-weight: 800; color: var(--dlk-primary); }
.dlk-g-notes ul { list-style: none; padding: 0; display: grid; gap: 8px; margin: 10px 0 0; }
.dlk-g-notes li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--dlk-bg); }
.dlk-g-notes li p { margin: 2px 0 0; color: var(--dlk-muted); }
.dlk-g-lesson { font-weight: 700; }
.dlk-challenge h2 { justify-content: center; }
.dlk-challenge { text-align: center; }
.dlk-ch-area { text-align: right; }
.dlk-ch-classify { display: grid; gap: 8px; }
.dlk-ch-item { display: grid; grid-template-columns: auto 1fr minmax(130px, 40%); gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--dlk-line); border-radius: 12px; }
.dlk-ch-item .dlk-g-art { width: 40px; height: 40px; display: block; }
.dlk-ch-out { text-align: right; }
.dlk-past { display: grid; gap: 10px; }
.dlk-past summary { cursor: pointer; }
.dlk-challenge-teaser { text-align: center; }
/* 1.0.6: the weekly-challenge teaser is a real row; the bold title and the description sit on their own lines. */
.dlk-challenge-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: var(--dlk-radius); background: var(--dlk-card); border: 1px solid var(--dlk-line); text-decoration: none !important; color: inherit; }
.dlk-challenge-teaser .dlk-card-ico { flex: 0 0 auto; }
.dlk-teaser-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: start; }
.dlk-teaser-text > b { display: block; font-size: 1.05rem; line-height: 1.5; color: var(--dlk-text); overflow-wrap: anywhere; }
.dlk-teaser-text > small { display: block; font-size: .92rem; line-height: 1.75; color: var(--dlk-muted); overflow-wrap: anywhere; }
.dlk-challenge-teaser > .dlk-btn { flex: 0 0 auto; }
@media (max-width: 559px) {
	.dlk-challenge-teaser { justify-content: center; text-align: center; }
	.dlk-teaser-text { flex-basis: 100%; text-align: center; }
	.dlk-challenge-teaser > .dlk-btn { flex-basis: 100%; justify-content: center; }
}

/* ---------- progress, badges, certificates, parents ---------- */
.dlk-progress-big { text-align: center; }
.dlk-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dlk-badge { text-align: center; padding: 14px 10px; border-radius: var(--dlk-radius); background: var(--dlk-card); border: 1px solid var(--dlk-line); }
.dlk-badge-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--dlk-sky); color: var(--dlk-primary); margin-bottom: 6px; }
.dlk-badge.is-earned .dlk-badge-ico { background: linear-gradient(135deg, var(--dlk-sun), var(--dlk-orange)); color: #fff; }
.dlk-badge.is-locked { opacity: .6; filter: grayscale(.6); }
.dlk-badge-state { display: block; font-size: .8rem; color: var(--dlk-muted); }
/* 1.0.3: title and description on their own lines (they ran together on phones). */
.dlk-badges { list-style: none; margin: 0; padding: 0; }
.dlk-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.dlk-badge > b { display: block; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.dlk-badge > small { display: block; font-size: .85rem; line-height: 1.7; color: var(--dlk-muted); text-align: center !important; overflow-wrap: anywhere; }
.dlk-badge-state { margin-top: 2px; }
.dlk-points-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.dlk-points-list li { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--dlk-bg); border-radius: 10px; }
.dlk-cert-steps { list-style: none; padding: 0; display: grid; gap: 6px; text-align: right; max-width: 520px; margin: 10px auto; }
.dlk-cert-steps li { padding: 8px 12px; border-radius: 10px; background: var(--dlk-bg); }
.dlk-cert-steps li.is-done { background: var(--dlk-ok-bg); }
.dlk-cert-status { font-weight: 700; }
.dlk-cert-sheet, .dlk-cert { max-width: 760px; margin: 16px auto; padding: 34px 26px; text-align: center; background: #fff; color: #1F2A3D; border: 10px solid var(--teal-d, #1F7A56); outline: 3px solid #FFC93C; outline-offset: -18px; border-radius: 18px; }
.dlk-cert-org { font-weight: 700; color: var(--teal-d, #1F7A56); }
.dlk-cert-title { font-size: 2rem; color: var(--navy-2, #15362A); margin: 6px 0; }
.dlk-cert-name { font-size: 1.6rem; font-weight: 800; border-bottom: 2px dashed var(--table, #C8D6CF); display: inline-block; min-width: 50%; padding: 4px 12px; }
.dlk-cert-code { direction: ltr; font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #4A5D55; }
.dlk-verify { max-width: 620px; margin: 0 auto; text-align: center; }
.dlk-verify-ok { border: 2px solid var(--dlk-ok); background: var(--dlk-ok-bg); border-radius: 14px; padding: 14px; }
.dlk-verify-bad { border: 2px solid var(--dlk-bad); background: var(--dlk-bad-bg); border-radius: 14px; padding: 14px; }
.dlk-safety { border-inline-start: 6px solid var(--dlk-mint); }
.dlk-parent-controls { display: grid; gap: 12px; }
.dlk-switch { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 700; }
.dlk-switch input { width: 46px; height: 26px; accent-color: var(--dlk-primary); }
.dlk-sync { padding: 12px; border-radius: 12px; background: var(--dlk-bg); }
.dlk-policy { max-width: 860px; margin: 0 auto; }
.dlk-policy h2 { margin-top: 1.4em; }
.dlk-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0; }
.dlk-pages a, .dlk-pages span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--dlk-line); background: var(--dlk-card); text-decoration: none !important; font-weight: 700; }
.dlk-pages .current { background: var(--dlk-primary); color: #fff; border-color: var(--dlk-primary); }
.dlk-notfound { text-align: center; padding: 40px 16px; }

/* ---------- art ---------- */
.dlk-art { display: inline-block; width: 64px; height: 64px; }
.dlk-art svg, .dlk-art img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- assistant: the robot and its window are in kids-buddy.css ---------- */
.dlk-robot-kid { width: 120px; height: 120px; display: inline-block; }
.dlk-robot-kid svg { width: 100%; height: 100%; }
body.dlk-printing #dlk-ai { display: none; }

/* With the academy's buddy on screen, other site assistants step aside to avoid two robots. */
body.dlk-solo-assistant .ai-fab,
body.dlk-solo-assistant .ai-backdrop,
body.dlk-solo-assistant #ai-sheet,
body.dlk-solo-assistant #dl-bot,
body.dlk-solo-assistant .dl-bot-fab,
body.dlk-solo-assistant .dlbot-launcher,
body.dlk-solo-assistant .dlb-fab,
body.dlk-solo-assistant .dlb-stem,
body.dlk-solo-assistant #aia-ai,
body.dlk-solo-assistant #aipg-ai,
body.dlk-solo-assistant #aitr-ai,
body.dlk-solo-assistant #ap-ai,
body.dlk-solo-assistant #ar-ai,
body.dlk-solo-assistant #dlaa-ai,
body.dlk-solo-assistant #dlam-ai,
body.dlk-solo-assistant #dlap-ai,
body.dlk-solo-assistant #dlaq-ai,
body.dlk-solo-assistant #dlde-ai,
body.dlk-solo-assistant #dlrt-ai,
body.dlk-solo-assistant #dlrt-h-ai,
body.dlk-solo-assistant #nia-ai,
body.dlk-solo-assistant #sg-ai,
body.dlk-solo-assistant #apg-ai,
body.dlk-solo-assistant #radar-ai,
body.dlk-solo-assistant #aq-ai,
body.dlk-solo-assistant #dse-ai,
body.dlk-solo-assistant #atlas-ai,
body.dlk-solo-assistant #th-ai { display: none !important; }

/* ---------- dialogs and toasts ---------- */
.dlk-dialog-wrap { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 26, 46, .55); display: grid; place-items: center; padding: 16px; font-family: var(--dlk-font); }
.dlk-dialog { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--dlk-card); color: var(--dlk-text); border-radius: var(--dlk-radius); padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: right; }
.dlk-dialog h2 { color: var(--dlk-deep); font-size: 1.3rem; margin: 0 0 10px; }
.dlk-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-top: 16px; }
.dlk-toasts { position: fixed; z-index: 10001; top: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; font-family: var(--dlk-font); }
.dlk-toast { background: var(--dlk-deep); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: dlk-pop .3s; text-align: center; }
html[data-theme="dark"] .dlk-toast { background: var(--teal, #9C86FF); }
.dlk-toast.is-win { background: linear-gradient(135deg, var(--dlk-mint), #1E9E6A); }
.dlk-toast.is-out { opacity: 0; transition: opacity .5s; }
@keyframes dlk-pop { from { transform: scale(.8); opacity: 0; } }

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
	.dlk-grid-2, .dlk-grid-3, .dlk-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.dlk-stats { grid-template-columns: repeat(6, 1fr); }
	.dlk-age-pick { grid-template-columns: repeat(4, 1fr); }
	.dlk-g-opts { grid-template-columns: repeat(2, 1fr); }
	.dlk-g-levels { grid-template-columns: repeat(3, 1fr); }
	.dlk-g-cards { grid-template-columns: repeat(4, 1fr); }
	.dlk-badges { grid-template-columns: repeat(3, 1fr); }
	.dlk-opts-img { grid-template-columns: repeat(4, 1fr); }
	.dlk-quiz-builder { grid-template-columns: repeat(2, 1fr); }
	.dlk-form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.dlk-root { font-size: 18px; }
	.dlk-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.dlk-grid-4 { grid-template-columns: repeat(4, 1fr); }
	.dlk-two { grid-template-columns: 1fr 1fr; }
	.dlk-badges { grid-template-columns: repeat(4, 1fr); }
	.dlk-g-net, .dlk-g-mazewrap { grid-template-columns: minmax(280px, 420px) 1fr; }
	.dlk-quiz-builder { grid-template-columns: repeat(4, 1fr); }
	.dlk-hero { padding: 54px 28px 44px; }
}
@media (max-width: 420px) {
	.dlk-hero { background: var(--dlk-grad); }
	.dlk-slider { grid-template-columns: 1fr 44px; }
	.dlk-slider > span { grid-column: 1 / -1; }
	.dlk-match-row { grid-template-columns: 1fr; }
	.dlk-match-arrow { display: none; }
	.dlk-ch-item { grid-template-columns: auto 1fr; }
	.dlk-ch-item select { grid-column: 1 / -1; }
}

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
	.dlk-root *, #dlk-ai *, .dlk-dialog-wrap *, .dlk-toasts * { animation: none !important; transition: none !important; }
}
@media print {
	body.dlk-printing * { visibility: hidden !important; }
	body.dlk-printing #dlk-cert-sheet, body.dlk-printing #dlk-cert-sheet * { visibility: visible !important; }
	body.dlk-printing #dlk-cert-sheet { position: absolute; inset: 0 0 auto 0; margin: 0 auto; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	#dlk-ai, .dlk-toasts { display: none !important; }
}
