/* ═══════════════════════════════════════════════════════════
   Views —— 群友 / 资料卡 / 本周 / 我 / 覆盖层 / 小游戏舞台
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════ 群友列表 ═══════════════ */

.contacts {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.pick-banner {
  flex: none;
  padding: 9px 14px;
  background: linear-gradient(100deg, rgba(47, 211, 168, 0.16), transparent);
  border-bottom: 0.5px solid rgba(47, 211, 168, 0.28);
  font-size: 12px;
  color: var(--pepper);
}

.c-filters {
  flex: none;
  display: flex;
  gap: 6px;
  padding: 9px 12px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.c-filters::-webkit-scrollbar { display: none; }
.cf {
  flex: none;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: #212429;
  color: #8d8d8d;
  font-size: 11.5px;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.cf.on {
  background: rgba(62, 207, 142, 0.16);
  color: var(--wechat);
  box-shadow: inset 0 0 0 1px rgba(62, 207, 142, 0.4);
}

.c-search {
  flex: none;
  padding: 0 12px 8px;
}
.c-search input {
  width: 100%;
  padding: 8px 11px;
  border-radius: 7px;
  background: #212429;
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  color: #dedede;
  font-size: 12.5px;
  outline: none;
  transition: border-color var(--t-fast);
}
.c-search input:focus {
  border-color: rgba(62, 207, 142, 0.5);
}
.c-search input::placeholder { color: #5f5f5f; }

.c-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 20px;
}
.c-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px 8px;
  border-radius: 8px;
  text-align: left;
  transition: background var(--t-fast);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.04);
}
.c-row:hover {
  background: rgba(255, 255, 255, 0.045);
}
.c-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.c-name {
  font-size: 13.5px;
  color: #dedede;
  display: flex;
  align-items: center;
  gap: 6px;
}
.c-role {
  font-style: normal;
  font-size: 9px;
  color: var(--neon);
  border: 0.5px solid rgba(255, 209, 102, 0.4);
  border-radius: 2px;
  padding: 0 3px;
}
.c-sub {
  font-size: 10.5px;
  color: #7a7a7a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-tagline {
  font-size: 10.5px;
  color: #5c5c5c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-serif);
}
.c-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.c-stage { font-size: 10px; color: var(--violet); }
.c-aff { font-size: 11px; font-weight: 600; }
.c-aff.up { color: var(--pepper); }
.c-aff.down { color: var(--chili); }
.c-new { font-size: 9.5px; color: #5f5f5f; }
.c-seen { font-size: 9.5px; color: #4f4f4f; }

/* ═══════════════ 个人资料卡 ═══════════════ */

.person {
  height: 100%;
  overflow-y: auto;
  padding: 18px 16px 40px;
}
.p-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.p-id h2 {
  font-size: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: -0.02em;
}
.p-real {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-mute);
  font-weight: 400;
}
.p-id p {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 3px;
}
.p-tagline {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--paper);
  padding: 12px 14px;
  border-left: 2px solid var(--violet);
  background: linear-gradient(90deg, rgba(139, 127, 212, 0.09), transparent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}
.p-block {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.p-block:last-of-type { border-bottom: none; }
.p-block h4 {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.p-aff-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.p-stage {
  font-size: 15px;
  color: var(--violet);
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
}
.p-aff { font-size: 17px; font-weight: 700; }
.p-aff.up { color: var(--pepper); }
.p-aff.down { color: var(--chili); }

.p-stage-track {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}
.pst {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.pst i {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-500);
  display: block;
}
.pst.done i { background: var(--violet); }
.pst em {
  font-style: normal;
  font-size: 9px;
  color: var(--text-mute);
  white-space: nowrap;
  transform: scale(0.9);
  letter-spacing: -0.02em;
}
.pst.done em { color: var(--violet); }

.p-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-mute);
}
.p-progress .prog { flex: 1; }

/* 好感被剧情天花板卡住时的提示 */
.p-cap {
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.08);
  border-left: 2px solid rgba(255, 209, 102, 0.55);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim);
}
.p-cap b {
  color: var(--neon);
  margin-right: 5px;
}

.p-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ptag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(47, 211, 168, 0.12);
  color: var(--pepper);
  font-size: 11.5px;
}
.ptag b { font-size: 10px; opacity: 0.8; }
.ptag.neg {
  background: rgba(255, 77, 61, 0.12);
  color: #ff8b7e;
}

.p-bio {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-dim);
}
.p-locked { color: var(--text-faint); font-style: italic; }
.p-note {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-mute);
  padding: 8px 10px;
  background: rgba(255, 209, 102, 0.06);
  border-left: 2px solid rgba(255, 209, 102, 0.4);
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}

.p-hard h4 { color: rgba(255, 77, 61, 0.7); }
.p-hard p {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.9;
  color: var(--paper);
}
.p-hard.locked p {
  color: var(--text-faint);
  font-family: var(--font-ui);
  font-size: 12.5px;
}

.p-likes { display: flex; gap: 6px; flex-wrap: wrap; }
.like, .dislike {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}
.like::before { content: '＋ '; color: var(--pepper); }
.dislike::before { content: '－ '; color: var(--chili); }

.p-events { display: flex; flex-direction: column; gap: 7px; }
.pe {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
}
.pe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-500);
  justify-self: center;
}
.pe.done .pe-dot { background: var(--pepper); }
.pe.ready .pe-dot {
  background: var(--neon);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
  animation: cnyPulse 1.6s ease-in-out infinite;
}
.pe-title { color: var(--text-dim); }
.pe.done .pe-title { color: var(--text-mute); text-decoration: line-through; }
.pe.ready .pe-title { color: var(--paper); }
.pe-req { font-size: 10px; color: var(--text-faint); }

.p-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.p-actions .btn { flex: 1; min-width: 88px; }
.p-actions .btn-wide { flex-basis: 100%; }
.btn-cost {
  font-style: normal;
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--neon);
  margin-left: 5px;
  opacity: 0.85;
}

.p-dim { font-size: 12px; color: var(--text-faint); }

/* ═══════════════ 本周 ═══════════════ */

.week {
  height: 100%;
  overflow-y: auto;
  padding: 16px 14px 36px;
}
.week-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.wh-kicker {
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.wh-title {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-top: 3px;
}
.wh-cny {
  font-size: 11px;
  color: var(--chili);
  padding: 3px 9px;
  border: 1px solid rgba(255, 77, 61, 0.35);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.phase-track {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}
.pt-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}
.pt-step i {
  width: 100%;
  height: 2px;
  background: var(--ink-500);
  border-radius: 2px;
  display: block;
}
.pt-step.done i { background: var(--pepper); }
.pt-step.now i { background: var(--neon); }
.pt-step em {
  font-style: normal;
  font-size: 9px;
  color: var(--text-faint);
  white-space: nowrap;
}
.pt-step.now em { color: var(--neon); }
.pt-step.done em { color: var(--pepper); }

.announce p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-dim);
}
.announce p + p { margin-top: 8px; }

.pending-list { display: flex; flex-direction: column; gap: 7px; }
.pending-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.08);
  border-left: 3px solid var(--neon);
  text-align: left;
  transition: all var(--t-fast);
}
.pending-item:hover {
  background: rgba(255, 209, 102, 0.15);
  transform: translateX(3px);
}
.pi-name { font-size: 13px; color: var(--paper); font-weight: 500; }
.pi-title { font-size: 11.5px; color: var(--text-dim); }
.pi-go { font-size: 11px; color: var(--neon); white-space: nowrap; }

.offer-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.offer-emoji { font-size: 28px; }
.offer-head b { font-size: 15px; display: block; }
.offer-head em { font-style: normal; font-size: 10.5px; color: var(--text-mute); display: block; margin-top: 2px; }
.offer-cost { margin-left: auto; font-size: 15px; color: var(--neon); }
.offer-teaser {
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--paper);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 7px;
  margin-bottom: 8px;
  line-height: 1.7;
}
.offer-desc {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.7;
  margin-bottom: 12px;
}
.signed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(47, 211, 168, 0.09);
  border-radius: 8px;
  border-left: 3px solid var(--pepper);
}
.sg-ok { font-size: 11px; color: var(--pepper); }
.signed b { flex: 1; font-size: 14px; }

/* 行动网格 */
.action-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.act-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  text-align: left;
  transition: all var(--t-fast) var(--ease-out);
}
.act-card:hover:not(.disabled) {
  border-color: rgba(47, 211, 168, 0.45);
  background: var(--ink-600);
  transform: translateX(3px);
}
.act-card.disabled {
  opacity: 0.36;
  cursor: not-allowed;
}
.ac-icon { font-size: 22px; text-align: center; }
.ac-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-body b { font-size: 13.5px; }
.ac-body em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.55;
}
.ac-cost {
  font-size: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.ac-tag {
  font-size: 11.5px;
  color: var(--neon);
  white-space: nowrap;
  align-self: start;
}

.acted {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.acted-label { font-size: 11px; color: var(--text-faint); }
.acted-chip {
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: rgba(47, 211, 168, 0.12);
  color: var(--pepper);
}

.go-card {
  position: relative;
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(47, 211, 168, 0.1), transparent);
  border: 1px solid rgba(47, 211, 168, 0.3);
  overflow: hidden;
}
.go-pulse {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  border-radius: 50%;
  border: 2px solid rgba(47, 211, 168, 0.5);
  animation: pulseRing 2.4s ease-out infinite;
}
.go-card b { font-size: 20px; display: block; margin-bottom: 6px; }
.go-card p { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
.go-card .btn { max-width: 200px; margin: 0 auto; }

.bill {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}
.bill-row.up .mono { color: var(--pepper); }
.bill-row.down .mono { color: var(--chili); }
.bill-row.total {
  margin-top: 7px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--paper);
  font-size: 15px;
}
.journal {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 2;
  color: var(--paper);
}

/* ═══════════════ 我 ═══════════════ */

.me {
  height: 100%;
  overflow-y: auto;
  padding: 18px 16px 40px;
}
.me-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.me-head h2 { font-size: 21px; letter-spacing: -0.02em; }
.me-head p { font-size: 11px; color: var(--text-mute); margin-top: 3px; }
.me-block {
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.me-block h4 {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.me-arch { font-size: 13px; color: var(--text-dim); }
.me-arch b { color: var(--paper); margin-right: 6px; }
.me-live { font-size: 11px; color: var(--text-faint); margin-top: 6px; }

.me-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mtag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  background: rgba(47, 211, 168, 0.12);
  color: var(--pepper);
}
.mtag b { font-size: 10px; opacity: 0.75; }
.mtag.neg { background: rgba(255, 77, 61, 0.12); color: #ff8b7e; }

.me-top {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(139, 127, 212, 0.09);
  border: 1px solid rgba(139, 127, 212, 0.25);
  text-align: left;
  transition: all var(--t-fast);
}
.me-top:hover {
  background: rgba(139, 127, 212, 0.16);
  transform: translateX(3px);
}
.mt-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mt-main b { font-size: 14px; }
.mt-main em { font-style: normal; font-size: 10.5px; color: var(--violet); }
.mt-prog { display: flex; flex-direction: column; gap: 4px; width: 68px; align-items: flex-end; }
.mt-prog i { font-style: normal; font-size: 10px; color: var(--text-mute); }

.me-spend { display: flex; flex-direction: column; gap: 6px; }
.ms-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}
.ms-bar {
  height: 4px;
  background: var(--ink-600);
  border-radius: 2px;
  overflow: hidden;
}
.ms-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9a13f, var(--neon));
  border-radius: 2px;
}
.ms-row b { font-size: 11px; color: var(--neon); }
.me-money { margin-top: 11px; font-size: 12px; color: var(--text-mute); }

.me-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.me-stats span {
  font-size: 11px;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.me-stats b { font-size: 16px; color: var(--paper); font-weight: 600; }

.me-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.me-actions .btn { flex: 1; min-width: 76px; font-size: 12.5px; padding: 9px 12px; }
.me-dim { font-size: 11.5px; color: var(--text-faint); margin-top: 10px; }

/* ═══════════════ 覆盖层容器 ═══════════════ */

.overlays {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.overlays > * {
  pointer-events: auto;
}

/* 叙事层：宋体，手机内的"文学层" */
.narr {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(8, 10, 18, 0.92), rgba(4, 5, 10, 0.97) 70%);
  backdrop-filter: blur(3px);
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 30px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.narr.in { opacity: 1; }
.narr.out { opacity: 0; }

.narr-inner {
  max-height: 100%;
  overflow-y: auto;
}
.narr p {
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 2.15;
  color: var(--paper);
  letter-spacing: 0.05em;
  text-align: justify;
  margin-bottom: 12px;
  animation: narrLine 0.75s var(--ease-out) both;
}
.narr p:nth-child(2) { animation-delay: 0.16s; }
.narr p:nth-child(3) { animation-delay: 0.32s; }
.narr p:nth-child(4) { animation-delay: 0.48s; }
.narr p:nth-child(5) { animation-delay: 0.64s; }

@keyframes narrLine {
  from { opacity: 0; transform: translateY(9px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

.narr-hint {
  position: absolute;
  bottom: 34px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.24);
  animation: cnyPulse 2.4s ease-in-out infinite;
}
.narr-inner::-webkit-scrollbar { width: 0; }

.narr-inner { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }

.narr-inner-kind { }

.narr-commute p,
.narr-journal p { font-size: 15.5px; }
.narr-inner.is-muted p { }
.narr.is-muted p {
  font-size: 14.5px;
  color: rgba(244, 241, 232, 0.62);
  font-style: italic;
}
.narr-call p { font-size: 15px; }

/* 来电 */
.call {
  position: absolute;
  inset: 0;
  z-index: 58;
  background: linear-gradient(180deg, #0a0d16 0%, #12131a 55%, #1a1116 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  overflow: hidden;
}
.call.in { opacity: 1; }
.call.out { opacity: 0; }

.call-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 55% at 50% 22%, rgba(255, 77, 61, 0.22), transparent 70%);
  animation: callPulse 1.9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes callPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

.call-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 24px;
  animation: callShake 0.42s ease-out;
}
@keyframes callShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.call-who { text-align: center; flex: none; }
.call-who h2 {
  font-size: 24px;
  margin-top: 12px;
  letter-spacing: 0.06em;
  font-family: var(--font-serif);
}
.call-sub {
  font-size: 11px;
  color: rgba(255, 179, 171, 0.75);
  margin-top: 5px;
  letter-spacing: 0.08em;
}
.call-lines {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  margin: 20px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20px);
  mask-image: linear-gradient(180deg, transparent 0, #000 20px);
}
.call-lines::-webkit-scrollbar { width: 0; }
.call-line {
  align-self: flex-start;
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 4px 14px 14px 14px;
  background: rgba(255, 255, 255, 0.075);
  font-size: 14.5px;
  line-height: 1.7;
  color: #eae7e0;
  opacity: 0;
  transform: translateY(7px);
  transition: all 0.4s var(--ease-spring);
}
.call-line.enter { opacity: 1; transform: none; }

.call-opts {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.call-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  font-size: 13.5px;
  color: #e6e3dc;
  transition: all var(--t-fast) var(--ease-out);
  animation: optIn 0.34s var(--ease-spring) both;
}
.call-opt:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 77, 61, 0.5);
  transform: translateX(3px);
}
.co-hints {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.34);
  white-space: nowrap;
  flex: none;
}
.call-foot {
  flex: none;
  margin-top: 12px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.2);
}
.call-delta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.5s;
}
.call-delta.in { opacity: 1; }
.call-delta span {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
}

/* ═══════════════ 场景 / 结局卡 ═══════════════ */

.scene {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.86);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  transition: opacity var(--t-mid);
  z-index: 320;
}
.scene.in { opacity: 1; }
.scene.out { opacity: 0; }

.scene-card {
  width: min(660px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px 28px 24px;
  box-shadow: var(--sh-3);
  animation: popIn 0.42s var(--ease-spring) both;
}
.scene-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.scene-head h3 { font-size: 19px; letter-spacing: -0.01em; }
.scene-head p { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }
.scene-emoji { font-size: 32px; }
.scene-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2.05;
  color: var(--paper);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.032);
  border-left: 2px solid var(--violet);
  border-radius: 0 10px 10px 0;
  margin-bottom: 16px;
  white-space: pre-wrap;
}
.scene-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.scene-line {
  align-self: flex-start;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 4px 13px 13px 13px;
  background: var(--ink-600);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  opacity: 0;
  transform: translateY(7px);
  transition: all 0.4s var(--ease-spring);
}
.scene-line.enter { opacity: 1; transform: none; }
.scene-line.reply {
  background: rgba(139, 127, 212, 0.16);
  border-left: 2px solid var(--violet);
}

.scene-opts { display: flex; flex-direction: column; gap: 8px; }
.scene-opt {
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  transition: all var(--t-fast) var(--ease-out);
}
.scene-opt:hover {
  border-color: var(--violet);
  background: linear-gradient(95deg, rgba(139, 127, 212, 0.14), var(--ink-700) 70%);
  transform: translateX(4px);
}

.scene-result {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.5s;
}
.scene-result.in { opacity: 1; }
.sr-aff.up { color: var(--pepper); }
.sr-aff.down { color: var(--chili); }
.sr-mood { color: var(--violet); }
.sr-prog { color: var(--text-mute); }
.sr-done {
  color: var(--neon);
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: var(--r-pill);
  padding: 2px 10px;
}

.scene-card > .btn { margin-top: 16px; }

.scene-log {
  margin: 0 0 16px;
  padding-left: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scene-log li {
  font-size: 12.5px;
  color: var(--text-mute);
  padding-left: 14px;
  position: relative;
  line-height: 1.7;
}
.scene-log li::before {
  content: '·';
  position: absolute;
  left: 3px;
  color: var(--pepper);
}

.table-faces {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}
.tf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}
.tf .av { animation: popIn 0.4s var(--ease-spring) both; }
.tf:nth-child(2) .av { animation-delay: 0.05s; }
.tf:nth-child(3) .av { animation-delay: 0.1s; }
.tf:nth-child(4) .av { animation-delay: 0.15s; }
.tf:nth-child(5) .av { animation-delay: 0.2s; }
.tf:nth-child(6) .av { animation-delay: 0.25s; }

.result-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.rd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}
.rd b { font-size: 12px; }
.rd b.up { color: var(--pepper); }
.rd b.down { color: var(--chili); }
.rd.mood { padding-left: 11px; color: var(--violet); }

/* 礼物 */
.gift-card { width: min(560px, 100%); }
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  max-height: 46vh;
  overflow-y: auto;
}
.gift {
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  transition: all var(--t-fast);
}
.gift:hover:not(.disabled) {
  border-color: var(--neon);
  transform: translateY(-2px);
}
.gift.disabled { opacity: 0.35; cursor: not-allowed; }
.gift b { display: block; font-size: 13.5px; }
.gift em { font-style: normal; font-size: 11px; color: var(--neon); }
.gift span { display: block; font-size: 10.5px; color: var(--text-faint); margin-top: 4px; line-height: 1.5; }

/* 模态框 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.8);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  transition: opacity var(--t-mid);
}
.modal-mask.in { opacity: 1; }
.modal-mask.out { opacity: 0; }
.modal {
  width: min(420px, 100%);
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px 18px;
  box-shadow: var(--sh-3);
  animation: popIn 0.36s var(--ease-spring) both;
}
.modal-head h3 { font-size: 17px; }
.modal-head p { font-size: 12.5px; color: var(--text-mute); margin-top: 5px; }
.modal-body { margin: 14px 0 18px; }
.modal-text { font-size: 13.5px; line-height: 1.85; color: var(--text-dim); }
.modal-foot { display: flex; gap: 9px; justify-content: flex-end; }

/* ═══════════════ 小游戏舞台 ═══════════════ */

.mgstage {
  position: fixed;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 0%, rgba(139, 127, 212, 0.09), transparent 60%),
    rgba(4, 5, 10, 0.96);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--t-mid);
  z-index: 330;
}
.mgstage.in { opacity: 1; }
.mgstage.out { opacity: 0; }

.mgstage-inner {
  width: min(880px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.mgstage-head {
  flex: none;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(139, 127, 212, 0.09), transparent 60%);
}
.ms-icon { font-size: 30px; }
.mgstage-head h2 { font-size: 18px; letter-spacing: -0.01em; }
.mgstage-head p { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.ms-brief {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-mute);
  max-width: 320px;
  text-align: right;
  line-height: 1.55;
}
.mgstage-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px 24px;
}
