/* Çatpat app styles. Colours, radii, shadows and fonts come from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-md, 16px); line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-2xl, 28px); font-weight: 900; }
h2 { font-size: var(--fs-lg, 20px); font-weight: 800; }
h3 { font-size: var(--fs-md, 17px); font-weight: 800; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm, 14px); }
.center { text-align: center; }
.row { display: flex; gap: var(--space-2, 8px); flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; margin-top: var(--space-3, 12px); }
.ico { flex: none; }

/* ---------- boot ---------- */
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot-logo { font-size: 64px; animation: bob 1.2s ease-in-out infinite; }
.boot-error { min-height: 100dvh; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; }
.boot-error .mascot { width: 140px; margin: 0 auto; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; }
.page {
  max-width: 600px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(96px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px; outline: none;
}
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: flex; justify-content: space-around;
  background: var(--bg-elev); border-top: 2px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; border-radius: var(--radius); color: var(--text-3); text-decoration: none;
  font-size: 12px; font-weight: 800; transition: color .15s, background .15s;
}
.tab.active { color: var(--brand-text); background: var(--brand-soft); }
@media (min-width: 900px) {
  .tabbar {
    inset: 0 auto 0 0; width: 220px; flex-direction: column; justify-content: flex-start; gap: 6px;
    border-top: 0; border-right: 2px solid var(--border); padding: 24px 12px;
  }
  .tabbar::before { content: ""; display: block; height: 48px; margin: 0 8px 16px; background: url(../assets/logo.svg) left center / contain no-repeat; }
  .tab { flex: none; max-width: none; flex-direction: row; gap: 14px; padding: 12px 16px; font-size: 15px; }
  .page { padding-left: 236px; padding-right: 16px; max-width: calc(600px + 236px); padding-bottom: 48px; }
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--bg-elev); --b2: var(--border); --c: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 2px solid var(--b2); border-radius: var(--radius);
  background: var(--b); color: var(--c); font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 4px 0 var(--b2); transform: translateY(0); transition: transform .06s, box-shadow .06s, filter .15s;
  text-transform: uppercase; font-size: 15px; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--b2); }
.btn:hover:not(:disabled) { filter: brightness(1.04); }
.btn:disabled { --b: var(--bg-sunken); --b2: var(--border); --c: var(--text-3); box-shadow: 0 4px 0 var(--b2); }
.btn.primary { --b: var(--brand); --b2: var(--brand-2); --c: var(--on-brand); border-color: var(--brand); }
/* --bg is near-white in light theme and near-black in dark: readable on both ok/bad fills */
.btn.ok { --b: var(--ok); --b2: var(--ok-2); --c: var(--bg); border-color: var(--ok); }
.btn.bad { --b: var(--bad); --b2: var(--bad-2); --c: var(--bg); border-color: var(--bad); }
.btn.ghost { --b: transparent; }
.btn.danger { --c: var(--bad); }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: 13px; box-shadow: 0 3px 0 var(--b2); }
.btn.big { width: 100%; min-height: 52px; font-size: 16px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--text-3); border-radius: 50%; flex: none; }
.icon-btn:hover { background: var(--bg-sunken); color: var(--text); }
.link-btn { border: 0; background: none; color: var(--info); font-weight: 800; padding: 6px 0; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- cards ---------- */
.card { background: var(--bg-elev); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.card.loading { text-align: center; color: var(--text-2); padding: 32px; }
.card.empty { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 28px 16px; }
.card.empty .mascot { width: 110px; }
.card.note { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); border-color: transparent; color: var(--text); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--bg-sunken); color: var(--text-2); font-size: 13px; font-weight: 800; }
.tag.ok { background: var(--ok-soft); color: var(--ok-2); }
.sec-title { margin: 8px 0 10px; }
.page-head { display: grid; gap: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mascot { display: block; width: 96px; height: auto; user-select: none; pointer-events: none; }
.mascot-fallback { font-size: 64px; text-align: center; line-height: 1; }

/* ---------- home ---------- */
.home-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 5;
  background: var(--bg); margin: -16px -16px 0; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; border-bottom: 2px solid var(--border); }
.track-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); font-weight: 800; min-width: 0; }
.track-chip span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-emoji { font-size: 22px; line-height: 1; }
.track-emoji.big { font-size: 32px; }
.home-stats { display: flex; gap: 8px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: var(--radius-pill); font-weight: 900; }
.pill.flame { color: color-mix(in srgb, var(--flame) 65%, var(--text)); background: color-mix(in srgb, var(--flame) 14%, transparent); }
.pill.accent { color: var(--accent-text); background: var(--accent-soft); }

.goal-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; position: relative; overflow: hidden; }
.goal-ring { color: var(--accent); }
.goal-text { display: grid; gap: 4px; justify-items: start; }
.goal-text .btn { margin-top: 6px; }
.goal-mascot { width: 84px; margin: -8px -6px -16px 0; }
.ring { position: relative; display: grid; place-items: center; }
.ring span { position: absolute; font-size: 13px; font-weight: 900; color: var(--text); }

.section-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; margin-top: 8px;
  border-radius: var(--radius-lg); background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 0 var(--brand-2); }
.section-head .muted { color: inherit; opacity: .85; font-weight: 800; }
.section-level { font-size: 12px; font-weight: 900; opacity: .85; letter-spacing: .08em; }
.unit-path { display: flex; flex-direction: column; align-items: center; gap: 34px; padding: 22px 0 10px; }
.unit-node-wrap { position: relative; transform: translateX(var(--x)); display: grid; justify-items: center; gap: 6px; width: 120px; }
.unit-node {
  position: relative; width: 72px; height: 66px; border-radius: 50%; border: 0;
  background: var(--bg-sunken); box-shadow: 0 7px 0 var(--border); display: grid; place-items: center;
  transition: transform .08s, box-shadow .08s;
}
.unit-node:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--border); }
.unit-node.done { background: var(--brand); box-shadow: 0 7px 0 var(--brand-2); }
.unit-node.questions.done { background: var(--accent); box-shadow: 0 7px 0 color-mix(in srgb, var(--accent) 70%, #000); }
.unit-node.next { background: var(--brand); box-shadow: 0 7px 0 var(--brand-2), 0 0 0 6px var(--brand-soft); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 7px 0 var(--brand-2), 0 0 0 11px var(--brand-soft); } }
.unit-emoji { font-size: 30px; line-height: 1; filter: saturate(1.1); }
.unit-node:not(.done):not(.next) .unit-emoji { filter: grayscale(.5) opacity(.85); }
.unit-check { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); }
.unit-label { font-size: 13px; font-weight: 800; text-align: center; color: var(--text-2); line-height: 1.2; }
.start-bubble { position: absolute; top: -34px; padding: 5px 12px; border-radius: var(--radius); background: var(--bg-elev); border: 2px solid var(--border); color: var(--brand-text); font-weight: 900; font-size: 13px; letter-spacing: .06em; animation: bob 1.4s ease-in-out infinite; }
.start-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: inherit; border: inherit; border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }

.unit-stars { display: flex; gap: 1px; margin-top: 4px; font-size: 15px; line-height: 1; color: var(--border); }
.unit-stars .on { color: var(--gold); text-shadow: 0 1px 0 color-mix(in srgb, var(--gold) 60%, #000); }
.unit-stars.big { font-size: 26px; gap: 4px; justify-content: center; margin: 0; }
.star-hint { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px; margin: 4px 0 8px; border-radius: var(--radius); background: var(--bg-sunken); }

.streak-nudge { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  border-color: color-mix(in srgb, var(--flame) 35%, var(--border)); background: color-mix(in srgb, var(--flame) 7%, var(--bg-elev)); }
.sn-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--flame); background: color-mix(in srgb, var(--flame) 16%, transparent); }
.sn-text { display: grid; gap: 6px; }
.sn-text .row { margin-top: 2px; }

.unit-pop-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.strength-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.str { display: inline-block; width: 22px; height: 8px; border-radius: 4px; background: var(--bg-sunken); flex: none; }
.str.s0 { background: var(--bad-soft); } .str.s1 { background: var(--warn); } .str.s2 { background: color-mix(in srgb, var(--ok) 55%, var(--warn)); }
.str.s3 { background: var(--ok); } .str.s4 { background: var(--brand-2); }

.track-list { display: grid; gap: 10px; }
.track-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: 0 4px 0 var(--border); }
.track-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.track-opt.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 4px 0 var(--brand); }
.track-opt-text { display: grid; gap: 2px; }
.track-opt-prog { font-weight: 900; color: var(--text-2); font-size: 14px; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / .45); display: grid; align-items: end; justify-items: center; animation: fade .18s; }
.modal-wrap.closing { animation: fade .18s reverse forwards; }
.modal { width: min(560px, 100%); max-height: 88dvh; overflow: auto; background: var(--bg-elev); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .22s ease-out; display: grid; gap: 14px; }
@media (min-width: 640px) { .modal-wrap { align-items: center; } .modal { border-radius: var(--radius-lg); } }
.modal-title { font-size: 22px; }
.modal-actions { display: grid; gap: 10px; }
.modal-actions .btn { width: 100%; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 200; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: var(--radius); background: var(--text); color: var(--bg); font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow-2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- lesson ---------- */
.lesson { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; }
.lesson-top { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; max-width: 760px; width: 100%; margin: 0 auto; }
.lesson-progress { flex: 1; height: 16px; border-radius: var(--radius-pill); background: var(--bg-sunken); overflow: hidden; }
.lesson-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ok); transition: width .35s ease; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .1), inset 0 4px 0 rgb(255 255 255 / .25); }
.combo { font-weight: 900; color: var(--flame); min-width: 0; opacity: 0; transform: scale(.6); transition: .2s; }
.combo.on { opacity: 1; transform: none; min-width: 44px; }
.lesson-timer, .exam-timer { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; color: var(--text-2); font-variant-numeric: tabular-nums; }
.exam-timer.low { color: var(--bad); }
.lesson-stage { flex: 1; overflow: auto; padding: 8px 16px 24px; width: 100%; max-width: 680px; margin: 0 auto; }
.lesson-stage.enter > * { animation: slidein .25s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }
.lesson-foot { border-top: 2px solid var(--border); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.lesson-foot > * { max-width: 680px; width: 100%; margin: 0 auto; }
.lesson-foot.ok { background: var(--ok-soft); border-color: transparent; }
.lesson-foot.bad { background: var(--bad-soft); border-color: transparent; }
.feedback { display: grid; gap: 6px; animation: up .2s ease-out; }
.fb-head { display: flex; align-items: center; gap: 8px; font-size: 20px; font-family: var(--font-display); }
.feedback.ok .fb-head { color: var(--ok); }
.feedback.bad .fb-head { color: var(--bad); }
.fb-answer { font-weight: 800; color: var(--bad); font-size: 17px; }
.fb-note { font-weight: 700; color: var(--text-2); }
.fb-exp { display: flex; gap: 8px; align-items: flex-start; color: var(--text); font-size: 15px; }
.fb-exp .ico { margin-top: 2px; color: var(--accent-text); }

.q-card { display: grid; gap: 16px; }
.q-title { font-size: 22px; font-weight: 900; font-family: var(--font-display); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.retry-tag { font-size: 12px; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); font-family: var(--font-body); }
.q-prompt { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-prompt.word { font-size: 30px; font-weight: 900; }
.q-prompt.sentence { display: block; font-size: 21px; line-height: 1.6; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-lg); }
.q-prompt.question { display: block; font-size: 18px; line-height: 1.55; }
.q-sub { color: var(--text-2); font-size: 15px; }
.blank { display: inline-block; min-width: 92px; padding: 0 8px; margin: 0 2px; border-bottom: 3px solid var(--text-3); text-align: center; font-weight: 800; color: var(--text); }
.blank.small { min-width: 48px; }
.blank.focus { background: var(--accent-soft); border-color: var(--accent); border-radius: 6px 6px 0 0; }
.blank.ok { color: var(--ok-2); border-color: var(--ok); }
.blank.bad { color: var(--bad-2); border-color: var(--bad); }
/* No inner scroll box: the page scrolls, and the asked blank is scrolled into view. */
.passage { background: var(--bg-sunken); border-radius: var(--radius); padding: 14px 16px; font-size: 16px; line-height: 1.65; }
.passage mark { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 0 3px; font-weight: 800; }
.blank.filled { color: var(--info); border-color: var(--info); }
.passage p + p { margin-top: 8px; }
.passage.small { font-size: 14px; max-height: none; }

.opts { display: grid; gap: 10px; }
@media (min-width: 520px) { .opts:not(.long):not(.lettered) { grid-template-columns: 1fr 1fr; } }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; min-height: 56px;
  border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: 0 4px 0 var(--border);
  font-size: 17px; font-weight: 700; transition: transform .06s, box-shadow .06s, background .15s, border-color .15s;
}
.opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.opt-key { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--border); color: var(--text-3); font-size: 13px; font-weight: 900; }
.opt.sel { border-color: var(--info); background: color-mix(in srgb, var(--info) 12%, var(--bg-elev)); box-shadow: 0 4px 0 var(--info); }
.opt.sel .opt-key { border-color: var(--info); color: var(--info); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); box-shadow: 0 4px 0 var(--ok); color: var(--ok); }
.opt.right .opt-key { border-color: var(--ok); color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); box-shadow: 0 4px 0 var(--bad); color: var(--bad); animation: shake .35s; }
.opts.long .opt { font-size: 16px; font-weight: 600; }
.opts.locked .opt:not(.right):not(.wrong) { opacity: .6; }

.speak-group { display: inline-flex; gap: 6px; vertical-align: middle; }
.speak-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--info); color: #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--info) 65%, #000); flex: none; }
.speak-btn.slow { width: 34px; height: 34px; background: var(--bg-sunken); color: var(--info); box-shadow: 0 3px 0 var(--border); }
.speak-btn:active { transform: translateY(3px); box-shadow: none; }
.listen-big { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 18px 0; }
.speak-xl { width: 110px; height: 110px; border-radius: 28px; border: 0; background: var(--info); color: #fff; box-shadow: 0 7px 0 color-mix(in srgb, var(--info) 65%, #000); display: grid; place-items: center; }
.speak-xl:active { transform: translateY(6px); box-shadow: 0 1px 0 color-mix(in srgb, var(--info) 65%, #000); }

.intro-card { display: grid; gap: 12px; padding: 22px 18px; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: 0 5px 0 var(--border); margin-top: 8px; }
.intro-label { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.intro-word { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 36px; font-weight: 900; font-family: var(--font-display); }
.intro-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ipa { font-family: ui-monospace, "Segoe UI", sans-serif; color: var(--text-2); }
.pos { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-2); font-weight: 800; font-size: 13px; }
.intro-tr { font-size: 22px; font-weight: 800; }
.intro-ex { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-sunken); font-size: 17px; }
.intro-ex mark { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 0 3px; font-weight: 800; }
.intro-ex .speak-btn { width: 32px; height: 32px; border-radius: 10px; }
.intro-ex .speak-btn.slow { width: 28px; height: 28px; }
.intro-rel { display: grid; gap: 4px; font-size: 15px; color: var(--text-2); }

.tip-card { display: grid; gap: 14px; padding: 8px 0; position: relative; }
.tip-icon { font-size: 44px; }
.tip-text { display: grid; gap: 10px; font-size: 17px; line-height: 1.6; padding: 16px; border-radius: var(--radius-lg); background: var(--brand-soft); }
.tip-mascot { width: 110px; justify-self: end; }

.type-input { width: 100%; font: inherit; font-size: 22px; font-weight: 700; padding: 14px 16px; border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--bg-sunken); color: var(--text); }
.type-input:focus { outline: none; border-color: var(--info); }
.type-input.ok { border-color: var(--ok); background: var(--ok-soft); }
.type-input.bad { border-color: var(--bad); background: var(--bad-soft); }
.type-hint { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: .1em; color: var(--text-2); min-height: 1em; }

.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match-col { display: grid; gap: 10px; align-content: start; }
.match-item { min-height: 56px; padding: 10px; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: 0 4px 0 var(--border); font-weight: 700; font-size: 16px; transition: .15s; }
.match-item.sel { border-color: var(--info); box-shadow: 0 4px 0 var(--info); background: color-mix(in srgb, var(--info) 12%, var(--bg-elev)); }
.match-item.done { opacity: .35; border-color: var(--ok); box-shadow: none; transform: scale(.97); pointer-events: none; }
.match-item.shake { animation: shake .35s; border-color: var(--bad); }
.match-info { text-align: center; color: var(--text-2); font-weight: 700; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- result ---------- */
.result { overflow: auto; }
.result-body { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 32px) 16px 24px; display: grid; gap: 16px; justify-items: center; text-align: center; align-content: start; }
.result-mascot { width: 150px; animation: up .4s ease-out; }
.result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; width: 100%; }
.rstat { border: 2px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; --c: var(--text-2); border-color: var(--c); }
.rstat.accent { --c: var(--accent-text); } .rstat.ok { --c: var(--ok); } .rstat.info { --c: var(--info); } .rstat.bad { --c: var(--bad); }
.rstat-label { background: var(--c); color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; padding: 4px; letter-spacing: .05em; }
.rstat-value { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; font-size: 20px; font-weight: 900; color: var(--c); }
.result-banner { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: var(--radius); font-weight: 800; }
.result-banner.flame { background: color-mix(in srgb, var(--flame) 15%, transparent); color: var(--flame); }
.result-banner.goal { background: var(--accent-soft); color: var(--accent-text); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 300; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105dvh) rotate(720deg); opacity: .7; } }

/* ---------- review ---------- */
.big-action { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; cursor: pointer; box-shadow: 0 5px 0 var(--border); }
.big-action > div { display: grid; gap: 6px; justify-items: start; }
.ba-mascot { width: 90px; }
.tile { display: grid; gap: 4px; justify-items: start; text-align: left; box-shadow: 0 4px 0 var(--border); }
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.tile-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 4px; }
.tile-ico.bad { background: var(--bad-soft); color: var(--bad-2); }
.tile-ico.warn { background: var(--accent-soft); color: var(--accent-text); }
.deck-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.dstat { display: grid; } .dstat b { font-size: 24px; font-weight: 900; }
.search, .text-input, .select { width: 100%; font: inherit; padding: 12px 14px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--bg-sunken); color: var(--text); }
.search:focus, .text-input:focus, .select:focus { outline: none; border-color: var(--info); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 10px 0; scrollbar-width: none; margin-right: -16px; }
.chip { flex: none; min-height: 40px; padding: 6px 14px; border-radius: var(--radius-pill); border: 2px solid var(--border); background: var(--bg-elev); font-weight: 800; font-size: 14px; }
.chip.sel { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.wordbank { display: grid; gap: 0; }
.wb-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.wb-row .speak-btn, .wordlist .speak-btn { width: 40px; height: 40px; }
.wb-text { display: grid; }
.wordlist { list-style: none; margin: 0; padding: 0; display: grid; }
.wordlist li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ---------- exam ---------- */
.exam-list { display: grid; gap: 10px; }
.exam-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left; box-shadow: 0 4px 0 var(--border); }
.exam-card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.exam-emoji { font-size: 32px; }
.exam-text { display: grid; gap: 2px; }
.mock-note { margin: -4px 0 10px; }
.mock-status { font-size: var(--fs-xs); font-weight: 900; color: var(--text-3); }
.mock-status.done { color: var(--ok-2); }
.mock-status.draft { color: var(--accent-text); }
.exam-card.mock.draft { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.section-report { width: 100%; text-align: left; display: grid; gap: 10px; }
.sr-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.sr-band { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display);
  font-size: 28px; font-weight: 800; color: var(--on-brand); background: var(--brand); box-shadow: 0 4px 0 var(--brand-2); }
.sr-band.b-A, .sr-band.b-B { background: var(--gold); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-2); }
.sr-band.none { background: var(--bg-sunken); color: var(--text-2); box-shadow: 0 4px 0 var(--border); }
.section-report h3 { margin-top: 4px; }
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sr-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.sr-list li.weak .sr-title { color: var(--bad); }
.sr-title { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-bar { height: 10px; border-radius: var(--radius-pill); background: var(--bg-sunken); overflow: hidden; }
.sr-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transform-origin: left; animation: grow .6s ease-out both; }
.sr-list li .sr-bar i { animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes grow { from { transform: scaleX(0); } }
.sr-band { animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) both .2s; }
@keyframes stamp { from { transform: scale(2.2) rotate(-12deg); opacity: 0; } }
.sr-tip { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-sm); }
.results-list { display: grid; gap: 0; padding: 4px 16px; }
.rl-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rl-row:last-child { border-bottom: 0; }
.exam-rules ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.exam-counter { flex: 1; font-weight: 900; text-align: center; }
.exam-body { flex: 1; overflow: auto; padding: 8px 16px 24px; max-width: 760px; width: 100%; margin: 0 auto; }
.exam-foot { grid-template-columns: auto auto minmax(0, 1fr); display: grid; }
.exam-foot .btn { min-width: 0; padding-inline: 14px; }
.exam-foot > * { max-width: none; width: auto; margin: 0; }
.flag.on { --b: var(--accent-soft); --c: var(--accent-text); }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.qg { height: 44px; border-radius: 10px; border: 2px solid var(--border); background: var(--bg-elev); font-weight: 800; }
.qg.ans { background: var(--brand-soft); border-color: var(--brand); }
.qg.flag { border-color: var(--accent); box-shadow: inset 0 -4px 0 var(--accent); }
.qg.cur { outline: 3px solid var(--info); }
.answer-key { display: grid; gap: 8px; width: 100%; text-align: left; }
.ak { border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.ak.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--border)); }
.ak.bad { border-color: color-mix(in srgb, var(--bad) 50%, var(--border)); }
.ak summary { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.ak summary::-webkit-details-marker { display: none; }
.ak-n { font-weight: 900; color: var(--text-3); }
.ak-q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ak-mark { font-weight: 900; }
.ak.ok .ak-mark { color: var(--ok); } .ak.bad .ak-mark { color: var(--bad); }
.ak-body { padding: 0 12px 12px; display: grid; gap: 8px; font-size: 15px; }
.ak-opts { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.ak-opts .right { color: var(--ok-2); font-weight: 800; }
.ak-opts .wrong { color: var(--bad-2); text-decoration: line-through; }
.ak-exp { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; }

/* ---------- league & duel ---------- */
.league-join { display: grid; justify-items: center; text-align: center; gap: 10px; }
.lj-mascot { width: 120px; }
.league-head { text-align: center; display: grid; gap: 6px; }
.tier-row { display: flex; justify-content: center; gap: 6px; font-size: 22px; }
.tier { opacity: .3; filter: grayscale(1); transition: .2s; }
.tier.past { opacity: .6; filter: none; }
.tier.cur { opacity: 1; filter: none; transform: scale(1.5); margin: 0 8px; }
.league-list { list-style: none; margin: 0; padding: 6px 8px; display: grid; }
.lm { display: grid; grid-template-columns: 34px 36px 1fr auto; gap: 8px; align-items: center; padding: 10px 8px; border-radius: var(--radius); }
.lm + .lm { border-top: 1px solid var(--border); }
.lm.up .lm-rank { color: var(--ok-2); }
.lm.down .lm-rank { color: var(--bad); }
.lm.me { background: var(--brand-soft); border-top-color: transparent; }
.lm-rank { font-weight: 900; text-align: center; }
.lm-avatar { font-size: 24px; text-align: center; }
.lm-nick { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-xp { font-weight: 800; color: var(--text-2); font-size: 14px; }
.duel-card, .duel-invite { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.duel-card > div, .duel-invite > div { display: grid; gap: 8px; justify-items: start; }
.duel-mascot { width: 92px; }
@media (max-width: 420px) { .duel-card, .duel-invite { grid-template-columns: 1fr; justify-items: center; text-align: center; } .duel-card > div, .duel-invite > div { justify-items: center; } }
.duel-history .sec-title { margin-top: 4px; }
.dh-list { list-style: none; margin: 0; padding: 6px; display: grid; }
.dh-list li + li { border-top: 1px solid var(--border); }
.dh-row { width: 100%; display: grid; grid-template-columns: 36px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 8px; border: 0; background: none; text-align: left; border-radius: var(--radius); }
button.dh-row:hover { background: var(--bg-sunken); }
.dh-row.expired { grid-template-columns: 36px 1fr auto; opacity: .65; }
.dh-row .ico { color: var(--text-3); }
.dh-avatar { font-size: 24px; text-align: center; }
.dh-main { display: grid; min-width: 0; }
.dh-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-main small { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.3; }
.dh-place { font-weight: 900; font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; }
.dh-place.win { color: var(--accent-text); background: var(--accent-soft); padding: 3px 10px; border-radius: var(--radius-pill); }
.share-box { display: grid; gap: 12px; text-align: center; }
.code-big { font-size: 40px; font-weight: 900; letter-spacing: .2em; color: var(--brand-text); font-family: ui-monospace, monospace; }
.code-input { text-transform: uppercase; font-size: 28px; letter-spacing: .2em; text-align: center; font-weight: 900; }
.profile-form { display: grid; gap: 10px; }
.form-err { color: var(--bad); font-weight: 700; min-height: 1.2em; font-size: 14px; }
.field-label { font-weight: 800; color: var(--text-2); font-size: 14px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.avatar-opt { height: 48px; font-size: 26px; border-radius: 12px; border: 2px solid var(--border); background: var(--bg-elev); }
.avatar-opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.avatar-opt.special { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); background: var(--accent-soft); }
.avatar-opt.special.sel { border-color: var(--brand); }
.supporter-chip { display: inline-flex; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--brand-soft); color: var(--brand-text); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 900; letter-spacing: 0; }
.support-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
a.btn { text-decoration: none; }
.support-card > div { display: grid; gap: 8px; justify-items: start; }
.support-card.thanks { background: var(--brand-soft); border-color: transparent; }
.support-mascot { width: 88px; }
.support-code { font-size: 20px; letter-spacing: .08em; }
@media (max-width: 420px) { .support-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } .support-card > div { justify-items: center; } }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 14px; align-items: center; }
.avatar-big { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 40px; border: 3px solid var(--brand); flex: none; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; }
.stat .ico { grid-row: span 2; }
.stat b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.stat span { font-size: 13px; }
.stat.flame .ico { color: var(--flame); } .stat.accent .ico { color: var(--accent-text); } .stat.ok .ico { color: var(--ok); } .stat.info .ico { color: var(--info); }
.week-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; align-items: end; margin-bottom: 10px; }
.wc-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; gap: 4px; }
.wc-val { font-size: 11px; font-weight: 800; color: var(--text-2); min-height: 1em; }
.wc-bar-wrap { width: 100%; max-width: 30px; display: flex; align-items: flex-end; }
.wc-bar { width: 100%; border-radius: 8px 8px 4px 4px; background: var(--bg-sunken); }
.wc-bar.hit { background: var(--accent); }
.wc-bar.frozen { background: color-mix(in srgb, var(--info) 40%, var(--bg-sunken)); }
.wc-day { font-size: 12px; font-weight: 800; color: var(--text-2); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.badge { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 12px 6px; border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--bg-elev); }
.badge img { width: 56px; height: 56px; }
.badge:not(.earned) img, .badge:not(.earned) .badge-fallback { filter: grayscale(1); opacity: .35; }
.badge b { font-size: 13px; }
.badge small { font-size: 11px; line-height: 1.25; }
.badge-fallback { font-size: 40px; }
.badge-earned { display: grid; justify-items: center; text-align: center; gap: 8px; }
.badge-big { width: 120px; height: 120px; animation: up .4s ease-out; }
.badge-big.fallback { font-size: 90px; display: grid; place-items: center; }
.settings { display: grid; gap: 14px; }
.settings h2 { display: flex; align-items: center; gap: 8px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.set-row.col { flex-direction: column; align-items: stretch; }
.seg { display: inline-flex; background: var(--bg-sunken); border-radius: var(--radius); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-btn { border: 0; background: none; min-height: 40px; padding: 7px 12px; border-radius: calc(var(--radius) - 3px); font-weight: 800; font-size: 13px; color: var(--text-2); }
.seg-btn.sel { background: var(--bg-elev); color: var(--brand-text); box-shadow: var(--shadow-1); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; gap: 12px; cursor: pointer; }
.switch { appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--border); position: relative; cursor: pointer; transition: .2s; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.switch:checked { background: var(--brand); }
.switch:checked::after { left: 23px; }
.set-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.about { padding: 8px 16px; }

/* ---------- onboarding ---------- */
.onboard { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow: auto; display: flex; flex-direction: column; }
.ob-dots { display: flex; gap: 6px; justify-content: center; padding: calc(env(safe-area-inset-top) + 18px) 0 0; }
.ob-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--border); transition: .2s; }
.ob-dots i.on { width: 24px; background: var(--brand); }
.ob-back { position: absolute; top: calc(env(safe-area-inset-top) + 6px); left: 8px; }
.ob-body { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 24px 20px 32px; display: grid; gap: 16px; align-content: center; text-align: center; animation: slidein .25s ease-out; }
.ob-body .track-list, .ob-body .goal-list { text-align: left; }
.ob-mascot { width: 170px; margin: 0 auto; }
.ob-mascot.wave { animation: bob 2s ease-in-out infinite; }
.lead { font-size: 20px; font-weight: 800; color: var(--brand-text); }
.ob-points { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 10px; text-align: left; }
.ob-points li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; padding: 10px 14px; border-radius: var(--radius); background: var(--bg-sunken); font-weight: 700; }
.goal-list { display: grid; gap: 10px; }
.goal-opt { display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: 0 4px 0 var(--border); font-size: 17px; }
.goal-opt.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 4px 0 var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* per-track section colours */
.page-home:has(.track-daily) .section-head { background: var(--track-daily); box-shadow: 0 4px 0 color-mix(in srgb, var(--track-daily) 70%, #000); color: var(--on-track); }
.page-home:has(.track-yds) .section-head { background: var(--track-yds); box-shadow: 0 4px 0 color-mix(in srgb, var(--track-yds) 70%, #000); color: var(--on-track); }
.page-home:has(.track-exam) .section-head { background: var(--track-exam); box-shadow: 0 4px 0 color-mix(in srgb, var(--track-exam) 70%, #000); color: var(--on-track); }
.page-home:has(.track-business) .section-head { background: var(--track-business); box-shadow: 0 4px 0 color-mix(in srgb, var(--track-business) 70%, #000); color: var(--on-track); }
.rstat.accent .rstat-label { background: var(--accent); color: var(--on-accent); }

.tip-btn { margin-left: auto; border: 2px solid var(--border); background: var(--bg-elev); border-radius: var(--radius-pill); padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 800; color: var(--text-2); min-height: 36px; }
.qg-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.qg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.qg-legend .qg { display: inline-block; width: 18px; height: 18px; border-radius: 5px; }
.q-instruction { margin: -6px 0 0; color: var(--text-2); font-weight: 700; font-size: 15px; }

/* ---------- canlı maskot, ders sonu ve seri animasyonları ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Nefes alma: tüm maskotlar hafifçe "yaşar"; kendi giriş animasyonu olanlar ona ekler. */
.mascot { transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; }
.result-mascot { animation: up .4s ease-out, breathe 3.6s ease-in-out .4s infinite; }
@keyframes breathe { 50% { transform: scale(1.02, 1.035); } }

/* Geri bildirimde maskot tepkisi: doğruda zıplar, yanlışta kafasını sallar. */
.fb-head { position: relative; }
.fb-mascot { width: 56px; margin: -18px 0 -10px auto; flex: none; }
.fb-mascot.hop { animation: hop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.fb-mascot.nope { animation: nope .6s ease-in-out both; }
@keyframes hop { 0% { transform: translateY(14px) scale(.8); opacity: 0; } 45% { transform: translateY(-10px) scale(1.06, .96); opacity: 1; } 70% { transform: translateY(0) scale(.97, 1.04); } }
@keyframes nope { 0% { transform: translateY(10px); opacity: 0; } 30% { transform: translateY(0) rotate(0); opacity: 1; } 45% { transform: rotate(-9deg); } 60% { transform: rotate(8deg); } 75% { transform: rotate(-5deg); } 90% { transform: rotate(2deg); } }

/* Ders sonu ustalık yıldızları: yeni kazanılanlar sırayla "pop" eder. */
.result-stars { display: grid; justify-items: center; gap: 4px; }
.result-stars .unit-stars { font-size: 40px; gap: 6px; margin: 0; }
.result-stars .unit-stars span.pop { animation: starpop .55s cubic-bezier(.3, 1.8, .5, 1) both; animation-delay: calc(.5s + var(--k, 0) * .35s); }
.result-stars small { font-weight: 800; color: var(--accent-text); }
@keyframes starpop { 0% { transform: scale(0) rotate(-40deg); color: var(--border); } 60% { transform: scale(1.45) rotate(10deg); } 100% { transform: scale(1); } }

/* Seri: alev büyüyüp titrer, sayı eski değerden yenisine döner. */
.result-banner.flame .ico { transform-origin: 50% 90%; animation: flare .9s ease-out both, flicker 1.8s ease-in-out .9s infinite; }
.num-flip { display: inline-grid; height: 1.25em; overflow: hidden; vertical-align: bottom; }
.num-flip > span { grid-area: 1 / 1; line-height: 1.25em; }
.num-flip .old { animation: flipout .35s ease-in .55s forwards; }
.num-flip .new { animation: flipin .35s ease-out .55s both; }
@keyframes flipout { to { transform: translateY(-100%); opacity: 0; } }
@keyframes flipin { from { transform: translateY(100%); opacity: 0; } }
@keyframes flare { 0% { transform: scale(.4); } 55% { transform: scale(1.6) rotate(-6deg); } 100% { transform: scale(1); } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.08, .95) rotate(-3deg); } 60% { transform: scale(.96, 1.06) rotate(3deg); } }
/* Ana ekranda bugünkü seri tamamsa alev hafifçe yanar. */
.pill.flame.lit .ico { transform-origin: 50% 90%; animation: flicker 2.4s ease-in-out infinite; color: var(--flame); }
