/* Standalone lab page. Colors follow the main site; this file is not styles.css. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bubble: #f4f4f4;
  --border: #e5e5e5;
  --text: #0d0d0d;
  --muted: #5d5d5d;
  --faint: #8f8f8f;
  --btn: #0d0d0d;
  --btn-text: #ffffff;
  --btn-disabled: #d7d7d7;
  --danger: #c4320a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #212121;
    --bubble: #303030;
    --border: #383838;
    --text: #ececec;
    --muted: #b4b4b4;
    --faint: #8e8e8e;
    --btn: #ffffff;
    --btn-text: #0d0d0d;
    --btn-disabled: #4a4a4a;
    --danger: #f97066;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { overflow: hidden; overscroll-behavior: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
#stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: var(--bg);
  touch-action: none;
}
#fallback {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(68vw, 360px);
  height: auto;
  transform: translate(-50%, -54%);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
#fallback[hidden] { display: none; }
#live2d { position: absolute; left: 0; top: 0; z-index: 1; display: block; touch-action: none; }
.top {
  position: fixed;
  z-index: 5;
  top: calc(10px + var(--safe-top));
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.who { min-width: 0; }
.who h1 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.who p { margin: 0; font-size: 12px; color: var(--faint); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.classic-btn {
  pointer-events: auto;
  margin-left: auto;
  flex: none;
  max-width: none;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.classic-btn:hover, .classic-btn:active { color: var(--text); }
.lang-toggle {
  pointer-events: auto;
  margin-left: 8px;
  display: flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 0 6px;
  height: 26px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .top { gap: 4px; left: 6px; right: 6px; }
  .who h1 { font-size: 15px; }
  .who p { font-size: 11px; }
  .classic-btn { max-width: none; font-size: 11px; padding: 6px 7px; }
  .lang-toggle { margin-left: 0; padding: 1px; }
  .lang-toggle button { padding: 0 4px; font-size: 11px; height: 28px; min-width: 28px; }
}
.lang-toggle button[aria-pressed="true"] { background: var(--bubble); color: var(--text); }
/* Changelog button stays in this top row, in the corner with the language
   switch, so it never sits on 67's face. The row does not wrap. */
html.page-3d .top { flex-wrap: nowrap; }
html.page-3d .ann-btn {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  flex: none;
  align-self: center;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}
@media (max-width: 520px) {
  html.page-3d .top { gap: 4px; left: 6px; right: 6px; }
  html.page-3d .classic-btn { max-width: none; }
}
.dock {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 0 12px 0;
  /* Only the bar itself is solid, so her arms can rest on its top edge
     while her waist and legs stay hidden behind it. */
  background: transparent;
  pointer-events: none;
}
.dock .note, .dock .log, .dock .bar { pointer-events: auto; }
.bar {
  position: relative;
  background: var(--bg);
  margin: 14px -12px 0;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.05);
}
#composer, .credit, .model-slot { position: relative; z-index: 3; }
.model-slot { margin: 0 2px 8px; max-width: 100%; }
.picker-row { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; position: relative; z-index: 3; }
html.page-3d .len-row {
  width: auto; max-width: 100%; margin: 0 0 6px; position: relative; z-index: 3;
}
html.page-3d .len-row .lp-open { max-width: min(220px, 68vw); }
/* The length sheet is short. Let it use the full overlay so every option stays on screen.
   Model and voice sheets still start under her chin. */
html.page-3d .mp-sheet.lp-sheet { top: 0; }
html.page-3d .lp-sheet .mp-panel { max-height: min(92dvh, 720px); }
html.page-3d .lp-sheet .mp-card { max-height: none; }
.picker-row .model-slot { margin: 0; max-width: 46vw; }
.voice-tools { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.auto-read, .mic-btn, .speak-btn {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.auto-read { width: 28px; height: 28px; border: 1px solid var(--border); }
.auto-read[aria-pressed="true"], .speak-btn[aria-pressed="true"] { color: var(--text); background: var(--bubble); }
.mic-btn[data-state="listening"] { background: #e11d48; color: #fff; }
.voice-status { margin: 0 4px 6px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.voice-status[data-state="listening"] { color: #c4320a; font-weight: 700; }
.voice-status[data-state="error"],
.voice-status[data-state="unsupported"],
.voice-status[data-state="denied"],
.voice-status[data-state="login"],
.voice-status[data-state="limit"] { color: var(--danger); }
.bot-line { display: flex; align-items: flex-start; gap: 4px; }
.bot-line .bubble { flex: 1; min-width: 0; }
html[data-bounce="1"] #fallback { animation: speak-bounce .48s ease-in-out infinite; }
@keyframes speak-bounce { 50% { transform: translate(-50%, -60%); } }
@media (prefers-reduced-motion: reduce) {
  html[data-bounce="1"] #fallback { animation: none; }
  .mic-btn[data-state="listening"] { animation: none; }
}
html.page-3d { --face-clear: 46dvh; }
/* The sheet starts under her chin. The button stays in the bar, below the face. */
html.page-3d .mp-sheet { top: var(--face-clear); height: auto; }
html.page-3d .mp-panel { max-height: 100%; }
html.page-3d .vp-sheet .mp-panel { height: 100%; max-height: 100%; }
html.page-3d .mp-card { max-height: calc(100dvh - var(--face-clear) - 148px); }
html.page-3d .vp-sheet .mp-card { min-height: 0; max-height: none; }
html.page-3d .mp-open { max-width: min(240px, 68vw); }
.note {
  margin: 0 6px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.log {
  max-height: min(22vh, 148px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 4px 8px;
  -webkit-overflow-scrolling: touch;
}
.log.has-thread { max-height: min(28vh, 240px); }
/* Owner replies stay in the log and scroll. The text itself is not cut. */
.log.owner-scroll { max-height: min(46vh, 420px); }
.bubble .thread-img {
  display: block;
  max-width: min(100%, 220px);
  max-height: 96px;
  margin-top: 6px;
  border-radius: 10px;
  object-fit: cover;
}
.bubble {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.user {
  align-self: flex-end;
  max-width: 86%;
  background: var(--bubble);
  border-radius: 16px;
  padding: 7px 12px;
}
.bubble.bot { align-self: stretch; padding: 0 4px; }
.bubble.wait { color: var(--faint); }
.bubble.err { color: var(--danger); }
.bot-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 100%; }
.bot-stack .bubble { flex: 0 1 auto; width: auto; max-width: 100%; }
.think-row { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; }
.think-live, .think-line {
  margin: 0; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; line-height: 1.35; color: var(--faint);
  user-select: none; -webkit-user-select: none;
}
.think-live { display: inline-block; flex: 0 1 auto; }
.think-line { display: block; }
#composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 6px 6px 6px 6px;
  box-shadow: var(--shadow);
}
.menu-btn {
  position: relative;
  z-index: 1;
  flex: none;
  width: auto;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 152, 56, 0.16);
  color: #c2560c;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
}
.menu-btn.is-tossed,
.menu-btn.is-returning {
  z-index: 8;
  pointer-events: none;
}
/* Grab, then a spinning arc off the bar. Transform and opacity only. */
.menu-btn.is-tossed {
  animation: menu-toss 560ms linear both;
}
/* Drops back into the slot and bounces once. */
.menu-btn.is-returning {
  animation: menu-drop 580ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.menu-btn.is-away {
  opacity: 0;
  pointer-events: none;
}
@keyframes menu-toss {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
  14% { transform: translate3d(10px, -18px, 0) rotate(-28deg) scale(1.12); opacity: 1; }
  36% { transform: translate3d(78px, -140px, 0) rotate(180deg) scale(0.92); opacity: 1; }
  58% { transform: translate3d(156px, -300px, 0) rotate(420deg) scale(0.64); opacity: 0.95; }
  100% { transform: translate3d(240px, -36px, 0) rotate(680deg) scale(0.28); opacity: 0; }
}
@keyframes menu-drop {
  0% { transform: translate3d(28px, -200px, 0) rotate(-260deg) scale(0.5); opacity: 0; }
  30% { transform: translate3d(6px, -64px, 0) rotate(-30deg) scale(0.92); opacity: 1; }
  48% { transform: translate3d(0, 16px, 0) rotate(12deg) scale(1.14); opacity: 1; }
  66% { transform: translate3d(0, -12px, 0) rotate(-7deg) scale(0.95); opacity: 1; }
  82% { transform: translate3d(0, 5px, 0) rotate(2deg) scale(1.04); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
}
.fan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.fan-back {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.fan.is-open { pointer-events: none; }
.fan.is-open .fan-back { pointer-events: auto; }
.fan-card {
  --x: 0px;
  --y: 0px;
  --rot: 0deg;
  position: absolute;
  left: 50%;
  top: var(--origin-y, 70%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 176px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  --tile: #f4f4f5;
  --tile2: #e7e7ea;
  --ink: #1f2937;
  --s: 1;
  background: linear-gradient(165deg, var(--tile), var(--tile2));
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 26%, transparent);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(calc(-50% + var(--x) * 0), calc(-30% + var(--y) * 0), 0) rotate(0deg) scale(calc(var(--s) * 0.22));
  transform-origin: center center;
  transition: transform 520ms cubic-bezier(0.18, 1.35, 0.36, 1), opacity 220ms ease;
  transition-delay: calc((10 - var(--i, 0)) * 16ms);
  will-change: transform, opacity;
  touch-action: manipulation;
}
.fan-thumb {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  display: block;
  background: color-mix(in srgb, var(--ink) 16%, #fff);
}
.fan-card.is-news .fan-thumb { width: 34px; height: 34px; border-radius: 10px; }
@media (min-width: 980px) {
  .fan-thumb { width: 32px; height: 32px; }
  .fan-card.is-news .fan-thumb { width: 36px; height: 36px; }
}
.fan-games { --tile: #eef0ff; --tile2: #d9defe; --ink: #343d9e; }
.fan-vip { --tile: #fff6d4; --tile2: #ffe08a; --ink: #8a5300; }
.fan-news { --tile: #ffe7a8; --tile2: #ff9a3c; --ink: #6a2b06; --glow: rgba(255, 140, 32, 0.72); }
.fan-challenge { --tile: #ece6ff; --tile2: #ddd2ff; --ink: #5b35c9; }
.fan-plane { --tile: #e3f1fc; --tile2: #c5e4fa; --ink: #1d5f96; }
.fan-editor { --tile: #fde7ee; --tile2: #f8c9d8; --ink: #8f2449; }
.fan-jump { --tile: #e6f4ea; --tile2: #c8ecd4; --ink: #146334; }
.fan-snake { --tile: #fff1dc; --tile2: #ffd7a3; --ink: #7c4a00; }
.fan-backrooms { --tile: #fbf3c8; --tile2: #f3e28a; --ink: #6f5c00; }
.fan-wall { --tile: #e7f8ee; --tile2: #c6efd4; --ink: #14532d; }
.fan-about { --tile: #eef2f7; --tile2: #d7e0ea; --ink: #334155; }
.fan.is-open .fan-card {
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(calc(-50% + var(--x)), calc(-30% + var(--y)), 0) rotate(var(--rot)) scale(var(--s));
  transition-delay: calc(var(--i, 0) * 28ms);
}
.fan-card.is-news {
  z-index: 2;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 12px;
  max-width: 240px;
  letter-spacing: -0.01em;
}
.fan-badge {
  flex: none;
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
}
/* Glow is a pseudo-element. Only its opacity and transform animate. */
.fan-card.is-news::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(closest-side, var(--glow, rgba(255, 140, 32, 0.7)), transparent 72%);
  opacity: 0.4;
  transform: scale(0.94);
  pointer-events: none;
  animation: news-glow 2.8s ease-in-out infinite;
}
@keyframes news-glow {
  0%, 100% { opacity: 0.38; transform: scale(0.92); }
  50% { opacity: 0.95; transform: scale(1.08); }
}
@media (max-width: 759px) {
  .fan-card { font-size: 12px; padding: 5px 8px 5px 5px; gap: 5px; max-width: 186px; }
  .fan-card.is-news { font-size: 13px; padding: 5px 10px 5px 5px; max-width: 230px; }
}
@media (prefers-color-scheme: dark) {
  .fan-games { --tile: #2c315c; --tile2: #22264a; --ink: #e6e9ff; }
  .fan-vip { --tile: #4a3814; --tile2: #3a2b0e; --ink: #ffe7ad; }
  .fan-news { --tile: #b45309; --tile2: #9a3412; --ink: #fff7ed; --glow: rgba(255, 170, 70, 0.55); }
  .fan-challenge { --tile: #3a2d66; --tile2: #2c224f; --ink: #ece4ff; }
  .fan-plane { --tile: #1a3d5c; --tile2: #142f48; --ink: #e3f2ff; }
  .fan-editor { --tile: #5c2438; --tile2: #451a2a; --ink: #ffe4ee; }
  .fan-jump { --tile: #1a4330; --tile2: #133526; --ink: #d8ffe8; }
  .fan-snake { --tile: #4a3412; --tile2: #3a280e; --ink: #ffe7c2; }
  .fan-backrooms { --tile: #4a4214; --tile2: #3a340e; --ink: #fff3b0; }
  .fan-wall { --tile: #143526; --tile2: #0f291c; --ink: #d8ffe8; }
  .fan-about { --tile: #2c3544; --tile2: #222a36; --ink: #e8eef6; }
  .fan-badge { background: #ffedd5; color: #9a3412; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card { transition: none; }
  .fan-card.is-news::before { animation: none; opacity: 0.6; transform: none; }
  .menu-btn.is-tossed { animation: none; opacity: 0; }
  .menu-btn.is-returning { animation: none; opacity: 1; transform: none; }
}
#input {
  flex: 1;
  min-width: 0;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  max-height: 96px;
  padding: 7px 0;
}
.send {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.send:disabled { background: var(--btn-disabled); cursor: default; }
.credit {
  margin: 6px 0 2px;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  color: var(--faint);
}
.credit.visits { margin-top: 0; }
#fps {
  position: fixed;
  z-index: 5;
  top: calc(50px + var(--safe-top));
  left: 14px;
  margin: 0;
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--text);
  font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  pointer-events: none;
}
#fps[hidden] { display: none; }

/* 67's idle speech bubble */
.say {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  max-width: min(260px, 72vw);
  padding: 9px 13px;
  border-radius: 16px;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  will-change: transform, opacity;
}
.say::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}
.say.on { opacity: 1; pointer-events: auto; cursor: pointer; }
html[data-menu-phase]:not([data-menu-phase="closed"]) .say:not(.force) { opacity: 0; pointer-events: none; }
@media (prefers-color-scheme: dark) {
  .say { background: #2a2a30; color: #f2f2f2; }
}

/* Menu open: a mouse cursor clicks Daily News twice */
.poke-hand {
  position: absolute;
  z-index: 3;
  width: 26px;
  height: 26px;
  margin: -3px 0 0 -3px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}
.poke-hand svg { display: block; }
.poke-hand::after {
  content: "";
  position: absolute;
  left: -9px;
  top: -9px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  opacity: 0;
}
.poke-hand.go { animation: poke 1500ms ease-out both; }
.poke-hand.go::after { animation: poke-ring 1500ms ease-out both; }
@keyframes poke {
  0% { opacity: 0; transform: translate3d(70px, 60px, 0); }
  25% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  32% { transform: translate3d(0, 0, 0) scale(0.82); }
  40% { transform: translate3d(0, 0, 0) scale(1); }
  48% { transform: translate3d(0, 0, 0) scale(0.82); }
  56% { transform: translate3d(0, 0, 0) scale(1); }
  82% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(10px, 8px, 0); }
}
@keyframes poke-ring {
  0%, 30% { opacity: 0; transform: scale(0.3); }
  34% { opacity: 1; transform: scale(0.5); }
  44% { opacity: 0; transform: scale(1.4); }
  50% { opacity: 1; transform: scale(0.5); }
  60%, 100% { opacity: 0; transform: scale(1.4); }
}
.fan-card.poked { animation: poked 1500ms ease-out both; }
@keyframes poked {
  0%, 22% { scale: 1; }
  32% { scale: 0.95; }
  40% { scale: 1.06; }
  48% { scale: 0.95; }
  58%, 100% { scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .poke-hand.go, .poke-hand.go::after, .fan-card.poked { animation: none; }
}

/* Affection meter and touch effects */
.who .affection {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #e0457b;
  white-space: nowrap;
}
.affection.bump { animation: aff-bump 420ms ease-out; }
@keyframes aff-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.touch-fx {
  position: absolute;
  z-index: 4;
  margin: -14px 0 0 -10px;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  animation: touch-fx 1000ms ease-out both;
}
.touch-fx.fx-heart { color: #ff5c93; }
@keyframes touch-fx {
  0% { opacity: 0; transform: translate3d(0, 6px, 0) scale(0.5); }
  20% { opacity: 1; transform: translate3d(0, -6px, 0) scale(1.15); }
  100% { opacity: 0; transform: translate3d(0, -46px, 0) scale(0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .touch-fx, .affection.bump { animation: none; }
  .touch-fx { opacity: 0; }
}

.say.levelup {
  background: linear-gradient(135deg, #ff7aa8, #ff9a4d);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 22px rgba(255, 92, 147, 0.4);
}
