/* ============================================================
 * 反诈实验室 · 五案沉浸版
 * ui.css
 * 配合 app.js v2.7.0 使用
 * ============================================================ */

:root {
  color-scheme: dark;
  --page: #07080c;
  --page2: #0d1017;
  --panel: #12161f;
  --panel2: #181d28;
  --ink: #f4f6fa;
  --muted: #98a1b3;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #c9a26a;
  --accent2: #8b6a3f;
  --danger: #d64545;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(201, 162, 106, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(76, 141, 255, 0.09), transparent 55%),
    linear-gradient(180deg, var(--page2), var(--page) 45%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: #9ecbff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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;
}

.noscript {
  max-width: 680px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--muted);
  line-height: 1.7;
}

.app {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 64px;
}

/* ============================================================
 * 首页
 * ============================================================ */

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.brand-mark {
  width: 36px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px 9px 14px 14px;
  color: #14100a;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(160deg, #e6c98e, var(--accent));
  box-shadow: 0 6px 20px rgba(201, 162, 106, 0.25);
}

.brand-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.top-hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.top-hotline strong {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.hero {
  padding: clamp(42px, 8vw, 86px) 0 34px;
  max-width: 820px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 6.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  background: linear-gradient(100deg, #fff 5%, #f0e2c8 40%, var(--accent) 75%, #9d7d4c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.8;
  max-width: 640px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.025);
}

.chip b {
  color: var(--ink);
  font-weight: 600;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 28px;
  padding: 13px 15px;
  border: 1px solid rgba(201, 162, 106, 0.24);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(201, 162, 106, 0.06);
  color: #d8c7a8;
  font-size: 12.5px;
  line-height: 1.65;
}

.notice-mark {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 106, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 106, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.case-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 136px;
  padding: 16px;
  background:
    radial-gradient(120px 100px at 80% 20%, rgba(255, 255, 255, 0.22), transparent 65%),
    linear-gradient(135deg, var(--c1, #25f4ee), var(--c2, #fe2c55));
}

.case-no {
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.case-emoji {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
}

.case-type {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}

.case-title {
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.case-hook {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  min-height: 3.3em;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.case-tag {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
}

.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.case-enter {
  color: var(--accent);
  font-weight: 700;
}

.home-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.home-foot strong {
  color: #d8c7a8;
  font-weight: 600;
}

/* ============================================================
 * 手机启动器：锁屏通知 / 桌面图标
 * ============================================================ */

.launcher-stage {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin: 30px 0 54px;
}

.launcher-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.launcher-phone {
  --bg: #090d13;
  --bg2: #151d29;
  --muted: #98a1b3;
  --accent: #c9a26a;
  --accent2: #8b6a3f;
}

.launcher-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.launcher-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.launcher-view[hidden] {
  display: none;
}

.launcher-view:focus,
.launcher-view:focus-visible {
  outline: none;
}

.launcher-lock {
  background:
    radial-gradient(80% 45% at 80% 0%, rgba(201, 162, 106, 0.14), transparent 65%),
    radial-gradient(60% 40% at 8% 78%, rgba(76, 141, 255, 0.09), transparent 70%),
    linear-gradient(180deg, #0e141d, #080b10 70%);
}

.launcher-lock::before {
  content: "盾";
  position: absolute;
  right: -18px;
  bottom: -54px;
  color: rgba(255, 255, 255, 0.025);
  font-size: 228px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.launcher-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 16px 4px;
  scrollbar-width: none;
}

.launcher-scroll::-webkit-scrollbar {
  width: 0;
}

.lock-time {
  color: #f7f9ff;
  font-size: 58px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.lock-date {
  margin-top: 4px;
  color: rgba(232, 238, 250, 0.72);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

.lock-hint {
  margin: 16px 0 10px;
  color: rgba(232, 238, 250, 0.58);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.lock-list {
  display: grid;
  gap: 8px;
}

.lock-notif {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef2f9;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lock-notif:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.085);
}

.lock-app-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--app, var(--accent));
  font-size: 14px;
  font-weight: 800;
  background: var(--app-bg, #151a23);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 5px 12px rgba(0, 0, 0, 0.26);
}

.lock-main {
  display: block;
  flex: 1;
  min-width: 0;
}

.lock-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.lock-top b {
  overflow: hidden;
  color: #f2f5fb;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lock-top em {
  flex: none;
  color: rgba(232, 238, 250, 0.42);
  font-size: 9px;
  font-style: normal;
}

.lock-title {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #e9eef8;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lock-text {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: rgba(232, 238, 250, 0.52);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lock-badge {
  flex: none;
  align-self: center;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(255, 59, 48, 0.3);
}

.lock-caption {
  margin: 12px 0 0;
  color: rgba(232, 238, 250, 0.38);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.launcher-actions {
  flex: none;
  display: grid;
  gap: 7px;
  padding: 8px 16px 4px;
  background: linear-gradient(0deg, rgba(5, 8, 12, 0.9), rgba(5, 8, 12, 0));
}

.launcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.launcher-btn:hover {
  transform: translateY(-1px);
}

.launcher-btn-primary {
  background: linear-gradient(135deg, #e8cd95, var(--accent));
  color: #15100a;
  box-shadow: 0 10px 26px rgba(201, 162, 106, 0.22);
}

.launcher-btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.launcher-bar {
  flex: none;
  width: 124px;
  height: 4px;
  margin: 7px auto 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.device-caption {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- 桌面 ---------- */

.launcher-home {
  background:
    radial-gradient(80% 55% at 75% 6%, rgba(201, 162, 106, 0.18), transparent 60%),
    radial-gradient(70% 50% at 10% 76%, rgba(37, 244, 238, 0.07), transparent 66%),
    linear-gradient(180deg, #121923, #070a0f 64%, #0b1016);
}

.desktop-head {
  flex: none;
  padding: 18px 22px 2px;
}

.desktop-clock {
  color: #f7f9ff;
  font-size: 44px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.desktop-date {
  margin-top: 5px;
  color: rgba(232, 238, 250, 0.62);
  font-size: 10.5px;
}

.desktop-hint {
  margin: 12px 0 0;
  color: rgba(232, 238, 250, 0.45);
  font-size: 10px;
  line-height: 1.5;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 8px;
  padding: 16px 18px 0;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: center;
}

.app-icon.is-deco {
  cursor: default;
  opacity: 0.5;
}

.app-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  color: var(--app, var(--accent));
  font-size: 20px;
  font-weight: 800;
  background: var(--app-bg, #151a23);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.app-icon:not(.is-deco):hover .app-tile {
  transform: translateY(-3px) scale(1.03);
}

.app-tile.is-deco {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.app-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #0b1016;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}

.app-name {
  max-width: 100%;
  overflow: hidden;
  color: #d8dfeb;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: auto 16px 0;
  padding: 11px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.dock-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.dock-name {
  max-width: 100%;
  overflow: hidden;
  color: rgba(232, 238, 250, 0.4);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.launcher-home .launcher-actions {
  padding-top: 10px;
  background: none;
}

.launcher-home .launcher-btn {
  padding: 9px 14px;
  font-size: 11px;
}

/* ---------- 首页文案栏 ---------- */

.launcher-copy {
  width: 100%;
  max-width: 610px;
  padding: 12px 0;
}

.launcher-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
  background: linear-gradient(100deg, #fff 5%, #f0e2c8 40%, var(--accent) 75%, #9d7d4c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.launcher-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.85;
}

.launcher-notice {
  margin: 22px 0 0;
}

.launcher-hint {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.launcher-hint b {
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.launcher-hint p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.launcher-copy > .launcher-btn {
  width: auto;
  margin-top: 18px;
  padding: 10px 16px;
}

/* ---------- 案件档案 ---------- */

.case-archive {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.archive-title h2 {
  margin: 8px 0 6px;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.archive-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.archive-count {
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

/* ============================================================
 * 案件页外壳
 * ============================================================ */

.case-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.ghost-btn:hover {
  color: var(--ink);
  border-color: rgba(201, 162, 106, 0.4);
}

.toolbar-case {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar-case b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.phone-layout {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: min(820px, calc(100vh - 132px));
  min-height: 600px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 44px;
  background:
    radial-gradient(120% 65% at 50% -5%, var(--bg2), transparent 62%),
    var(--bg);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 36px;
  pointer-events: none;
  z-index: 5;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 26px 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  flex: none;
}

.status-left,
.status-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 9px;
}

.signal-bars span {
  width: 2.5px;
  border-radius: 1px;
  background: currentColor;
}

.signal-bars span:nth-child(1) { height: 3px; }
.signal-bars span:nth-child(2) { height: 5px; }
.signal-bars span:nth-child(3) { height: 7px; }
.signal-bars span:nth-child(4) { height: 9px; opacity: 0.3; }

.battery {
  width: 20px;
  height: 9px;
  padding: 1.5px;
  border: 1px solid currentColor;
  border-radius: 2.5px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  top: 2.5px;
  right: -3px;
  width: 2px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

.battery i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.1);
  flex: none;
}

.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  transition: background 0.18s ease, color 0.18s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #0b1018;
  font-size: 15px;
  font-weight: 800;
  background: var(--avatar-color, var(--accent));
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.16);
}

.head-main {
  min-width: 0;
  flex: 1;
}

.head-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.head-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.progress {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.progress-dot {
  width: 15px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease;
}

.progress-dot.is-done {
  background: var(--accent);
  opacity: 0.7;
}

.progress-dot.is-now {
  background: var(--accent2);
  box-shadow: 0 0 10px var(--accent2);
}

.phone-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 15px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.phone-body::-webkit-scrollbar {
  width: 5px;
}

.phone-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.narration {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.narration p {
  margin: 0;
}

.narration p + p {
  margin-top: 4px;
}

.ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.025);
}

.ribbon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ============================================================
 * 消息
 * ============================================================ */

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

.msg {
  display: flex;
  width: 100%;
  animation: msg-rise 0.22s ease both;
}

.msg-them { justify-content: flex-start; }
.msg-me { justify-content: flex-end; }
.msg-sys { justify-content: center; }
.msg-time { justify-content: center; }

.msg-inner {
  max-width: 84%;
  min-width: 0;
}

.msg-me .msg-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.who {
  margin: 0 0 3px 3px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.bubble {
  padding: 9px 11px;
  border-radius: var(--radius, 18px);
  color: var(--bubble-text-them);
  background: var(--bubble-them);
  font-size: 13.5px;
  line-height: 1.58;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.msg-them .bubble {
  border-top-left-radius: 6px;
}

.msg-me .bubble {
  color: var(--bubble-text-me);
  background: var(--bubble-me);
  border-top-right-radius: 6px;
}

.msg-sys .msg-inner,
.msg-time .msg-inner {
  max-width: 90%;
  text-align: center;
}

.msg-sys .bubble {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--system);
  font-size: 11px;
  line-height: 1.5;
}

.msg-time {
  margin: 3px 0;
}

.msg-time-text {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--system);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.msg-media {
  width: 196px;
  margin: 0;
}

.msg-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.msg-media figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 12px;
  overflow: hidden;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 8px, transparent 8px 16px),
    rgba(255, 255, 255, 0.02);
  text-align: center;
}

.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-4-3 { aspect-ratio: 4 / 3; }

.ph-icon {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  opacity: 0.8;
}

.ph-label {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.ph-ratio {
  color: rgba(255, 255, 255, 0.3);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.msg-card {
  width: 244px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.msg-card.tone-danger {
  border-color: rgba(214, 69, 69, 0.42);
}

.msg-card.tone-danger .card-head {
  background: rgba(214, 69, 69, 0.1);
}

.msg-card.tone-success {
  border-color: rgba(61, 220, 151, 0.32);
}

.card-head {
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.card-title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.card-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.card-rows {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  margin: 0;
  padding: 9px 10px;
}

.card-rows dt {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.card-rows dd {
  margin: 0;
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}

.card-footer {
  padding: 7px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.transfer-card {
  position: relative;
  width: 210px;
  padding: 13px 12px;
  overflow: hidden;
  border: 1px solid rgba(61, 220, 151, 0.4);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(61, 220, 151, 0.13), rgba(61, 220, 151, 0.03));
  text-align: center;
}

.transfer-label {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.transfer-amount {
  margin: 3px 0 2px;
  color: #7cf0bb;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.transfer-note {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.45;
}

.transfer-card.is-pending .transfer-amount {
  opacity: 0.55;
}

.transfer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.transfer-card.is-success .transfer-status {
  color: #7cf0bb;
  animation: transfer-stamp 0.42s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.transfer-card.is-failed .transfer-status {
  color: #ff8f80;
  animation: transfer-fail 0.4s ease both;
}

.transfer-spinner {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #7cf0bb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- 模拟红包 ---------- */

.rp-card {
  position: relative;
  width: 210px;
  padding: 12px 13px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 150, 0.32);
  border-radius: 13px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 220, 160, 0.22), transparent 55%),
    linear-gradient(155deg, #c74333 0%, #a92f27 62%, #8f241f 100%);
  color: #ffe9c4;
  box-shadow: 0 6px 18px rgba(120, 20, 15, 0.35);
}

.rp-card.style-lucky {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 230, 170, 0.24), transparent 55%),
    linear-gradient(155deg, #b8452f 0%, #93301f 65%, #7a2318 100%);
}

.rp-card.style-charm {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 200, 200, 0.24), transparent 55%),
    linear-gradient(155deg, #cf4557 0%, #ad2f42 62%, #8f2233 100%);
}

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

.rp-glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffe9b0, #e8b45a 70%);
  color: #8c2a1e;
  font-size: 15px;
  font-weight: 800;
}

.rp-info {
  min-width: 0;
}

.rp-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rp-sub {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: rgba(255, 233, 196, 0.72);
  font-size: 9px;
  line-height: 1.45;
}

.rp-amount {
  margin-top: 16px;
  color: #ffe9b0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(6px) scale(0.82);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rp-card.is-open .rp-amount {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: rp-amount-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

.rp-seal {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffe9b0, #e2a94a 70%);
  color: #8c2a1e;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.25s ease;
}

.rp-seal:hover {
  transform: scale(1.06);
}

.rp-seal:active {
  transform: scale(0.94);
}

.rp-seal:disabled {
  cursor: default;
  opacity: 0.85;
}

.rp-card.is-open .rp-seal,
.rp-card.is-sent .rp-seal {
  display: none;
}

.rp-card.is-opening {
  animation: rp-shake 0.55s ease;
}

.rp-card.is-opening .rp-seal {
  animation: rp-seal-pop 0.55s ease both;
}

.rp-note {
  margin-top: 6px;
  padding-right: 34px;
  color: rgba(255, 233, 196, 0.62);
  font-size: 8.5px;
  line-height: 1.5;
}

.rp-card.is-open .rp-note {
  padding-right: 0;
}

/* 未拆红包：金印呼吸提示；点击后有拆包动画 */
.rp-card:not(.is-open):not(.is-opening):not(.is-sending) .rp-seal {
  animation: rp-seal-breathe 1.9s ease-in-out infinite;
}

/* 我方发红包：先显示“发送中”，落章后显示“已发出” */
.rp-card.is-sending .rp-seal {
  animation: rp-seal-send 0.45s ease-in-out infinite alternate;
}

.rp-sent-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 8px;
  border: 1.5px solid rgba(255, 233, 176, 0.85);
  border-radius: 6px;
  color: #ffe9b0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: rotate(-8deg) scale(0.8);
}

.rp-card.is-sent .rp-sent-mark {
  animation: rp-sent-stamp 0.42s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.rp-card.is-sent .rp-note {
  padding-right: 46px;
}

.rp-burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rp-coin {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2c2, #f0b64d);
  box-shadow: 0 0 6px rgba(255, 210, 120, 0.8);
  opacity: 0;
  animation: rp-coin-fly var(--dur, 800ms) cubic-bezier(0.15, 0.6, 0.3, 1) var(--delay, 0ms) forwards;
}

/* ---------- 模拟收付款 ---------- */

.pay-card {
  position: relative;
  width: 226px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.pay-head {
  padding: 9px 12px 7px;
}

.pay-title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.pay-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.pay-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 2px 12px 0;
}

.pay-qr {
  position: relative;
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: 1px;
  width: 150px;
  height: 150px;
  padding: 8px;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease;
}

.pay-card.is-processing .pay-qr {
  opacity: 0.5;
}

.pay-qr i {
  border-radius: 1px;
  background: transparent;
}

.pay-qr i.on {
  background: #141821;
}

.qr-corner {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 5px solid #141821;
  border-radius: 4px;
  background: #fff;
}

.qr-tl { top: 9px; left: 9px; }
.qr-tr { top: 9px; right: 9px; }
.qr-bl { bottom: 9px; left: 9px; }

.pay-scan {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #3ddc97 20%, #9dffd0 50%, #3ddc97 80%, transparent);
  box-shadow: 0 0 10px rgba(61, 220, 151, 0.8);
  opacity: 0;
  pointer-events: none;
}

.pay-card.is-scanning .pay-scan {
  opacity: 1;
  animation: pay-scan 1s ease-in-out forwards;
}

.pay-amount {
  margin-top: 7px;
  text-align: center;
  color: var(--accent);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.pay-card.is-received .pay-amount {
  color: #7cf0bb;
}

.pay-action {
  padding: 7px 12px 9px;
}

.pay-btn {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #10141c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.pay-btn:hover {
  opacity: 0.9;
}

.pay-btn:active {
  transform: scale(0.985);
}

.pay-btn:disabled {
  cursor: default;
  opacity: 0.75;
}

.pay-status {
  text-align: center;
  color: #7cf0bb;
  font-size: 10.5px;
  font-weight: 600;
}

.pay-status.is-ok {
  padding: 2px 0 4px;
  animation: pay-stamp 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.pay-card.is-received .pay-action {
  padding-top: 4px;
}

.pay-result {
  padding: 8px 12px;
  border-top: 1px dashed rgba(61, 220, 151, 0.3);
  background: rgba(61, 220, 151, 0.06);
  color: #8fe9c0;
  font-size: 9.5px;
  line-height: 1.6;
  animation: pay-result-in 0.35s ease both;
}

.pay-warn {
  padding: 7px 12px;
  border-top: 1px solid rgba(214, 69, 69, 0.25);
  background: rgba(214, 69, 69, 0.09);
  color: #ffb3a6;
  font-size: 9px;
  line-height: 1.55;
  animation: pay-warn-in 0.35s ease both;
}

/* 所有资金卡片出现时统一入场 */
.transfer-card.is-enter,
.rp-card.is-enter,
.pay-card.is-enter {
  animation: money-in 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.12) both;
}

.pay-note {
  padding: 7px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.voice-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
}

.msg-me .voice-block {
  align-items: flex-end;
}

.voice-bubble {
  display: flex;
  align-items: center;
  gap: 7px;
  width: var(--voice-w, 150px);
  max-width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius, 18px);
  border-top-left-radius: 6px;
  background: var(--bubble-them);
  color: var(--bubble-text-them);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.msg-me .voice-bubble {
  border-top-left-radius: var(--radius, 18px);
  border-top-right-radius: 6px;
  background: var(--bubble-me);
  color: var(--bubble-text-me);
}

.voice-bubble:hover {
  filter: brightness(1.07);
}

.voice-bubble:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.voice-bubble .vp-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--accent);
  font-size: 8px;
  line-height: 1;
}

.voice-dur {
  flex: none;
  color: inherit;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.voice-bars {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  height: 16px;
  min-width: 0;
}

.voice-bars span {
  width: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.75;
}

.voice-bars span:nth-child(1) { height: 5px; }
.voice-bars span:nth-child(2) { height: 10px; }
.voice-bars span:nth-child(3) { height: 16px; }
.voice-bars span:nth-child(4) { height: 8px; }
.voice-bars span:nth-child(5) { height: 12px; }
.voice-bars span:nth-child(6) { height: 6px; }

.voice-bubble.is-playing {
  background: rgba(124, 240, 187, 0.14);
  box-shadow: 0 0 0 1px rgba(124, 240, 187, 0.34) inset;
}

.voice-bubble.is-playing .vp-icon {
  border-color: #7cf0bb;
  color: #7cf0bb;
}

.voice-bubble.is-playing .voice-bars span {
  animation: voice-bar 0.7s ease-in-out infinite;
}
.voice-bubble.is-playing .voice-bars span:nth-child(2) { animation-delay: 0.08s; }
.voice-bubble.is-playing .voice-bars span:nth-child(3) { animation-delay: 0.16s; }
.voice-bubble.is-playing .voice-bars span:nth-child(4) { animation-delay: 0.24s; }
.voice-bubble.is-playing .voice-bars span:nth-child(5) { animation-delay: 0.32s; }
.voice-bubble.is-playing .voice-bars span:nth-child(6) { animation-delay: 0.4s; }

.voice-transcript {
  width: min(246px, 100%);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.voice-asr-text {
  color: var(--ink);
}

/* 附近的人 */

.feed-strip {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.feed-card {
  flex: 0 0 134px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.feed-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 95, 125, 0.22), rgba(255, 184, 107, 0.08));
}

.feed-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-photo .media-placeholder {
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
}

.feed-body {
  padding: 7px 8px 8px;
}

.feed-name {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
}

.feed-meta {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8.5px;
}

.feed-line {
  margin-top: 4px;
  color: #e6c9d0;
  font-size: 9.5px;
  line-height: 1.4;
}

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}

.feed-tags span {
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  color: var(--muted);
  font-size: 7.5px;
}

/* ============================================================
 * 选项区
 * ============================================================ */

.phone-foot {
  flex: none;
  max-height: 46%;
  overflow-y: auto;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.2));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.choice-btn {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.choice-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.choice-btn:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.choice-btn.is-chosen {
  border-color: var(--accent);
  background: rgba(201, 162, 106, 0.12);
  opacity: 0.9;
}

.choice-index {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 700;
}

.choice-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.choice-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  letter-spacing: 0.04em;
}

.skip-btn {
  display: block;
  margin: 2px auto 4px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.skip-btn:hover {
  color: var(--ink);
  border-color: rgba(201, 162, 106, 0.45);
}

/* ---------- 我方消息 · 点击发送 ---------- */

.send-dock {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: send-dock-in 0.2s ease both;
}

.send-box {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.send-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.send-who {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1208;
  font-size: 9px;
  font-weight: 700;
}

.send-hint {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.send-text {
  max-height: 72px;
  overflow: auto;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.send-btn {
  flex: none;
  padding: 10px 12px;
  border: 1px solid rgba(201, 162, 106, 0.6);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(224, 189, 132, 0.96), rgba(150, 113, 65, 0.96));
  color: #170f06;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.send-btn:hover {
  transform: translateY(-1px);
}

.send-btn:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
}

.send-dock.is-sending .send-box {
  opacity: 0.5;
}

.send-dock.is-sending .send-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  box-shadow: none;
}

.msg-just-sent {
  animation: msg-send-pop 0.32s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

/* ---------- 假平台提现卡 ---------- */

.wd-card {
  position: relative;
  width: min(254px, 100%);
  margin: 2px auto;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.wd-card.is-enter {
  animation: wd-enter 0.34s ease both;
}

.wd-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f0c87f, #a67a3d);
  color: #1e1408;
  font-size: 13px;
  font-weight: 800;
}

.wd-title-wrap {
  flex: 1;
  min-width: 0;
}

.wd-title {
  font-size: 12.5px;
  font-weight: 700;
}

.wd-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wd-tag {
  flex: none;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
}

.wd-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.wd-balance-label {
  color: var(--muted);
  font-size: 9.5px;
}

.wd-balance-value {
  color: #ffd98a;
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.wd-rows {
  display: flex;
  flex-direction: column;
}

.wd-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 10.5px;
}

.wd-row:last-child {
  border-bottom: 0;
}

.wd-row b {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.wd-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(240, 200, 127, 0.55);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(240, 200, 127, 0.96), rgba(166, 122, 61, 0.96));
  color: #1e1408;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.wd-btn:hover {
  transform: translateY(-1px);
}

.wd-btn:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.wd-card.is-processing .wd-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.wd-progress {
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.wd-progress[hidden] {
  display: none;
}

.wd-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #ffd98a, transparent);
  animation: wd-progress 1s ease-in-out infinite;
}

.wd-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.wd-result {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(88, 214, 141, 0.08);
  animation: pay-result-in 0.25s ease both;
}

.wd-result[hidden] {
  display: none;
}

.wd-result-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2f9e63;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.wd-result-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wd-result-body b {
  color: #7fe0a8;
  font-size: 11px;
}

.wd-result-body span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wd-card.is-failed .wd-result {
  background: rgba(214, 69, 69, 0.09);
}

.wd-card.is-failed .wd-result-icon {
  background: #c84343;
}

.wd-card.is-failed .wd-result-body b {
  color: #ff9b9b;
}

.wd-card.is-success .wd-balance-value {
  color: var(--muted);
}

.wd-card.is-shake {
  animation: wd-shake 0.5s ease;
}

.wd-mask {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px;
  background: radial-gradient(circle at 50% 42%, rgba(31, 90, 58, 0.5), rgba(5, 8, 10, 0.94) 65%);
  backdrop-filter: blur(6px);
  animation: wd-fade 0.18s ease both;
}

.wd-mask-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ce09b, #1d8a54);
  color: #06130b;
  font-size: 38px;
  font-weight: 800;
  box-shadow:
    0 0 0 10px rgba(92, 224, 155, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.35);
  animation: wd-pop 0.42s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.wd-mask-title {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.wd-mask-sub {
  color: #8ff0b8;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wd-mask-note {
  max-width: 250px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
  text-align: center;
}

.wd-mask.is-fail {
  background: radial-gradient(circle at 50% 42%, rgba(120, 30, 35, 0.45), rgba(6, 7, 10, 0.95) 65%);
}

.wd-mask.is-fail .wd-mask-icon {
  background: linear-gradient(135deg, #ff8b8b, #b62f2f);
  color: #1a0606;
  box-shadow:
    0 0 0 10px rgba(255, 139, 139, 0.09),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.wd-mask.is-fail .wd-mask-title {
  color: #ffb3b3;
}

.wd-mask.is-fail .wd-mask-sub {
  max-width: 260px;
  color: #ff9b9b;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

/* 提示气泡 */

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(300px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 10px 12px;
  border: 1px solid rgba(201, 162, 106, 0.35);
  border-radius: 10px;
  background: rgba(18, 22, 31, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.55;
  animation: toast-in 0.24s ease both;
}

.toast b {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* ============================================================
 * 结果页
 * ============================================================ */

.result {
  width: min(920px, 100%);
  margin: 0 auto;
}

.result-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(500px 240px at 50% -20%, color-mix(in srgb, var(--grade) 20%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  text-align: center;
}

.result-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 200px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--grade) 14%, transparent), transparent 70%);
  pointer-events: none;
}

.grade-badge {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border: 2px solid var(--grade, var(--accent));
  border-radius: 50%;
  color: var(--grade, var(--accent));
  font-size: 42px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 0 34px color-mix(in srgb, var(--grade) 22%, transparent);
  background: color-mix(in srgb, var(--grade) 8%, transparent);
}

.grade-label {
  color: var(--grade, var(--accent));
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.result-kicker {
  margin-top: 16px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.result-title {
  margin: 7px 0 8px;
  font-size: clamp(23px, 4vw, 34px);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.result-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.result-tag {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.btn {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  border-color: rgba(201, 162, 106, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.btn-primary {
  border-color: rgba(201, 162, 106, 0.6);
  background: linear-gradient(135deg, #d9b77e, #a98550);
  color: #17120a;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e6c98e, #b8925a);
}

.result-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.panel-title small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11.5px;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

.ledger-row.is-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  color: var(--ink);
}

.ledger-row.is-total strong {
  color: var(--danger);
  font-size: 18px;
}

.money-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.step-item:last-child {
  border-bottom: 0;
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(201, 162, 106, 0.12);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 700;
}

.step-name {
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.5;
}

.step-desc {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.clue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.clue-item {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.clue-item.is-locked {
  opacity: 0.42;
}

.clue-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
}

.clue-label::before {
  content: "○";
  color: var(--muted);
  font-size: 9px;
}

.clue-item.is-unlocked .clue-label::before {
  content: "●";
  color: var(--accent);
}

.clue-desc {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.tips-list,
.sources-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips-list li {
  position: relative;
  padding: 6px 0 6px 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.tips-list li:last-child {
  border-bottom: 0;
}

.tips-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
}

.sources-list li {
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  line-height: 1.5;
}

.sources-list li:last-child {
  border-bottom: 0;
}

.sources-list a {
  color: #a9c9ff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.sources-list a:hover {
  text-decoration: underline;
}

.result-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 162, 106, 0.2);
  border-radius: 10px;
  background: rgba(201, 162, 106, 0.05);
  color: #d8c7a8;
  font-size: 10.5px;
  line-height: 1.7;
}

/* ============================================================
 * 动画
 * ============================================================ */

@keyframes msg-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes voice-bar {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.3); }
}

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

@keyframes rp-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-2.4deg); }
  40% { transform: rotate(2deg); }
  60% { transform: rotate(-1.4deg); }
  80% { transform: rotate(1deg); }
}

@keyframes rp-seal-pop {
  0% { transform: scale(1); }
  60% { transform: scale(1.18); }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes rp-amount-pop {
  0% { opacity: 0; transform: scale(0.7); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes rp-coin-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -60px)) scale(1); }
}

@keyframes pay-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(122px); }
}

@keyframes pay-result-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes transfer-stamp {
  0% { opacity: 0; transform: scale(0.6); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes money-in {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes transfer-fail {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  45% { transform: translateX(2px); }
  70% { transform: translateX(-1px); }
}

@keyframes pay-stamp {
  0% { opacity: 0; transform: scale(0.65); }
  65% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pay-warn-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rp-seal-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 225, 150, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(255, 225, 150, 0); }
}

@keyframes rp-seal-send {
  from { transform: scale(1); }
  to { transform: scale(0.92); }
}

@keyframes rp-sent-stamp {
  0% { opacity: 0; transform: rotate(-8deg) scale(0.7); }
  65% { opacity: 1; transform: rotate(-8deg) scale(1.08); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}

@keyframes send-dock-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes msg-send-pop {
  0% { opacity: 0.35; transform: translateY(8px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wd-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wd-progress {
  from { transform: translateX(-120%); }
  to { transform: translateX(340%); }
}

@keyframes wd-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-4px); }
  38% { transform: translateX(3px); }
  58% { transform: translateX(-2px); }
  78% { transform: translateX(1px); }
}

@keyframes wd-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wd-pop {
  0% { opacity: 0; transform: scale(0.5); }
  65% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
 * 响应式
 * ============================================================ */

@media (max-width: 960px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .launcher-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .launcher-phone-wrap {
    order: 1;
  }

  .launcher-copy {
    order: 2;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 4px;
  }
}

@media (max-width: 720px) {
  .app {
    padding: 16px 12px 40px;
  }

  .topbar {
    padding: 0 4px;
  }

  .top-hotline {
    padding: 7px 10px;
  }

  .top-hotline span {
    display: none;
  }

  .hero {
    padding: 34px 4px 24px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .launcher-stage {
    margin: 18px 0 34px;
  }

  .lock-time {
    font-size: 50px;
  }

  .app-grid {
    gap: 14px 6px;
    padding: 14px 14px 0;
  }

  .app-tile {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 18px;
  }

  .app-dock {
    margin: auto 12px 0;
  }

  .dock-glyph {
    width: 38px;
    height: 38px;
  }

  .archive-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .archive-count {
    align-self: flex-start;
  }

  .launcher-copy h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .case-art {
    height: 116px;
  }

  .phone {
    width: 100%;
    height: calc(100dvh - 104px);
    min-height: 540px;
    border-radius: 24px;
  }

  .phone::before {
    inset: 5px;
    border-radius: 20px;
  }

  .phone-status {
    padding: 12px 18px 7px;
  }

  .phone-head {
    padding: 2px 10px 9px;
  }

  .phone-body {
    padding: 12px 10px 16px;
  }

  .phone-foot {
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    max-height: 44%;
  }

  .msg-inner {
    max-width: 88%;
  }

  .msg-card {
    width: min(244px, 100%);
  }

  .send-btn {
    padding: 9px 10px;
    font-size: 11px;
  }

  .send-text {
    max-height: 58px;
    font-size: 11.5px;
  }

  .wd-card {
    width: min(246px, 100%);
  }

  .toast-stack {
    right: 12px;
    bottom: 12px;
    width: min(280px, calc(100vw - 24px));
  }

  .case-toolbar {
    margin-bottom: 8px;
  }

  .toolbar-case {
    display: none;
  }

  .result-hero {
    border-radius: 20px;
  }

  .clue-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
