/* 手机适配（在原型桌面样式基础上追加，不改 token） */
.login-wrap { max-width: 420px; margin: 10vh auto; padding: var(--sp-6); }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .sidebar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; flex-direction: row; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--c-border); gap: 0; }
  .sidebar .brand, .sidebar .spacer, .sidebar .dev-link { display: none; }
  .nav-item { flex: 1; flex-direction: column; gap: 0; padding: 6px 0; font-size: var(--fs-xs); justify-content: center; }
  .nav-item .ico { font-size: 20px; width: auto; }
  .nav-item .dot { top: 6px; right: calc(50% - 16px); }
  .main { overflow: visible; }
  .topbar { position: sticky; top: 0; z-index: 15; padding: 0 var(--sp-4); height: 56px; gap: var(--sp-2); }
  .topbar h1 { font-size: var(--fs-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page { padding: var(--sp-4) var(--sp-3) 90px; overflow: visible; }
  .page.flush { padding: 0 0 calc(132px + env(safe-area-inset-bottom, 0px)); }
  .chat-scroll { padding-bottom: calc(var(--sp-3) + 24px); }
  .seg { scroll-margin-top: 152px; }
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .trait-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-hero { flex-direction: column; text-align: center; padding: var(--sp-5); }
  .profile-hero .row { justify-content: center; flex-wrap: wrap; }
  .rel-row { grid-template-columns: auto 1fr; padding: var(--sp-3); }
  .rel-row > .favor, .rel-row > div:nth-child(3) { grid-column: 2; }
  .rel-row > .faint { display: none; }
  .chat-layout { display: block; height: auto; }
  .chat-layout.has-detail .chat-list { display: none; }
  .chat-layout:not(.has-detail) .chat-detail { display: none; }
  .chat-list { border-right: 0; }
  .chat-detail { min-height: calc(100vh - 130px); }
  .chat-head { flex-wrap: wrap; padding: var(--sp-3); position: sticky; top: 56px; z-index: 5; }
  .chat-head .favor-wrap { width: 100% !important; }
  .chat-scroll { padding: var(--sp-3); overflow: visible; }
  .watch-bar { position: fixed; bottom: 62px; left: 0; right: 0; padding: 6px; font-size: var(--fs-xs); }
  .reveal-cards { grid-template-columns: repeat(2, 1fr); }
  .row.stack-m { flex-direction: column; align-items: stretch; }
  .clock-chip { display: none; }
  .modal { width: calc(100vw - 32px) !important; }
  .page-inner { gap: var(--sp-4); }
}
.m-only { display: none; }
@media (max-width: 820px) { .m-only { display: inline-flex; } }
/* Batch 2 组件的手机适配（首页头条 / 事件卡 / 揭晓页） */
@media (max-width: 820px) {
  .home-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero { padding: 18px 18px 150px; min-height: 0; }
  .hero h2 { font-size: 28px; line-height: 34px; }
  .hero.ev-quote h2, .hero.ev-quote .deck { max-width: 100%; }
  .hero .hq { font-size: 16px; line-height: 22px; margin-top: 14px; max-width: 100%; }
  .hero .actions { flex-wrap: wrap; max-width: 100%; }
  .hero .scene { right: 12px; bottom: 8px; }
  .hero .scene .doll.xxl { --s: 112px; }
  .hero .scene .link { font-size: 24px; margin-bottom: 40px; }
  .hero .flyprop { right: 120px; bottom: 110px; transform: scale(.7); }
  .member-card.sig .mhead .doll.lg { --s: 60px; }
  .member-card.sig .name { font-size: var(--fs-lg); }
  .ev { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .ev .cast .doll.lg { --s: 56px; }
  .chat-head .badges { display: none; }
  .rv-card { scale: .78; }
  .rv-teaser { display: none; }
  .mute-btn { top: 8px; right: 8px; }
}
@media (max-width: 820px) {
  .rv-top { left: 12px; right: 12px; top: 12px; }
  .rv-steps { overflow: hidden; gap: 4px; font-size: 11px; }
  .rv-steps span { white-space: nowrap; padding: 2px 7px; }
  .rv-steps span:not(.on) { display: none; }
  .rv-rarity { top: 60px; font-size: 16px; letter-spacing: .3em; white-space: nowrap; }
  .sidebar .who-line { display: none; }
}
