.card-front{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg,#74e0d5,#7e8bff);container-type:size}.card-front img{width:100%;height:100%;object-fit:contain}.card-front__text{-webkit-hyphens:auto;hyphens:auto;padding:8%;text-align:center;font-weight:800;line-height:1.1;overflow-wrap:anywhere;font-size:2rem}.card-front__text--s{font-size:min(60cqh,48cqi,calc(80cqi / var(--fit-em, 1)))}.card-front__text--m{font-size:min(28cqh,17cqi,calc(80cqi / var(--fit-em, 1)))}.card-front__text--l{font-size:min(15cqh,9.5cqi,calc(80cqi / var(--fit-em, 1)))}.card-preview{position:relative;width:120px;height:150px;border-radius:14px;overflow:hidden;box-shadow:0 6px 16px #0f172a1f}.card-preview--back{display:flex;align-items:center;justify-content:center;padding:10px;text-align:center;background:linear-gradient(135deg,#ffd166,#ff7eb6);color:#1f1f1f;font-size:1.2rem;font-weight:800;line-height:1.15;overflow-wrap:anywhere}.card-preview--back.is-empty{color:#1f1f1f66}.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatches .swatch{position:relative;width:36px;height:36px;border-radius:50%;border:2px solid rgba(15,23,42,.15);cursor:pointer}.swatches .swatch.is-selected{outline:3px solid #2563eb;outline-offset:2px}.swatches .swatch--default{background:linear-gradient(135deg,#74e0d5,#7e8bff)}.swatches .swatch--custom{display:grid;place-items:center;color:#fff;background:conic-gradient(#ef4444,#facc15,#22c55e,#06b6d4,#3b82f6,#a855f7,#ef4444);filter:drop-shadow(0 0 .5px rgba(15,23,42,.6))}.swatches .swatch--custom:focus-within{outline:3px solid #2563eb;outline-offset:2px}.swatches .swatch--custom input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.recording-dot{width:12px;height:12px;border-radius:50%;background:#d32f2f;animation:recording-pulse 1s ease-in-out infinite}@keyframes recording-pulse{50%{opacity:.3}}@media (prefers-reduced-motion: reduce){.recording-dot{animation:none}}.progress-tiles,.progress-bar,.progress-key{--progress-mastered: #1c5cab;--progress-learning: #6da7ec;--progress-tricky: #ec835a;--progress-new: #cde2fb}.progress-tiles{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}@media (min-width: 600px){.progress-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}.progress-tile{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;border:1px solid rgba(15,23,42,.1);background:#fff}.progress-tile__label{display:flex;align-items:center;gap:6px;color:#52514e;font-size:.85rem;font-weight:600}.progress-tile__value{color:#0b0b0b;font-size:1.6rem;font-weight:700;line-height:1.2}.progress-key{flex-shrink:0;width:10px;height:10px;border-radius:2px}.progress-key--mastered,.progress-bar__segment--mastered{background:var(--progress-mastered)}.progress-key--learning,.progress-bar__segment--learning{background:var(--progress-learning)}.progress-key--tricky,.progress-bar__segment--tricky{background:var(--progress-tricky)}.progress-key--new,.progress-bar__segment--new{background:var(--progress-new)}.progress-bar{display:flex;gap:2px;height:12px;overflow:hidden;border-radius:0 4px 4px 0;background:#fff}.progress-bar__segment{min-width:4px;height:100%}.progress-bar__segment:hover{filter:brightness(1.12)}.progress-cards{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}.progress-cards__card{margin:0;text-align:center;container-type:inline-size}.progress-cards__front{position:relative;aspect-ratio:1;overflow:hidden;margin-bottom:4px;border-radius:12px;border:1px solid rgba(15,23,42,.08)}.progress-legend{display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;margin:0;color:#52514e;font-size:.85rem}.progress-legend dt{font-weight:700}.progress-legend dd{margin:0}.flashcard{position:relative;perspective:1200px;cursor:pointer;outline:none;min-height:320px}.flashcard:focus-visible .flashcard-inner{box-shadow:0 0 0 3px #7e8bff73}.flashcard-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .6s ease}.flashcard:hover .flashcard-inner{transform:translateY(-6px)}.flashcard.flipped .flashcard-inner{transform:rotateY(180deg)}.flashcard-face{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;backface-visibility:hidden;overflow:hidden;border-radius:18px}.flashcard-back{background:linear-gradient(135deg,#ffd166,#ff7eb6);transform:rotateY(180deg);color:#1f1f1f;text-align:center;padding:1rem;letter-spacing:.02em;container-type:size}.flashcard-name{-webkit-hyphens:auto;hyphens:auto;margin:0;font-size:1.8rem;font-size:max(.8rem,min(clamp(1.2rem,16cqi,2.6rem),calc(94cqi / var(--fit-em, 1))));font-weight:700;line-height:1.15;overflow-wrap:anywhere}.flashcard-words{display:flex;flex-direction:column;align-items:center;gap:.6em;max-width:100%}.flashcard-back.flashcard-back--prompt{padding-bottom:3.25rem}.flashcard-prompt{display:-webkit-box;overflow:hidden;margin:0;font-size:clamp(.8rem,6cqi,1.1rem);font-weight:600;line-height:1.3;opacity:.85;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5}.flashcard-back .flashcard-speak{position:absolute;right:10px;bottom:10px}.flashcard-back .flashcard-explain{position:absolute;top:10px;left:10px;color:#b45309}.flashcard-back .flashcard-say-it{position:absolute;left:10px;bottom:10px;color:#047857}.flashcard.flashcard--tile{min-height:0;height:auto;aspect-ratio:4 / 5}.flashcard-actions{display:flex;gap:.35rem;z-index:2;transition:opacity .2s ease,visibility .2s ease}.flashcard.flipped .flashcard-actions{opacity:0;visibility:hidden}@media (prefers-reduced-motion: reduce){.flashcard-inner,.flashcard-actions{transition:none}}.set-import-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.set-import-preview__card{position:relative;aspect-ratio:1;overflow:hidden;border-radius:12px;border:1px solid rgba(15,23,42,.08)}.set-import-about.MuiTypography-root{display:-webkit-box;overflow:hidden;white-space:pre-line;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4}.print-page{display:grid;grid-template-columns:repeat(2,3.5in);grid-template-rows:repeat(3,3.25in);justify-content:center;align-content:start}.print-card{position:relative;overflow:hidden;outline:1px dashed #94a3b8;outline-offset:-.5px;background:#fff}.print-card--empty{outline:none}.print-card--back{container-type:size;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15in;padding:.3in;text-align:center}.print-card__word{-webkit-hyphens:auto;hyphens:auto;margin:0;color:#0f172a;font-size:min(30pt,calc(92cqi / var(--fit-em, 1)));font-weight:800;line-height:1.1;overflow-wrap:anywhere}.print-card__prompt{margin:0;color:#334155;font-size:12pt;font-weight:600;line-height:1.3}.print-preview{display:flex;flex-direction:column;align-items:center;gap:16px;padding:16px 0}.print-preview .print-page{zoom:.45;padding:.4in;background:#fff;box-shadow:0 6px 24px #0f172a2e}.print-sheets{display:none}@media print{@page{margin:.4in}html.printing-cards body>*:not(.print-sheets){display:none!important}html.printing-cards .print-sheets{display:block;-webkit-print-color-adjust:exact;print-color-adjust:exact}.print-sheets .print-page{break-after:page}.print-sheets .print-page:last-child{break-after:auto}}.library-sets{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr))}.library-set{display:flex;align-items:center;gap:8px;padding:8px 12px 8px 8px;border-radius:16px;border:1px solid rgba(15,23,42,.1);background:#fff}.library-set .library-set__open{flex:1;min-width:0;justify-content:flex-start;gap:12px;border-radius:12px;text-align:left}.library-set .library-set__open.Mui-focusVisible{outline:3px solid #2563eb;outline-offset:2px}.library-set__thumb{display:grid;flex:0 0 auto;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:2px;width:72px;height:72px;overflow:hidden;border-radius:12px;background:#0f172a14}.library-set__cell{position:relative;min-width:0;min-height:0}.library-set__text{min-width:0}.library-cards{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,120px),1fr))}.library-cards__card{margin:0;text-align:center;container-type:inline-size}.library-cards__front{position:relative;aspect-ratio:1;overflow:hidden;margin-bottom:6px;border-radius:14px;border:1px solid rgba(15,23,42,.08)}.library-about{display:grid;gap:6px;padding:12px 14px;border:1px solid #fcd34d;border-radius:12px;background:#fffbeb}.library-about__heading.MuiTypography-root{display:flex;align-items:center;gap:6px;font-size:.95rem;font-weight:800}.library-about__heading .MuiSvgIcon-root{color:#d97706}.explain__header{position:relative;padding:16px 56px 12px 24px;container-type:inline-size}@media (max-width: 599px){.explain__header{padding-left:16px}}.explain__heading.MuiTypography-root{display:flex;align-items:center;gap:6px;margin:0 0 12px;font-weight:800}.explain__bulb.MuiSvgIcon-root{color:#d97706}.explain__card{position:relative;flex-shrink:0;width:min(40%,150px);aspect-ratio:4 / 3;overflow:hidden;border-radius:14px;box-shadow:0 6px 14px #0f172a1f}.explain__word{-webkit-hyphens:auto;hyphens:auto;min-width:0;margin:0;color:#0f172a;font-size:max(1rem,min(1.75rem,calc(50cqi / var(--fit-em, 1))));font-weight:800;line-height:1.15;overflow-wrap:anywhere}.explain__set-name{margin:0;color:#0f172a;font-size:1.35rem;font-weight:800;line-height:1.2}.explain__text .MuiTypography-root{font-size:1.05rem;line-height:1.55}.explain__equations{display:grid;justify-self:start;width:fit-content;padding:8px 16px;border-radius:12px;background:#eef2ff;color:#1e1b4b;font-size:clamp(1.05rem,4.5vw,1.2rem);font-variant-numeric:tabular-nums;font-weight:800;line-height:1.5;letter-spacing:.02em}.say-it__card{position:relative;width:min(100%,200px);aspect-ratio:4 / 3;overflow:hidden;border-radius:18px;box-shadow:0 10px 20px #0f172a1f}.say-it__word.MuiTypography-root{-webkit-hyphens:auto;hyphens:auto;margin:0;color:#0f172a;font-size:min(2rem,calc(94cqi / var(--fit-em, 1)));font-weight:800;line-height:1.1;text-align:center;overflow-wrap:anywhere}.say-it__button.MuiButtonBase-root,.say-it__button{display:grid;place-items:center;width:96px;height:96px;border-radius:50%;background:linear-gradient(135deg,#34d399,#10b981);box-shadow:0 10px 22px #10b98159;color:#fff}.say-it__button .MuiSvgIcon-root{font-size:48px}.say-it__button--recording.MuiButtonBase-root{background:linear-gradient(135deg,#f87171,#dc2626);box-shadow:0 0 #dc262680;animation:say-it-pulse 1.2s ease-out infinite}.say-it__button--playing{background:linear-gradient(135deg,#60a5fa,#818cf8);box-shadow:0 10px 22px #2563eb4d}@keyframes say-it-pulse{0%{box-shadow:0 0 #dc262680}to{box-shadow:0 0 0 22px #dc262600}}@media (prefers-reduced-motion: reduce){.say-it__button--recording.MuiButtonBase-root{animation:none}}.sticker-book{padding:16px;border-radius:24px;border:1px solid rgba(15,23,42,.08);background-color:#fffdf7;background-image:radial-gradient(rgba(15,23,42,.07) 1px,transparent 1px);background-size:18px 18px}.sticker-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));justify-items:center}.sticker{display:inline-grid;flex-shrink:0;place-items:center;border-radius:50%;border:4px solid #ffffff;background:#fff;box-shadow:0 4px 10px #0f172a2e;line-height:1}.sticker--shiny{border-color:#fbbf24;background:radial-gradient(circle at 30% 25%,#fffbeb,#fde68a 70%);box-shadow:0 0 0 2px #fff,0 0 16px #fbbf24b3,0 4px 10px #0f172a2e}.sticker-reward{animation:sticker-pop .5s cubic-bezier(.34,1.56,.64,1) both}@keyframes sticker-pop{0%{transform:scale(.2) rotate(-30deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}@media (prefers-reduced-motion: reduce){.sticker-reward{animation:none}}.practice{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:12px;padding:12px 16px 20px;border-radius:24px;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 18px 36px #0f172a0f}.practice--summary{min-height:420px;justify-content:center;padding:32px 16px}.practice-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.practice-dot{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;color:#fff;font-size:11px;line-height:1;transition:background-color .2s ease,transform .2s ease}.practice-dot--current{background:#fff;box-shadow:inset 0 0 0 3px #2563eb}.practice-dot--done{background:#94a3b8}.practice-dot--star{background:#f59e0b;transform:scale(1.15)}.flashcard.flashcard--practice{min-height:0;height:clamp(150px,26vh,260px);cursor:default}.flashcard--practice:not(.flipped):hover .flashcard-inner{transform:none}.flashcard--practice .flashcard-name{font-size:max(1rem,min(clamp(2rem,16cqi,3.25rem),calc(94cqi / var(--fit-em, 1))));font-weight:800}.practice-status{min-height:48px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 16px;text-align:center}.practice-status__text{font-size:1.2rem;font-weight:800}.practice-prompt{flex-basis:100%;order:1;color:#334155;font-size:1rem;font-weight:600}.practice-status__text--correct{color:#2e7d32}.practice-status__text--wrong{color:#c2410c}.practice-options{display:grid;gap:12px;width:100%;max-width:760px;margin:0 auto;grid-template-columns:repeat(2,minmax(0,1fr))}.practice-options--2{max-width:560px}.practice-options--3{grid-template-columns:repeat(3,minmax(0,1fr))}@media (min-width: 600px){.practice-options--4{grid-template-columns:repeat(4,minmax(0,1fr))}}.practice-options .practice-tile{position:relative;width:100%;aspect-ratio:4 / 3;border-radius:18px;border:4px solid #c7d2fe;overflow:hidden;box-shadow:0 6px 14px #0f172a14;transition:border-color .2s ease,opacity .2s ease,box-shadow .2s ease}.practice-options .practice-tile img{width:100%;height:100%;object-fit:contain;pointer-events:none}.practice-options .practice-tile:hover{border-color:#2563eb}.practice-options .practice-tile.Mui-focusVisible{outline:3px solid #2563eb;outline-offset:3px}.practice-options .practice-word{min-height:64px;font-size:1.35rem}.practice-options .practice-tile--correct{border-color:#2e7d32;box-shadow:0 0 0 6px #2e7d3240;animation:practice-pop .45s ease-out}.practice-options .practice-tile--wrong{border-color:#d32f2f;opacity:.5;animation:practice-shake .45s ease-in-out}.practice-options .practice-tile--dimmed{opacity:.3}.practice-options .practice-tile--correct,.practice-options .practice-tile--wrong,.practice-options .practice-tile--dimmed{pointer-events:none}.practice-badge{position:absolute;top:8px;right:8px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;box-shadow:0 2px 6px #0f172a40}.practice-badge--correct{background:#2e7d32}.practice-badge--wrong{background:#d32f2f}.confetti{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;overflow:hidden;pointer-events:none}.confetti span{position:absolute;top:-16px;width:10px;height:16px;border-radius:3px;opacity:0;animation-name:confetti-fall;animation-timing-function:cubic-bezier(.25,.6,.5,1);animation-fill-mode:forwards}@keyframes practice-pop{0%{transform:scale(.94)}60%{transform:scale(1.04)}to{transform:scale(1)}}@keyframes practice-shake{0%,to{transform:translate(0)}20%{transform:translate(-8px)}40%{transform:translate(8px)}60%{transform:translate(-5px)}80%{transform:translate(5px)}}@keyframes confetti-fall{0%{opacity:1;transform:translateZ(0) rotate(0)}85%{opacity:1}to{opacity:0;transform:translate3d(var(--confetti-drift),480px,0) rotate(600deg)}}@media (prefers-reduced-motion: reduce){.confetti{display:none}.practice-options .practice-tile,.practice-options .practice-word,.practice-dot{animation:none!important;transition:none!important}}.practice-intro .practice-intro__card{position:relative;width:min(100%,340px);aspect-ratio:4 / 3;overflow:hidden;border-radius:24px;box-shadow:0 14px 28px #0f172a1f;animation:practice-intro-pop .35s ease-out}.practice-intro .practice-intro__card.Mui-focusVisible{outline:3px solid #2563eb;outline-offset:3px}.practice-intro{container-type:inline-size}.practice-intro__word{-webkit-hyphens:auto;hyphens:auto;margin:0;color:#0f172a;font-size:min(clamp(2rem,9vw,3rem),calc(94cqi / var(--fit-em, 1)));font-weight:800;line-height:1.1;text-align:center;overflow-wrap:anywhere}@keyframes practice-intro-pop{0%{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}@media (prefers-reduced-motion: reduce){.practice-intro .practice-intro__card{animation:none}}.practice-level-up{margin:0;padding:10px 16px;border-radius:14px;background:#fef3c7;color:#78350f;font-weight:800}.set-tiles{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}@media (min-width: 600px){.set-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 900px){.set-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}.set-tiles .set-tile{display:flex;flex-direction:column;align-items:stretch;overflow:hidden;border-radius:20px;border:1px solid rgba(15,23,42,.06);background:#fff;box-shadow:0 10px 24px #0f172a14;text-align:left;transition:transform .15s ease,box-shadow .15s ease}.set-tiles .set-tile:hover{transform:translateY(-3px);box-shadow:0 14px 28px #0f172a1f}.set-tiles .set-tile.Mui-focusVisible{outline:3px solid #2563eb;outline-offset:3px}.set-tile__cover{position:relative;display:grid;aspect-ratio:1}.set-tile__cover--grid{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:2px}.set-tile__cell{position:relative;min-width:0;min-height:0}.set-tile__label{container-type:inline-size;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px}.set-tile__name{-webkit-hyphens:auto;hyphens:auto;display:-webkit-box;overflow:hidden;color:#0f172a;font-size:max(.8rem,min(1.1rem,calc((100cqi - 56px) / var(--fit-em, 1))));font-weight:800;line-height:1.2;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.set-tile__count{flex-shrink:0;min-width:28px;padding:2px 8px;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:.85rem;font-weight:700;text-align:center}@media (prefers-reduced-motion: reduce){.set-tiles .set-tile{transition:none}}.memory-grid{display:grid;gap:10px;width:100%;max-width:560px;margin:0 auto;grid-template-columns:repeat(4,minmax(0,1fr))}.memory-grid--6{max-width:420px;grid-template-columns:repeat(3,minmax(0,1fr))}@media (max-width: 599px){.memory-grid--words{grid-template-columns:repeat(3,minmax(0,1fr))}}.memory-grid .memory-tile{position:relative;display:block;width:100%;aspect-ratio:1;border-radius:16px;perspective:800px}.memory-grid .memory-tile.Mui-focusVisible{outline:3px solid #2563eb;outline-offset:3px}.memory-tile__inner{position:absolute;top:0;right:0;bottom:0;left:0;transform-style:preserve-3d;transition:transform .35s ease}.memory-tile.is-open .memory-tile__inner{transform:rotateY(180deg)}.memory-tile__face{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;border-radius:16px;backface-visibility:hidden}.memory-tile__back{display:grid;place-items:center;background:linear-gradient(135deg,#818cf8,#c084fc);box-shadow:0 6px 14px #0f172a1f;color:#ffffffe6;font-size:clamp(1.5rem,8vw,2.5rem);font-weight:800}.memory-tile__front{transform:rotateY(180deg);border:4px solid #c7d2fe;background:#fff;container-type:size}.memory-tile.is-matched .memory-tile__front{border-color:#2e7d32;box-shadow:0 0 0 4px #2e7d3240}.memory-tile__word{-webkit-hyphens:auto;hyphens:auto;display:grid;place-items:center;height:100%;padding:6px;color:#0f172a;font-size:max(.6rem,min(clamp(.95rem,4.5vw,1.5rem),calc((100cqi - 14px) / var(--fit-em, 1))));font-weight:800;line-height:1.1;text-align:center;overflow-wrap:anywhere}.listen-speaker.MuiButtonBase-root{width:120px;height:120px;border-radius:50%;background:linear-gradient(135deg,#60a5fa,#818cf8);box-shadow:0 12px 24px #2563eb4d;color:#fff}.listen-speaker.MuiButtonBase-root .MuiSvgIcon-root{font-size:56px}@media (prefers-reduced-motion: reduce){.memory-tile__inner{transition:none}}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% 20%,rgba(255,214,102,.25),transparent 35%),radial-gradient(circle at 90% 10%,rgba(126,139,255,.2),transparent 30%),radial-gradient(circle at 40% 80%,rgba(125,224,213,.35),transparent 40%),#f9fbff}
