/* Plink Jar — "kitchen counter" design system (direction 1c)
   Young Serif display · Karla body · Caveat accents (names/dates only)
   Sticky-note cards · 70s household palette · drop-in for tether-web

   index.html font link:
   https://fonts.googleapis.com/css2?family=Young+Serif&family=Karla:ital,wght@0,400;0,500;0,700;1,400&family=Caveat:wght@600;700&display=swap
*/

:root {
  --ink: #3d2c1e;      /* warm brown text */
  --paper: #efe4cd;    /* kitchen-wall cream */
  --card: #fdf7e7;     /* note paper */
  --line: #5a4632;     /* inked lines (SVGs pick this up) */
  --plum: #8a5a2b;     /* eyebrow/label brown (was plum) */
  --ochre: #d9a13b;    /* mustard — repair gold stays here */
  --rose: #c65b28;     /* burnt orange (knock arcs, underline) */
  --sky: #e9b944;      /* sticky-note yellow (was sky) */
  --sage: #7a8450;     /* avocado */
  --note: #e9b944;
  --shelf: #e2d3b4;
  --shelf-line: #c9b58c;
  --btn: #c65b28;
  --btn-shadow: #8f3f1a;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", system-ui, sans-serif;
  font-size: 16px;
  min-height: 100%;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .serif { font-family: "Young Serif", serif; font-weight: 400; }
h1 { font-size: 26px; margin: 0; }
h2 { font-size: 22px; margin: 0 0 4px; }

/* Caveat is ONLY for word-scale accents: names, dates. Never sentences. */
.hand { font-family: "Caveat", cursive; font-weight: 700; }

/* Today's greeting: a handwritten hello above the heading */
.greeting {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 22px;
  color: var(--rose);
  margin: 12px 0 2px;
}

.page {
  flex: 1;
  padding: 22px 20px calc(92px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--plum);
}

.muted { color: var(--ink); opacity: 0.68; font-size: 14px; line-height: 1.5; }
.small { font-size: 12.5px; }

/* ---------- sticky-note card ---------- */

.card {
  background: var(--card);
  border: none;
  border-radius: 2px;
  padding: 22px 20px;
  position: relative;
  box-shadow: 0 5px 12px rgba(61, 44, 30, 0.18);
  transform: rotate(-0.6deg);
}
.card:nth-of-type(even) { transform: rotate(0.5deg); }
/* tape strip replaces the old faint rules */
.card::before {
  content: "";
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 72px; height: 19px;
  background: rgba(255, 252, 240, 0.55);
  box-shadow: 0 1px 2px rgba(61, 44, 30, 0.15);
}
.card::after { content: none; }

/* the daily question card gets the yellow note */
.card.prompt { background: var(--note); }
.card.prompt .eyebrow { color: #8a5a2b; }
/* question-type illustration: a 3:1 banner tucked inside the note */
.prompt-art {
  display: block;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 14px;
}

.question { font-family: "Young Serif", serif; font-size: 21px; line-height: 1.4; margin: 10px 0 0; }

/* ---------- buttons + inputs ---------- */

button {
  font-family: "Karla", sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--btn);
  color: var(--card);
  box-shadow: 0 4px 0 var(--btn-shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.3s;
  width: 100%;
}
button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--btn-shadow); }
button.secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--shelf-line);
  box-shadow: none;
}
button.quiet {
  background: none;
  border: none;
  box-shadow: none;
  width: auto;
  padding: 4px 0;
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-size: 14.5px;
  color: var(--ink);
}
button.quiet:active { transform: none; }
button:disabled { opacity: 0.45; cursor: default; }

input, textarea, select {
  font-family: "Karla", sans-serif;
  font-size: 16px;
  width: 100%;
  border: 2px solid var(--shelf-line);
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--card);
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--rose); }
input::placeholder, textarea::placeholder { color: #b3a180; font-style: italic; }
textarea { resize: vertical; min-height: 84px; }
label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }

.field-row { display: flex; gap: 10px; }

.error {
  background: #f0d9cd;
  border: 2px solid var(--rose);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin-top: 12px;
}
.notice {
  background: var(--note);
  border: none;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(61, 44, 30, 0.16);
  padding: 12px 14px;
  font-size: 13px;
  margin-top: 12px;
  word-break: break-all;
}

/* ---------- avatars ----------
   Initial-in-a-magnet placeholder; swaps to a photo when the user uploads one.
   Markup: <span class="avatar c1">S</span> or <span class="avatar"><img src=…></span> */

.avatar {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  color: var(--card);
  background: radial-gradient(circle at 32% 28%, #e78d5c, var(--rose));
  box-shadow: 0 2px 4px rgba(61, 44, 30, 0.25);
  overflow: hidden;
}
/* The 10 glasses, distinct-first (assignment order = class order; members.color
   indexes into this). 1–6 are the most tellable-apart; 7–10 are the
   just-in-case shelf for big households. Mustard is the only ink initial. */
.avatar.c2  { background: radial-gradient(circle at 32% 28%, #a3ad77, var(--sage)); }
.avatar.c3  { background: radial-gradient(circle at 32% 28%, #f2cf72, var(--ochre)); color: var(--ink); }
.avatar.c4  { background: radial-gradient(circle at 32% 28%, #8ca2bc, #5a7291); } /* enamel blue */
.avatar.c5  { background: radial-gradient(circle at 32% 28%, #c66a5d, #9e3b33); } /* brick */
.avatar.c6  { background: radial-gradient(circle at 32% 28%, #74a196, #46766c); } /* appliance teal */
.avatar.c7  { background: radial-gradient(circle at 32% 28%, #96703f, #6a4423); } /* chocolate */
.avatar.c8  { background: radial-gradient(circle at 32% 28%, #a97891, #7c4a66); } /* grape jelly */
.avatar.c9  { background: radial-gradient(circle at 32% 28%, #d8a3aa, #b06a73); } /* bathroom-tile rose */
.avatar.c10 { background: radial-gradient(circle at 32% 28%, #6e8a67, #40593f); } /* pine */
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }

/* ---------- answers thread ---------- */

.answer { margin-top: 16px; display: flex; gap: 10px; }
.answer .avatar { margin-top: 2px; }
.answer .body { flex: 1; min-width: 0; }
/* Names are always the quiet label brown — the avatar is the color signal.
   (Rust stays reserved for dates; see .memory .eyebrow.) */
.answer .who {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 17px;
  color: var(--plum);
  opacity: 1;
  margin-bottom: 3px;
}
/* soft marker for answers added after the day passed */
.late-note {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 14px;
  color: var(--rose);
  opacity: 0.85;
  margin-left: 4px;
}
.answer .bubble {
  background: var(--card);
  border: none;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(61, 44, 30, 0.15);
  transform: rotate(0.4deg);
  padding: 13px 15px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap; /* line breaks in answers survive onto the note */
  overflow-wrap: break-word;
}
/* near-limit countdown under a composer — invisible until ~200 left */
.char-count {
  font-size: 12px;
  font-style: italic;
  color: var(--plum);
  opacity: 0.75;
  text-align: right;
  margin-top: 4px;
}
.answer.mine .bubble { transform: rotate(-0.4deg); }
/* face-down note: you can't read it until you've answered */
.answer .bubble.locked {
  background: var(--note);
  color: #8a5a2b;
  opacity: 1;
  font-style: italic;
  font-size: 13.5px;
}
/* empty seat: hasn't answered yet — faded row, dashed magnet, no note */
.answer.seat { opacity: 0.55; }
.answer.seat .avatar {
  background: transparent;
  color: var(--ink);
  border: 2px dashed var(--shelf-line);
  box-shadow: none;
}
.answer.seat .who { color: var(--ink); }
.ghost { font-size: 13.5px; font-style: italic; opacity: 0.8; }
.answer-actions {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
  opacity: 0.6;
  font-size: 12px;
}
.answer-actions button { font-size: 12.5px; padding: 2px 0; }

/* ---------- chips ---------- */

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  font-size: 11.5px;
  font-weight: 700;
  border: 2px solid var(--shelf-line);
  border-radius: 99px;
  padding: 4px 12px;
  background: var(--card);
}
.chip.done { background: var(--sage); border-color: var(--sage); color: var(--card); }

/* ---------- question rating ("was this one worth asking?") ---------- */

.rate-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 10px 4px 0;
  min-height: 30px;
}
.rate-q { font-size: 14px; font-style: italic; opacity: 0.55; }
button.rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  background: none;
  border: none;
  box-shadow: none;
  padding: 5px 8px;
  border-radius: 8px;
  font-family: "Karla", sans-serif;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.55;
}
button.rate:hover { opacity: 1; background: var(--card); }
button.rate:active { transform: none; }
/* Your current pick stays lit — tap another marble to change your mind. */
button.rate.on {
  opacity: 1;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(61, 44, 30, 0.14);
}

/* ---------- jar ---------- */

.jar-wrap { display: flex; justify-content: center; margin: 22px 0 8px; }
.jar-photo {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 5px 14px rgba(61, 44, 30, 0.2);
}
.marble-row { display: flex; gap: 9px; justify-content: center; align-items: center; margin-top: 14px; }
.marble {
  width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f2cf72, var(--ochre));
}
.marble.orange { background: radial-gradient(circle at 32% 28%, #e78d5c, var(--rose)); }
.marble.green { background: radial-gradient(circle at 32% 28%, #a3ad77, var(--sage)); }
.stats { display: flex; gap: 26px; justify-content: center; margin-top: 16px; }
.stat { text-align: center; }
.stat .n { font-family: "Young Serif", serif; font-size: 22px; }
.stat .l { font-size: 11.5px; font-weight: 700; opacity: 0.6; }

/* ---------- memory book ---------- */

.memory { margin-top: 16px; padding: 16px 18px; }
.memory.click { cursor: pointer; }
.mem-meta { display: flex; align-items: center; margin-top: 12px; }
.mem-meta .avatar { margin-right: -7px; box-shadow: 0 0 0 2px var(--card); }
.mem-count { margin-left: 18px; font-size: 12px; font-weight: 700; opacity: 0.55; }
.memory .eyebrow {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--rose);
}
.mem-q { font-family: "Young Serif", serif; font-size: 16.5px; line-height: 1.4; margin: 6px 0 2px; }
.mem-answer { font-size: 14px; line-height: 1.5; margin-top: 10px; display: flex; gap: 9px; align-items: flex-start; }
.mem-who {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 16px;
  color: var(--plum);
  opacity: 1;
  flex: none;
  margin-right: 7px;
}

/* ---------- login screen ("Come on in", option 5c) ----------
   Markup: .login > .login-inner > .login-scene + form.login-form.
   The scene is /images/login-scene.png, center-cropped to fill. */

.login {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f6efdd;
}

/* Illustration scene: compresses first on short screens / open keyboard */
.login-scene {
  flex: 1 1 auto;
  min-height: 150px;
  max-height: 46dvh;
  position: relative;
  overflow: hidden;
  transition: min-height .25s ease, max-height .25s ease;
}
.login-scene img,
.login-scene svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-form .tagline {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 18px;
  color: var(--plum);
  margin: 0 0 2px;
}

/* When the email field is focused (keyboard up), collapse the scene */
.login:has(input:focus) .login-scene { min-height: 0; max-height: 120px; }

/* Form block: fixed-content, never compresses */
.login-form {
  flex: 0 0 auto;
  padding: 28px 24px calc(32px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.login-form h1 { font-size: 26px; }
.login-form .sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  opacity: .75;
  margin: 6px 0 0;
}
.login-form input[type="email"] {
  width: 100%;
  font: 400 16px/1 "Karla", sans-serif; /* 16px min — prevents iOS zoom-on-focus */
  padding: 15px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  margin-top: 20px;
  outline: none;
}
.login-form input[type="email"]:focus { border-color: var(--btn); }
.login-form .btn-primary {
  width: 100%;
  font: 700 17px "Karla", sans-serif;
  background: var(--btn);
  color: #fdf8ec;
  border: none;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--btn-shadow);
}
.login-form .btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-shadow); }
.login-form .fine {
  font-style: italic;
  font-size: 13px;
  color: var(--ink);
  opacity: .6;
  margin-top: 12px;
  text-align: center;
}

/* Error / success line (code sent, bad email) */
.login-form .status { font-size: 14px; margin-top: 10px; text-align: center; }
.login-form .status.err { color: var(--btn); font-weight: 700; }

/* The stranger's explainer: a few quiet lines for anyone who lands here
   without an account. Sits below the fine print, first thing sacrificed
   to scroll on short screens — never compete with the form. */
.login-about {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.75;
}
.login-about p { margin: 0 0 8px; }
.login-about p:last-child { margin-bottom: 0; }
.login-about a { color: var(--rose); }

/* ≥600px (tablets, landscape, desktop): float as a card on the wall */
@media (min-width: 600px) {
  .login {
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    background: var(--paper);
  }
  .login-inner {
    width: 420px;
    background: #f6efdd;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(61, 44, 30, .3);
    display: flex;
    flex-direction: column;
  }
  .login-scene { flex: none; height: 260px; min-height: 0; max-height: none; }
  .login:has(input:focus) .login-scene { max-height: none; height: 260px; }
}
/* On mobile, .login-inner is just a pass-through */
@media (max-width: 599px) {
  .login-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
}

/* Very short viewports (SE landscape etc.): drop the scene entirely */
@media (max-height: 440px) and (max-width: 599px) {
  .login-scene { display: none; }
}

/* Opening the jar: marbles drop in one by one, oldest first, each entering
   THROUGH the mouth — --dx/--dy (inline per marble in the SVG) offset the
   start to just above the opening, so the fall is straight down the neck,
   then a ricochet off the pile carries it sideways to its slot. Per-marble
   delay is inline too; `backwards` keeps each invisible until its turn. */
.jar-wrap svg g.mb {
  animation: marbleFall 0.9s backwards;
}
@keyframes marbleFall {
  0% {
    transform: translate(var(--dx), var(--dy));
    opacity: 0;
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); /* free fall */
  }
  8% { opacity: 1; }
  44% {
    transform: translate(var(--dx), -12px); /* hits the pile, centered */
    animation-timing-function: cubic-bezier(0.25, 0.6, 0.5, 1);
  }
  62% {
    transform: translate(calc(var(--dx) * 0.35), -20px); /* ricochet out */
    animation-timing-function: cubic-bezier(0.5, 0, 1, 1);
  }
  78% {
    transform: translate(0, 0);
    animation-timing-function: cubic-bezier(0, 0.4, 0.6, 1);
  }
  88% {
    transform: translate(0, -4px);
    animation-timing-function: cubic-bezier(0.5, 0, 1, 1);
  }
  100% { transform: translate(0, 0); }
}

/* ---------- the game shelf ---------- */

.jar-count {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 19px;
  color: var(--plum);
  margin: 10px 0 2px;
}
.game { margin-top: 18px; }
.game.click { cursor: pointer; }
.game-head { display: flex; align-items: flex-start; gap: 12px; }
.game-icon { flex: none; color: var(--ink); margin-top: 1px; display: inline-flex; }
.game-title { flex: 1; min-width: 0; }
.game-title h3 { font-size: 17px; margin: 0; }
.game-meta {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--plum);
  margin-top: 1px;
}
.game-desc { font-size: 14px; line-height: 1.5; margin: 9px 0 0; }
.game .chips { margin-top: 11px; }

/* Locked = the "empty seat" language: faded card, dashed mini jar. */
.game.locked { opacity: 0.58; }
.game.locked .game-icon { opacity: 0.55; }
.game .mini-jar { flex: none; margin: -2px -2px 0 0; }
.locked-note { font-size: 13px; font-style: italic; opacity: 0.8; margin: 10px 0 0; }
.locked-note .hand { font-size: 15.5px; color: var(--rose); margin-right: 3px; }
.shelf-foot { text-align: center; font-style: italic; margin: 26px 12px 4px; }

/* The "jar unlocked something" note on Today. */
.card.game-news { background: var(--note); }

/* ---------- mission cards ---------- */

.mission { margin-top: 16px; }
.mission .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mission h3 { font-size: 17px; margin: 0; }
.mission .ages { font-size: 10.5px; font-weight: 700; opacity: 0.55; white-space: nowrap; }
.mission p { font-size: 14px; line-height: 1.5; margin: 6px 0 4px; }
.mission .tip { font-size: 12.5px; font-style: italic; opacity: 0.65; line-height: 1.5; margin: 0 0 10px; }
.mission button { width: auto; padding: 10px 16px; font-size: 13px; }
.mission button.done-btn { background: var(--sage); color: var(--card); box-shadow: 0 4px 0 #5c6440; }

/* ---------- member rows ---------- */

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: none;
  border-radius: 2px;
  box-shadow: 0 3px 8px rgba(61, 44, 30, 0.14);
  padding: 12px 14px;
  margin-top: 10px;
}
.member-row:nth-of-type(odd) { transform: rotate(-0.3deg); }
.member-row:nth-of-type(even) { transform: rotate(0.3deg); }
.member-row.click { cursor: pointer; }
.member-row .name { font-weight: 700; font-size: 14.5px; flex: 1; }
.member-row .role {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 16px;
  color: var(--plum);
  opacity: 1;
  text-transform: lowercase;
}

/* ---------- bottom nav: the shelf ---------- */

nav.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  background: var(--shelf);
  border-top: 2px solid var(--shelf-line);
  padding: 9px 12px calc(11px + env(safe-area-inset-bottom));
}
nav.tabbar a {
  flex: 1;
  text-align: center;
  padding: 8px 0 9px;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.55;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 10px;
}
nav.tabbar a.active {
  opacity: 1;
  background: var(--card);
  box-shadow: 0 2px 0 var(--shelf-line);
  color: var(--rose);
}
nav.tabbar a svg { display: block; margin: 0 auto 3px; }

/* ---------- "hand the phone": acting-as-a-child ribbon ---------- */

.acting-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--sky); /* sticky-note yellow */
  border-bottom: 2px solid var(--line);
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.acting-bar .acting-name { font-family: Caveat, cursive; font-size: 17px; font-weight: 700; }
.acting-bar button.acting-back {
  font-size: 12.5px;
  text-decoration: underline;
  opacity: 0.8;
  padding: 2px 4px;
}
/* Push page content down so the ribbon never sits on the greeting. */
body:has(.acting-bar) .page { padding-top: 58px; }

/* ---------- repair flow ---------- */

.progress { display: flex; gap: 6px; margin: 14px 0; }
.progress span { flex: 1; height: 6px; border-radius: 99px; background: rgba(90, 70, 50, 0.18); }
.progress span.on { background: var(--ochre); }
.script {
  margin-top: 12px;
  background: rgba(217, 161, 59, 0.22);
  border-left: 4px solid var(--ochre);
  border-radius: 2px 10px 10px 2px;
  padding: 12px 14px;
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
}

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

.center { text-align: center; align-items: center; justify-content: center; display: flex; flex-direction: column; flex: 1; }
/* A centered card is a note, not a page — don't let it stretch to fill. */
.card.center { flex: none; }
.mt-auto { margin-top: auto; }
.mt { margin-top: 14px; }
.mt-s { margin-top: 8px; }
