/* Meaning Ladder: warm, soft, low-contrast. All colors are tokens, so dark
   mode only has to redefine the tokens, never the components.

   Shape rule (one system, used everywhere):
     controls (buttons, inputs, bars, chips, menu items)  --r-control   8px
     containers (cards, dialogs, menus)                   --r-container 12px
     word pills and medal badges                          fully round        */

/* Self-hosted Nunito (variable weight, SIL OFL): no third-party font request. */
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8f3ea;          /* cream page */
  --surface: #fffbf4;     /* cards */
  --text: #3b332d;        /* dark brown-gray */
  --muted: #6f6257;      /* 5.3:1 on the page (WCAG AA) */
  --line: #e4d9ca;        /* thin outlines */
  --strong: #3b332d;      /* the dark outline on the latest step */
  --accent: #a65f42;      /* terracotta, 4.7:1 behind cream button text */
  --accent-text: #fffaf3;
  --track: #efe7da;       /* unfilled part of a bar */
  --near: #a9d8b0;        /* 1 step: green */
  --mid: #f2d98f;         /* 2 steps: yellow */
  --far: #f1b7b4;         /* 3+ steps: pink */
  --goal: #8fcf9a;
  --tried: #f5c2bd;       /* wrong guesses: light red, fill = closeness */
  --stair-sat: 60%;       /* climbed rungs: hue by height (stairStep), red to green */
  --stair-light: 76%;
  --stair-lift: 0.03%;    /* per hue degree, so the steps also differ in grayscale */
  --bar-sat: 65%;         /* the strong bar under rungs and guesses: 3:1+ on the track */
  --bar-light: 36%;
  --bar-lift: -0.05%;
  --rail: #d9cab6;        /* ladder rails and pegs */       /* rejected words: one neutral clay, length = closeness */
  --error: #b4473d;
  --focus: #a65f42;
  --shadow: 0 1px 2px rgb(80 60 40 / 0.06), 0 4px 16px rgb(80 60 40 / 0.06);
  --r-control: 8px;
  --r-container: 12px;
  /* Type scale: six sizes, used everywhere (no one-off font sizes). */
  --fs-xs: 0.75rem;   /* tags, tiny labels */
  --fs-sm: 0.9rem;    /* secondary text, quiet buttons */
  --fs-base: 1rem;
  --fs-md: 1.15rem;   /* card titles, the guess input */
  --fs-lg: 1.3rem;    /* dialog and result titles, stat numbers */
  --fs-xl: 2rem;      /* the home title */
  --dur-fast: 120ms;  /* press feedback */
  --dur-base: 220ms;  /* things entering */
  --disabled: 0.45;
  --gold-bg: #f3dc96;  --gold-fg: #7a5a0c;
  --silver-bg: #e2e2e6; --silver-fg: #565a63;
  --bronze-bg: #efcdb6; --bronze-fg: #84482a;
  --col: 360px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1a17;
    --surface: #262220;
    --text: #efe6da;
    --muted: #a3968a;
    --line: #3a342f;
    --strong: #efe6da;
    --accent: #e39573;
    --accent-text: #1d1a17;
    --track: #2f2a26;
    --near: #3a6a4b;
    --mid: #735e26;
    --far: #84434a;
    --goal: #2e6040;
    --tried: #6a3a38;
    --stair-sat: 32%;
    --stair-light: 28%;
    --stair-lift: 0.04%;
    --bar-sat: 65%;
    --bar-light: 62%;
    --bar-lift: -0.04%;
    --rail: #4b433c;
    --error: #f0928a;
    --focus: #e39573;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
    --gold-bg: #5b4a17;  --gold-fg: #f4d77e;
    --silver-bg: #44464c; --silver-fg: #dcdde2;
    --bronze-bg: #5a3826; --bronze-fg: #efb995;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

/* An author `display: flex` would otherwise beat the browser's [hidden] rule. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}

main {
  max-width: calc(var(--col) + 32px);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.visually-hidden,
.tchip-note { /* guesses show closeness by color only; the words stay for screen readers */
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.boot { text-align: center; color: var(--muted); padding: 48px 0; }

/* ------------------------------------------------------------ buttons */
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: var(--disabled); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-control);
  font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--accent-text);
  transition: transform var(--dur-fast) ease, filter var(--dur-fast) ease;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
@media (hover: hover) { .btn:hover:not(:disabled) { filter: brightness(1.05); } }

.btn-quiet {
  background: transparent; color: var(--text); border-color: var(--line);
  font-weight: 600; min-height: 44px; padding: 0 14px; font-size: var(--fs-sm);
}
@media (hover: hover) { .btn-quiet:hover:not(:disabled) { background: var(--surface); filter: none; } }

.btn-wide { width: 100%; }

.link-btn {
  background: none; border: 0; padding: 6px 4px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-sm);
}

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: var(--text);
}
@media (hover: hover) { .icon-btn:hover { background: var(--track); } }
.icon-btn svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ home */
.home-head { text-align: center; padding: 20px 0 22px; }
.logo { width: 52px; height: 52px; margin: 0 auto 10px; display: block; }
.home-head h1 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.01em; }
.tagline { color: var(--muted); margin-top: 4px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-container);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h2 { font-size: var(--fs-md); font-weight: 800; }
.card .sub { color: var(--muted); font-size: var(--fs-sm); }
.card .note { margin-top: 10px; font-size: var(--fs-sm); }

.week { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.chip {
  width: 100%; aspect-ratio: 1 / 1.15; display: grid; place-content: center; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-control); background: transparent;
  font-size: var(--fs-xs); color: var(--muted); padding: 0; line-height: 1.15; text-decoration: none;
}
.chip b { font-size: var(--fs-base); color: var(--text); font-weight: 700; }
.chip.played { background: var(--track); }
.chip.won { background: var(--near); border-color: transparent; }
.chip:disabled, .chip[aria-disabled="true"] { opacity: var(--disabled); cursor: default; }
.chip-mark { height: 16px; display: grid; place-items: center; }

.credits { text-align: center; font-size: var(--fs-xs); color: var(--muted); margin-top: 14px; }
.home-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; }
.about { margin-top: 18px; color: var(--muted); font-size: var(--fs-sm); text-align: center; text-wrap: pretty; }

/* ------------------------------------------------------------ level buttons */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.level-btn {
  display: grid; gap: 2px; justify-items: center; padding: 10px 6px;
  border: 1px solid var(--line); border-radius: var(--r-control);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.level-btn b { font-weight: 800; }
.level-btn span { font-size: var(--fs-sm); color: var(--muted); }
.level-btn.solved { background: var(--near); border-color: transparent; }
.level-btn.solved span { color: var(--text); }
.level-btn:active { transform: scale(0.97); }
@media (hover: hover) { .level-btn:hover { border-color: var(--strong); } }
.levels.compact { margin: 0 0 8px; gap: 6px; }
.levels.compact .level-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 6px 4px; font-weight: 700; font-size: var(--fs-sm);
}

/* ------------------------------------------------------------ game */
.topbar { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 4px; }
.topbar h1 { text-align: center; font-size: var(--fs-lg); font-weight: 800; }

.status {
  text-align: center; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.theme { text-align: center; margin-top: 10px; font-size: var(--fs-sm); }
.theme strong { font-weight: 800; }
.theme span { color: var(--muted); }

.guess { display: flex; gap: 8px; }
.guess input {
  flex: 1; min-width: 0; width: 100%; min-height: 54px; padding: 0 16px;
  font: inherit; font-size: var(--fs-md); font-weight: 600; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-control);
  outline: none;
}
.guess input:focus { border-color: var(--strong); }
.guess input::placeholder { color: var(--muted); font-weight: 400; }
.guess .go { flex: none; min-height: 54px; padding: 0 16px; }

.feedback { min-height: 46px; margin: 10px 0 0; }
.feedback .error { color: var(--error); font-weight: 600; padding: 10px 2px; }
.feedback .hintline, .feedback .muted { color: var(--muted); padding: 10px 2px; font-size: var(--fs-sm); }

.path { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }

.bar {
  --tone: var(--far);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 42px; padding: 0 14px; border-radius: var(--r-control);
  border: 1px solid transparent; font-weight: 700;
  background: linear-gradient(to right, var(--tone) var(--fill, 0%), var(--track) var(--fill, 0%));
  background-origin: border-box; /* no repeated sliver under the transparent border */
}
.bar.tone-near { --tone: var(--near); }
.bar.tone-mid { --tone: var(--mid); }
.bar.tone-far { --tone: var(--far); }
.bar.tone-goal { --tone: var(--goal); }
.bar.tone-cold { --tone: var(--line); }  /* far: a faint fill, still visible on the track */
.bar.tone-cold .num { color: var(--muted); }
/* Climbed rungs: a soft fill behind the text, plus a strong bar along the
   bottom (same length) that stays visible in both themes. */
.bar.stair {
  --tone: hsl(var(--stair-hue) var(--stair-sat) calc(var(--stair-light) + var(--stair-hue) * var(--stair-lift)));
  --bar: hsl(var(--stair-hue) var(--bar-sat) calc(var(--bar-light) + var(--stair-hue) * var(--bar-lift)));
  background:
    linear-gradient(to right, var(--bar) var(--fill), transparent var(--fill)) bottom / 100% 4px no-repeat,
    linear-gradient(to right, var(--tone) var(--fill), var(--track) var(--fill));
  background-origin: border-box;
}

/* Contexto-style list of wrong guesses, ranked from the current word. */
.tried { margin-top: 14px; }
.tried-head, .list-head { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); margin: 0 2px 6px; }
.list-head { margin-top: 18px; }
.list-head + .path { margin-top: 0; }
.tried .path { margin: 0; }
/* Tried bars mean "closeness to the current word", not steps to the goal, so
   they get their own color instead of the path's green/yellow/pink. */
/* Too-far words: a compact row of chips; the shaded part shows closeness. */
.tried { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 8px; }
.tchips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tchip {
  padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm);
  border: 1px solid var(--line);
  /* The strong bar is inset so the pill's round ends never clip it. */
  background:
    linear-gradient(to right, hsl(0 var(--bar-sat) var(--bar-light)) var(--fill, 0%), transparent var(--fill, 0%))
      10px calc(100% - 2px) / calc(100% - 20px) 3px no-repeat,
    linear-gradient(to right, var(--tried) var(--fill, 0%), var(--track) var(--fill, 0%));
  background-origin: border-box;
}
.tchip.latest { border-color: var(--strong); }
.tchip.enter { animation: slide-in var(--dur-base) ease-out, pulse 600ms ease-out 1; }
/* The ladder: two rails, a peg on each side of every rung, par + 1 rungs. */
.ladder {
  list-style: none; position: relative; display: grid; gap: 6px;
  margin: 14px 0 0; padding: 0 18px;
}
.ladder::before, .ladder::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px;
  border-radius: 2px; background: var(--rail);
}
.ladder::before { left: 4px; }
.ladder::after { right: 4px; }
/* No route to the goal from here: the rails break. */
.ladder.off-route::before, .ladder.off-route::after {
  background: repeating-linear-gradient(var(--rail) 0 8px, transparent 8px 14px);
}
.ladder > li { position: relative; }
.ladder > li::before, .ladder > li::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 3px;
  margin-top: -1.5px; background: var(--rail);
}
.ladder > li::before { left: -11px; }
.ladder > li::after { right: -11px; }
.rung {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 32px; padding: 0 14px; border-radius: var(--r-control);
  border: 1.5px dashed var(--line); color: var(--muted);
  font-size: var(--fs-sm); font-weight: 600;
}
.rung.next { border-color: var(--muted); }
.rung.ghost { min-height: 42px; color: var(--muted); }
.rung .num { font-variant-numeric: tabular-nums; }
/* Rungs you have climbed keep their color, so the ladder fills in below you. */
.ladder .bar.passed { font-weight: 600; }
.ladder-extra { list-style: none; padding: 0; margin: 6px 18px 0; display: grid; gap: 6px; }
.ladder-extra .bar.off { border: 1.5px dashed var(--far); }
/* Every word in the order played. */
.trail { margin-top: 12px; text-align: center; font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
.trail p { margin: 0; }
.trail-mark { color: var(--text); font-weight: 800; }
.trail summary { cursor: pointer; }
.rules { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }
.tried-note { font-size: var(--fs-xs); color: var(--muted); margin: 6px 2px 0; }
.bar .num { font-variant-numeric: tabular-nums; }
.bar .tag, .rung .tag { font-size: var(--fs-xs); color: inherit; opacity: 0.7; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-left: 8px; }
.bar.enter { animation: slide-in var(--dur-base) ease-out; }
/* A newly rejected word: one short pulse so the eye finds it in the list. */
.tried .bar.enter { animation: slide-in var(--dur-base) ease-out, pulse 600ms ease-out 1; }
@keyframes pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px var(--strong), 0 0 0 0 transparent; }
  40% { box-shadow: inset 0 0 0 1px var(--strong), 0 0 0 4px var(--line); }
}
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } }

.actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* "You are here", the same everywhere: the current rung (path bar and
   header pill), the current level and today's chip. Elements keep their 1px
   border and an inset ring adds the second pixel, so nothing shifts. */
.bar.latest, .levels.compact .level-btn.current, .chip.today {
  border-color: var(--strong); box-shadow: inset 0 0 0 1px var(--strong);
}

/* ------------------------------------------------------------ menu */
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: 44px; z-index: 10; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-container);
  box-shadow: var(--shadow); padding: 6px; display: grid;
}
.menu[hidden] { display: none; }
.menu button {
  text-align: left; background: none; border: 0; border-radius: var(--r-control); padding: 10px 12px; font-weight: 600;
}
.menu button:hover:not(:disabled), .menu button:focus-visible { background: var(--track); outline: none; }

/* ------------------------------------------------------------ win panel */
.win { text-align: center; padding: 20px 16px; }
.win .medal-badge { margin: 0 auto; }
.win { animation: rise 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.win h2 { font-size: var(--fs-lg); margin-top: 6px; font-weight: 800; }
.win .result { color: var(--muted); margin-top: 4px; }
.win .route { margin-top: 12px; font-size: var(--fs-sm); }
.win .route b { font-weight: 800; }
/* Why each step of the day's route follows: a short numbered list. */
.win .reasons { text-align: left; margin: 8px auto 10px; padding-left: 1.4em; display: grid; gap: 4px; max-width: 34ch; }
.win .btn-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.win .countdown { margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); }
.win .countdown b { font-variant-numeric: tabular-nums; color: var(--text); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 16px; }
.stat b { display: block; font-size: var(--fs-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-xs); color: var(--muted); }
.example-caption { margin-top: 12px; }
.stats-note { margin-top: 14px; text-align: center; }
.home-archive { margin-bottom: 14px; }
.share-box { width: 100%; margin-top: 8px; font: inherit; }
.toast { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.toast:empty { display: none; }


/* ------------------------------------------------------------ dialogs */
dialog {
  width: min(92vw, 400px); max-height: 85dvh; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--r-container);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgb(30 22 15 / 0.45); }
dialog h2 { font-size: var(--fs-lg); font-weight: 800; margin-bottom: 12px; }
dialog h2:focus { outline: none; }
dialog ul { padding-left: 1.1em; margin: 0; display: grid; gap: 8px; }
dialog .example { margin: 12px 0; display: grid; gap: 5px; }
dialog .dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* Send feedback */
.fb { display: grid; gap: 6px; }
.fb label { font-size: var(--fs-sm); font-weight: 700; margin-top: 6px; }
.fb select, .fb textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-control); outline: none;
}
.fb select { min-height: 44px; }
.fb textarea { resize: vertical; min-height: 110px; }
.fb select:focus, .fb textarea:focus { border-color: var(--strong); }
.fb textarea::placeholder { color: var(--muted); }
.fb .sub { margin-top: 6px; color: var(--muted); font-size: var(--fs-sm); }
.fb-error { color: var(--error); font-size: var(--fs-sm); font-weight: 600; }
.fb-error:empty { display: none; }
.fb-error .link-btn { font-size: inherit; }
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-context summary { cursor: pointer; font-size: var(--fs-sm); color: var(--muted); }
.fb-context p { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ icons & medals */
.inline-icon { width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-right: 6px; color: var(--accent); }
.btn-icon { width: 18px; height: 18px; flex: none; }
.icon-btn svg { width: 22px; height: 22px; }

.medal-badge {
  display: inline-grid; place-items: center; border-radius: 999px; flex: none;
  background: var(--track); color: var(--text);
}
.medal-badge svg { width: 58%; height: 58%; }
.medal-badge.size-lg { width: 64px; height: 64px; }
.medal-badge.size-sm { width: 24px; height: 24px; }
.medal-badge.size-xs { width: 16px; height: 16px; }
.medal-gold   { background: var(--gold-bg);   color: var(--gold-fg); }
.medal-silver { background: var(--silver-bg); color: var(--silver-fg); }
.medal-bronze { background: var(--bronze-bg); color: var(--bronze-fg); }
.medal-gaveUp { color: var(--muted); }
.with-badge { display: inline-flex; align-items: center; gap: 8px; }
.chip.won .medal-badge { box-shadow: 0 0 0 1.5px var(--surface); }
a.chip { transition: transform var(--dur-fast) ease; }
a.chip:active { transform: scale(0.95); }
@media (hover: hover) { a.chip:hover { border-color: var(--strong); } }

/* ------------------------------------------------------------ archive calendar */
.archive-note { margin-top: 12px; color: var(--muted); font-size: var(--fs-sm); }
.month { margin-top: 18px; }
.month-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.month-head h2 { font-size: var(--fs-md); font-weight: 800; }
.weekdays { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); text-align: center; font-weight: 700; }
.month .week { margin-top: 6px; }
.month .chip { aspect-ratio: 1 / 1; }
.week .pad { visibility: hidden; }

/* ------------------------------------------------------------ loading skeleton */
.skeleton { display: grid; gap: 10px; padding-top: 6px; }
.sk { background: var(--track); border-radius: var(--r-control); position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.35), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s ease-in-out infinite;
}
@media (prefers-color-scheme: dark) { .sk::after { background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.06), transparent); } }
.sk-line { height: 14px; width: 60%; margin: 0 auto; }
.sk-pills { height: 34px; width: 70%; margin: 6px auto 8px; border-radius: 999px; }
.sk-input { height: 54px; }
.sk-bar { height: 42px; width: var(--w); }
.sk-bar:first-of-type { margin-top: 18px; }
.sk-note { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-top: 8px; }

@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
