/* RoniDev Console — dark, dense, built to be read at a glance.
   Self-hosted system font stack: no webfont request, nothing to leak. */

:root {
  color-scheme: dark;

  --bg: #0a0c11;
  --bg-raised: #11141c;
  --bg-panel: rgba(22, 26, 36, 0.72);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e8ecf4;
  --text-dim: #99a3b8;
  --text-faint: #6b7590;

  --accent: #7aa2ff;
  --accent-soft: rgba(122, 162, 255, 0.16);
  --ok: #4ec9a5;
  --warn: #e8b661;
  --danger: #f0736a;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* Long unbroken strings - file paths, URLs, base32 secrets - used to run out of
   their card instead of wrapping. Grid and flex children default to min-width:auto,
   which means "never shrink below my content", so a single long word pushes the
   whole box wider. Both halves of the fix have to be here: permission to break the
   word, and permission for the box to be narrower than it. */
.feature, .feature *, .panel, .stat, .model-item, .kv dd, .table td, .table th {
  min-width: 0;
  overflow-wrap: anywhere;
}
code, .mono { overflow-wrap: anywhere; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(122, 162, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(78, 201, 165, 0.07), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

h1 { font-size: 1.55rem; margin: 0 0 0.2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.02rem; margin: 0 0 0.85rem; letter-spacing: 0.01em; }
h3 { font-size: 0.95rem; margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: rgba(255, 255, 255, 0.06); padding: 0.1em 0.4em; border-radius: 5px; }

.muted { color: var(--text-dim); }
.small { font-size: 0.84rem; }
.strong { font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Top bar ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.7rem 1.5rem;
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand-dim { color: var(--text-faint); font-weight: 400; }
.brand-mark {
  width: 20px; height: 20px; border-radius: 6px;
  background: linear-gradient(140deg, var(--accent), #4ec9a5);
  box-shadow: 0 0 18px rgba(122, 162, 255, 0.5);
}
.brand-mark-lg { width: 34px; height: 34px; border-radius: 10px; }

.nav { display: flex; gap: 0.25rem; flex: 1; flex-wrap: wrap; }
.nav a {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.9rem;
}
.nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); text-decoration: none; }
.nav a.is-active { background: var(--accent-soft); color: var(--text); }

.topbar-right { display: flex; align-items: center; gap: 0.6rem; }
.user-chip {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.7rem; border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); font-size: 0.86rem;
}
.user-chip:hover { border-color: var(--border-strong); text-decoration: none; }
.user-role { color: var(--text-faint); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* --- Layout ------------------------------------------------------------- */

.page { flex: 1; width: min(1400px, 100%); margin: 0 auto; padding: 1.6rem 1.5rem 3rem; }
.page-centered { display: grid; place-items: center; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.3rem;
}

.footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.82rem;
  display: flex; gap: 0.5rem;
}
.dot { opacity: 0.5; }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(8px);
}
.panel-highlight { border-color: rgba(122, 162, 255, 0.45); box-shadow: 0 0 0 1px rgba(122, 162, 255, 0.12), var(--shadow); }
.panel-centered { max-width: 520px; margin: 4rem auto; text-align: center; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.2rem; }

/* --- Stats -------------------------------------------------------------- */

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.85rem; margin-bottom: 1.2rem;
}
.stat {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 1rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-2px); text-decoration: none; }
.stat-value { font-size: 1.85rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-total { font-size: 1rem; color: var(--text-faint); font-weight: 400; }
.stat-label { font-size: 0.8rem; color: var(--text-dim); }
.value-warn { color: var(--warn); }
.value-danger { color: var(--danger); }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.9rem; }
.mini-value { display: block; font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.mini-label { font-size: 0.78rem; color: var(--text-dim); }

.build-chip {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem;
  padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02); max-width: 460px; text-align: right;
}

/* --- Tables ------------------------------------------------------------- */

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th {
  text-align: left; font-weight: 600; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint);
  padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--border-strong);
  position: sticky; top: 0; background: #12151d; z-index: 1;
}
.table th.num { text-align: right; }
.table td { padding: 0.5rem 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table th[data-direction='asc']::after { content: ' ▲'; color: var(--accent); }
.table th[data-direction='desc']::after { content: ' ▼'; color: var(--accent); }
.row-fail td { background: rgba(240, 115, 106, 0.06); }

.table-scroll { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); }
.table-tall { max-height: 30rem; }
.table-scroll .table th:first-child, .table-scroll .table td:first-child { padding-left: 1rem; }

/* --- Pills, tags, status ------------------------------------------------ */

.pill, .tag, .status, .rarity {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap;
}
.pill { border: 1px solid var(--border-strong); color: var(--text-dim); }
.pill-readonly { color: var(--ok); border-color: rgba(78, 201, 165, 0.4); background: rgba(78, 201, 165, 0.1); }
.pill-warn { color: var(--warn); border-color: rgba(232, 182, 97, 0.4); background: rgba(232, 182, 97, 0.1); }
.pill-accent { color: var(--accent); border-color: rgba(122, 162, 255, 0.4); background: var(--accent-soft); }
.pill-muted { color: var(--text-faint); }

.tag { background: rgba(255, 255, 255, 0.06); color: var(--text-dim); font-family: var(--mono); font-size: 0.7rem; }
.tag-MeleeCone { background: rgba(240, 115, 106, 0.14); color: #f3968f; }
.tag-ProjectileNearest { background: rgba(122, 162, 255, 0.16); color: #9fbaff; }
.tag-ThrowReturn { background: rgba(232, 182, 97, 0.14); color: #edc784; }
.tag-AreaPulse { background: rgba(196, 122, 255, 0.14); color: #c9a2f5; }
.tag-SkyStrike { background: rgba(97, 205, 232, 0.14); color: #8fdcef; }
.tag-Companion { background: rgba(78, 201, 165, 0.14); color: #78d9bc; }
.tag-Orbit { background: rgba(255, 160, 90, 0.14); color: #ffb887; }
.tag-Absorb { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }

.status-live { background: rgba(78, 201, 165, 0.14); color: var(--ok); }
.status-partial { background: rgba(232, 182, 97, 0.14); color: var(--warn); }
.status-unverified { background: rgba(122, 162, 255, 0.14); color: var(--accent); }
.status-broken { background: rgba(240, 115, 106, 0.14); color: var(--danger); }

.rarity-common { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }
.rarity-uncommon { background: rgba(78, 201, 165, 0.14); color: var(--ok); }
.rarity-rare { background: rgba(122, 162, 255, 0.16); color: var(--accent); }
.rarity-epic { background: rgba(196, 122, 255, 0.16); color: #c9a2f5; }
.rarity-legendary { background: rgba(232, 182, 97, 0.16); color: var(--warn); }

.legend { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* --- Forms and buttons -------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font: inherit; font-size: 0.88rem; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #0a0c11; font-weight: 600; }
.btn-primary:hover { background: #93b4ff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.btn-danger { border-color: rgba(240, 115, 106, 0.5); color: var(--danger); background: rgba(240, 115, 106, 0.08); }
.btn-danger:hover { background: rgba(240, 115, 106, 0.18); }
.btn-tiny { padding: 0.2rem 0.5rem; font-size: 0.76rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-clip { font-size: 0.8rem; padding: 0.3rem 0.65rem; }
.btn-clip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--text-dim); }
.field-inline { flex-direction: row; align-items: center; gap: 0.5rem; }
input[type='text'], input[type='password'], input[type='search'], select {
  padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.32);
  color: var(--text); font: inherit; font-size: 0.9rem; min-width: 0;
}
input:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, th:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
input[type='range'] { accent-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--text-dim); cursor: pointer; }

.stack { display: flex; flex-direction: column; gap: 0.85rem; }
.narrow { max-width: 340px; }
.row-form { display: flex; gap: 0.8rem; align-items: flex-end; flex-wrap: wrap; }
.inline { display: inline-flex; gap: 0.3rem; align-items: center; }
.toolbar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }

.alert { padding: 0.7rem 0.95rem; border-radius: var(--radius-sm); margin: 0 0 1rem; font-size: 0.9rem; border: 1px solid; }
.alert-error { background: rgba(240, 115, 106, 0.1); border-color: rgba(240, 115, 106, 0.4); color: #ffb3ad; }
.alert-warn { background: rgba(232, 182, 97, 0.1); border-color: rgba(232, 182, 97, 0.4); color: #f3d5a1; }
.alert-ok { background: rgba(78, 201, 165, 0.1); border-color: rgba(78, 201, 165, 0.4); color: #9be3ce; }

.credential {
  font-size: 1.3rem; letter-spacing: 0.06em; padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.4); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm); user-select: all; word-break: break-all;
}

/* --- Auth card ---------------------------------------------------------- */

.auth-card {
  width: min(420px, 92vw); padding: 2rem;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; margin-bottom: 1.5rem; text-align: center; }
.auth-head h1 { font-size: 1.25rem; }

/* --- Features ----------------------------------------------------------- */

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.9rem; }
.feature { padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.02); }
.feature-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.35rem; }
.feature p { margin: 0 0 0.35rem; font-size: 0.88rem; color: var(--text-dim); }
.feature-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.feature-cat h3 { margin-bottom: 0.5rem; color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; }
.clean { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.clean li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.notes { margin: 0; padding-left: 1.1rem; color: var(--text-dim); font-size: 0.88rem; display: flex; flex-direction: column; gap: 0.4rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0; font-size: 0.88rem; }
.kv dt { color: var(--text-faint); }
.kv dd { margin: 0; }
.steps { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--text-dim); font-size: 0.88rem; display: flex; flex-direction: column; gap: 0.4rem; }
.secret { display: inline-block; margin-top: 0.3rem; font-size: 1rem; letter-spacing: 0.08em; user-select: all; }
.totp-setup { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.qr { border-radius: var(--radius-sm); background: #fff; padding: 6px; }

/* --- Model viewer ------------------------------------------------------- */

.viewer-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; }
.model-list {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.8rem; max-height: 76vh; overflow: auto; display: flex; flex-direction: column; gap: 0.6rem;
}
.model-item {
  display: flex; flex-direction: column; gap: 0.15rem; width: 100%; text-align: left;
  padding: 0.5rem 0.6rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--text);
  font: inherit; cursor: pointer;
}
.model-item:hover { background: rgba(255, 255, 255, 0.05); }
.model-item.is-active { background: var(--accent-soft); border-color: rgba(122, 162, 255, 0.4); }
.model-name { font-size: 0.88rem; font-weight: 550; }
.model-meta { display: flex; gap: 0.4rem; align-items: center; font-size: 0.74rem; color: var(--text-faint); }

.viewer-panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.viewer-stage { position: relative; height: min(62vh, 620px); background: linear-gradient(180deg, #0d1017, #070910); }
.viewer-stage canvas { display: block; width: 100%; height: 100%; }
.viewer-overlay {
  position: absolute; inset: auto 0 50% 0; text-align: center;
  color: var(--text-dim); font-size: 0.9rem; pointer-events: none;
}
.viewer-overlay.is-error { color: var(--danger); }
.viewer-controls { padding: 0.9rem 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.7rem; }
.control-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }

@media (max-width: 900px) {
  .viewer-layout { grid-template-columns: 1fr; }
  .model-list { max-height: 16rem; }
  .topbar { flex-wrap: wrap; gap: 0.6rem; }
}

/* --- Motion --------------------------------------------------------------- */

/* Slow colour wash behind the page. Three blurred blobs drifting on different
   cycles - cheap, GPU-composited, and it keeps an idle page from looking dead. */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.aurora span:nth-child(1) {
  background: radial-gradient(circle, rgba(122, 162, 255, 0.55), transparent 65%);
  top: -14vw; left: -8vw;
  animation: drift-a 34s ease-in-out infinite;
}
.aurora span:nth-child(2) {
  background: radial-gradient(circle, rgba(78, 201, 165, 0.42), transparent 65%);
  top: 30vh; right: -14vw;
  animation: drift-b 44s ease-in-out infinite;
}
.aurora span:nth-child(3) {
  background: radial-gradient(circle, rgba(196, 122, 255, 0.30), transparent 65%);
  bottom: -18vw; left: 28vw;
  animation: drift-c 52s ease-in-out infinite;
}
@keyframes drift-a { 50% { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes drift-b { 50% { transform: translate3d(-10vw, -8vh, 0) scale(1.1); } }
@keyframes drift-c { 50% { transform: translate3d(6vw, -6vh, 0) scale(0.9); } }

/* Entrance animation. Elements start slightly low and transparent; motion.js
   adds .is-visible when they scroll into view. Without JavaScript nothing is
   hidden - the fallback below runs the animation immediately. */
.reveal {
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}
body.js .reveal { animation: none; opacity: 0; transform: translateY(14px); }
body.js .reveal.is-visible {
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cards lift and light up under the cursor. */
.stat, .feature, .model-item, .panel {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.stat:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4); }
.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.stat { position: relative; overflow: hidden; }
.stat:hover::after { opacity: 1; }

/* Section headings get a small pulsing marker, so the eye finds them while
   scrolling instead of reading every heading. */
.section-title { display: flex; align-items: center; gap: 0.6rem; }
.section-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe {
  50% { box-shadow: 0 0 0 7px rgba(122, 162, 255, 0.06); }
}

.lead { max-width: 62ch; }
.narrow-page { max-width: 520px; }

/* Ranked bars instead of a table on the overview: the relative length says more
   at a glance than four columns of numbers. */
.bar-list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.bar-list li { display: grid; grid-template-columns: minmax(90px, 1fr) 2.2fr auto; align-items: center; gap: 0.7rem; font-size: 0.9rem; }
.bar-name { color: var(--text); }
.bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar-fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #4ec9a5);
  transform-origin: left;
  animation: grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar-value { color: var(--text-dim); font-size: 0.85rem; }

/* Language switch */
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-switch a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); text-decoration: none; }
.lang-switch a.is-active { background: var(--accent-soft); color: var(--text); }
.lang-switch-plain { border: none; gap: 0.3rem; }

/* Counting numbers. The value itself is animated by motion.js; this only keeps
   the digits from reflowing the layout while they change width. */
.stat-value, .mini-value { font-variant-numeric: tabular-nums; }

/* Everything above is decoration. Someone who asked their system to stop moving
   things gets a static page - not a slower one. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  body.js .reveal { opacity: 1; transform: none; }
  .aurora { display: none; }
}
