:root,[data-theme=light]{color-scheme:light;--bg: #eef0f5;--card: #ffffff;--surface: #f7f8fb;--surface-pressed: #eceef4;--text: #1b1d22;--muted: #626c79;--divider: #e2e5ec;--accent: #2f6fed;--accent-pressed: #2456d6;--on-accent: #ffffff;--green-bg: #d8f5de;--green-text: #14532d;--green-line: #2e9e5b;--red-bg: #fde3e5;--red-text: #b3261e;--red-line: #e5484d;--warn: #d97706;--shadow: 0 1px 2px rgba(16, 24, 40, .07), 0 1px 6px rgba(16, 24, 40, .04)}[data-theme=dark]{color-scheme:dark;--bg: #141519;--card: #1d1f26;--surface: #262932;--surface-pressed: #2e323d;--text: #e9eaee;--muted: #99a2b1;--divider: #2d313c;--accent: #5c8dff;--accent-pressed: #4c7ae8;--on-accent: #ffffff;--green-bg: #1c3a26;--green-text: #8ce99a;--green-line: #37b24d;--red-bg: #42262b;--red-text: #ff9c93;--red-line: #e5484d;--warn: #f0a742;--shadow: none}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit}.app{max-width:720px;margin:0 auto;min-height:100dvh;padding:4px 14px calc(28px + env(safe-area-inset-bottom,0px))}.hint{color:var(--muted);text-align:center;padding:48px 0;font-size:15px}.screen-head{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;padding:10px 0;background:var(--bg);min-height:56px}.screen-head__titles{flex:1;min-width:0}.screen-head__title{font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.screen-head__subtitle{font-size:13px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.screen-head__right{display:flex;gap:6px;align-items:center}.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:38px;height:38px;padding:0 8px;border:none;border-radius:12px;background:transparent;color:var(--text);cursor:pointer;font-size:13px;font-weight:600}.icon-btn:active{background:var(--surface-pressed)}.icon-btn:disabled{opacity:.35;cursor:default}.icon-btn--warn{color:var(--warn)}.hero{text-align:center;padding:26px 12px 18px}.hero__icon{font-size:44px;line-height:1}.hero__title{margin:10px 0 0;font-size:26px;font-weight:700;letter-spacing:-.02em}.hero__tagline{margin:6px 0 0;color:var(--muted);font-size:15px}.hero__stats{margin:10px 0 0;font-size:13px;color:var(--accent);font-weight:600}.section-label{font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:10px 2px 8px}.rows{display:flex;flex-direction:column;gap:8px}.row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:none;border-radius:16px;background:var(--card);box-shadow:var(--shadow);padding:12px 14px;cursor:pointer}.row:active{background:var(--surface-pressed)}.flag{display:block;width:1.3em;height:.87em;border-radius:.14em;box-shadow:inset 0 0 0 1px #0000001a}.row__emoji{flex:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:24px;border-radius:14px;background:var(--surface)}.row__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.row__title{font-size:15px;font-weight:600;line-height:1.25}.row__meta{font-size:13px;color:var(--muted)}.row__chev{flex:none;color:var(--muted);font-size:22px;line-height:1;padding-left:2px}.home-footer{text-align:center;padding:22px 0 6px}.home-footer__hint{margin:0 0 10px;font-size:13px;color:var(--muted)}.home-footer .btn{padding:10px 18px;font-size:14px}.chip{flex:none;font-size:12px;font-weight:600;padding:5px 10px;border-radius:999px;white-space:nowrap}.chip--accent{background:var(--accent);color:var(--on-accent)}.chip--done{background:var(--green-bg);color:var(--green-text)}.start{display:flex;flex-direction:column;align-items:center;padding:26px 8px;text-align:center}.start__emoji{font-size:52px;line-height:1}.start__title{margin:12px 0 0;font-size:21px;font-weight:700}.start__meta{margin:6px 0 0;color:var(--muted);font-size:15px}.start__settings{width:100%;max-width:420px;margin:22px 0 26px;display:flex;flex-direction:column;gap:16px;text-align:left}.seg__label{font-size:13px;font-weight:600;color:var(--muted);margin:0 2px 7px}.seg__options{display:flex;background:var(--surface);border-radius:14px;padding:3px;gap:3px}.seg__btn{flex:1;border:none;border-radius:11px;background:transparent;padding:9px 8px;font-size:14px;font-weight:500;color:var(--muted);cursor:pointer;transition:background .15s,color .15s}.seg__btn--on{background:var(--card);color:var(--text);font-weight:600;box-shadow:var(--shadow)}.btn{border:none;border-radius:14px;padding:13px 22px;font-size:16px;font-weight:600;cursor:pointer}.btn--primary{background:var(--accent);color:var(--on-accent)}.btn--primary:active{background:var(--accent-pressed)}.btn--ghost{background:var(--surface);color:var(--text)}.btn--ghost:active{background:var(--surface-pressed)}.btn--big{min-width:220px;padding:15px 26px;font-size:17px}.flip{display:block;width:100%;border:none;padding:0;background:transparent;cursor:pointer;text-align:inherit;perspective:1200px;font:inherit;color:inherit}.flip__inner{position:relative;display:block;transition:transform .45s cubic-bezier(.2,.7,.3,1);transform-style:preserve-3d}.flip--on .flip__inner{transform:rotateY(180deg)}.flip__face{backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:24px;background:var(--card);box-shadow:var(--shadow);padding:22px 18px;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px}.flip__face--back{position:absolute;top:0;right:0;bottom:0;left:0;transform:rotateY(180deg);overflow-y:auto}.flip__text{overflow-wrap:anywhere}.flip__hint{font-size:12px;color:var(--muted)}.cards-actions{display:flex;gap:8px;margin-top:14px;align-items:stretch}.cards-actions .btn{flex:1}.cards-actions__no{background:var(--surface);color:var(--warn)}.cards-actions__no:active{background:var(--surface-pressed)}.cards-actions__speak{align-self:stretch;min-width:52px;background:var(--surface);border-radius:14px}.cards-actions__speak:active{background:var(--surface-pressed)}.cards-actions__speak:disabled{opacity:.35;cursor:default}.q-wrap{position:sticky;top:56px;z-index:20;background:var(--bg);padding-bottom:10px}.q-card{border-radius:24px;background:var(--card);box-shadow:var(--shadow);padding:22px 18px;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.q-card__side{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}.q-card__text{font-weight:600;line-height:1.3;max-width:640px;overflow-wrap:break-word}.progress-line{text-align:center;font-size:13px;color:var(--muted);padding:9px 0 0}.options{display:flex;flex-direction:column;gap:10px;margin-top:12px;padding-bottom:12px}.option{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;padding:13px 16px;border:2px solid transparent;border-radius:16px;background:var(--card);box-shadow:var(--shadow);font-size:16px;line-height:1.3;cursor:pointer;transition:transform .1s,background .15s,opacity .15s;-webkit-user-select:none;user-select:none}.option:active:not(:disabled){transform:scale(.985)}.option--long{font-size:14px}.option:disabled{cursor:default}.option__text{overflow-wrap:anywhere;text-align:center}.option__mark{flex:none}.option--correct-sel{background:var(--green-bg);color:var(--green-text);box-shadow:none}.option--correct-rev{background:transparent;border-color:var(--green-line);color:var(--green-text);box-shadow:none}.option--wrong-sel{background:var(--red-bg);color:var(--red-text);box-shadow:none}.option--dim{opacity:.45;box-shadow:none}.victory{display:flex;flex-direction:column;align-items:center;text-align:center;padding:46px 12px 20px}.victory__emoji{font-size:56px;line-height:1}.victory__title{margin:14px 0 0;font-size:24px;font-weight:700}.victory__text{margin:8px 0 0;color:var(--muted);font-size:15px}.victory__stats{display:flex;gap:10px;margin:24px 0;width:100%;max-width:420px}.stat{flex:1;background:var(--card);box-shadow:var(--shadow);border-radius:18px;padding:16px 10px;display:flex;flex-direction:column;gap:4px}.stat__value{font-size:28px;font-weight:700}.stat__label{font-size:12px;color:var(--muted);line-height:1.3}.victory__actions{display:flex;flex-direction:column;gap:10px;width:100%;max-width:420px}.explain-btn{align-self:center;margin-top:4px;border:none;border-radius:999px;background:var(--surface);color:var(--accent);font-size:14px;font-weight:600;padding:9px 18px;cursor:pointer}.explain-btn:active{background:var(--surface-pressed)}.explain-icon{font-size:19px;font-weight:700;line-height:1}.sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}.sheet__scrim{position:absolute;top:0;right:0;bottom:0;left:0;background:#0c0f1580;animation:sheet-fade .18s ease}.sheet__panel{position:relative;width:100%;max-width:720px;max-height:84dvh;overflow-y:auto;background:var(--card);border-radius:22px 22px 0 0;padding:8px 18px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 30px #1018282e;animation:sheet-up .22s cubic-bezier(.2,.7,.3,1)}@keyframes sheet-up{0%{transform:translateY(48px);opacity:.5}to{transform:none;opacity:1}}@keyframes sheet-fade{0%{opacity:0}to{opacity:1}}.sheet__grab{width:38px;height:4px;border-radius:2px;background:var(--divider);margin:4px auto 12px}.sheet__label{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--accent);margin-bottom:8px}.sheet__q{font-size:14px;line-height:1.4;color:var(--muted);margin-bottom:12px}.sheet__answer{display:flex;flex-direction:column;gap:2px;background:var(--green-bg);border-radius:12px;padding:10px 14px;margin-bottom:12px}.sheet__answer-side{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--green-text);opacity:.75}.sheet__answer-text{font-size:17px;font-weight:700;line-height:1.3;color:var(--green-text)}.sheet__ex{margin:0;font-size:15px;line-height:1.55}.sheet__note{margin-top:12px;font-size:13px;color:var(--warn)}.sheet__btn{width:100%;margin-top:16px}.error-box{text-align:center;padding:40px 12px;display:flex;flex-direction:column;gap:14px;align-items:center}.error-box__text{margin:0;color:var(--muted);font-size:15px}
