/* Study Feed — paper & ink, one accent per subject */
:root {
  --paper: #F2EEE5;
  --paper-2: #E9E4D8;
  --card: #FBF9F4;
  --ink: #161514;
  --ink-2: #3A3835;
  --muted: #77726A;
  --line: rgba(22, 21, 20, .16);
  --line-strong: rgba(22, 21, 20, .85);
  --math: #22406F;
  --econ: #B9502B;
  --english: #2E5B43;
  --exam: #B88A1E;
  --good: #2E5B43;
  --bad: #A8322A;
  --on-accent: #FBF9F4;
  --st-green: #2E5B43;
  --st-yellow: #C99A2E;
  --st-red: #A8322A;
  --st-new: rgba(22, 21, 20, .18);
  --shadow: 0 1px 0 rgba(22, 21, 20, .08);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121211; --paper-2: #1B1B19; --card: #1A1A18;
    --ink: #ECE7DC; --ink-2: #CFC9BC; --muted: #8F8A80;
    --line: rgba(236, 231, 220, .14); --line-strong: rgba(236, 231, 220, .8);
    --math: #7FA2DA; --econ: #E3855F; --english: #7DB592; --exam: #D9B04F;
    --good: #7DB592; --bad: #E2766B; --on-accent: #121211;
    --st-green: #7DB592; --st-yellow: #D9B04F; --st-red: #E2766B; --st-new: rgba(236, 231, 220, .2);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121211; --paper-2: #1B1B19; --card: #1A1A18;
  --ink: #ECE7DC; --ink-2: #CFC9BC; --muted: #8F8A80;
  --line: rgba(236, 231, 220, .14); --line-strong: rgba(236, 231, 220, .8);
  --math: #7FA2DA; --econ: #E3855F; --english: #7DB592; --exam: #D9B04F;
  --good: #7DB592; --bad: #E2766B; --on-accent: #121211;
  --st-green: #7DB592; --st-yellow: #D9B04F; --st-red: #E2766B; --st-new: rgba(236, 231, 220, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.boot { font-family: var(--display); font-size: 40px; text-align: center; padding-top: 40vh; letter-spacing: .02em; text-transform: uppercase; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding: 0 16px calc(84px + env(safe-area-inset-bottom)); }
#app.in-session { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* ---------- masthead */
.mast { padding: calc(14px + env(safe-area-inset-top)) 0 10px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.mast-top { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.mast h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 14vw, 64px); line-height: .92; margin: 10px 0 0; text-transform: uppercase; letter-spacing: .005em; }
.mast h1 em { font-family: var(--serif); font-style: italic; text-transform: none; font-size: .62em; letter-spacing: 0; font-weight: 400; }
.sync-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: 1px; }
.sync-dot.off { background: var(--st-yellow); }

/* ---------- sections */
.sec { margin: 0 0 26px; }
.sec-h { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 12px; }
.sec-h .num { font-family: var(--serif); font-size: 18px; }
.sec-h .lbl { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); flex: 1; }
.sec-h .act { font-size: 12px; color: var(--ink-2); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; margin-bottom: 14px; }
.streak-n { font-family: var(--display); font-size: 92px; line-height: .82; }
.streak-l { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hero-meta { font-family: var(--serif); font-size: 16px; color: var(--ink-2); border-left: 1px solid var(--line); padding-left: 14px; }
.hero-meta b { font-weight: 600; color: var(--ink); }
.btn-start {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  padding: 18px 24px; font-family: var(--display); font-size: 22px; letter-spacing: .04em; text-transform: uppercase;
}
.btn-start:active { transform: scale(.985); }
.btn-start .arrow { font-family: var(--sans); font-size: 22px; }
.btn-start.alt { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.subtle { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- subject tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 12px 12px; position: relative; overflow: hidden; text-align: left; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--acc); }
.tile .t-num { font-family: var(--serif); font-size: 13px; color: var(--muted); }
.tile .t-name { font-family: var(--display); font-size: 25px; line-height: 1; text-transform: uppercase; margin: 2px 0 10px; color: var(--acc); }
.tile .t-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-top: 7px; }
.stbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--st-new); }
.stbar i { display: block; height: 100%; }
.stbar .g { background: var(--st-green); } .stbar .y { background: var(--st-yellow); } .stbar .r { background: var(--st-red); }

.note-card { display: flex; gap: 12px; align-items: center; width: 100%; background: var(--card); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 12px 14px; text-align: left; }
.note-card .big { font-family: var(--display); font-size: 30px; line-height: 1; }
.note-card .txt { font-size: 13px; color: var(--ink-2); }

/* ---------- bottom nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--paper); border-top: 1.5px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
.nav-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav button { background: none; border: 0; padding: 10px 0 12px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav button .ic { font-family: var(--serif); font-size: 17px; letter-spacing: 0; text-transform: none; }
.nav button.on { color: var(--ink); font-weight: 600; }
.nav button.on .ic { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ---------- session */
.s-top { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: calc(10px + env(safe-area-inset-top)) 0 10px; display: flex; align-items: center; gap: 12px; }
.s-close { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; font-size: 18px; line-height: 1; flex: none; }
.s-prog { flex: 1; }
.s-prog .bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.s-prog .bar i { display: block; height: 100%; background: var(--acc, var(--ink)); transition: width .3s; }
.s-prog .cnt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; }

.card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; padding: 16px 16px 18px; margin-top: 6px; box-shadow: 4px 4px 0 var(--acc); }
.card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.chip { background: var(--acc); color: var(--on-accent); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.crumb { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tag { margin-left: auto; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 8px; }
.prompt { font-family: var(--serif); font-size: 19px; line-height: 1.45; overflow-wrap: anywhere; }
.prompt .katex-display { margin: .6em 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.prompt blockquote, .sol blockquote { margin: 8px 0; padding: 6px 0 6px 12px; border-left: 3px solid var(--acc); font-style: italic; }

.opts { display: grid; gap: 8px; margin-top: 16px; }
.opt { text-align: left; background: transparent; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 11px 13px; font-family: var(--serif); font-size: 16.5px; line-height: 1.35; display: flex; gap: 10px; align-items: baseline; overflow-wrap: anywhere; }
.opt .k { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--muted); flex: none; width: 14px; }
.opt.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt.sel .k { color: var(--paper); opacity: .7; }
.opt.right { border-color: var(--good); box-shadow: inset 0 0 0 1.5px var(--good); }
.opt.wrong { border-color: var(--bad); color: var(--bad); text-decoration: line-through; background: transparent; }
.opt.wrong .k { color: var(--bad); }
.opt:disabled { cursor: default; }

.ans-in { width: 100%; margin-top: 16px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; padding: 10px 2px; font-family: var(--serif); font-size: 20px; outline: none; border-radius: 0; }
.ans-in:focus { border-bottom-color: var(--acc); }
.ans-in.right { border-bottom-color: var(--good); color: var(--good); }
.ans-in.wrong { border-bottom-color: var(--bad); color: var(--bad); }
.unit { font-size: 12px; color: var(--muted); margin-top: 4px; }

.hint-btn { background: none; border: 0; padding: 0; margin-top: 14px; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.hint { margin-top: 12px; font-family: var(--serif); font-size: 15.5px; color: var(--ink-2); border-left: 3px solid var(--acc); padding: 2px 0 2px 12px; }

.conf { margin-top: 16px; }
.conf .lbl { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.conf-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.conf-row button { border: 1.5px solid var(--ink); background: var(--card); border-radius: 12px; padding: 10px 2px 9px; font-size: 12.5px; font-weight: 600; line-height: 1.15; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.conf-row button .meter { display: flex; gap: 2px; }
.conf-row button .meter i { width: 5px; height: 9px; border-radius: 1px; background: var(--line); }
.conf-row button .meter i.on { background: var(--acc); }
.conf-row button:disabled { opacity: .35; cursor: default; }
.conf-row button:not(:disabled):active { background: var(--ink); color: var(--paper); }

.verdict { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.verdict .v { font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1; }
.verdict.ok .v { color: var(--good); } .verdict.no .v { color: var(--bad); }
.verdict .c { font-size: 13px; color: var(--muted); }
.correct-ans { font-family: var(--serif); font-size: 16px; margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 500; }
.pill.on { background: var(--ink); color: var(--paper); }
.pill.ghost { border-color: var(--line-strong); color: var(--ink-2); }
.sol { margin-top: 14px; background: var(--paper-2); border-radius: 12px; padding: 12px 14px; font-family: var(--serif); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.sol .katex-display { margin: .4em 0; overflow-x: auto; overflow-y: hidden; }
.report { margin-top: 12px; }
.report textarea { width: 100%; min-height: 70px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); padding: 10px; font-size: 14px; }

.s-next { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 70%, transparent); }
.s-next .btn-start { max-width: 528px; margin: 0 auto; }

.done { text-align: center; padding-top: 12vh; }
.done h2 { font-family: var(--display); font-size: 84px; line-height: .9; margin: 0; text-transform: uppercase; }
.done .score { font-family: var(--serif); font-size: 20px; margin: 14px 0 4px; }
.done .sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.done .stack { display: grid; gap: 10px; }

/* ---------- topics */
.subj-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 18px; }
.subj-tabs button { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 8px 0; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.subj-tabs button.on { background: var(--acc); border-color: var(--acc); color: var(--on-accent); }
.area { margin-bottom: 20px; }
.area-h { font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--acc); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
.trow { width: 100%; display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 0; text-align: left; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st-new); }
.dot.green { background: var(--st-green); } .dot.yellow { background: var(--st-yellow); } .dot.red { background: var(--st-red); }
.trow .tt { font-family: var(--serif); font-size: 16px; line-height: 1.25; }
.trow .tm { font-size: 11.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.fams { padding: 4px 0 10px 22px; border-bottom: 1px solid var(--line); }
.fam { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; padding: 5px 0; color: var(--ink-2); }
.fam .dot { width: 7px; height: 7px; }
.fam .when { font-size: 11px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--muted); margin: -6px 0 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.empty { font-family: var(--serif); font-size: 16px; color: var(--muted); padding: 18px 0; }

/* ---------- stats */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.kpi { padding: 10px 8px 12px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .n { font-family: var(--display); font-size: 36px; line-height: 1; }
.kpi .l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.heat { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: column; grid-template-rows: repeat(7, auto); gap: 3px; }
.heat i { height: 13px; border-radius: 3px; background: var(--line); }
.heat i.l1 { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.heat i.l2 { background: color-mix(in srgb, var(--ink) 60%, transparent); }
.heat i.l3 { background: var(--ink); }
.heat i.today { outline: 1.5px solid var(--econ); outline-offset: 1px; }
.srow { display: grid; grid-template-columns: 92px 1fr 46px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.srow .nm { font-weight: 600; color: var(--acc); text-transform: uppercase; font-size: 11.5px; letter-spacing: .1em; }
.srow .pct { text-align: right; font-variant-numeric: tabular-nums; }
.track { height: 8px; background: var(--line); border-radius: 4px; position: relative; overflow: visible; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--acc, var(--ink)); }
.track b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.cal-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; font-family: var(--serif); }

/* ---------- more */
.list-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; text-align: left; }
.list-btn .t { font-family: var(--serif); font-size: 17px; }
.list-btn .d { font-size: 12.5px; color: var(--muted); }
.list-btn .r { font-size: 18px; }
.field { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 16px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 11px; font-size: 12.5px; font-family: var(--sans); }
.seg button.on { background: var(--ink); color: var(--paper); }
.xitem { border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--card); }
.xitem .p { font-family: var(--serif); font-size: 15.5px; margin: 6px 0; }
.xitem .meta { font-size: 12px; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; white-space: pre-wrap; word-break: break-all; background: var(--paper-2); border-radius: 10px; padding: 10px; max-height: 220px; overflow: auto; }
.err-list { color: var(--bad); font-size: 12.5px; }

/* ---------- login */
.login { padding-top: 14vh; }
.login p { font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.login input { width: 100%; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font-family: var(--display); font-size: 34px; letter-spacing: .12em; padding: 8px 0; margin: 22px 0 24px; outline: none; border-radius: 0; }
.login .err { color: var(--bad); font-size: 13px; min-height: 20px; }

#toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- motion */
.nav { view-transition-name: nav; }
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root) { animation: vt-fade-out .18s ease both; }
::view-transition-new(root) { animation: vt-rise .32s cubic-bezier(.2, .8, .2, 1) both; }
/* the morphing element keeps its own image instead of a double cross-fade */
::view-transition-old(card), ::view-transition-new(card) { height: 100%; object-fit: cover; }
::view-transition-old(mast-title) { animation: vt-fade-out .2s ease both; }
::view-transition-new(mast-title) { animation: vt-title-in .38s cubic-bezier(.2, .8, .2, 1) both; }

/* next card: old slides left and tilts away, new comes in from the right */
html[data-vt="next"]::view-transition-group(card) { animation: none; }
html[data-vt="next"]::view-transition-old(card) { animation: vt-card-out .3s cubic-bezier(.4, 0, .6, 1) both; }
html[data-vt="next"]::view-transition-new(card) { animation: vt-card-in .42s cubic-bezier(.2, .8, .2, 1) .06s both; }
html[data-vt="next"]::view-transition-old(root),
html[data-vt="next"]::view-transition-new(root) { animation: none; }

@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes vt-title-in { from { opacity: 0; transform: translateY(10px); letter-spacing: .06em; } }
@keyframes vt-card-out { to { opacity: 0; transform: translateX(-38%) rotate(-4deg); } }
@keyframes vt-card-in { from { opacity: 0; transform: translateX(42%) rotate(3deg); } }

/* fallback for browsers without view transitions */
#app.enter > * { animation: vt-rise .32s cubic-bezier(.2, .8, .2, 1) both; }

/* in-card micro-motion */
.verdict.fresh { animation: pop-in .38s cubic-bezier(.2, 1.4, .4, 1) both; }
.verdict.fresh ~ .actions, .verdict.fresh ~ .correct-ans { animation: vt-rise .32s .08s cubic-bezier(.2, .8, .2, 1) both; }
.sol.fresh { animation: unfold .3s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top; }
.hint { animation: unfold .28s cubic-bezier(.2, .8, .2, 1) both; transform-origin: top; }
.opt, .conf-row button, .pill, .tile, .btn-start, .trow { transition: transform .12s ease, background-color .15s ease, color .15s ease; }
.opt:active, .pill:active, .tile:active { transform: scale(.98); }
.conf-row button:not(:disabled):active { transform: scale(.94); }
.card.fresh .ans-in.wrong, .card.fresh .opt.wrong { animation: shake .35s ease both; }
.card.fresh .opt.right, .card.fresh .ans-in.right { animation: pop-in .3s ease both; }
.done h2 { animation: pop-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.streak-n { animation: vt-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.stbar i { transform-origin: left; animation: grow .7s .1s cubic-bezier(.2, .8, .2, 1) both; }
.track i { transform-origin: left; animation: grow .7s .1s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes pop-in { from { opacity: 0; transform: scale(.85) translateY(6px); } }
@keyframes unfold { from { opacity: 0; transform: scaleY(.7) translateY(-6px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
