/* ============================================================
   背背精灵
   外面是夜里的小房间（深紫墨），中间是一块亮着的小屏风（暖纸色），
   屏风是剪出来的（上下的花边），精灵是红纸剪的小人，
   你的影子是屏风上的一片暗影。
   ============================================================ */

:root {
  --night-0: #150E1C;
  --night-1: #1F1629;
  --night-2: #2C2038;

  --paper-1: #FFF6E2;
  --paper-2: #F8DFB6;
  --paper-3: #EDC689;

  --ink:       #2B1208;
  --vermilion: #C22B1B;
  --vermilion-lt: #DE3A26;
  --jade:      #2E9E74;
  --cream:     #FFF8EC;

  --muted:    rgba(255, 248, 236, 0.74);
  --muted-2:  rgba(255, 248, 236, 0.60);

  --sans: system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC",
          "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  background: var(--night-0);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 20px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(120% 70% at 50% -10%, #33243F 0%, transparent 60%),
    radial-gradient(90% 60% at 50% 110%, #2A1C33 0%, transparent 62%),
    var(--night-0);
}

/* ---------- 顶栏 ---------- */

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: flex; align-items: center; gap: 9px; }

.brand-mark {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--vermilion-lt);
  box-shadow: 0 0 0 3px rgba(222, 58, 38, 0.2), 0 0 14px rgba(222, 58, 38, 0.55);
}

.brand-name {
  font-size: 17px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--cream);
}

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm);
  background: rgba(255, 248, 236, 0.07);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgba(255, 248, 236, 0.14); color: var(--cream); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- 舞台 ---------- */

.stage {
  position: relative;
  border-radius: var(--r-lg);
  padding: 16px 14px 22px;
  background: linear-gradient(180deg, var(--paper-1) 0%, var(--paper-2) 62%, var(--paper-3) 100%);
  box-shadow:
    0 0 0 1px rgba(198, 161, 100, 0.5),
    0 20px 46px -16px rgba(0, 0, 0, 0.8),
    0 0 70px -8px rgba(255, 178, 88, 0.3);
  isolation: isolate;
}

/* 剪纸的花边：上下两条半圆剪口，像窗花 */
.cut {
  position: absolute; left: 24px; right: 24px; height: 10px;
  background-repeat: repeat-x;
  background-size: 20px 10px;
  pointer-events: none;
}
.cut-top {
  top: -9px;
  background-image: radial-gradient(circle at 50% 100%, var(--paper-1) 0 9.5px, transparent 10px);
}
.cut-bottom {
  bottom: -9px;
  background-image: radial-gradient(circle at 50% 0%, var(--paper-3) 0 9.5px, transparent 10px);
}

/* 纸的纹路 + 四角压暗 */
.screen {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(118% 92% at 50% 40%, transparent 44%, rgba(120, 72, 20, 0.22) 100%),
    repeating-linear-gradient(114deg, rgba(255,255,255,0.055) 0 2px, transparent 2px 5px);
  mix-blend-mode: multiply;
}

.stage-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 8px;
}

/* 影子那一格：屏风上凹进去的一小方 */
.mirror {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: #F1D9AE;
  background-image: linear-gradient(180deg, #F7E5C2 0%, #EBD0A0 100%);
  box-shadow:
    inset 0 2px 12px rgba(122, 74, 22, 0.28),
    inset 0 0 0 1.5px rgba(163, 116, 52, 0.42);
}

.mirror canvas { display: block; width: 100%; height: 100%; }

/* 空着的时候，先画一个淡淡的轮廓：站到这里来 */
.mirror-ghost {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  width: 56%; aspect-ratio: 90 / 120;
  fill: none; stroke: #A87A38; stroke-width: 3.5;
  stroke-dasharray: 5 6; stroke-linecap: round;
  opacity: 0.5;
}

.mirror-empty {
  position: absolute; left: 0; right: 0; bottom: 30px;
  padding: 0 8px;
  text-align: center;
  font-size: 11.5px; line-height: 1.55; font-weight: 600;
  color: #6E4210;
  letter-spacing: 0.02em;
}

.mirror-tag {
  position: absolute; left: 8px; bottom: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: #6E4210;
}
.mirror-tag-clock { left: auto; right: 8px; }

/* 不用摄像头时，镜子里换成一面钟 */
.clock-face {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding-bottom: 22px;
}
.dial-wrap {
  position: relative;
  width: 60%; max-width: 138px;
  display: grid; place-items: center;
}
.dial { width: 100%; height: auto; display: block; }
.dial-num {
  position: absolute;
  font-size: clamp(18px, 5.6vw, 25px); font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: #4A2A08;
}
.dial-state {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  color: #6E4210;
}

body[data-mode="clock"] .clock-face { display: flex; }
body[data-mode="clock"] .mirror-ghost,
body[data-mode="clock"] .mirror-empty,
body[data-mode="clock"] .mirror canvas,
body[data-mode="clock"] .mirror-tag:not(.mirror-tag-clock) { display: none; }
body:not([data-mode="clock"]) .mirror-tag-clock { display: none; }

/* 精灵 */
.spirit-wrap { position: relative; display: grid; place-items: center; min-width: 0; }

.spirit {
  width: 100%;
  max-width: 215px;
  height: auto;
  overflow: visible;
  animation: float 4.4s ease-in-out infinite;
  transform-origin: 50% 64%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(1.2deg); }
}

.aura { opacity: 0.7; transition: opacity 0.35s; }
.spirit-art { display: block; }
.egg-art { display: none; }
.zzz-group { display: none; }
.face, .face-happy, .face-alarm, .face-sleep { display: none; }

.eye, .glint { animation: blink 4.8s infinite; transform-origin: center; }
@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94%           { transform: scaleY(0.08); }
}

/* 各种心情 */
.spirit-wrap[data-mood="calm"]  .face        { display: block; }
.spirit-wrap[data-mood="lost"]  .face        { display: block; }
.spirit-wrap[data-mood="cheer"] .face-happy  { display: block; }
.spirit-wrap[data-mood="alert"] .face-alarm  { display: block; }
.spirit-wrap[data-mood="sleep"] .face-sleep  { display: block; }
.spirit-wrap[data-mood="sleep"] .zzz-group   { display: block; }

.spirit-wrap[data-mood="egg"] .spirit-art,
.spirit-wrap[data-mood="egg"] .aura { display: none; }
.spirit-wrap[data-mood="egg"] .egg-art { display: block; }
.spirit-wrap[data-mood="egg"] .spirit { animation: wobble 2.7s ease-in-out infinite; max-width: 168px; }
@keyframes wobble {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}

/* 驼背：跳起来喊 */
.spirit-wrap[data-mood="alert"] .spirit {
  animation: jump 0.5s cubic-bezier(.3,1.5,.5,1) infinite;
  transform-origin: 50% 80%;
}
@keyframes jump {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  38%      { transform: translateY(-17px) scale(1.08, 0.94); }
  70%      { transform: translateY(0) scale(0.94, 1.06); }
}
.spirit-wrap[data-mood="alert"] .aura { opacity: 1; }
.spirit-wrap[data-mood="alert"] .arm-l { animation: armL 0.5s ease-in-out infinite; transform-origin: 28px 95px; }
.spirit-wrap[data-mood="alert"] .arm-r { animation: armR 0.5s ease-in-out infinite; transform-origin: 112px 95px; }
@keyframes armL { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-55deg); } }
@keyframes armR { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(55deg); } }

/* 坐直了：高兴地蹦两下 */
.spirit-wrap[data-mood="cheer"] .spirit { animation: hop 0.6s ease-in-out 2; }
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  40%      { transform: translateY(-14px) scale(1.05, 0.95); }
}

.spirit-wrap[data-mood="sleep"] .spirit { animation: float 6.5s ease-in-out infinite; }

.spirit-wrap[data-mood="lost"] .spirit { animation: float 3.2s ease-in-out infinite; opacity: 0.7; }

.zzz { opacity: 0; animation: zzz 3.4s ease-in-out infinite; }
.z2 { animation-delay: 1.2s; }
@keyframes zzz {
  0%   { opacity: 0; transform: translateY(5px); }
  32%  { opacity: 0.8; }
  70%  { opacity: 0; transform: translateY(-11px); }
  100% { opacity: 0; }
}

/* 气泡 */
.bubble {
  position: absolute;
  top: -4px; left: 50%;
  transform: translate(-50%, -4px) scale(0.9);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFE9B8;
  font-size: 14px; font-weight: 800; letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 3;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 10px; height: 10px; margin-left: -5px;
  background: var(--ink); transform: rotate(45deg); border-radius: 2px;
}
.bubble.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 腰杆那条小尺 */
.posture-bar {
  position: absolute; left: 16px; right: 16px; bottom: 10px;
  height: 5px; border-radius: 999px;
  background: rgba(120, 78, 30, 0.2);
  overflow: hidden;
}
.posture-bar i {
  display: block; height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #C22B1B 0%, #D99320 55%, #1F8A62 100%);
  transition: width 0.3s ease-out;
}

/* ---------- 精灵说的话 ---------- */

.verdict { text-align: center; padding: 2px 4px; }

.say {
  font-size: clamp(26px, 7.8vw, 37px);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.24;
  color: var(--cream);
  transition: color 0.25s;
}
.say[data-tone="alert"] { color: #FF907C; }
.say[data-tone="good"]  { color: #7BD8AE; }

.hint {
  margin: 9px auto 0;
  font-size: 14px; line-height: 1.7;
  color: var(--muted);
  max-width: 380px;
}

/* ---------- 三个数字 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 15px 4px;
  border-top: 1px solid rgba(255, 248, 236, 0.1);
  border-bottom: 1px solid rgba(255, 248, 236, 0.1);
}

.stat { text-align: center; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.stat-num {
  font-size: clamp(15px, 4.6vw, 20px);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.stat-num-sm { font-size: clamp(14px, 4.1vw, 17px); letter-spacing: 0.04em; }

.stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted-2); }

/* ---------- 按钮 ---------- */

.controls { display: flex; flex-direction: column; gap: 9px; }

.btn {
  font-family: inherit;
  font-size: 16px; font-weight: 800; letter-spacing: 0.05em;
  border: 0; border-radius: var(--r-md);
  padding: 15px 18px;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.985); }

.btn-primary {
  background: var(--vermilion);
  color: #FFFFFF;
  box-shadow: 0 9px 24px -11px rgba(194, 43, 27, 0.95);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary[disabled] { opacity: 0.5; cursor: default; filter: none; transform: none; }

.btn-ghost { background: rgba(255, 248, 236, 0.08); color: var(--muted); }
.btn-ghost:hover { background: rgba(255, 248, 236, 0.15); color: var(--cream); }

/* 问题：「现在坐直了吗？」 */
.check-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.check-row .btn { padding: 14px 8px; font-size: 15px; letter-spacing: 0.03em; }

/* 角落里那条不抢眼的出路 */
.btn-quiet {
  background: none;
  color: var(--muted-2);
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 248, 236, 0.32);
  padding: 8px 10px;
}
.btn-quiet:hover { color: var(--cream); }
.btn-quiet[disabled] { opacity: 0.4; cursor: default; }

/* 摄像头出问题的时候，这条"另一条路"就是答案，得看着像能按 */
body[data-error] .btn-quiet {
  background: rgba(255, 248, 236, 0.1);
  color: var(--cream);
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 248, 236, 0.35);
  font-size: 15px;
  padding: 14px 18px;
  border-radius: var(--r-md);
}
body[data-error] .btn-quiet:hover { background: rgba(255, 248, 236, 0.18); }

.foot-note {
  font-size: 12.5px; line-height: 1.75;
  color: var(--muted-2);
  text-align: center;
  padding: 0 6px;
}

/* ---------- 设置面板 ---------- */

.sheet {
  border: 0; padding: 0;
  width: min(440px, calc(100vw - 28px));
  max-height: 88vh;
  border-radius: 20px;
  background: var(--night-1);
  color: var(--cream);
  box-shadow: 0 26px 70px -20px rgba(0, 0, 0, 0.9);
  overflow: auto;
}
.sheet::backdrop { background: rgba(9, 5, 14, 0.7); }

.sheet-inner { padding: 20px 20px 26px; display: flex; flex-direction: column; gap: 18px; }

.sheet-top { display: flex; align-items: center; justify-content: space-between; }
.sheet-top h2 { font-size: 19px; font-weight: 800; letter-spacing: 0.1em; }

.btn-close {
  border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 17px; line-height: 1;
  width: 36px; height: 36px; border-radius: 9px;
}
.btn-close:hover { background: rgba(255, 248, 236, 0.09); color: var(--cream); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }
.field-hint { font-size: 12.5px; line-height: 1.65; color: var(--muted-2); }

.segmented {
  display: flex; gap: 4px;
  background: rgba(255, 248, 236, 0.07);
  border-radius: 12px; padding: 4px;
}
.segmented button {
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--muted);
  background: none; border: 0; border-radius: 9px;
  padding: 9px 4px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.segmented button.on { background: var(--vermilion); color: #FFFFFF; }
.segmented-4 button { font-size: 12px; padding: 9px 2px; }

.switch {
  width: 54px; height: 31px; flex: none;
  border: 0; border-radius: 999px; padding: 3px;
  background: rgba(255, 248, 236, 0.16);
  cursor: pointer; align-self: flex-start;
  transition: background 0.18s;
}
.switch i {
  display: block; width: 25px; height: 25px; border-radius: 50%;
  background: #EDE3D6;
  transition: transform 0.18s ease;
}
.switch[aria-checked="true"] { background: var(--jade); }
.switch[aria-checked="true"] i { transform: translateX(23px); }

/* 提醒的声音：一列声音，一个一个试听 */
.voice-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.voice-list:empty { display: none; }
.voice-list li {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 248, 236, 0.06);
  border-radius: 11px;
  padding: 8px 8px 8px 12px;
}
.voice-name {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.05em;
  color: var(--cream); flex: none;
  background: rgba(255, 248, 236, 0.12);
  border-radius: 7px; padding: 3px 8px;
}
/* 那一句话要看得见一整句，最多两行 */
.voice-kind {
  flex: 1; min-width: 0;
  font-size: 12px; line-height: 1.5; color: var(--muted-2);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.voice-mini {
  flex: none;
  font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--muted);
  background: none; border: 0; border-radius: 8px;
  padding: 7px 10px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.voice-mini:hover { background: rgba(255, 248, 236, 0.12); color: var(--cream); }
.voice-mini[data-play] { color: #FFD79B; }
.voice-empty { font-size: 12.5px; color: var(--muted-2); }
/* 正在录的那一条：一个会呼吸的红点 */
.voice-list li.voice-live {
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  color: #FFB09C;
  background: rgba(222, 58, 38, 0.14);
  box-shadow: inset 0 0 0 1px rgba(222, 58, 38, 0.45);
}
.voice-live::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--vermilion-lt); flex: none;
  animation: recPulse 1.15s ease-in-out infinite;
}

.voice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-btn { padding: 11px 15px; font-size: 14px; border-radius: 12px; letter-spacing: 0.04em; }
.voice-btn[disabled] { opacity: 0.5; cursor: default; }
.voice-btn.rec-on {
  background: var(--vermilion); color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(222, 58, 38, 0.22);
  animation: recPulse 1.15s ease-in-out infinite;
}
@keyframes recPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.66; } }
.voice-err { color: #FFB09C; }

.field-note { border-top: 1px solid rgba(255, 248, 236, 0.1); padding-top: 16px; }
.note-body { font-size: 12.5px; line-height: 1.8; color: var(--muted-2); }

/* 设置最底下那一行"你现在用的是哪个账户" —— 只在登录着的时候出现 */
.account-line {
  margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted-2);
  border-top: 1px solid rgba(255, 248, 236, 0.1); padding-top: 12px;
}
.account-who { display: block; color: var(--muted); overflow-wrap: anywhere; }
.account-hint { display: block; margin-top: 2px; }

/* ---------- 键盘看得见 ---------- */

:where(button, [role="radio"], .switch):focus-visible {
  outline: 2.5px solid #FFC46B;
  outline-offset: 2px;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 400px) {
  .page { padding: 16px 12px 24px; gap: 15px; }
  .stage { padding: 13px 11px 20px; border-radius: 22px; }
  .cut { left: 20px; right: 20px; }
  .spirit { max-width: 170px; }
  .spirit-wrap[data-mood="egg"] .spirit { max-width: 140px; }
  .say { font-size: 25px; }
  .hint { font-size: 13px; }
  .bubble { font-size: 13px; padding: 6px 11px; }
}

/* ---------- 小窗口 ----------
   手机分屏（上面放视频、下面放精灵）的时候，这一页只分到半屏高，
   或者屏幕本来就小小的。这时候把记录和页脚收起来，
   只留下精灵、它说的话和那几个按钮 —— 一屏看完，不用翻。 */

@media (max-height: 560px), (max-width: 340px) {
  .page { padding: 10px 12px 12px; gap: 8px; }
  .stage { padding: 10px 10px 14px; border-radius: 18px; }
  .stage-body { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); gap: 6px; }
  .mirror { aspect-ratio: 1 / 1; }
  .mirror-ghost { width: 44%; top: 45%; }
  .mirror-empty { bottom: 20px; font-size: 10px; }
  .mirror-tag { font-size: 10px; }
  .clock-face { padding-bottom: 18px; gap: 8px; }
  .dial-wrap { max-width: 96px; }
  .dial-num { font-size: 19px; }
  .spirit { max-width: 126px; }
  .bubble { font-size: 12.5px; padding: 5px 10px; }
  .say { font-size: 21px; }
  .hint { font-size: 12.5px; margin-top: 5px; }
  .stats { display: none; }
  .foot-note { display: none; }
  .btn { padding: 11px 16px; font-size: 15px; }
  .check-row .btn { padding: 11px 8px; font-size: 14px; }
  .btn-quiet { padding: 6px 10px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 18px; height: 18px; }
  .controls { gap: 7px; }
}

/* ---------- 真的只剩一小块 ----------
   手机的小窗 / 悬浮窗只有巴掌大一块。
   这里把纸花边、影子旁边的小招牌、腰杆那条尺都收掉，
   只留下：精灵、它说的话、和那一两个按钮。
   高和宽得同时小才算 —— 手机横过来也很矮，可是它宽得多，不缺地方。 */

@media (max-height: 430px) and (max-width: 420px), (max-width: 300px) {
  .page { padding: 8px 10px 10px; gap: 6px; }
  .brand-name { display: none; }
  .icon-btn { width: 32px; height: 32px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .stage { padding: 8px 8px 10px; border-radius: 15px; }
  .cut { display: none; }
  .mirror-tag { display: none; }
  .posture-bar { display: none; }
  .spirit { max-width: 104px; }
  .bubble { font-size: 12px; padding: 4px 9px; }
  .say { font-size: 19px; }
  .hint { font-size: 12px; line-height: 1.5; margin-top: 4px; }
  .controls { gap: 6px; }
  .btn { padding: 10px 14px; font-size: 14px; }
  .check-row { gap: 6px; }
  .check-row .btn { padding: 10px 6px; font-size: 13.5px; }
  .btn-quiet { padding: 5px 8px; font-size: 13px; }
}

@media (min-width: 620px) { .page { padding-top: 36px; } }

/* ---------- 少动一点 ---------- */

@media (prefers-reduced-motion: reduce) {
  .spirit, .arm, .aura, .zzz, .eye, .glint, .voice-btn.rec-on, .voice-live::before { animation: none !important; }
  .spirit-wrap[data-mood="alert"] .spirit { transform: scale(1.06); }
  .spirit-wrap[data-mood="egg"] .spirit { transform: rotate(-3deg); }
  * { transition-duration: 0.01ms !important; }
}
