/* Learn IT! (learn-it.php, learn-it.js). Shares its building blocks with Lingo Learn, in blues. */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700 900; font-display: swap; src: url(fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700 900; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #FFF8EC; --paper: #FFFFFF; --ink: #1E2433; --muted: #667085; --line: #EADFCB;
  --green: #22C55E; --green-d: #16A34A; --green-dd: #15803D; --green-soft: #DCFCE7;
  --red: #EF4444; --red-d: #B91C1C; --red-soft: #FEE2E2;
  --gold: #FACC15; --orange: #F97316; --blue: #3B82F6; --purple: #8B5CF6;
  --font-d: 'Bricolage Grotesque', system-ui, sans-serif; --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.learnit { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font-b);
  background-image: radial-gradient(circle at 10% 0%, rgba(34, 197, 94, .12), transparent 40%), radial-gradient(circle at 100% 30%, rgba(250, 204, 21, .14), transparent 35%); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }
button { font: inherit; color: inherit; }
a { color: var(--green-dd); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.li-app { max-width: 880px; margin: 0 auto; padding: 0 16px 60px; }

/* Top bar */
.li-top { display: flex; align-items: center; gap: 12px; padding: 14px 0; flex-wrap: wrap; }
.li-brand { display: inline-flex; width: 36px; height: 36px; }
.li-brand svg, .li-brand img { width: 100%; height: 100%; }
.li-title { display: inline-flex; align-items: center; gap: 8px; font: 900 22px var(--font-d); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.li-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: #fff; font: 900 17px var(--font-d); box-shadow: 0 3px 0 var(--green-dd); transform: rotate(-6deg); }
.li-chips { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.li-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); font-weight: 800; font-size: 15px; white-space: nowrap; }
.li-chip svg { width: 20px; height: 20px; }
.li-chip.fire svg { fill: #D1D5DB; }
.li-chip.fire.lit svg { fill: var(--orange); filter: drop-shadow(0 0 4px rgba(249, 115, 22, .5)); }
.li-chip.fire.lit { color: var(--orange); border-color: #FED7AA; }
.li-chip-u { font-size: 12px; color: var(--muted); font-weight: 700; }
.li-chip.flag { cursor: pointer; }
.li-chip.flag img { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.li-chip.flag:hover { border-color: var(--green); }
.li-speak { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.lang-switch { display: inline-flex; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang-switch a { padding: 5px 9px; font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }

.li-ring { position: relative; display: inline-block; flex: none; }
.li-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.li-ring circle { fill: none; stroke-width: 4; }
.li-ring .bg { stroke: #EEE6D6; }
.li-ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dasharray .8s ease; }

/* Cards and buttons */
.li-main { position: relative; }
.li-wait { text-align: center; color: var(--muted); padding: 60px 0; }
.li-card { background: var(--paper); border-radius: 28px; padding: 32px; box-shadow: 0 2px 0 var(--line), 0 18px 50px rgba(120, 90, 40, .1); margin-top: 16px; animation: li-up .45s cubic-bezier(.2, 1.2, .4, 1) both; }
.li-h1 { font: 900 clamp(26px, 5vw, 36px)/1.15 var(--font-d); margin: 0 0 10px; letter-spacing: -.015em; }
.li-lead { font-size: 19px; color: var(--muted); margin: 0 0 16px; }
.li-kicker { margin: 0 0 6px; font-weight: 800; color: var(--green-dd); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.li-sub { margin: 0; color: var(--muted); font-weight: 600; }
.li-note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.center { text-align: center; justify-content: center; }
.li-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.li-input { flex: 1 1 220px; font: inherit; font-size: 18px; padding: 13px 16px; border-radius: 14px; border: 2px solid var(--line); background: #FFFDF8; min-width: 0; }
.li-input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px var(--green-soft); }
.li-input.code { text-transform: uppercase; letter-spacing: .1em; flex: 0 1 180px; }
.li-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font-weight: 800; font-size: 16px; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 4px 0 var(--line); transition: transform .08s, box-shadow .08s, filter .15s; }
.li-btn:hover { filter: brightness(1.04); }
.li-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.li-btn:disabled { opacity: .55; cursor: default; }
.li-btn.primary { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-dd); }
.li-btn.primary:active { box-shadow: 0 1px 0 var(--green-dd); }
.li-btn.danger { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-d); }
.li-btn.ghost { background: transparent; }
.li-btn.small { padding: 7px 14px; font-size: 13px; }
.li-btn.big { padding: 15px 28px; font-size: 17px; min-width: 200px; }
.li-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 10px 0; font-weight: 600; }
.li-claim { margin-top: 14px; color: var(--muted); }
.li-claim summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.li-claim .li-row { margin-top: 8px; }

/* Welcome */
.li-hello { text-align: center; padding-top: 18px; }
.li-hello .li-row { justify-content: center; max-width: 520px; margin: 0 auto; }
.li-hero-art { position: relative; height: 150px; margin: 0 auto 8px; max-width: 520px; }
.li-bubble { position: absolute; padding: 8px 16px; border-radius: 18px; font: 900 20px var(--font-d); color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); animation: li-float 4s ease-in-out infinite, li-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.li-bubble::after { content: ''; position: absolute; bottom: -7px; left: 22px; border: 8px solid transparent; border-top-color: inherit; border-bottom: 0; }
.li-bubble.b1 { left: 4%; top: 18px; background: var(--orange); border-color: var(--orange); animation-delay: 0s, .05s; }
.li-bubble.b2 { left: 30%; top: 0; background: var(--blue); border-color: var(--blue); animation-delay: .6s, .15s; }
.li-bubble.b3 { right: 8%; top: 16px; background: var(--green); border-color: var(--green); animation-delay: 1.2s, .25s; }
.li-bubble.b4 { left: 14%; top: 86px; background: var(--purple); border-color: var(--purple); animation-delay: 1.8s, .35s; }
.li-bubble.b5 { left: 46%; top: 70px; background: #EC4899; border-color: #EC4899; animation-delay: 2.4s, .45s; }
.li-bubble.b6 { right: 2%; top: 92px; background: #0EA5E9; border-color: #0EA5E9; animation-delay: 3s, .55s; }

/* Pick a language */
.li-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 18px; }
.li-lang-card { display: grid; justify-items: center; gap: 4px; padding: 20px 12px 16px; border-radius: 20px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; box-shadow: 0 4px 0 var(--line); transition: transform .12s, border-color .12s, box-shadow .12s; animation: li-up .45s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i) * 50ms); }
.li-lang-card img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); margin-bottom: 6px; }
.li-lang-card b { font: 900 20px var(--font-d); }
.li-lang-card span { color: var(--muted); font-size: 14px; }
.li-lang-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 7px 0 var(--green-soft); }
.li-lang-card.on { border-color: var(--green); background: #F0FDF4; }

/* Course header and review */
.li-course { background: var(--paper); border-radius: 28px; padding: 22px; margin-top: 16px; box-shadow: 0 2px 0 var(--line), 0 18px 50px rgba(120, 90, 40, .08); }
.li-course-h { display: flex; align-items: center; gap: 16px; }
.li-course-h > div { flex: 1; min-width: 0; }
.li-course-h .li-h1 { margin: 0; font-size: clamp(22px, 4.6vw, 30px); }
.li-course-flag { width: 66px; height: 44px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line); }
.li-review { margin-top: 16px; width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 2px solid #BFDBFE; background: #EFF6FF; cursor: pointer; text-align: left; box-shadow: 0 4px 0 #BFDBFE; }
.li-review:active { transform: translateY(3px); box-shadow: 0 1px 0 #BFDBFE; }
.li-review-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--blue); flex: none; }
.li-review-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.li-review-t { display: grid; flex: 1; }
.li-review-t b { font-size: 17px; }
.li-review-t span { font-size: 14px; color: var(--muted); }
.li-badge { background: var(--red); color: #fff; font-weight: 900; border-radius: 999px; padding: 2px 10px; font-size: 14px; }

/* The topic path */
.li-path { list-style: none; margin: 28px 0 0; padding: 0; display: grid; justify-items: center; gap: 22px; }
.li-node { display: grid; justify-items: center; gap: 4px; transform: translateX(calc(var(--x) * min(70px, 13vw))); position: relative; animation: li-up .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(min(var(--i), 10) * 40ms); }
.li-node-b { position: relative; width: 96px; height: 96px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.li-node-b .li-ring { position: absolute; inset: 0; width: 96px !important; height: 96px !important; }
.li-node-b .li-ring circle { stroke-width: 3.2; }
.li-node-e { position: absolute; inset: 11px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; background: #E5E7EB; box-shadow: 0 6px 0 #C7CBD1; transition: transform .1s, box-shadow .1s; }
.li-node.going .li-node-e, .li-node.next .li-node-e { background: var(--green); box-shadow: 0 6px 0 var(--green-dd); }
.li-node.done .li-node-e { background: #FDE68A; box-shadow: 0 6px 0 #D97706; }
.li-node.gold .li-node-e { background: linear-gradient(135deg, #FDE047, #F59E0B); box-shadow: 0 6px 0 #B45309; }
.li-node-b:hover .li-node-e { transform: translateY(-2px); }
.li-node-b:active .li-node-e { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.li-node-b:disabled { opacity: .6; }
.li-node.next .li-node-e { animation: li-bounce 2.2s ease-in-out infinite; }
.li-crown { position: absolute; top: -10px; right: -4px; font-size: 26px; transform: rotate(14deg); }
.li-node-tag { position: absolute; top: -34px; background: var(--paper); border: 2px solid var(--green); color: var(--green-dd); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; padding: 4px 12px; border-radius: 12px; white-space: nowrap; animation: li-float 2.4s ease-in-out infinite; }
.li-node-tag::after { content: ''; position: absolute; left: calc(50% - 7px); bottom: -8px; border: 7px solid transparent; border-top-color: var(--green); border-bottom: 0; }
.li-node-n { font-weight: 800; font-size: 15px; text-align: center; max-width: 170px; line-height: 1.25; margin-top: 4px; }
.li-node-p { font-size: 13px; color: var(--muted); font-weight: 700; }
.li-node.next { margin-top: 18px; }

/* A lesson */
.li-lesson { min-height: calc(100vh - 90px); display: flex; flex-direction: column; padding-bottom: 20px; }
.li-lesson.has-sheet { padding-bottom: 360px; }
.li-ltop { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.li-x { width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.li-x:hover { background: #F3EBDD; color: var(--ink); }
.li-x svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.li-bar { flex: 1; height: 18px; border-radius: 999px; background: #EEE6D6; overflow: hidden; }
.li-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(180deg, #4ADE80, var(--green)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08), inset 0 4px 0 rgba(255, 255, 255, .35); transition: width .5s cubic-bezier(.2, 1.2, .4, 1); min-width: 18px; }
.li-combo { min-width: 44px; font: 900 18px var(--font-d); color: var(--orange); text-align: right; }
.li-combo.bump { animation: li-pop .5s cubic-bezier(.2, 1.8, .4, 1); }
.li-qbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4vh 0 2vh; }
.li-again { margin: 0 0 8px; color: var(--orange); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.li-emoji { font-size: clamp(64px, 16vw, 96px); line-height: 1; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; background: var(--paper); box-shadow: 0 6px 0 var(--line), 0 16px 40px rgba(120, 90, 40, .12); margin-bottom: 22px; animation: li-pop .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.li-prompt { font: 800 clamp(24px, 5.6vw, 36px)/1.25 var(--font-b); margin: 0; max-width: 680px; animation: li-up .4s ease-out .1s both; }
.li-word { background: none; color: var(--green-dd); font-family: var(--font-d); font-weight: 900; white-space: nowrap; padding: 0 2px; box-shadow: inset 0 -.32em 0 #BBF7D0; }
.li-hint { margin: 6px 0 0; color: var(--muted); font-weight: 700; }
.li-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 680px; margin-top: 7vh; }
.li-opt { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 18px; min-height: 72px; border-radius: 18px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; box-shadow: 0 5px 0 var(--line); font-weight: 800; font-size: clamp(19px, 4.6vw, 23px); transition: transform .08s, box-shadow .08s, border-color .12s, background .12s; animation: li-up .4s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
.li-opt:hover:not(:disabled) { border-color: #93C5FD; background: #F8FBFF; }
.li-opt:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.li-opt:disabled { cursor: default; }
.li-key { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.li-opt-t { overflow-wrap: anywhere; }
.li-opt.picked { border-color: var(--blue); background: #EFF6FF; box-shadow: 0 5px 0 #BFDBFE; }
.li-opt.right { border-color: var(--green); background: var(--green-soft); box-shadow: 0 5px 0 #86EFAC; color: var(--green-dd); animation: li-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.li-opt.right .li-key { border-color: var(--green); color: var(--green-dd); }
.li-opt.wrong { border-color: var(--red); background: var(--red-soft); box-shadow: 0 5px 0 #FCA5A5; color: var(--red-d); animation: li-shake .45s ease; }
.li-opts:has(.right) .li-opt:not(.right):not(.wrong) { opacity: .5; }

/* The tip sheet after an answer */
.li-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 20px max(16px, calc((100vw - 760px) / 2)) calc(20px + env(safe-area-inset-bottom)); border-top: 3px solid; transform: translateY(105%); transition: transform .38s cubic-bezier(.2, 1.1, .3, 1); max-height: 78vh; overflow: auto; }
.li-sheet.in { transform: none; }
.li-sheet.ok { background: #E9FBEF; border-color: #86EFAC; }
.li-sheet.no { background: #FFEDED; border-color: #FCA5A5; }
.li-sheet-h { display: flex; align-items: center; gap: 14px; }
.li-sheet-h > div { flex: 1; display: grid; }
.li-sheet-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; flex: none; }
.li-sheet-ico svg { width: 28px; height: 28px; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.li-sheet.ok .li-sheet-ico svg { stroke: var(--green-d); }
.li-sheet.no .li-sheet-ico svg { stroke: var(--red); }
.li-sheet-t { font: 900 26px var(--font-d); }
.li-sheet.ok .li-sheet-t { color: var(--green-dd); }
.li-sheet.no .li-sheet-t { color: var(--red-d); }
.li-sheet-ans { font-weight: 800; color: var(--red-d); }
.li-sheet-combo { font-weight: 800; color: var(--orange); }
.li-sheet-xp { font: 900 18px var(--font-d); color: #CA8A04; background: #FEF9C3; padding: 4px 12px; border-radius: 999px; animation: li-pop .5s cubic-bezier(.2, 1.8, .4, 1) .2s both; }
.li-tip { display: flex; gap: 14px; margin: 16px 0; padding: 16px 18px; background: #fff; border-radius: 18px; box-shadow: 0 3px 0 rgba(0, 0, 0, .06); animation: li-up .45s ease-out .15s both; }
.li-tip-bulb { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #FEF9C3; }
.li-tip-bulb svg { width: 28px; height: 28px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.li-tip-bulb .glass { fill: var(--gold); stroke: #CA8A04; stroke-width: 1.1; animation: li-bulb 1s steps(1) .3s both; }
.li-tip-bulb .base { stroke: #9CA3AF; stroke-width: 1.8; }
.li-tip-b { min-width: 0; flex: 1; }
.li-tip-word { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.li-tip-word b { font: 900 clamp(24px, 6vw, 32px)/1.1 var(--font-d); }
.li-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.li-tag { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #F3F4F6; color: #374151; }
.li-tag.pos { background: #EDE9FE; color: #6D28D9; }
.li-tag.g-m { background: #DBEAFE; color: #1D4ED8; }
.li-tag.g-f { background: #FCE7F3; color: #BE185D; }
.li-tag.g-n { background: #FEF3C7; color: #92400E; }
.li-ex { margin-top: 12px; border-left: 4px solid #BBF7D0; padding-left: 12px; }
.li-ex-t { margin: 0; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.li-ex-b { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.li-alt { margin: 10px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.li-say { width: 38px; height: 38px; border-radius: 12px; border: 2px solid #BFDBFE; background: #EFF6FF; display: inline-grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 3px 0 #BFDBFE; }
.li-say svg { width: 22px; height: 22px; fill: var(--blue); }
.li-say svg .w { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.li-say.pop svg .w { animation: li-wave .6s ease; }
.li-sheet .li-btn.big { width: 100%; }

/* End of lesson */
.li-done { text-align: center; }
.li-done-burst { font-size: 84px; line-height: 1; animation: li-pop .7s cubic-bezier(.2, 1.8, .4, 1) both; margin-bottom: 8px; }
.li-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.li-stat { border-radius: 18px; border: 2px solid; padding: 0 0 12px; overflow: hidden; animation: li-up .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.li-stat:nth-child(2) { animation-delay: .1s; } .li-stat:nth-child(3) { animation-delay: .2s; }
.li-stat-l { display: block; padding: 6px 4px; color: #fff; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.li-stat-v { display: block; font: 900 32px var(--font-d); margin-top: 8px; }
.li-stat.xp { border-color: var(--gold); } .li-stat.xp .li-stat-l { background: var(--gold); color: #713F12; } .li-stat.xp .li-stat-v { color: #CA8A04; }
.li-stat.acc { border-color: var(--green); } .li-stat.acc .li-stat-l { background: var(--green); } .li-stat.acc .li-stat-v { color: var(--green-dd); }
.li-stat.fire { border-color: var(--orange); } .li-stat.fire .li-stat-l { background: var(--orange); } .li-stat.fire .li-stat-v { color: var(--orange); }
.li-goal { display: inline-flex; align-items: center; gap: 14px; text-align: left; padding: 12px 20px; border-radius: 18px; background: #FFFBEB; border: 2px solid #FDE68A; }
.li-goal > div { display: grid; }
.li-goal span { color: var(--muted); font-size: 14px; font-weight: 600; }
.li-streak-note { font-weight: 800; color: var(--orange); margin: 16px 0 0; }
.li-done .li-sub { margin: 10px 0 22px; }
.li-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.li-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: li-fall linear both; }

/* Quit and toasts */
.li-modal { position: fixed; inset: 0; z-index: 60; background: rgba(30, 36, 51, .45); display: grid; place-items: center; padding: 16px; animation: li-fade .2s ease both; }
.li-modal-box { background: #fff; border-radius: 22px; padding: 24px; max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: li-pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.li-modal-box p { margin: 0 0 18px; font-weight: 700; font-size: 18px; }
.li-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 700; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: li-up .3s ease both; transition: opacity .4s; }
.li-toast.bad { background: var(--red-d); }
.li-toast.out { opacity: 0; }

@keyframes li-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; } }
.li-node { animation-name: li-node-in; }
@keyframes li-node-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes li-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes li-fade { from { opacity: 0; } }
@keyframes li-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes li-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes li-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes li-bulb { 0% { fill: #D1D5DB; } 25% { fill: var(--gold); } 45% { fill: #D1D5DB; } 60%, 100% { fill: var(--gold); } }
@keyframes li-wave { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes li-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .9; } }

@media (max-width: 600px) {
  .li-card { padding: 22px 18px; border-radius: 22px; }
  .li-speak > span { display: none; }
  .li-title { font-size: 19px; }
  .li-chips { order: 3; width: 100%; margin-left: 0; }
  .li-opts { grid-template-columns: 1fr; gap: 10px; margin-top: 4vh; }
  .li-opt { min-height: 60px; padding: 14px; }
  .li-stats { gap: 8px; }
  .li-stat-v { font-size: 26px; }
  .li-stat-l { font-size: 11px; }
  .li-btn.big { min-width: 0; width: 100%; }
  .li-langs { grid-template-columns: 1fr 1fr; }
  .li-course-h { flex-wrap: wrap; }
}

/* ---------- Learn IT! own look ---------- */
:root { --brand: #2563EB; --brand-d: #1D4ED8; --brand-dd: #1E3A8A; --brand-soft: #DBEAFE; --cyan: #06B6D4; --bg: #F3F7FF; --line: #D9E3F5; }
body.learnit { background-image: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, .12), transparent 40%), radial-gradient(circle at 100% 20%, rgba(6, 182, 212, .14), transparent 35%); }
.li-logo { background: var(--brand); box-shadow: 0 3px 0 var(--brand-dd); }
.li-logo svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.li-btn.primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 4px 0 var(--brand-dd); }
.li-btn.primary:active { box-shadow: 0 1px 0 var(--brand-dd); }
.li-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.li-kicker { color: var(--brand-d); }
.li-ring .fg { stroke: var(--cyan); }
.li-top .lang-switch { margin-left: 8px; }
.li-lead { font-size: 18px; }
.li-ask { font-weight: 800; margin: 18px 0 10px; }
.li-sub { color: var(--muted); font-weight: 600; margin: 12px 0 0; }

/* Welcome */
.li-hero-art { position: relative; height: 120px; max-width: 460px; margin: 0 auto 6px; }
.li-orb { position: absolute; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 32px; background: #fff; box-shadow: 0 6px 0 var(--line), 0 12px 30px rgba(37, 99, 235, .12); animation: li-pop .5s cubic-bezier(.2, 1.6, .4, 1) both, li-float 4s ease-in-out infinite; }
.li-orb.o0 { left: 2%; top: 30px; animation-delay: .05s, 0s; } .li-orb.o1 { left: 19%; top: 0; animation-delay: .12s, .5s; }
.li-orb.o2 { left: 37%; top: 40px; animation-delay: .19s, 1s; } .li-orb.o3 { left: 55%; top: 4px; animation-delay: .26s, 1.5s; }
.li-orb.o4 { left: 72%; top: 38px; animation-delay: .33s, 2s; } .li-orb.o5 { right: 0; top: 2px; animation-delay: .4s, 2.5s; }

/* Pick a topic */
.li-pickhead { margin-top: 18px; }
.li-pickhead .li-lead { margin-bottom: 14px; }
.li-quick { display: grid; gap: 10px; margin-bottom: 8px; }
.li-quick-b { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px 16px; border-radius: 18px; border: 2px solid; cursor: pointer; font-size: 16px; }
.li-quick-b:active { transform: translateY(3px); }
.li-quick-b.go { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-dd); }
.li-quick-b.review { background: #FFF7ED; border-color: #FED7AA; box-shadow: 0 4px 0 #FED7AA; }
.li-quick-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex: none; background: rgba(255, 255, 255, .2); }
.li-quick-b.review .li-quick-i { background: var(--orange); color: #fff; font-size: 22px; }
.li-quick-t { display: grid; }
.li-quick-t span { color: var(--muted); font-size: 14px; }
.li-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.li-cat { background: #fff; border-radius: 22px; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); overflow: hidden; animation: li-up .45s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i) * 50ms); transition: border-color .15s; }
.li-cat.open { border-color: var(--brand); box-shadow: 0 4px 0 var(--brand-soft); grid-column: 1 / -1; }
.li-cat-top { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; background: none; border: 0; cursor: pointer; text-align: left; }
.li-cat-i { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: var(--brand-soft); flex: none; }
.li-cat-t { flex: 1; display: grid; min-width: 0; }
.li-cat-t b { font: 900 21px var(--font-d); }
.li-cat-t span { color: var(--muted); font-size: 14px; font-weight: 600; }
.li-cat-b { display: none; padding: 0 14px 14px; gap: 8px; }
.li-cat.open .li-cat-b { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.li-pack { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #FBFCFF; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.li-pack:hover { border-color: #93C5FD; }
.li-pack:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.li-pack.whole { background: var(--brand-soft); border-color: #93C5FD; box-shadow: 0 3px 0 #93C5FD; grid-column: 1 / -1; }
.li-pack.whole b { color: var(--brand-dd); }
.li-pack-t { display: grid; grid-column: 1 / -1; }
.li-pack-t b { font-size: 16px; }
.li-pack-t span { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li-pack-bar { height: 8px; border-radius: 99px; background: #E5ECF8; overflow: hidden; }
.li-pack-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--cyan)); border-radius: 99px; }
.li-pack-n { font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }

/* A round */
.li-round { min-height: calc(100vh - 90px); display: flex; flex-direction: column; }
.li-round.has-sheet { padding-bottom: 460px; }
.li-rtop { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.li-bar { flex: 1; height: 16px; border-radius: 999px; background: #E2E8F5; overflow: hidden; }
.li-bar i { display: block; height: 100%; min-width: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width .5s cubic-bezier(.2, 1.2, .4, 1); }
.li-count { font: 900 16px var(--font-d); color: var(--muted); min-width: 52px; text-align: right; }
.li-qbody { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 5vh 0 3vh; }
.li-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.li-scope, .li-packname, .li-run { font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.li-scope { background: var(--brand); color: #fff; }
.li-packname { background: var(--brand-soft); color: var(--brand-dd); }
.li-run { background: #FFEDD5; color: #C2410C; }
.li-again { margin: 0 0 10px; color: var(--orange); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.li-prompt { font: 800 clamp(23px, 5vw, 34px)/1.3 var(--font-b); margin: 0; max-width: 760px; animation: li-up .4s ease-out both; }
.li-opts { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; max-width: 760px; margin-top: 6vh; }
@media (min-width: 760px) { .li-opts { grid-template-columns: 1fr 1fr; } }
.li-opts.tf { grid-template-columns: 1fr 1fr; }
.li-opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; min-height: 70px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; box-shadow: 0 5px 0 var(--line); font-weight: 700; font-size: clamp(17px, 3.8vw, 20px); line-height: 1.3; transition: transform .08s, box-shadow .08s, border-color .12s, background .12s; animation: li-up .4s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i) * 60ms + 120ms); }
.li-opt:hover:not(:disabled) { border-color: #93C5FD; background: #F8FBFF; }
.li-opt:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.li-opt:disabled { cursor: default; }
.li-key { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 900 15px var(--font-d); color: #fff; background: var(--brand); }
.li-opt:nth-child(2) .li-key { background: #0891B2; } .li-opt:nth-child(3) .li-key { background: #7C3AED; } .li-opt:nth-child(4) .li-key { background: #DB2777; }
.li-opt.picked { border-color: var(--brand); background: #EFF6FF; }
.li-opt.right { border-color: var(--green); background: var(--green-soft); box-shadow: 0 5px 0 #86EFAC; color: var(--green-dd); animation: li-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.li-opt.right .li-key { background: var(--green); }
.li-opt.wrong { border-color: var(--red); background: var(--red-soft); box-shadow: 0 5px 0 #FCA5A5; color: var(--red-d); animation: li-shake .45s ease; }
.li-opt.wrong .li-key { background: var(--red); }
.li-opts:has(.right) .li-opt:not(.right):not(.wrong) { opacity: .5; }
.li-timer { position: relative; width: 64px; height: 64px; margin: 0 0 14px; display: grid; place-items: center; }
.li-timer .li-ring { position: absolute; inset: 0; }
.li-timer .li-ring .fg { stroke: var(--brand); transition: stroke-dasharray .2s linear; }
.li-timer b { position: relative; font: 900 22px var(--font-d); }
.li-timer.low .li-ring .fg { stroke: var(--red); }
.li-timer.low b { color: var(--red); animation: li-pop .5s ease infinite alternate; }

/* The tip after an answer */
.li-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 18px max(16px, calc((100vw - 820px) / 2)) calc(18px + env(safe-area-inset-bottom)); border-top: 3px solid; transform: translateY(105%); transition: transform .38s cubic-bezier(.2, 1.1, .3, 1); max-height: 82vh; overflow: auto; }
.li-sheet.in { transform: none; }
.li-sheet.ok { background: #E9FBEF; border-color: #86EFAC; }
.li-sheet.no { background: #FFEDED; border-color: #FCA5A5; }
.li-sheet-h { display: flex; align-items: center; gap: 14px; }
.li-sheet-h > div { flex: 1; display: grid; }
.li-sheet-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; flex: none; }
.li-sheet-ico svg { width: 28px; height: 28px; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.li-sheet.ok .li-sheet-ico svg { stroke: var(--green-d); } .li-sheet.no .li-sheet-ico svg { stroke: var(--red); }
.li-sheet-t { font: 900 26px var(--font-d); }
.li-sheet.ok .li-sheet-t { color: var(--green-dd); } .li-sheet.no .li-sheet-t { color: var(--red-d); }
.li-sheet-run { font-weight: 800; color: var(--orange); }
.li-sheet-xp { font: 900 18px var(--font-d); color: #CA8A04; background: #FEF9C3; padding: 4px 12px; border-radius: 999px; animation: li-pop .5s cubic-bezier(.2, 1.8, .4, 1) .2s both; }
.li-tip { margin: 14px 0; padding: 4px 18px; background: #fff; border-radius: 18px; box-shadow: 0 3px 0 rgba(0, 0, 0, .06); animation: li-up .45s ease-out .1s both; }
.li-tip > div { padding: 12px 0; }
.li-tip > div + div { border-top: 2px dashed #E5E7EB; }
.li-tip-l { display: block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-d); margin-bottom: 4px; }
.li-tip-l i { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); font-style: normal; }
.li-tip-ans b { font: 800 clamp(19px, 4.4vw, 23px)/1.3 var(--font-b); color: var(--green-dd); }
.li-tip-why p { margin: 0; font-size: 18px; font-weight: 700; }
.li-tip-more p { margin: 0; font-size: 17px; line-height: 1.55; color: #334155; }
.li-tip-more { position: relative; padding-left: 0; }
.li-tip-more .li-tip-l::before { content: '💡 '; }
.li-sheet-f { display: grid; gap: 10px; }
.li-sheet .li-btn.big { width: 100%; }
.li-sheet.no .li-btn.danger { background: var(--red); }
.li-auto { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.li-auto-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.li-auto-bar i { display: block; height: 100%; width: 100%; background: var(--brand); border-radius: 99px; }
.li-auto.paused .li-auto-bar i { background: #94A3B8; }
.li-auto-l { min-width: 84px; }
.li-pause { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 4px 12px; font-weight: 800; font-size: 13px; cursor: pointer; }

/* End of round */
.li-stats { grid-template-columns: repeat(4, 1fr); }
.li-stat.run { border-color: var(--purple); } .li-stat.run .li-stat-l { background: var(--purple); } .li-stat.run .li-stat-v { color: #6D28D9; }
.li-stat.acc { border-color: var(--brand); } .li-stat.acc .li-stat-l { background: var(--brand); } .li-stat.acc .li-stat-v { color: var(--brand-d); }
@media (max-width: 600px) { .li-stats { grid-template-columns: 1fr 1fr; } .li-round.has-sheet { padding-bottom: 560px; } .li-cat-t b { font-size: 18px; } }
.li-tip { display: block; }
.li-pack-bar { position: relative; }
.li-pack-bar u { position: absolute; left: 0; top: 0; bottom: 0; background: #BFDBFE; border-radius: 99px; }
.li-pack-bar i { position: relative; }

/* Hidden player and friend codes (secret.js): dots and a Show button. */
.mct-secret { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.mct-secret-v { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .08em; }
.mct-secret-btn { appearance: none; border: 1px solid currentColor; background: transparent; color: inherit; opacity: .85; font: 700 12px/1 system-ui, sans-serif; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.mct-secret-btn:hover, .mct-secret-btn:focus-visible { opacity: 1; }
