/* ==========================================================================
   EasyGames99 Learning Zone - loaded only on /learn pages.
   Builds on the tokens in site.css (light and dark).
   ========================================================================== */

/* ------------------------------------------------------------ section menu */
.lz-nav { display: flex; gap: 8px; margin: 12px 0 18px; padding: 6px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.lz-nav::-webkit-scrollbar { display: none; }
.lz-tab { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 13px; color: var(--text); font-weight: 750; font-size: .93rem; white-space: nowrap; transition: background .15s, color .15s; }
.lz-tab:hover { background: var(--surface-2); text-decoration: none; }
.lz-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: hsl(var(--h) 92% 95%); color: hsl(var(--h) 62% 42%); flex: none; transition: background .15s, color .15s; }
.lz-ic .icon { width: 19px; height: 19px; }
.lz-tab.is-active { color: #fff; background: linear-gradient(135deg, hsl(var(--h) 78% 52%), hsl(calc(var(--h) + 28) 80% 50%)); box-shadow: 0 8px 18px -8px hsl(var(--h) 80% 45% / .75); }
.lz-tab.is-active .lz-ic { background: rgba(255, 255, 255, .22); color: #fff; }

/* -------------------------------------------------------------- hub hero */
.lz-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 10px 26px;
  padding: clamp(22px, 3vw, 40px); border-radius: 22px; color: #fff; box-shadow: var(--shadow);
  background: radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%), linear-gradient(118deg, #0a9d8e 0%, #1683ec 50%, #4b45ea 100%);
}
.lz-hero::before { content: ""; position: absolute; left: -90px; bottom: -150px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.lz-hero > * { position: relative; }
.lz-hero h1 { margin: 12px 0 10px; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); font-weight: 850; letter-spacing: -.035em; color: #fff; max-width: 20ch; }
.lz-hero p { color: rgba(255, 255, 255, .9); font-size: 1.04rem; max-width: 58ch; margin: 0; }
.lz-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lz-hero-cta .btn { padding: 12px 20px; font-size: .98rem; font-weight: 750; }
.btn.lz-btn-light { background: #fff; color: #0d63c9; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); }
.btn.lz-btn-light:hover { background: #ffe9a8; color: #3a2400; }
.btn.lz-btn-glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn.lz-btn-glass:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.lz-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.lz-stats li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); font-size: .84rem; font-weight: 650; color: rgba(255, 255, 255, .92); }
.lz-stats b { color: #fff; font-weight: 850; }
.lz-hero-art svg { width: 100%; max-width: 380px; height: auto; display: block; margin-inline: auto; filter: drop-shadow(0 18px 26px rgba(10, 20, 80, .28)); }
.lz-float { animation: lz-bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lz-float.f2 { animation-delay: -1.2s; animation-duration: 7s; }
.lz-float.f3 { animation-delay: -2.4s; }
.lz-float.f4 { animation-delay: -3.1s; animation-duration: 6.6s; }
.lz-float.f5 { animation-delay: -4.2s; animation-duration: 7.4s; }
@keyframes lz-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-3deg); } }

/* ------------------------------------------------------------ hub cards */
.lz-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lz-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lz-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: hsl(var(--h) 92% 95%); opacity: .7; transition: transform .3s; }
.lz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: hsl(var(--h) 70% 75%); text-decoration: none; }
.lz-card:hover::after { transform: scale(1.3); }
.lz-card > * { position: relative; z-index: 1; }
.lz-card-top { display: flex; align-items: center; justify-content: space-between; }
.lz-card-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 78% 56%), hsl(calc(var(--h) + 30) 80% 50%)); box-shadow: 0 10px 20px -10px hsl(var(--h) 80% 45%); }
.lz-card-ic .icon { width: 25px; height: 25px; }
.lz-card-ct { font-weight: 850; font-size: 1.5rem; letter-spacing: -.03em; color: hsl(var(--h) 62% 42%); }
.lz-card-body { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.lz-card-body strong { font-size: 1.12rem; letter-spacing: -.01em; }
.lz-card-body > span { color: var(--muted); font-size: .9rem; line-height: 1.5; flex: 1; }
.lz-card-body em { font-style: normal; font-weight: 750; font-size: .88rem; color: hsl(var(--h) 62% 42%); display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; }
.lz-card-body em .icon { width: 15px; height: 15px; transition: transform .15s; }
.lz-card:hover em .icon { transform: translateX(3px); }

/* --------------------------------------------------------------- blocks */
.lz-block { margin-top: 30px; }
.lz-block-head { margin-bottom: 14px; }
.lz-block-head h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; font-size: 1.3rem; }
.lz-block-head h2 .icon { color: var(--accent); }
.lz-block-head p { margin: 0; }
.lz-grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lz-grade { position: relative; padding: 0 20px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.lz-grade header { margin: 0 -20px 14px; padding: 18px 20px 14px; background: linear-gradient(135deg, hsl(var(--h) 92% 96%), hsl(calc(var(--h) + 30) 92% 95%)); border-bottom: 1px solid var(--border); }
.lz-grade header p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.lz-grade-badge { display: inline-block; padding: 5px 13px; border-radius: 999px; color: #fff; font-weight: 800; font-size: .86rem; background: linear-gradient(135deg, hsl(var(--h) 78% 52%), hsl(calc(var(--h) + 28) 80% 50%)); }
.lz-grade h3 { display: flex; align-items: center; gap: 7px; margin: 12px 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lz-grade h3 .icon { width: 16px; height: 16px; color: hsl(var(--h) 62% 45%); }
.lz-grade ul { list-style: none; padding: 0; margin: 0; }
.lz-grade li a { display: block; padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--text); font-weight: 650; font-size: .93rem; }
.lz-grade li:last-child a { border-bottom: 0; }
.lz-grade li a:hover { color: hsl(var(--h) 62% 42%); text-decoration: none; }
.lz-qchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lz-qchips .chip { font-size: .82rem; padding: 5px 12px; background: hsl(var(--h) 92% 95%); color: hsl(var(--h) 62% 36%); }
.lz-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lz-under { margin: 10px 0 0; }
.lz-under a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* --------------------------------------------------------------- panels */
.lz-panel { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.lz-panel > h2 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin: 0 0 6px; }
.lz-panel > h2 .icon { color: var(--accent); }
.lz-panel > .muted { font-size: .9rem; margin-bottom: 10px; }
.lz-panel > .btn { margin-top: 12px; }
.lz-qlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.lz-qlist a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; color: var(--text); border: 1px solid transparent; transition: background .15s, border-color .15s; }
.lz-qlist a:hover { background: var(--surface-2); border-color: var(--border); text-decoration: none; }
.lz-qlist a > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lz-qlist b { font-weight: 750; font-size: .95rem; line-height: 1.3; }
.lz-qlist small { color: var(--muted); font-size: .8rem; }
.lz-qi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: hsl(var(--h) 92% 95%); color: hsl(var(--h) 62% 42%); }
.lz-qi .icon { width: 20px; height: 20px; }
.lz-best { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--muted); font-size: .86rem; }
.lz-best b { color: var(--text); }
.lz-sts { display: inline-flex; gap: 1px; }
.lz-st { width: 16px; height: 16px; fill: var(--border-strong); }
.lz-st.on { fill: #ffb020; }

/* -------------------------------------------------------- headings, filter */
.lz-head { margin-bottom: 4px; }
.lz-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; }
.lz-chip { --h: 230; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 700; font-size: .88rem; transition: background .15s, color .15s, border-color .15s; }
.lz-chip:hover { border-color: hsl(var(--h) 70% 55%); color: hsl(var(--h) 62% 42%); }
.lz-chip.is-on { background: hsl(var(--h) 75% 52%); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -6px hsl(var(--h) 80% 45%); }
.lz-chip[data-f="all"].is-on { background: var(--text); }
.lz-none { text-align: center; color: var(--muted); padding: 28px 0; }

/* ------------------------------------------------------------- math games */
.lz-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.lz-game { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.lz-game:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lz-game-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.lz-game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.lz-game:hover .lz-game-thumb img { transform: scale(1.05); }
.lz-skill { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: hsl(var(--h) 62% 38%); font-size: .76rem; font-weight: 800; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.lz-play { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: hsl(var(--h) 70% 45%); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .45); transform: scale(.85); opacity: .92; transition: transform .2s, opacity .2s; }
.lz-play .icon { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
.lz-game:hover .lz-play { transform: scale(1); opacity: 1; }
.lz-game-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 14px; flex: 1; }
.lz-game-body h2 { margin: 0; font-size: 1.08rem; }
.lz-game-body h2 a { color: var(--text); }
.lz-game-body h2 a:hover { color: hsl(var(--h) 62% 42%); text-decoration: none; }
.lz-game-body p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; flex: 1; }
.lz-game-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.lz-grade-tag { padding: 3px 10px; border-radius: 999px; background: hsl(var(--h) 92% 95%); color: hsl(var(--h) 62% 36%); font-size: .78rem; font-weight: 750; margin-right: auto; }
.lz-mini { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .78rem; font-weight: 700; }
.lz-mini .icon { width: 14px; height: 14px; }
.lz-mini:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ----------------------------------------------------------------- lessons */
.lz-lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.lz-lesson-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.lz-lesson-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: hsl(var(--h) 70% 75%); text-decoration: none; }
.lz-ln { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 850; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 78% 55%), hsl(calc(var(--h) + 30) 80% 50%)); box-shadow: 0 8px 16px -8px hsl(var(--h) 80% 45%); }
.lz-lc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.lz-lc-skill { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--h) 62% 40%); }
.lz-lc-body strong { font-size: 1.04rem; line-height: 1.3; }
.lz-lc-sum { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.lz-lc-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.lz-lc-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.lz-lc-meta .icon { width: 15px; height: 15px; color: hsl(var(--h) 62% 45%); }
.lz-done-tag { color: var(--ok) !important; }
.lz-done-tag .icon { color: var(--ok) !important; }
.lz-lc-go { flex: none; align-self: center; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: background .15s, color .15s, transform .15s; }
.lz-lesson-card:hover .lz-lc-go { background: hsl(var(--h) 75% 52%); color: #fff; transform: translateX(2px); }

/* ---------------------------------------------------------- lesson page */
.lz-lesson { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.lz-article { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); padding: clamp(20px, 3.4vw, 40px); min-width: 0; }
.lz-article-head { padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.lz-article-head h1 { margin: 6px 0 8px; }
.lz-article-head .lead { margin-bottom: 10px; }
.lz-aside { position: sticky; top: calc(var(--top) + 16px); display: grid; gap: 14px; max-height: calc(100vh - var(--top) - 28px); overflow: auto; scrollbar-width: thin; }
.lz-toc { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.lz-toc li { counter-increment: toc; }
.lz-toc a { display: flex; gap: 9px; padding: 6px 8px; border-radius: 9px; color: var(--muted); font-size: .9rem; font-weight: 650; line-height: 1.35; }
.lz-toc a::before { content: counter(toc); flex: none; width: 21px; height: 21px; border-radius: 7px; display: grid; place-items: center; font-size: .74rem; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.lz-toc a:hover, .lz-toc a.is-on { background: hsl(var(--h) 92% 96%); color: hsl(var(--h) 62% 36%); text-decoration: none; }
.lz-toc a.is-on::before { background: hsl(var(--h) 75% 52%); color: #fff; }
.lz-prac { --h: 262; display: flex; align-items: center; gap: 11px; padding: 10px; margin-top: 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .15s, background .15s, transform .15s; }
.lz-prac:hover { border-color: hsl(var(--h) 70% 65%); background: hsl(var(--h) 92% 97%); text-decoration: none; transform: translateY(-2px); }
.lz-prac > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lz-prac small { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.lz-prac b { font-size: .95rem; line-height: 1.3; }
.lz-prac-game img { width: 76px; height: 57px; object-fit: cover; border-radius: 10px; flex: none; }
.lz-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.lz-pn a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); }
.lz-pn a:hover { border-color: var(--accent); text-decoration: none; }
.lz-pn small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; }
.lz-pn .icon { width: 14px; height: 14px; }
.lz-pn-next { text-align: right; align-items: flex-end; grid-column: 2; }

/* lesson text */
.lz-prose { font-size: 1.04rem; line-height: 1.72; }
.lz-prose > *:first-child { margin-top: 0; }
.lz-prose h2 { margin: 1.8em 0 .6em; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); scroll-margin-top: calc(var(--top) + 16px); display: flex; align-items: center; gap: 10px; }
.lz-prose h2::before { content: ""; flex: none; width: 8px; height: 26px; border-radius: 4px; background: linear-gradient(180deg, hsl(var(--h) 78% 56%), hsl(calc(var(--h) + 30) 80% 50%)); }
.lz-prose h3 { margin: 1.4em 0 .5em; font-size: 1.1rem; }
.lz-prose p, .lz-prose li { color: var(--text); }
.lz-prose ul, .lz-prose ol { margin: 0 0 1em; }
.lz-prose li { margin-bottom: .35em; }
.lz-prose li::marker { color: hsl(var(--h) 62% 45%); font-weight: 800; }
.lz-prose strong { font-weight: 800; }
.lz-key { margin: 1.2em 0; padding: 18px 20px 16px 62px; position: relative; border-radius: 16px; background: linear-gradient(135deg, hsl(var(--h) 92% 96%), hsl(calc(var(--h) + 30) 92% 96%)); border: 1px solid hsl(var(--h) 70% 86%); }
.lz-key::before { content: ""; position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 10px; background: hsl(var(--h) 75% 52%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2V17h5v-1.1c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.lz-key b:first-child, .lz-warn b:first-child, .lz-ex > b:first-child { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.lz-key b:first-child { color: hsl(var(--h) 62% 38%); }
.lz-key p:last-child, .lz-warn p:last-child, .lz-ex p:last-child { margin-bottom: 0; }
.lz-warn { margin: 1.2em 0; padding: 16px 20px 14px 62px; position: relative; border-radius: 16px; background: #fff6e6; border: 1px solid #ffd99a; }
.lz-warn::before { content: ""; position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 10px; background: #ff9f1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 20px no-repeat; }
.lz-warn b:first-child { color: #a35a00; }
.lz-ex { margin: 1.2em 0; padding: 16px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.lz-ex > b:first-child { color: var(--muted); }
.lz-steps { list-style: none; padding: 0; margin: .4em 0 0; counter-reset: st; }
.lz-steps li { counter-increment: st; position: relative; padding-left: 38px; margin-bottom: .55em; }
.lz-steps li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; background: hsl(var(--h) 75% 52%); }
.lz-figs { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 1.2em 0; }
.lz-figure { margin: 1.2em auto; text-align: center; }
.lz-figure svg, .lz-figs svg { max-width: 100%; height: auto; }
.lz-figure figcaption, .lz-figs figcaption { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.lz-figs figure { margin: 0; text-align: center; }
.lz-math { font-size: 1.25em; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.lz-big { display: block; text-align: center; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 850; letter-spacing: .02em; margin: .5em 0; color: hsl(var(--h) 62% 36%); }
.lz-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1em 0; font-size: .96rem; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.lz-table th, .lz-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--border); }
.lz-table th { background: hsl(var(--h) 92% 96%); color: hsl(var(--h) 62% 34%); font-weight: 800; }
.lz-table tr:last-child td { border-bottom: 0; }
.lz-table-wrap { overflow-x: auto; }
.lz-hl { padding: 1px 6px; border-radius: 6px; background: hsl(var(--h) 92% 92%); color: hsl(var(--h) 62% 32%); font-weight: 800; }
.lz-hl2 { padding: 1px 6px; border-radius: 6px; background: #ffe7c2; color: #8a4b00; font-weight: 800; }
.lz-hl3 { padding: 1px 6px; border-radius: 6px; background: #d6f5e7; color: #0d6b45; font-weight: 800; }
.lz-col { display: inline-grid; grid-auto-flow: row; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 700; line-height: 1.5; text-align: right; padding: 10px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.lz-col .ln { border-top: 2px solid var(--text); }
.lz-col .cr { font-size: .8rem; color: #e0485f; line-height: 1; }

/* practice */
.lz-practice { margin-top: 2.2em; padding: clamp(18px, 2.6vw, 26px); border-radius: 18px; background: linear-gradient(160deg, hsl(var(--h) 92% 97%), var(--surface) 60%); border: 1px solid hsl(var(--h) 70% 86%); }
.lz-practice > h2 { margin-top: 0; }
.lz-pqs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: pq; }
.lz-pq { counter-increment: pq; position: relative; padding: 14px 16px 12px 56px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s; }
.lz-pq::before { content: counter(pq); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 850; font-size: .9rem; background: var(--surface-2); color: var(--muted); transition: background .2s, color .2s; }
.lz-pq.is-ok { border-color: #8fd9b6; }
.lz-pq.is-ok::before { content: ""; background: #1aa36a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.lz-pq > p:first-child { margin: 3px 0 10px; font-weight: 650; }
.lz-pq-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lz-pq-form input { width: 150px; max-width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; }
.lz-pq-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 75, 255, .14); }
.lz-pq.is-ok .lz-pq-form input { border-color: #1aa36a; background: #effbf5; }
.lz-pq-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lz-pq-fb { margin: 8px 0 0; font-size: .93rem; color: var(--muted); }
.lz-pq-fb:empty { display: none; }
.lz-pq-fb.ok { color: var(--ok); }
.lz-pq-fb.bad { color: var(--danger); }
.lz-pq-fb .icon { width: 17px; height: 17px; }
.lz-pq-done { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #e9f9f1; border: 1px solid #9fdcc3; color: #0b5b3b; font-weight: 700; }
.lz-pq-done .icon { width: 26px; height: 26px; flex: none; }

/* shared option button (teasers and lesson practice) */
.lz-opt { min-width: 58px; min-height: 48px; padding: 8px 16px; border-radius: 12px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 750; font-size: 1rem; display: inline-grid; place-items: center; transition: border-color .15s, background .15s, transform .1s; }
.lz-opt:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.lz-opt svg { width: 42px; height: 42px; display: block; }
.lz-opt.is-right { border-color: #1aa36a; background: #e9f9f1; color: #0b5b3b; }
.lz-opt.is-wrong { border-color: #e2667a; background: #fdeef0; color: #8f1f2c; opacity: .75; }
.lz-opt:disabled { cursor: default; }

/* ------------------------------------------------------------- quizzes */
.lz-qgroup { margin-top: 24px; }
.lz-qgroup > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.18rem; margin: 0 0 12px; }
.lz-dot { width: 12px; height: 12px; border-radius: 50%; background: hsl(var(--h) 75% 52%); box-shadow: 0 0 0 4px hsl(var(--h) 92% 92%); }
.lz-quiz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.lz-quiz-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.lz-quiz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: hsl(var(--h) 70% 75%); text-decoration: none; }
.lz-qc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.lz-level { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.lz-level-1 { background: #ddf6ea; color: #0b6b44; }
.lz-level-2 { background: #fff0d3; color: #8a5300; }
.lz-level-3 { background: #ffe2e6; color: #a1182f; }
.lz-quiz-card strong { font-size: 1.02rem; line-height: 1.3; }
.lz-qc-sum { color: var(--muted); font-size: .88rem; line-height: 1.45; flex: 1; }
.lz-qc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border); color: var(--muted); font-size: .8rem; font-weight: 650; }

/* ------------------------------------------------------------ quiz page */
.lz-quiz-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.lz-quiz { position: relative; overflow: hidden; min-height: 460px; padding: clamp(18px, 3vw, 34px); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); scroll-margin-top: calc(var(--top) + 12px); }
.lz-quiz::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, hsl(var(--h) 78% 55%), hsl(calc(var(--h) + 40) 80% 55%)); }
.lz-qz-start { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 8px; }
.lz-qz-badge { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 78% 55%), hsl(calc(var(--h) + 34) 80% 50%)); box-shadow: 0 16px 30px -14px hsl(var(--h) 80% 40%); margin-bottom: 14px; }
.lz-qz-badge .icon { width: 36px; height: 36px; }
.lz-qz-start h1 { margin-bottom: 8px; }
.lz-qz-start .lead { margin-inline: auto; }
.lz-qz-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 8px 0 18px; }
.lz-qz-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: .86rem; font-weight: 650; color: var(--muted); }
.lz-qz-facts .icon { width: 16px; height: 16px; color: hsl(var(--h) 62% 45%); }
.lz-qz-facts .lz-best { font-size: .86rem; }
.lz-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.lz-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lz-switch span { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--border-strong); transition: background .2s; flex: none; }
.lz-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.lz-switch input:checked + span { background: hsl(var(--h) 75% 50%); }
.lz-switch input:checked + span::after { transform: translateX(18px); }
.lz-switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.lz-big-btn { padding: 13px 26px; font-size: 1.04rem; font-weight: 800; }
.btn.lz-big-btn .icon { width: 20px; height: 20px; }
.lz-qz-go .icon { fill: currentColor; }
.btn:disabled { opacity: .55; cursor: default; }

.lz-qz-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 750; font-size: .92rem; color: var(--muted); }
.lz-qz-count { margin-right: auto; }
.lz-qz-count b { color: var(--text); }
.lz-qz-score, .lz-qz-time { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.lz-qz-score .lz-st { width: 18px; height: 18px; }
.lz-qz-time .icon { width: 17px; height: 17px; color: hsl(var(--h) 62% 45%); }
.lz-qz-time.is-low { background: #ffe2e6; color: #a1182f; animation: lz-pulse .8s ease-in-out infinite; }
.lz-qz-time.is-low .icon { color: #a1182f; }
@keyframes lz-pulse { 50% { transform: scale(1.06); } }
.lz-qz-ib { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.lz-qz-ib:hover { color: var(--accent); border-color: var(--accent); }
.lz-qz-ib .icon { width: 18px; height: 18px; }
.lz-qz-bar, .lz-qz-tbar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 12px 0 0; }
.lz-qz-bar i, .lz-qz-tbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, hsl(var(--h) 78% 55%), hsl(calc(var(--h) + 40) 80% 55%)); transition: width .4s ease; }
.lz-qz-tbar { height: 4px; margin-top: 6px; }
.lz-qz-tbar i { background: #ffb020; transition: width .1s linear; }
.lz-qz-card { padding: clamp(14px, 3vw, 30px) 0 4px; text-align: center; }
.lz-qz-card.in { animation: lz-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes lz-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lz-qz-fig { display: flex; justify-content: center; margin: 0 0 10px; }
.lz-qz-q { margin: 0 auto 18px; max-width: 34ch; font-size: clamp(1.25rem, 1rem + 1.3vw, 2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.35; }
.lz-qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; margin: 0 auto; }
.lz-qz-opts.n3 > :last-child { grid-column: 1 / -1; }
.lz-qopt { position: relative; min-height: 64px; padding: 12px 18px 12px 52px; border-radius: 16px; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: 800; text-align: left; display: flex; align-items: center; transition: border-color .15s, background .15s, transform .12s, box-shadow .15s; }
.lz-qopt:hover:not(:disabled) { border-color: hsl(var(--h) 70% 55%); transform: translateY(-2px); box-shadow: 0 10px 20px -12px hsl(var(--h) 70% 40%); }
.lz-qopt kbd { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 800 .8rem var(--font); background: var(--surface-2); color: var(--muted); }
.lz-qopt.is-right { border-color: #1aa36a; background: #e9f9f1; color: #0b5b3b; animation: lz-pop .35s; }
.lz-qopt.is-right kbd { background: #1aa36a; color: #fff; }
.lz-qopt.is-wrong { border-color: #e2667a; background: #fdeef0; color: #8f1f2c; animation: lz-shake .35s; }
.lz-qopt.is-wrong kbd { background: #e2667a; color: #fff; }
.lz-qopt:disabled { cursor: default; }
.lz-qopt:disabled:not(.is-right):not(.is-wrong) { opacity: .55; }
@keyframes lz-pop { 50% { transform: scale(1.04); } }
@keyframes lz-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.lz-qz-fb { min-height: 28px; margin: 16px auto 0; max-width: 60ch; font-size: 1rem; color: var(--muted); }
.lz-qz-fb.ok { color: var(--ok); font-size: 1.1rem; }
.lz-qz-fb.bad b { color: var(--danger); }
.lz-qz-fb .icon { width: 20px; height: 20px; }
.lz-ans { font-weight: 800; color: var(--text); }
.lz-qz-next { margin-top: 14px; }
.lz-qz-res { position: relative; text-align: center; padding: 10px 0 0; }
.lz-qz-stars { display: flex; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.lz-qz-stars .lz-st { width: 64px; height: 64px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.lz-qz-stars .lz-st.on { animation: lz-star .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.lz-qz-stars .lz-st.on:nth-child(2) { animation-delay: .15s; transform: translateY(-8px); }
.lz-qz-stars .lz-st.on:nth-child(3) { animation-delay: .3s; }
.lz-qz-stars .lz-st:nth-child(2) { width: 76px; height: 76px; margin-top: -8px; }
@keyframes lz-star { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.lz-qz-res h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin: 0 0 6px; }
.lz-qz-sum { font-size: 1.12rem; margin: 0 0 4px; }
.lz-newbest { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; background: #fff0d3; color: #8a5300; font-size: .86rem; font-weight: 800; vertical-align: 2px; }
.lz-newbest .icon { width: 15px; height: 15px; }
.lz-qz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 8px; }
.lz-qz-review { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; text-align: left; counter-reset: rv; }
.lz-qz-review li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.lz-qz-review li.ok { border-color: #bfe9d4; }
.lz-qz-review li.bad { border-color: #f4c3cb; background: #fff8f9; }
.lz-qz-review p { margin: 0; }
.lz-qz-review p:first-child { font-weight: 750; }
.lz-rv-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #1aa36a; }
.lz-qz-review li.bad .lz-rv-ic { background: #e2667a; }
.lz-rv-ic .icon { width: 16px; height: 16px; }
.lz-rv-a { font-size: .94rem; color: var(--muted); }
.lz-rv-a s { color: var(--danger); }
.lz-rv-tip { font-size: .88rem; color: var(--muted); margin-top: 4px !important; }
.lz-quiz-side { display: grid; gap: 12px; }
.lz-quiz-side .lz-prac { margin-top: 0; }
.lz-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lz-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: lz-fall linear forwards; }
@keyframes lz-fall { to { transform: translate(var(--dx), 520px) rotate(var(--r)); opacity: 0; } }

/* math notation */
.lz-fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 .12em; font-weight: 800; }
.lz-fr b, .lz-fr i { font-style: normal; font-weight: inherit; padding: 0 .18em; font-size: .86em; }
.lz-fr i { border-top: 2px solid currentColor; }
.lz-box { display: inline-block; min-width: 1.6em; padding: 0 .25em; border: 2px dashed hsl(var(--h, 230) 70% 55%); border-radius: 8px; color: hsl(var(--h, 230) 62% 45%); line-height: 1.25; text-align: center; }
.lz-qz-q sup, .lz-qopt sup { font-size: .6em; }

/* quiz figures */
.lz-fig { width: 100%; max-width: 200px; height: auto; display: block; }
.lz-fig-wide { max-width: 360px; }
.lz-fig-clock { max-width: 210px; }
.lz-f-on { stroke: var(--surface); stroke-width: 2; }
.lz-f-off { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 2; }
.lz-f-rect { fill: hsl(var(--h, 230) 92% 92%); stroke: hsl(var(--h, 230) 62% 45%); stroke-width: 3; }
.lz-f-lb { fill: var(--text); font-size: 15px; font-weight: 800; font-family: var(--font); }
.lz-f-cell { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.lz-f-cell-on { fill: hsl(var(--h, 230) 75% 62%); stroke: hsl(var(--h, 230) 62% 42%); stroke-width: 1.2; }
.lz-f-poly { stroke: rgba(0, 0, 0, .18); stroke-width: 3; stroke-linejoin: round; }
.lz-ck-face { fill: #fff; }
.lz-ck-rim { fill: none; stroke: hsl(var(--h, 230) 70% 52%); stroke-width: 7; }
.lz-ck-tk { stroke: #b9bfd3; stroke-width: 1.5; }
.lz-ck-tk5 { stroke: #2a2f45; stroke-width: 3; stroke-linecap: round; }
.lz-ck-num { font: 800 19px var(--font); fill: #2a2f45; }
.lz-ck-h { stroke: #2a2f45; stroke-width: 8; stroke-linecap: round; }
.lz-ck-m { stroke: #ff6a3d; stroke-width: 5; stroke-linecap: round; }
.lz-ck-pin { fill: #2a2f45; stroke: #fff; stroke-width: 2.5; }

/* -------------------------------------------------------- manipulatives */
.lz-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.lz-tool-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lz-tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: hsl(var(--h) 70% 75%); text-decoration: none; }
.lz-tool-art { display: grid; place-items: center; padding: 18px; background: radial-gradient(120% 90% at 50% 0%, hsl(var(--h) 92% 97%), hsl(var(--h) 80% 92%)); border-bottom: 1px solid var(--border); }
.lz-art { width: 100%; max-width: 170px; height: auto; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.lz-tool-card:hover .lz-art { transform: scale(1.06) rotate(-1.5deg); }
.lz-tool-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; flex: 1; }
.lz-tool-body strong { font-size: 1.08rem; }
.lz-tool-body > span { color: var(--muted); font-size: .9rem; line-height: 1.5; flex: 1; }
.lz-tool-body em { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-style: normal; font-size: .8rem; font-weight: 750; color: var(--muted); }
.lz-tool-body em span { display: inline-flex; align-items: center; gap: 4px; color: hsl(var(--h) 62% 42%); }
.lz-tool-body em .icon { width: 15px; height: 15px; }
.lz-tools-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.lz-tools-sm .lz-tool-art { padding: 12px; }
.lz-tools-sm .lz-art { max-width: 110px; }
.lz-tools-sm .lz-tool-body { padding: 10px 12px 12px; }
.lz-tools-sm .lz-tool-body strong { font-size: .98rem; }

.lz-tool-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.lz-tool-app { padding: clamp(16px, 2.6vw, 26px); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 0; }
.lz-tool-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.lz-tool-head h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.lz-tool-head p { margin: 0; color: var(--muted); }
.lz-tool-badge { flex: none; width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; padding: 8px; background: hsl(var(--h) 92% 95%); }
.lz-tool-badge .lz-art { max-width: 100%; }
.lz-tool-wait { display: flex; align-items: center; gap: 8px; padding: 50px 0; justify-content: center; color: var(--muted); }
.lz-tool-side { display: grid; gap: 14px; position: sticky; top: calc(var(--top) + 16px); }
.lz-tool-side .lz-prac { margin-top: 0; }
.lz-how { margin: 6px 0 0; padding-left: 1.2em; }
.lz-how li { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-bottom: .45em; }
.lz-how li::marker { color: hsl(var(--h) 62% 45%); font-weight: 800; }
.lz-ideas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.lz-ideas li { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.lz-ideas li > span { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 850; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 78% 55%), hsl(calc(var(--h) + 30) 80% 50%)); }
.lz-ideas p { margin: 0; color: var(--text); font-size: .94rem; line-height: 1.5; }

/* tool chrome (built by learn.js) */
.lz-tbar { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 12px; margin-bottom: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.lz-tgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lz-tg-l { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
.lz-tbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 13px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 700; font-size: .88rem; line-height: 1.2; transition: border-color .15s, background .15s, color .15s, transform .1s; }
.lz-tbtn:hover:not(:disabled) { border-color: hsl(var(--h) 70% 55%); color: hsl(var(--h) 62% 40%); }
.lz-tbtn:active:not(:disabled) { transform: translateY(1px); }
.lz-tbtn:disabled { opacity: .45; cursor: default; }
.lz-tbtn .icon { width: 16px; height: 16px; }
.lz-tbtn.is-pri { background: hsl(var(--h) 75% 50%); border-color: transparent; color: #fff; }
.lz-tbtn.is-pri:hover:not(:disabled) { background: hsl(var(--h) 75% 44%); color: #fff; }
.lz-tbtn.is-on { background: hsl(var(--h) 92% 94%); border-color: hsl(var(--h) 70% 60%); color: hsl(var(--h) 62% 36%); }
.lz-tbtn.is-h { border-color: #7c8cff; color: #3d4bff; }
.lz-tbtn.is-t { border-color: #34c38f; color: #0f8a5c; }
.lz-tbtn.is-o { border-color: #ffb02e; color: #a86400; }
.lz-tbtn.is-x { font-style: normal; }
.lz-tbtn i { font-weight: 850; }
.lz-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); flex-wrap: wrap; }
.lz-seg button { min-height: 32px; padding: 5px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 750; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.lz-seg button[aria-checked="true"] { background: hsl(var(--h) 75% 50%); color: #fff; }
.lz-field { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; color: var(--muted); }
.lz-field input, .lz-field select { min-height: 38px; padding: 6px 10px; width: 74px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 750; }
.lz-field select { width: auto; }
.lz-field input:focus, .lz-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 75, 255, .15); }
.lz-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lz-svg { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.lz-svg:focus { outline: none; }
.lz-svg:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 16px; }
.lz-readout { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); min-height: 56px; }
.lz-readout p { margin: 6px 0 0; color: var(--text); }
.lz-readout p:first-child { margin-top: 0; }
.lz-readout .muted { color: var(--muted); }
.lz-ro-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.lz-ro-big b { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 850; letter-spacing: -.01em; color: hsl(var(--h) 62% 36%); line-height: 1.2; }
.lz-ro-big b i { font-style: italic; }
.lz-ro-big span { color: var(--muted); font-weight: 650; }
.lz-ro-tip { display: flex; align-items: flex-start; gap: 7px; color: var(--muted) !important; font-size: .92rem; }
.lz-ro-tip .icon { width: 17px; height: 17px; margin-top: 3px; color: hsl(var(--h) 62% 45%); }
.lz-ro-goal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff0d3; color: #7a4a00 !important; font-weight: 750; margin-bottom: 8px !important; }
.lz-ro-goal.is-ok { background: #ddf6ea; color: #0b6b44 !important; }
.lz-ro-goal .icon { width: 17px; height: 17px; }
.lz-ro-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.lz-ro-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lz-dotc { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.lz-sign { color: var(--text); padding: 0 .1em; }

/* base ten */
.lz-b10 { max-width: 760px; }
.lz-mat { fill: var(--surface); stroke: var(--border); stroke-width: 2; }
.lz-mat-h { fill: var(--muted); font: 800 15px var(--font); letter-spacing: .02em; }
.lz-blk { cursor: pointer; transition: opacity .15s; }
.lz-blk:hover { opacity: .8; }
.lz-blk:focus { outline: none; }
.lz-blk:focus-visible .lz-blk-face { stroke: var(--text); stroke-width: 3; }
.lz-blk-h .lz-blk-face { fill: #7c8cff; stroke: #4a59e6; stroke-width: 1.5; }
.lz-blk-t .lz-blk-face { fill: #34c38f; stroke: #1b9467; stroke-width: 1.5; }
.lz-blk-o .lz-blk-face { fill: #ffb02e; stroke: #d48300; stroke-width: 1.5; }
.lz-blk-grid { stroke: rgba(0, 0, 0, .2); stroke-width: 1; fill: none; pointer-events: none; }

/* fraction bars */
.lz-fb { max-width: 820px; }
.lz-fb-part { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; cursor: pointer; transition: fill .15s; }
.lz-fb-part:hover { fill: var(--surface-2); }
.lz-fb-part.is-on { stroke: rgba(0, 0, 0, .15); }
.lz-fb-part:focus { outline: none; }
.lz-fb-part:focus-visible { stroke: var(--text); stroke-width: 3; }
.lz-fb-pt { font: 750 12px var(--font); fill: var(--muted); pointer-events: none; }
.lz-fb-pt.is-on { fill: #fff; }
.lz-fb-lb { font: 800 15px var(--font); fill: var(--muted); }
.lz-fb-lb.is-on { fill: var(--text); }
.lz-fb-guide { stroke: #e0485f; stroke-width: 2; stroke-dasharray: 6 5; pointer-events: none; }

/* number line */
.lz-nl { max-width: 900px; cursor: pointer; }
.lz-nl-axis { stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; }
.lz-nl-head { fill: var(--text); }
.lz-nl-tk { stroke: var(--muted); stroke-width: 1.6; }
.lz-nl-tk5 { stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; }
.lz-nl-n { font: 750 14px var(--font); fill: var(--text); }
.lz-nl-n.is-zero { font-weight: 900; }
.lz-nl-mark { fill: #4f6bff; stroke: #fff; stroke-width: 3; }
.lz-nl-ml { font: 850 15px var(--font); fill: #4f6bff; }
.lz-nl-jump { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: lz-draw .6s ease forwards; }
.lz-nl-jump.fw, .lz-nl-jhead.fw { stroke: #ff7a59; fill: none; }
.lz-nl-jump.bk, .lz-nl-jhead.bk { stroke: #13a8c9; fill: none; }
.lz-nl-jhead { stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.lz-nl-jhead.fw { fill: #ff7a59; }
.lz-nl-jhead.bk { fill: #13a8c9; }
.lz-nl-jl { font: 850 14px var(--font); fill: var(--text); }
.lz-nl-start { fill: #fff; stroke: #ff7a59; stroke-width: 3; }
.lz-nl-end { fill: #ff7a59; stroke: #fff; stroke-width: 3; }
.lz-nl-cur { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 4 3; }
@keyframes lz-draw { to { stroke-dashoffset: 0; } }

/* hundred chart */
.lz-swatches { display: inline-flex; gap: 6px; }
.lz-sw { width: 32px; height: 32px; border-radius: 10px; border: 2px solid rgba(0, 0, 0, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.lz-sw[aria-checked="true"] { outline: 3px solid var(--text); outline-offset: 2px; }
.lz-hc { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; width: 100%; max-width: 620px; }
.lz-hc-c { aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 750; font-size: clamp(.72rem, .55rem + .8vw, 1.05rem); transition: background .15s, transform .12s, opacity .2s; }
.lz-hc-c:hover { border-color: var(--accent); transform: translateY(-1px); }
.lz-hc-c.is-col { color: #1d2236; border-color: rgba(0, 0, 0, .08); }
.lz-hc-c.is-dim { opacity: .35; }
.lz-hc-c.is-hid { color: transparent; background: repeating-linear-gradient(135deg, hsl(var(--h) 70% 88%) 0 6px, hsl(var(--h) 70% 82%) 6px 12px); position: relative; }
.lz-hc-c.is-hid::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: hsl(var(--h) 62% 30%); font-weight: 900; }
.lz-hc-c.pop { animation: lz-pop .4s both; }

/* geoboard */
.lz-geo { max-width: 420px; cursor: crosshair; touch-action: manipulation; }
.lz-geo-board { fill: #e9ecf6; stroke: #cfd5e8; stroke-width: 2; }
.lz-geo-grid { stroke: #d5dbec; stroke-width: 1; fill: none; pointer-events: none; }
.lz-geo-band { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.lz-geo-band.is-closed { fill-opacity: .2; }
.lz-peg-hit { fill: transparent; }
.lz-peg-dot { fill: #59617f; pointer-events: none; }
.lz-peg:hover .lz-peg-dot { fill: var(--accent); r: 7.5; }
.lz-geo-first { fill: none; stroke: var(--text); stroke-width: 2; stroke-dasharray: 4 3; pointer-events: none; animation: lz-spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
.lz-geo-cur { fill: none; stroke: var(--accent); stroke-width: 3; pointer-events: none; }
@keyframes lz-spin { to { transform: rotate(360deg); } }

/* clock */
.lz-clock { max-width: 340px; touch-action: none; }
.lz-ck-rim2 { fill: hsl(var(--h) 75% 52%); }
.lz-clock .lz-ck-face { fill: #fff; }
.lz-ck-min { font: 700 9px var(--font); fill: rgba(255, 255, 255, .85); }
.lz-ck-num2 { font: 850 24px var(--font); fill: #2a2f45; }
.lz-ck-h2 { stroke: #2a2f45; stroke-width: 11; stroke-linecap: round; }
.lz-ck-m2 { stroke: #ff6a3d; stroke-width: 7; stroke-linecap: round; }
.lz-ck-grab { stroke: transparent; stroke-width: 30; stroke-linecap: round; }
.lz-ck-hg, .lz-ck-mg { cursor: grab; }
.lz-ck-hg:focus, .lz-ck-mg:focus { outline: none; }
.lz-ck-hg:focus-visible .lz-ck-h2, .lz-ck-mg:focus-visible .lz-ck-m2 { stroke: var(--accent); }
.lz-clock.is-drag, .lz-clock.is-drag .lz-ck-hg, .lz-clock.is-drag .lz-ck-mg { cursor: grabbing; }

/* ten frames */
.lz-tf-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 760px; }
.lz-tf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px; gap: 0; border-radius: 16px; background: #fff; border: 4px solid #3d4bff; box-shadow: var(--shadow-sm); }
.lz-tf-c { aspect-ratio: 1; min-width: 0; padding: 0; display: grid; place-items: center; border: 2px solid #c9cff5; background: #fff; margin: -1px; }
.lz-tf-c:hover { background: #f2f4ff; }
.lz-tf-c:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.lz-ctr { display: inline-block; width: 72%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset -4px -5px 0 rgba(0, 0, 0, .14), inset 3px 4px 0 rgba(255, 255, 255, .35); animation: lz-drop .25s cubic-bezier(.2, 1.4, .4, 1); }
.lz-ctr-r { background: #ff5468; }
.lz-ctr-y { background: #ffc23d; }
.lz-ctr-sm { width: 14px; height: 14px; vertical-align: -2px; animation: none; }
.lz-seg .lz-ctr { width: 14px; height: 14px; animation: none; }
@keyframes lz-drop { from { transform: scale(.3); } to { transform: scale(1); } }
.lz-tf-wrap.is-flash .lz-tf { border-color: #ffb020; }
.lz-tf-quiz { text-align: center; }
.lz-tf-quiz p { margin: 0 0 8px; }
.lz-tf-opts { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lz-tf-opts .lz-tbtn { min-width: 56px; justify-content: center; font-size: 1.05rem; }

/* balance scale */
.lz-bal { max-width: 760px; }
.lz-bal-post { fill: #c3c9de; }
.lz-bal-base { fill: #8d95b3; }
.lz-bal-beam { stroke: #3d4bff; stroke-width: 10; stroke-linecap: round; }
.lz-bal-pin { fill: #fff; stroke: #3d4bff; stroke-width: 5; }
.lz-bal-ptr { fill: #e0485f; transition: fill .2s; }
.lz-bal-ptr.is-level { fill: #1aa36a; }
.lz-bal-str { stroke: #8d95b3; stroke-width: 2; fill: none; }
.lz-bal-pan { fill: #ffd36b; stroke: #d9a320; stroke-width: 2; }
.lz-wt { cursor: pointer; }
.lz-wt:hover { opacity: .85; }
.lz-wt:focus { outline: none; }
.lz-wt:focus-visible .lz-wt-b { stroke: var(--text); stroke-width: 3; }
.lz-wt-b { stroke: rgba(0, 0, 0, .18); stroke-width: 1.5; }
.lz-wt-1 { fill: #34c38f; }
.lz-wt-2 { fill: #13a8c9; }
.lz-wt-5 { fill: #4f6bff; }
.lz-wt-10 { fill: #7c5cff; }
.lz-wt-x { fill: #ff5a78; }
.lz-wt-t { font: 850 14px var(--font); fill: #fff; pointer-events: none; }
.lz-wt.is-x .lz-wt-t { font-style: italic; font-size: 17px; }
.lz-bal-ans { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lz-bal-ans label { font-weight: 850; font-size: 1.15rem; }
.lz-bal-ans input { width: 80px; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; font-size: 1.05rem; }
.lz-bal-fb { font-weight: 700; }
.lz-bal-fb.ok { color: var(--ok); }
.lz-bal-fb.bad { color: var(--danger); }
.lz-bal-fb .icon { width: 17px; height: 17px; }

/* ----------------------------------------------------------- brain teasers */
.lz-teasers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.lz-teaser { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--top) + 20px); transition: border-color .2s, box-shadow .2s; }
.lz-teaser::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: hsl(var(--h) 75% 55%); }
.lz-teaser.is-solved { border-color: #a8e0c6; }
.lz-teaser.shake { animation: lz-shake .35s; }
.lz-teaser.flash { animation: lz-flash 1.4s ease; }
@keyframes lz-flash { 0%, 100% { box-shadow: var(--shadow-sm); } 30% { box-shadow: 0 0 0 5px hsl(var(--h) 80% 60% / .45), var(--shadow); } }
.lz-tz-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; font-weight: 800; }
.lz-tz-n { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.lz-tz-cat { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: hsl(var(--h) 92% 95%); color: hsl(var(--h) 62% 38%); }
.lz-tz-cat .icon { width: 14px; height: 14px; }
.lz-lvl { display: inline-flex; gap: 3px; margin-left: auto; }
.lz-lvl i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 70% 55%); }
.lz-lvl i.off { background: var(--border-strong); }
.lz-solved { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #ddf6ea; color: #0b6b44; }
.lz-solved .icon { width: 14px; height: 14px; }
.lz-tz-fig { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.lz-tok { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.lz-tok svg { width: 44px; height: 44px; }
.lz-tok.is-q { border-style: dashed; border-color: hsl(var(--h) 70% 60%); }
.lz-tok-q { fill: hsl(var(--h) 92% 95%); }
.lz-tok-qt { font: 900 28px var(--font); fill: hsl(var(--h) 62% 42%); }
.lz-tok-ar { fill: #4f6bff; }
.lz-tz-q { margin: 0; font-weight: 650; font-size: 1rem; line-height: 1.55; }
.lz-tz-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lz-tz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lz-tz-in { flex: 1 1 140px; min-width: 0; max-width: 220px; min-height: 42px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; }
.lz-tz-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 75, 255, .14); }
.lz-tz-in.is-right { border-color: #1aa36a; background: #effbf5; }
.lz-tz-form .btn { min-height: 42px; }
.lz-tz-fb { margin: 0; font-weight: 700; font-size: .93rem; }
.lz-tz-fb:empty { display: none; }
.lz-tz-fb.ok { color: var(--ok); }
.lz-tz-fb.bad { color: var(--danger); }
.lz-tz-fb .icon { width: 17px; height: 17px; }
.lz-tz-more { display: flex; gap: 14px; }
.lz-link { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; background: none; color: var(--accent); font-weight: 700; font-size: .88rem; }
.lz-link:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.lz-link:disabled { color: var(--muted); cursor: default; }
.lz-link .icon { width: 16px; height: 16px; }
.lz-tz-hint, .lz-tz-why { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.55; }
.lz-tz-hint { background: #fff6e6; color: #6b4300; }
.lz-tz-why { background: #e9f9f1; color: #0b5b3b; }
.lz-teaser-daily { padding: 20px 22px; border-width: 2px; border-color: hsl(var(--h) 70% 80%); background: linear-gradient(160deg, hsl(var(--h) 92% 97%), var(--surface) 55%); }
.lz-teaser-daily .lz-tz-n { color: hsl(var(--h) 62% 38%); font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
.lz-teaser-daily .lz-tz-n .icon { width: 17px; height: 17px; color: #ffb020; }
.lz-teaser-daily .lz-tz-q { font-size: 1.12rem; }
.lz-tz-stats .lz-bars { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 10px; }
.lz-bars li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 46px; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; }
.lz-bar-l { display: inline-flex; align-items: center; gap: 7px; }
.lz-bar-l .icon { width: 16px; height: 16px; color: hsl(var(--h) 62% 45%); }
.lz-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lz-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, hsl(var(--h) 78% 55%), hsl(calc(var(--h) + 30) 80% 55%)); transition: width .5s ease; }
.lz-bar-n { text-align: right; color: var(--muted); font-size: .84rem; }
.lz-tz-count { color: var(--ok); }

/* ------------------------------------------------------------------ dark */
html[data-theme="dark"] .lz-ic, html[data-theme="dark"] .lz-qi, html[data-theme="dark"] .lz-tz-cat, html[data-theme="dark"] .lz-grade-tag,
html[data-theme="dark"] .lz-qchips .chip, html[data-theme="dark"] .lz-tool-badge { background: hsl(var(--h) 42% 22%); color: hsl(var(--h) 92% 78%); }
html[data-theme="dark"] .lz-tab.is-active .lz-ic { background: rgba(255, 255, 255, .2); color: #fff; }
html[data-theme="dark"] .lz-hero { background: radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 55%), linear-gradient(118deg, #08786c 0%, #105fb0 50%, #3532b4 100%); }
html[data-theme="dark"] .btn.lz-btn-light { background: #fff; color: #0d4f9e; }
html[data-theme="dark"] .lz-card::after { background: hsl(var(--h) 42% 20%); opacity: .5; }
html[data-theme="dark"] .lz-card-ct, html[data-theme="dark"] .lz-card-body em, html[data-theme="dark"] .lz-lc-skill, html[data-theme="dark"] .lz-ro-big b,
html[data-theme="dark"] .lz-tool-body em span, html[data-theme="dark"] .lz-big { color: hsl(var(--h) 92% 76%); }
html[data-theme="dark"] .lz-grade header { background: linear-gradient(135deg, hsl(var(--h) 40% 18%), hsl(calc(var(--h) + 30) 40% 17%)); }
html[data-theme="dark"] .lz-grade li a:hover, html[data-theme="dark"] .lz-game-body h2 a:hover { color: hsl(var(--h) 92% 76%); }
html[data-theme="dark"] .lz-skill { background: rgba(13, 16, 34, .86); color: hsl(var(--h) 92% 80%); }
html[data-theme="dark"] .lz-play { background: #edf0ff; }
html[data-theme="dark"] .lz-chip:hover { color: hsl(var(--h) 92% 78%); }
html[data-theme="dark"] .lz-chip[data-f="all"].is-on { background: #5b67f5; }
html[data-theme="dark"] .lz-toc a:hover, html[data-theme="dark"] .lz-toc a.is-on, html[data-theme="dark"] .lz-prac:hover { background: hsl(var(--h) 40% 18%); color: hsl(var(--h) 92% 82%); }
html[data-theme="dark"] .lz-key { background: linear-gradient(135deg, hsl(var(--h) 40% 17%), hsl(calc(var(--h) + 30) 40% 16%)); border-color: hsl(var(--h) 40% 30%); }
html[data-theme="dark"] .lz-key b:first-child { color: hsl(var(--h) 92% 78%); }
html[data-theme="dark"] .lz-warn { background: #2e2310; border-color: #6b4d12; }
html[data-theme="dark"] .lz-warn b:first-child { color: #ffc56b; }
html[data-theme="dark"] .lz-table th { background: hsl(var(--h) 40% 18%); color: hsl(var(--h) 92% 82%); }
html[data-theme="dark"] .lz-hl { background: hsl(var(--h) 40% 24%); color: hsl(var(--h) 92% 84%); }
html[data-theme="dark"] .lz-hl2 { background: #4a3210; color: #ffd28a; }
html[data-theme="dark"] .lz-hl3 { background: #12402c; color: #8ff0c4; }
html[data-theme="dark"] .lz-col .ln { border-top-color: var(--text); }
html[data-theme="dark"] .lz-practice { background: linear-gradient(160deg, hsl(var(--h) 40% 15%), var(--surface) 60%); border-color: hsl(var(--h) 40% 28%); }
html[data-theme="dark"] .lz-pq.is-ok { border-color: #1f6b4a; }
html[data-theme="dark"] .lz-pq.is-ok .lz-pq-form input, html[data-theme="dark"] .lz-tz-in.is-right { background: #0f2a20; }
html[data-theme="dark"] .lz-pq-done { background: #0f2a20; border-color: #1f6b4a; color: #9ff0c9; }
html[data-theme="dark"] .lz-opt.is-right, html[data-theme="dark"] .lz-qopt.is-right { background: #0f2a20; border-color: #2fb27a; color: #9ff0c9; }
html[data-theme="dark"] .lz-opt.is-wrong, html[data-theme="dark"] .lz-qopt.is-wrong { background: #2e1218; border-color: #c2506a; color: #ffb3bd; }
html[data-theme="dark"] .lz-level-1 { background: #12402c; color: #8ff0c4; }
html[data-theme="dark"] .lz-level-2 { background: #4a3210; color: #ffd28a; }
html[data-theme="dark"] .lz-level-3 { background: #4a1621; color: #ffb3bd; }
html[data-theme="dark"] .lz-dot { box-shadow: 0 0 0 4px hsl(var(--h) 40% 22%); }
html[data-theme="dark"] .lz-qz-time.is-low { background: #4a1621; color: #ffb3bd; }
html[data-theme="dark"] .lz-newbest, html[data-theme="dark"] .lz-ro-goal { background: #4a3210; color: #ffd28a !important; }
html[data-theme="dark"] .lz-ro-goal.is-ok, html[data-theme="dark"] .lz-solved { background: #12402c; color: #8ff0c4 !important; }
html[data-theme="dark"] .lz-qz-review li.ok { border-color: #1f6b4a; }
html[data-theme="dark"] .lz-qz-review li.bad { border-color: #7a2a35; background: #24121a; }
html[data-theme="dark"] .lz-tool-art { background: radial-gradient(120% 90% at 50% 0%, hsl(var(--h) 40% 22%), hsl(var(--h) 40% 15%)); }
html[data-theme="dark"] .lz-tbtn.is-on { background: hsl(var(--h) 40% 22%); border-color: hsl(var(--h) 60% 55%); color: hsl(var(--h) 92% 82%); }
html[data-theme="dark"] .lz-tbtn.is-h { color: #a9b3ff; }
html[data-theme="dark"] .lz-tbtn.is-t { color: #6fe0b4; }
html[data-theme="dark"] .lz-tbtn.is-o { color: #ffc96b; }
html[data-theme="dark"] .lz-tbtn:hover:not(:disabled) { color: hsl(var(--h) 92% 80%); }
html[data-theme="dark"] .lz-tbtn.is-pri, html[data-theme="dark"] .lz-tbtn.is-pri:hover:not(:disabled) { color: #fff; }
html[data-theme="dark"] .lz-geo-board { fill: #1f2444; stroke: #38406d; }
html[data-theme="dark"] .lz-geo-grid { stroke: #2d3460; }
html[data-theme="dark"] .lz-peg-dot { fill: #a6add3; }
html[data-theme="dark"] .lz-hc-c.is-hid::after { color: #10152b; }
html[data-theme="dark"] .lz-tf { background: #f3f5ff; border-color: #6e79ff; }
html[data-theme="dark"] .lz-tz-hint { background: #2e2310; color: #ffd9a0; }
html[data-theme="dark"] .lz-tz-why { background: #0f2a20; color: #a6f0cb; }
html[data-theme="dark"] .lz-teaser.is-solved { border-color: #1f6b4a; }
html[data-theme="dark"] .lz-teaser-daily { background: linear-gradient(160deg, hsl(var(--h) 40% 16%), var(--surface) 55%); border-color: hsl(var(--h) 40% 32%); }
html[data-theme="dark"] .lz-teaser-daily .lz-tz-n { color: hsl(var(--h) 92% 80%); }
html[data-theme="dark"] .lz-tok-q { fill: hsl(var(--h) 40% 22%); }
html[data-theme="dark"] .lz-tok-qt { fill: hsl(var(--h) 92% 80%); }
html[data-theme="dark"] .lz-tok-ar { fill: #8a94ff; }
html[data-theme="dark"] .lz-box { border-color: hsl(var(--h, 230) 70% 65%); color: hsl(var(--h, 230) 92% 80%); }
html[data-theme="dark"] .lz-f-rect { fill: hsl(var(--h, 230) 40% 24%); stroke: hsl(var(--h, 230) 80% 70%); }
html[data-theme="dark"] .lz-f-cell-on { fill: hsl(var(--h, 230) 60% 55%); }
html[data-theme="dark"] .lz-tool-badge .lz-art, html[data-theme="dark"] .lz-tool-art .lz-art { filter: saturate(1.05); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1250px) {
  .lz-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lz-lesson, .lz-tool-page { grid-template-columns: minmax(0, 1fr) 270px; }
  .lz-quiz-page { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1000px) {
  .lz-hero { grid-template-columns: minmax(0, 1fr); }
  .lz-hero-art { display: none; }
  .lz-grades { grid-template-columns: minmax(0, 1fr); }
  .lz-split { grid-template-columns: minmax(0, 1fr); }
  .lz-lesson, .lz-tool-page, .lz-quiz-page { grid-template-columns: minmax(0, 1fr); }
  .lz-aside, .lz-tool-side { position: static; max-height: none; overflow: visible; }
  .lz-toc-box { display: none; }
  .lz-quiz-side, .lz-tool-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
}
@media (max-width: 700px) {
  .lz-nav { margin: 10px -12px 14px; border-radius: 0; border-left: 0; border-right: 0; padding: 6px 12px; }
  .lz-tab { flex: none; padding: 6px 12px 6px 6px; font-size: .86rem; }
  .lz-ic { width: 30px; height: 30px; border-radius: 10px; }
  .lz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lz-card { padding: 14px; }
  .lz-card:last-child { grid-column: 1 / -1; }
  .lz-card-body > span { display: none; }
  .lz-card-ic { width: 42px; height: 42px; border-radius: 13px; }
  .lz-hero { border-radius: 18px; padding: 20px 18px; }
  .lz-hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .lz-article { padding: 18px 16px; border-radius: 16px; }
  .lz-key, .lz-warn { padding: 54px 16px 14px; }
  .lz-key::before, .lz-warn::before { left: 16px; top: 14px; }
  .lz-pq { padding: 50px 14px 12px; }
  .lz-pq::before { left: 14px; top: 12px; }
  .lz-quiz { padding: 16px 14px 20px; border-radius: 18px; min-height: 0; }
  .lz-qz-opts { gap: 9px; }
  .lz-qopt { min-height: 58px; padding: 10px 12px 10px 44px; border-radius: 14px; }
  .lz-qopt kbd { left: 10px; width: 24px; height: 24px; }
  .lz-qz-stars .lz-st { width: 52px; height: 52px; }
  .lz-qz-stars .lz-st:nth-child(2) { width: 62px; height: 62px; }
  .lz-tool-app { padding: 14px; border-radius: 18px; }
  .lz-tool-head { gap: 12px; }
  .lz-tool-badge { width: 58px; height: 58px; border-radius: 16px; }
  .lz-tool-head p { font-size: .92rem; }
  .lz-tbar { padding: 10px; gap: 8px; }
  .lz-tbtn { min-height: 36px; padding: 6px 10px; font-size: .84rem; }
  .lz-hc { gap: 3px; }
  .lz-hc-c { border-radius: 6px; }
  .lz-tf-wrap { grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 360px; }
  .lz-bars li { grid-template-columns: 120px minmax(0, 1fr) 40px; }
  .lz-pn { grid-template-columns: minmax(0, 1fr); }
  .lz-pn-next { grid-column: 1; }
  .lz-teaser { padding: 14px 14px 14px 16px; }
  .lz-tok { width: 44px; height: 44px; }
  .lz-tok svg { width: 36px; height: 36px; }
}
@media (max-width: 380px) {
  .lz-qz-opts { grid-template-columns: minmax(0, 1fr); }
  .lz-qz-opts.n3 > :last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lz-float, .lz-geo-first, .lz-qz-time.is-low { animation: none; }
  .lz-nl-jump { animation: none; stroke-dashoffset: 0; }
}
