/* ==========================================================================
   Fyzika 6 – styl aplikace (inspirováno Duolingem)
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #58cc02;  --green-d: #58a700;  --green-l: #d7ffb8;  --green-t: #58a700;
  --blue: #1cb0f6;   --blue-d: #1899d6;   --blue-l: #ddf4ff;   --blue-o: #84d8ff;
  --red: #ff4b4b;    --red-d: #ea2b2b;    --red-l: #ffdfe0;    --red-t: #ea2b2b;
  --yellow: #ffc800; --yellow-d: #e5a400; --yellow-l: #fff4cc;
  --orange: #ff9600; --orange-d: #e07c00; --orange-l: #ffe7c7;
  --purple: #ce82ff; --purple-d: #a568cc; --purple-l: #f4e3ff;
  --teal: #00c2a0;   --teal-d: #009e82;   --teal-l: #d2fbf1;
  --pink: #ff7ac6;   --pink-d: #e0559f;   --pink-l: #ffe3f3;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --border: #e5e5e5;
  --border-2: #d6d6d6;
  --text: #3c3c3c;
  --text-2: #777777;
  --muted: #afafaf;
  --art-bg: #f6fafd;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --sheet-ok: #d7ffb8;
  --sheet-bad: #ffdfe0;

  --r: 16px;
  --r-lg: 22px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --wrap: 640px;
  --fs: 17px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131f24;
    --surface: #131f24;
    --surface-2: #1d2d34;
    --border: #37464f;
    --border-2: #2c3b43;
    --text: #f1f7fb;
    --text-2: #a8b8c0;
    --muted: #52656d;
    --art-bg: #eef5f9;
    --green-l: rgba(88,204,2,.16);  --green-t: #79d634;
    --blue-l: rgba(28,176,246,.16); --blue-o: #1f6f97;
    --red-l: rgba(255,75,75,.16);   --red-t: #ff7a7a;
    --yellow-l: rgba(255,200,0,.14);
    --orange-l: rgba(255,150,0,.15);
    --purple-l: rgba(206,130,255,.15);
    --teal-l: rgba(0,194,160,.15);
    --pink-l: rgba(255,122,198,.15);
    --sheet-ok: #1e3a17;
    --sheet-bad: #3d1f22;
    --shadow: 0 10px 30px rgba(0,0,0,.45);
  }
}

@media (min-width: 700px) { :root { --fs: 19px; --wrap: 720px; } }
@media (min-width: 1000px) { :root { --fs: 20px; --wrap: 780px; } }

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, sans-serif;
  font-size: var(--fs); font-weight: 600; line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
b, strong { font-weight: 800; }
sub, sup { line-height: 0; }

.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }

#app { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; }

.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; min-height: 0;
  padding-top: var(--safe-t);
  padding-left: var(--safe-l); padding-right: var(--safe-r);
  background: var(--bg);
}
.screen.enter { animation: screen-in .28s cubic-bezier(.2,.8,.2,1) both; }
.screen.enter-up { animation: screen-up .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes screen-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes screen-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--green); --cd: var(--green-d);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: var(--r);
  padding: 14px 20px; min-height: 52px;
  background: var(--c); color: #fff;
  font-weight: 900; font-size: 1em; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 4px 0 var(--cd);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s, background .2s;
  position: relative;
}
.btn:active:not([disabled]) { transform: translateY(4px); box-shadow: 0 0 0 var(--cd); }
.btn[disabled] { background: var(--border); color: var(--muted); box-shadow: none; cursor: default; }
.btn.block { width: 100%; }
.btn.blue { --c: var(--blue); --cd: var(--blue-d); }
.btn.red { --c: var(--red); --cd: var(--red-d); }
.btn.orange { --c: var(--orange); --cd: var(--orange-d); }
.btn.purple { --c: var(--purple); --cd: var(--purple-d); }
.btn.yellow { --c: var(--yellow); --cd: var(--yellow-d); color: #6b4b00; }
.btn.ghost {
  background: var(--surface); color: var(--blue);
  border: 2px solid var(--border); box-shadow: 0 4px 0 var(--border);
  padding: 12px 18px;
}
.btn.ghost:active { box-shadow: 0 0 0 var(--border); }
.btn.plain { background: transparent; color: var(--blue); box-shadow: none; min-height: 44px; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: .82em; border-radius: 12px; }

.icon-btn {
  border: 0; background: transparent; color: var(--muted);
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35em; transition: transform .1s, background .2s;
}
.icon-btn:active { transform: scale(.9); background: var(--surface-2); }

/* ---------- Top bar (home) ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding-top: 8px; padding-bottom: 8px; min-height: 56px;
}
.topbar .hello { font-weight: 900; font-size: 1.15em; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-stat {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 900; color: var(--muted); font-size: .95em;
  padding: 6px 8px; border-radius: 12px;
}
.chip-stat.fire { color: var(--orange); }
.chip-stat.xp { color: var(--yellow-d); }
.chip-stat.ok { color: var(--green); }
.chip-stat .ic { width: 1.3em; height: 1.3em; }
.topbar-sep { height: 2px; background: var(--border); }

/* ---------- Tab bar ---------- */
.tabbar {
  display: flex; justify-content: space-around;
  border-top: 2px solid var(--border);
  padding: 6px 8px calc(6px + var(--safe-b));
  background: var(--bg);
}
.tab {
  flex: 1; max-width: 160px;
  border: 2px solid transparent; background: transparent; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; color: var(--muted); font-weight: 800; font-size: .72em; letter-spacing: .03em; text-transform: uppercase;
  transition: background .2s, color .2s, transform .1s;
}
.tab .ic { width: 30px; height: 30px; }
.tab .tab-emoji { font-size: 26px; line-height: 30px; filter: grayscale(1) opacity(.55); transition: filter .2s, transform .3s; }
.tab.on { color: var(--blue); border-color: var(--blue-o); background: var(--blue-l); }
.tab.on .tab-emoji { filter: none; transform: scale(1.08); }
.tab:active { transform: scale(.94); }

/* ---------- Learning path ---------- */
.path { padding: 8px 0 40px; }
.unit-head {
  margin: 18px 0 22px; padding: 16px 18px; border-radius: var(--r-lg);
  color: #fff; background: var(--uc, var(--green));
  box-shadow: 0 4px 0 var(--ucd, var(--green-d));
  display: flex; align-items: center; gap: 12px;
}
.unit-head .u-sub { font-size: .78em; font-weight: 800; opacity: .9; text-transform: uppercase; letter-spacing: .06em; }
.unit-head .u-title { font-size: 1.15em; font-weight: 900; line-height: 1.15; }
.unit-head .u-emoji { font-size: 2.1em; margin-left: auto; }
.path-row { display: flex; justify-content: center; position: relative; height: 128px; }
.node-wrap { position: relative; display: flex; flex-direction: column; align-items: center; transition: transform .2s; }
.node {
  --c: var(--green); --cd: var(--green-d);
  width: 78px; height: 72px; border-radius: 50%; border: 0;
  background: var(--c); box-shadow: 0 7px 0 var(--cd);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; position: relative;
  transition: transform .1s, box-shadow .1s;
}
.node:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--cd); }
.node .n-emoji { filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.node-ring { position: absolute; left: 50%; top: 38px; width: 100px; height: 100px; transform: translate(-50%, -50%); pointer-events: none; }
.node-ring circle { fill: none; stroke-width: 7; }
.node-ring .bg { stroke: var(--border); }
.node-ring .fg { stroke: var(--yellow); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.node-label {
  margin-top: 16px; font-size: .78em; font-weight: 800; color: var(--text-2);
  max-width: 150px; text-align: center; line-height: 1.15;
}
.node-done .node::after {
  content: '✓'; position: absolute; right: -4px; top: -6px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #fff;
  font-size: 16px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 0 var(--yellow-d);
}
.node-next .node { animation: node-bob 2.2s ease-in-out infinite; }
.start-bubble {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  background: var(--surface); color: var(--green); border: 2px solid var(--border);
  font-weight: 900; font-size: .8em; padding: 6px 12px; border-radius: 12px; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap; animation: bubble-bob 2.2s ease-in-out infinite; z-index: 2;
}
.start-bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px;
  background: var(--surface); border-right: 2px solid var(--border); border-bottom: 2px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}
@keyframes node-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes bubble-bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
.path-mascot { position: absolute; width: 96px; pointer-events: none; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50;
  animation: fade-in .2s ease both;
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  background: var(--surface); border-radius: 26px 26px 0 0;
  padding: 10px 0 calc(18px + var(--safe-b));
  max-height: 88dvh; display: flex; flex-direction: column;
  animation: sheet-up .32s cubic-bezier(.2,.9,.25,1.05) both;
  box-shadow: var(--shadow);
}
.sheet.closing { animation: sheet-down .22s ease-in both; }
.sheet-backdrop.closing { animation: fade-out .22s ease-in both; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 10px; flex: none; }
.sheet .sheet-body { overflow-y: auto; padding: 0 0 4px; }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; width: 600px; transform: translateX(-50%); bottom: 24px; border-radius: 26px; animation-name: sheet-up-c; }
  .sheet.closing { animation-name: sheet-down-c; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { from { transform: none; } to { transform: translateY(100%); } }
@keyframes sheet-up-c { from { transform: translate(-50%, 110%); } to { transform: translate(-50%, 0); } }
@keyframes sheet-down-c { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 110%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

.ch-sheet-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ch-badge {
  width: 64px; height: 64px; border-radius: 20px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  background: var(--c, var(--green)); box-shadow: 0 4px 0 var(--cd, var(--green-d));
}
.ch-sheet-head .t-num { font-size: .78em; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ch-sheet-head .t-title { font-size: 1.25em; font-weight: 900; line-height: 1.15; }
.ch-sheet-intro { color: var(--text-2); margin: 0 0 14px; font-size: .95em; }
.ch-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mini-stat { border: 2px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.mini-stat .v { font-size: 1.25em; font-weight: 900; }
.mini-stat .l { font-size: .74em; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.act-list { display: grid; gap: 12px; }
.act {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface); border: 2px solid var(--border); border-bottom-width: 5px;
  border-radius: 18px; padding: 12px 14px;
  transition: transform .08s, border-bottom-width .08s;
}
.act:active { transform: translateY(3px); border-bottom-width: 2px; margin-top: 3px; margin-bottom: -3px; }
.act .a-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; background: var(--ac-l, var(--blue-l)); }
.act .a-t { font-weight: 900; font-size: 1.02em; }
.act .a-s { color: var(--text-2); font-size: .82em; font-weight: 700; }
.act .chev { margin-left: auto; color: var(--muted); }

/* ---------- Session (lesson) screens ---------- */
.les-top { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.progress {
  flex: 1; height: 16px; border-radius: 10px; background: var(--border); overflow: hidden; position: relative;
}
.progress > i {
  display: block; height: 100%; border-radius: 10px; background: var(--green);
  transition: width .5s cubic-bezier(.3,1.4,.5,1); position: relative; min-width: 16px;
}
.progress > i::after {
  content: ''; position: absolute; left: 8px; right: 8px; top: 4px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.35);
}
.les-count { font-weight: 900; color: var(--muted); font-size: .9em; min-width: 3.4em; text-align: right; }
.streak-pill {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  font-weight: 900; color: var(--orange); font-size: .8em; text-transform: uppercase; letter-spacing: .05em;
  animation: pill-pop 1.6s ease both; pointer-events: none;
}
@keyframes pill-pop { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8);} 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1);} 25% { transform: translate(-50%,0) scale(1);} 80% { opacity: 1;} 100% { opacity: 0; } }

.les-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.les-body > .wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.q-area { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0 12px; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
.q-area.anim { animation: q-in .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes q-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.q-kind { display: flex; align-items: center; gap: 6px; color: var(--purple-d); font-weight: 900; font-size: .78em; text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 6px; }
.q-kind.new { color: var(--purple-d); }
.q-title { font-size: 1.28em; font-weight: 900; line-height: 1.22; margin: 0 0 12px; }
.q-sub { color: var(--text-2); margin: -6px 0 12px; font-size: .92em; }
.q-art {
  background: var(--art-bg); border-radius: 18px; border: 2px solid var(--border);
  padding: 8px; margin: 0 0 14px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.q-art svg { width: 100%; height: auto; max-height: 30dvh; display: block; }
.q-art.compact svg { max-height: 22dvh; }
@media (min-width: 700px) { .q-art svg { max-height: 34dvh; } }
.q-art .emoji-art { font-size: 64px; line-height: 1.1; padding: 6px; }

.les-foot {
  padding: 12px 0 calc(14px + var(--safe-b));
  border-top: 2px solid var(--border);
}
.les-foot .wrap { display: flex; gap: 12px; }
.les-foot .btn { flex: 1; }

/* Options */
.opts { display: grid; gap: 10px; }
.opts.grid2 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .opts.wide2 { grid-template-columns: 1fr 1fr; } }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); color: var(--text);
  border: 2px solid var(--border); border-bottom-width: 4px; border-radius: var(--r);
  padding: 12px 14px; min-height: 54px; font-weight: 700; font-size: 1em; line-height: 1.25;
  transition: transform .08s, background .15s, border-color .15s, color .15s;
}
.opt:active { transform: scale(.98); }
.opt .key {
  flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--border);
  color: var(--muted); font-size: .8em; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.opt.sel { background: var(--blue-l); border-color: var(--blue-o); color: var(--blue-d); }
.opt.sel .key { border-color: var(--blue-o); color: var(--blue-d); }
.opt.ok { background: var(--green-l); border-color: var(--green); color: var(--green-t); animation: pop .35s ease; }
.opt.ok .key { border-color: var(--green); color: var(--green-t); }
.opt.bad { background: var(--red-l); border-color: var(--red); color: var(--red-t); animation: shake .4s ease; }
.opt.bad .key { border-color: var(--red); color: var(--red-t); }
.opt.dim { opacity: .55; }
.opt[disabled] { cursor: default; }
.opt.pic { flex-direction: column; text-align: center; justify-content: center; padding: 10px; gap: 6px; }
.opt.pic .pic-art { width: 100%; display: flex; align-items: center; justify-content: center; background: var(--art-bg); border-radius: 12px; padding: 4px; }
.opt.pic .pic-art svg { width: 100%; height: auto; max-height: 15dvh; }
.opt.pic .pic-emoji { font-size: 46px; line-height: 1.1; }
.opt .check {
  margin-left: auto; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--border); flex: none;
  display: flex; align-items: center; justify-content: center; color: transparent; transition: all .15s;
}
.opt.sel .check { background: var(--blue); border-color: var(--blue); color: #fff; }
.opt.ok .check { background: var(--green); border-color: var(--green); color: #fff; }
.opt.bad .check { background: var(--red); border-color: var(--red); color: #fff; }

@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0);} 20% { transform: translateX(-8px);} 40% { transform: translateX(7px);} 60% { transform: translateX(-5px);} 80% { transform: translateX(3px);} }
@keyframes wobble { 0%,100% { transform: rotate(0);} 25% { transform: rotate(-4deg);} 75% { transform: rotate(4deg);} }

/* True / false */
.tf-bubble { display: flex; gap: 12px; align-items: flex-end; margin: 6px 0 18px; }
.tf-bubble .masc { width: 92px; flex: none; }
.bubble {
  position: relative; flex: 1; border: 2px solid var(--border); border-radius: 18px; padding: 14px 16px;
  font-size: 1.08em; font-weight: 800; background: var(--surface);
}
.bubble::before {
  content: ''; position: absolute; left: -9px; bottom: 22px; width: 14px; height: 14px; background: var(--surface);
  border-left: 2px solid var(--border); border-bottom: 2px solid var(--border); transform: rotate(45deg);
}
.tf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tf-btns .opt { justify-content: center; font-size: 1.1em; font-weight: 900; min-height: 70px; flex-direction: column; gap: 2px; }
.tf-btns .opt .e { font-size: 1.5em; }

/* Word bank / fill */
.fill-text { font-size: 1.15em; font-weight: 700; line-height: 2.25; margin: 4px 0 18px; }
.blank {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  min-width: 84px; min-height: 40px; padding: 0 10px; margin: 0 3px; line-height: 1.2;
  border-bottom: 3px solid var(--border-2); border-radius: 4px; color: var(--blue-d);
}
.blank.cur { border-bottom-color: var(--blue); background: var(--blue-l); border-radius: 10px 10px 4px 4px; }
.blank .chip { margin: 2px 0; }
.blank.ok .chip { background: var(--green-l); border-color: var(--green); color: var(--green-t); }
.blank.bad .chip { background: var(--red-l); border-color: var(--red); color: var(--red-t); }
.bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 6px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); color: var(--text); border: 2px solid var(--border); border-bottom-width: 4px;
  border-radius: 14px; padding: 8px 14px; font-weight: 800; font-size: .98em; min-height: 46px;
  transition: transform .1s, opacity .2s, background .15s, border-color .15s;
}
.chip:active { transform: scale(.95); }
.chip.used { visibility: hidden; }
.chip.ghost { background: var(--border); border-color: var(--border); color: transparent; box-shadow: none; }
.chip.sel { background: var(--blue-l); border-color: var(--blue-o); color: var(--blue-d); transform: translateY(-2px); }
.chip.ok { background: var(--green-l); border-color: var(--green); color: var(--green-t); }
.chip.bad { background: var(--red-l); border-color: var(--red); color: var(--red-t); animation: shake .4s; }
.chip.flyin { animation: chip-in .25s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes chip-in { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Order */
.order-line {
  min-height: 64px; border-top: 2px solid var(--border); border-bottom: 2px solid var(--border);
  padding: 10px 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start;
}
.order-line.vertical, .bank.vertical { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.order-line .chip .n { color: var(--muted); font-weight: 900; font-size: .8em; }
.order-ends { display: flex; justify-content: space-between; color: var(--muted); font-weight: 800; font-size: .78em; text-transform: uppercase; letter-spacing: .05em; }

/* Match */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match .col { display: grid; gap: 10px; align-content: start; }
.match .opt { justify-content: center; text-align: center; min-height: 60px; padding: 8px 10px; font-size: .98em; }
.match .opt.gone { opacity: .35; background: var(--surface); border-color: var(--border); color: var(--muted); animation: none; pointer-events: none; }
.match .opt.okflash { background: var(--green-l); border-color: var(--green); color: var(--green-t); animation: pop .3s; }

/* Sort into groups */
.sort-groups { display: grid; gap: 10px; grid-template-columns: repeat(var(--n, 2), 1fr); margin-bottom: 12px; }
.bucket {
  border: 2px dashed var(--border-2); border-radius: 18px; padding: 8px; min-height: 110px;
  display: flex; flex-direction: column; gap: 6px; align-items: stretch; transition: background .2s, border-color .2s, transform .15s;
  background: var(--surface);
}
.bucket .b-head { text-align: center; font-weight: 900; font-size: .9em; padding: 4px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.1; }
.bucket .b-head .e { font-size: 1.6em; }
.bucket .b-items { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bucket .chip { font-size: .86em; min-height: 38px; padding: 6px 10px; }
.bucket.armed { border-color: var(--blue); background: var(--blue-l); border-style: solid; }
.bucket.armed:active { transform: scale(.98); }
.sort-bank { min-height: 56px; }

/* Number input + keypad */
.num-field {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px solid var(--border); border-radius: 18px; padding: 10px 16px; margin: 4px auto 14px;
  font-size: 1.8em; font-weight: 900; min-height: 70px; width: 100%; max-width: 360px; background: var(--surface);
}
.num-field .val { min-width: 1ch; color: var(--text); }
.num-field .val.empty { color: var(--muted); }
.num-field .caret { width: 3px; height: 1.1em; background: var(--blue); border-radius: 2px; animation: blink 1s steps(2) infinite; }
.num-field .unit { color: var(--text-2); font-size: .7em; }
.num-field.ok { border-color: var(--green); background: var(--green-l); }
.num-field.bad { border-color: var(--red); background: var(--red-l); animation: shake .4s; }
@keyframes blink { 50% { opacity: 0; } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; width: 100%; }
.keypad button {
  height: 52px; border-radius: 14px; border: 2px solid var(--border); border-bottom-width: 4px; background: var(--surface);
  font-size: 1.35em; font-weight: 900; color: var(--text); transition: transform .06s;
}
.keypad button:active { transform: translateY(2px); border-bottom-width: 2px; }
.keypad .k-del { color: var(--red); }
@media (max-height: 700px) { .keypad button { height: 44px; } .num-field { min-height: 58px; font-size: 1.5em; } }

/* Feedback sheet (after check) */
.fb {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 16px 0 calc(16px + var(--safe-b));
  animation: fb-up .3s cubic-bezier(.2,.9,.25,1.05) both;
  max-height: 72%; display: flex; flex-direction: column;
}
.fb.ok { background: var(--sheet-ok); }
.fb.bad { background: var(--sheet-bad); }
.fb .wrap { display: flex; flex-direction: column; min-height: 0; }
.fb .fb-scroll { overflow-y: auto; min-height: 0; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.fb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.fb-ico {
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  animation: ico-pop .5s cubic-bezier(.3,1.6,.5,1) both .05s;
}
.fb.ok .fb-ico { color: var(--green); }
.fb.bad .fb-ico { color: var(--red); }
@keyframes ico-pop { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.fb-title { font-size: 1.35em; font-weight: 900; }
.fb.ok .fb-title, .fb.ok .fb-text { color: var(--green-t); }
.fb.bad .fb-title, .fb.bad .fb-text { color: var(--red-t); }
.fb-correct { font-weight: 800; margin: 2px 0 6px; }
.fb-correct .lbl { display: block; font-size: .85em; font-weight: 900; }
.fb-text { font-size: .95em; font-weight: 700; }
.fb-explain {
  margin-top: 10px; padding: 12px 14px; background: var(--surface); border-radius: 16px; color: var(--text);
  font-size: .93em; font-weight: 600; line-height: 1.4;
}
.fb-explain .ex-art { margin: 4px auto 8px; max-width: 420px; background: var(--art-bg); border-radius: 12px; overflow: hidden; }
.fb-explain .ex-art svg { width: 100%; height: auto; display: block; max-height: 26dvh; }
.fb-explain .ex-h { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: .8em; text-transform: uppercase; letter-spacing: .05em; color: var(--purple-d); margin-bottom: 4px; }
@keyframes fb-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Flashcards ---------- */
.cards-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; perspective: 1400px; padding: 8px 0 16px; position: relative; }
.fcard {
  position: relative; width: 100%; max-width: 520px; height: 100%; max-height: 560px; min-height: 300px;
  transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,1.3,.5,1);
  cursor: pointer; touch-action: pan-y;
}
.fcard.flipped { transform: rotateY(180deg); }
.fcard.enter { animation: card-in .45s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) scale(.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
.fcard .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 26px; border: 2px solid var(--border); border-bottom-width: 6px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 20px 18px; overflow: hidden;
}
.fcard .back { transform: rotateY(180deg); justify-content: flex-start; text-align: left; align-items: stretch; overflow-y: auto; }
.fcard .front .f-emoji { font-size: 70px; line-height: 1; margin-bottom: 14px; animation: float 4s ease-in-out infinite; }
.fcard .front .f-art { width: 100%; max-width: 340px; margin-bottom: 12px; background: var(--art-bg); border-radius: 16px; overflow: hidden; }
.fcard .front .f-art svg, .fcard .back .f-art svg { width: 100%; height: auto; display: block; max-height: 26dvh; }
.fcard .front .f-q { font-size: 1.4em; font-weight: 900; line-height: 1.2; }
.fcard .front .f-hint { position: absolute; bottom: 16px; left: 0; right: 0; color: var(--muted); font-size: .8em; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fcard .back .b-q { font-size: .82em; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.fcard .back .b-a { font-size: 1.08em; font-weight: 700; line-height: 1.4; }
.fcard .back .b-a b { color: var(--blue-d); }
.fcard .back .f-art { margin: 12px 0 0; background: var(--art-bg); border-radius: 16px; overflow: hidden; }
.fcard .tag {
  position: absolute; top: 16px; left: 16px; font-size: .72em; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 10px; background: var(--c-l, var(--blue-l)); color: var(--c-d, var(--blue-d));
}
.fcard .stamp {
  position: absolute; top: 24px; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-weight: 900; font-size: 1.2em;
  text-transform: uppercase; opacity: 0; transition: opacity .1s; z-index: 3; pointer-events: none; background: var(--surface);
}
.fcard .stamp.yes { right: 22px; color: var(--green); border-color: var(--green); transform: rotate(12deg); }
.fcard .stamp.no { left: 22px; color: var(--orange); border-color: var(--orange); transform: rotate(-12deg); }
.card-fly-left { animation: fly-left .4s ease-in both; }
.card-fly-right { animation: fly-right .4s ease-in both; }
@keyframes fly-left { to { transform: translateX(-130%) rotate(-24deg); opacity: 0; } }
@keyframes fly-right { to { transform: translateX(130%) rotate(24deg); opacity: 0; } }
.card-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }

/* ---------- Overview (tahák) ---------- */
.ov-item { border: 2px solid var(--border); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; display: flex; gap: 12px; }
.ov-item .e { font-size: 30px; line-height: 1; flex: none; }
.ov-item .q { font-weight: 900; margin-bottom: 4px; }
.ov-item .a { color: var(--text-2); font-weight: 600; font-size: .95em; line-height: 1.4; }
.ov-item .a b { color: var(--text); }
.ov-item .f-art { margin-top: 10px; background: var(--art-bg); border-radius: 12px; overflow: hidden; max-width: 380px; }
.ov-item .f-art svg { width: 100%; height: auto; display: block; }
.ov-box { margin-left: auto; flex: none; }

/* ---------- Generic page bits ---------- */
.page-title { font-size: 1.5em; font-weight: 900; margin: 14px 0 4px; }
.page-sub { color: var(--text-2); margin: 0 0 16px; font-weight: 700; }
.section-title { font-size: 1.05em; font-weight: 900; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title .ic { color: var(--blue); }
.card-box { border: 2px solid var(--border); border-radius: 20px; padding: 14px 16px; background: var(--surface); }
.muted { color: var(--muted); }
.hr { height: 2px; background: var(--border); margin: 16px 0; border: 0; }

/* ---------- Exam picker ---------- */
.exam-hero { display: flex; align-items: center; gap: 14px; margin: 12px 0 8px; }
.exam-hero .masc { width: 96px; flex: none; }
.exam-hero h2 { margin: 0; font-size: 1.4em; font-weight: 900; line-height: 1.15; }
.exam-hero p { margin: 4px 0 0; color: var(--text-2); font-weight: 700; font-size: .92em; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .pick-grid { grid-template-columns: 1fr 1fr 1fr; } }
.pick {
  position: relative; text-align: left; border: 2px solid var(--border); border-bottom-width: 4px; border-radius: 18px;
  background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 92px;
  transition: transform .08s, border-color .15s, background .15s;
}
.pick:active { transform: scale(.97); }
.pick .p-top { display: flex; align-items: center; justify-content: space-between; }
.pick .p-e { font-size: 28px; line-height: 1; }
.pick .p-n { font-size: .7em; font-weight: 900; color: var(--muted); }
.pick .p-t { font-weight: 800; font-size: .86em; line-height: 1.15; }
.pick .p-s { font-size: .72em; font-weight: 900; color: var(--muted); margin-top: auto; }
.pick .p-s.good { color: var(--green-t); }
.pick .p-s.mid { color: var(--orange); }
.pick .p-s.low { color: var(--red-t); }
.pick.on { border-color: var(--blue-o); background: var(--blue-l); }
.pick.on .p-t { color: var(--blue-d); }
.pick.mix {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; min-height: 76px;
  background: linear-gradient(135deg, var(--purple-l), var(--blue-l));
}
.pick.mix .p-e { font-size: 38px; }
.pick.mix .p-t { font-size: 1.05em; font-weight: 900; }
.pick.mix.on { border-color: var(--purple); }
.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; border: 2px solid var(--border); border-bottom-width: 4px; border-radius: 14px; background: var(--surface);
  padding: 10px 0; font-weight: 900; font-size: 1.05em; color: var(--text-2);
}
.seg button.on { border-color: var(--blue-o); background: var(--blue-l); color: var(--blue-d); }
.sticky-foot {
  padding: 12px 0 calc(12px + var(--safe-b)); border-top: 2px solid var(--border); background: var(--bg);
}

/* ---------- Stats ---------- */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { border: 2px solid var(--border); border-radius: 18px; padding: 12px 12px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.kpi .k-ico { font-size: 26px; line-height: 1; flex: none; }
.kpi > div:last-child { min-width: 0; }
.kpi .k-v { font-size: 1.12em; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.kpi .k-l { font-size: .72em; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.kpi.big { grid-column: 1 / -1; }
.kpi.big .k-v { font-size: 1.3em; white-space: normal; }
.donut { width: 84px; height: 84px; flex: none; }
.donut circle { fill: none; stroke-width: 10; }
.donut .bg { stroke: var(--border); }
.donut .fg { stroke: var(--green); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.2s cubic-bezier(.3,1,.3,1); }
.donut text { font-weight: 900; font-size: 22px; fill: var(--text); }
.chart-box { border: 2px solid var(--border); border-radius: 20px; padding: 12px 10px 8px; }
.chart-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .74em; font-weight: 800; color: var(--text-2); padding: 6px 6px 2px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.chart-empty { text-align: center; color: var(--muted); font-weight: 800; padding: 30px 10px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; }
.bar-row .e { font-size: 22px; text-align: center; }
.bar-row .t { font-size: .8em; font-weight: 800; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .track { height: 12px; border-radius: 8px; background: var(--border); overflow: hidden; display: flex; }
.bar-row .track i { display: block; height: 100%; border-radius: 8px; transition: width 1s ease; }
.bar-row .track i.learn { background: var(--yellow); }
.bar-row .v { font-weight: 900; font-size: .85em; min-width: 3em; text-align: right; }
.hist { display: grid; gap: 8px; }
.hist-row { display: flex; align-items: center; gap: 10px; border: 2px solid var(--border); border-radius: 14px; padding: 8px 12px; font-size: .88em; }
.hist-row .h-e { font-size: 22px; }
.hist-row .h-t { font-weight: 800; flex: 1; min-width: 0; }
.hist-row .h-t small { display: block; color: var(--muted); font-weight: 700; font-size: .85em; }
.hist-row .h-v { font-weight: 900; }
.badge { font-size: .7em; font-weight: 900; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; letter-spacing: .04em; }
.badge.done { background: var(--green-l); color: var(--green-t); }
.badge.quit { background: var(--orange-l); color: var(--orange-d); }
.badge.int { background: var(--red-l); color: var(--red-t); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week .d { font-size: .7em; font-weight: 900; color: var(--muted); }
.week .dot { width: 34px; height: 34px; margin: 4px auto 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 16px; }
.week .dot.on { background: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orange-d); }
.week .dot.today { outline: 3px solid var(--orange-l); }

/* ---------- Results ---------- */
.result { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 0; }
.result .masc { width: 160px; animation: bounce-in .7s cubic-bezier(.3,1.6,.5,1) both; }
.result h1 { margin: 10px 0 2px; font-size: 1.8em; font-weight: 900; color: var(--yellow-d); animation: rise .5s ease both .2s; }
.result h1.mid { color: var(--blue); }
.result h1.low { color: var(--orange); }
.result p { margin: 0 0 18px; color: var(--text-2); font-weight: 700; animation: rise .5s ease both .3s; }
.res-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 480px; }
.res-tile { border-radius: 16px; border: 2px solid var(--tc, var(--yellow)); background: var(--tc, var(--yellow)); overflow: hidden; animation: rise .5s ease both; }
.res-tile:nth-child(1) { animation-delay: .4s; } .res-tile:nth-child(2) { animation-delay: .5s; } .res-tile:nth-child(3) { animation-delay: .6s; }
.res-tile .rt-l { color: #fff; font-size: .68em; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 4px 4px 3px; }
.res-tile .rt-v { background: var(--surface); border-radius: 13px; padding: 10px 4px; font-weight: 900; font-size: 1.2em; color: var(--tc); display: flex; align-items: center; justify-content: center; gap: 4px; }
.res-tile.green { --tc: var(--green); } .res-tile.blue { --tc: var(--blue); } .res-tile.yellow { --tc: var(--yellow-d); }
.mistakes { width: 100%; max-width: 560px; text-align: left; margin-top: 18px; animation: rise .5s ease both .7s; }
.mistake { border: 2px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; font-size: .88em; }
.mistake .mq { font-weight: 800; }
.mistake .ma { color: var(--green-t); font-weight: 800; margin-top: 3px; }
@keyframes bounce-in { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade-in .2s both; }
.modal {
  background: var(--surface); border-radius: 24px; padding: 22px 20px 18px; width: 100%; max-width: 400px; text-align: center;
  animation: bounce-in .4s cubic-bezier(.3,1.5,.5,1) both; box-shadow: var(--shadow);
}
.modal .m-emoji { font-size: 54px; line-height: 1; margin-bottom: 8px; }
.modal .m-masc { width: 110px; margin: -6px auto 4px; }
.modal h3 { margin: 0 0 6px; font-size: 1.3em; font-weight: 900; }
.modal p { margin: 0 0 16px; color: var(--text-2); font-weight: 700; font-size: .95em; }
.modal .m-btns { display: grid; gap: 10px; }
.modal input[type=password], .modal input[type=text] {
  width: 100%; font: inherit; font-weight: 800; font-size: 1.1em; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--border); background: var(--surface-2); color: var(--text); margin-bottom: 12px; text-align: center;
  -webkit-user-select: text; user-select: text;
}
.modal input:focus { outline: none; border-color: var(--blue); }
.modal .err { color: var(--red); font-weight: 800; font-size: .9em; margin: -6px 0 10px; min-height: 1.2em; }
.modal.shake { animation: shake .4s; }

/* ---------- Settings ---------- */
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 2px solid var(--border); }
.set-row:last-child { border-bottom: 0; }
.set-row .s-t { flex: 1; font-weight: 800; }
.set-row .s-t small { display: block; color: var(--muted); font-weight: 700; font-size: .8em; }
.switch { position: relative; width: 56px; height: 32px; border-radius: 16px; background: var(--border); border: 0; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3,1.5,.5,1); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(24px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); z-index: 90;
  background: var(--text); color: var(--bg); font-weight: 800; padding: 10px 16px; border-radius: 14px; font-size: .9em;
  animation: toast 2.6s ease both; box-shadow: var(--shadow); white-space: nowrap;
}
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -20px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }

/* ---------- Confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }

/* ---------- Art helpers ---------- */
.art-anim .spin { animation: spin 8s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* iPad landscape: two-column lesson layout for questions with art */
@media (min-width: 1000px) and (orientation: landscape) {
  .q-area.has-art { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; align-content: start; }
  .q-area.has-art .q-head { grid-column: 1 / -1; }
  .q-area.has-art .q-art { margin: 0; }
  .q-area.has-art .q-art svg { max-height: 50dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.opt.miss { border-style: dashed; animation: none; }

.fcard .back .b-in { margin: auto 0; width: 100%; }
.fcard .back .b-e { font-size: 1.6em; display: block; margin-bottom: 6px; text-transform: none; }
.fcard .front { background: linear-gradient(180deg, var(--c-l, var(--blue-l)) 0%, var(--surface) 38%); }
