:root {
  --bg-lounge: #19181D;
  --bg-day: #19181D;
  --bg-soft: #EDE4D1;
  --tag-paper: #F5EFE2;
  --tag-paper-bright: #FCF8EE;
  --obsidian: #151417;
  --obsidian-soft: #222026;
  --glass: rgba(245, 239, 226, 0.94);
  --glass-strong: #F7F1E5;
  --ink: #151417;
  --ink-muted: #5B554D;
  --hairline: rgba(21, 20, 23, 0.16);
  --shadow-soft: 0 18px 42px rgba(8, 7, 10, 0.34);
  --shadow-pill: 0 3px 0 #151417, 0 8px 18px rgba(0, 0, 0, 0.22);
  --silk-burgundy: #7D1E2E;
  --silk-burgundy-deep: #5E1421;
  --burgundy: #7D1E2E;
  --burgundy-deep: #5E1421;
  --brass: #DFBE7D;
  --brass-deep: #967231;
  --cypress: #255C45;
  --danger: #C93B2B;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

body.mood-sulk {
  --bg-lounge: #121A24;
  --bg-day: #121A24;
  --bg-soft: #DFDFEA;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  background: radial-gradient(circle at 50% 18%, #28262E 0%, var(--bg-lounge) 72%);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  transition: background-color 320ms var(--ease-out);
}

button, a, [role="button"], .owner-option, .hub3d-dot {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

body.is-hub3d-view {
  height: 100dvh;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* 顶部俱乐部黑底实况滚动条 */
.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 14px;
  background: #100F13;
  border-bottom: 1px solid rgba(223, 190, 125, 0.28);
  color: #F4EDE0;
  font-size: 12px;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #DFBE7D;
  box-shadow: 0 0 0 2px rgba(223, 190, 125, 0.25);
  flex: 0 0 auto;
}

.ticker-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 7px;
  border-radius: 3px;
  background: rgba(223, 190, 125, 0.16);
  color: #DFBE7D;
  border: 1px solid rgba(223, 190, 125, 0.35);
}

.drawer-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.api-mode-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid rgba(180, 172, 160, 0.35);
  background: rgba(160, 152, 140, 0.16);
  color: #B8B0A4;
}

.api-mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8E877D;
  flex: 0 0 auto;
}

.api-mode-badge.is-live {
  background: rgba(54, 128, 86, 0.18);
  border-color: rgba(102, 204, 142, 0.45);
  color: #BCEAD0;
}

.api-mode-badge.is-live .api-mode-dot {
  background: #4ADE80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
}

.api-mode-badge.is-offline {
  background: rgba(154, 148, 138, 0.16);
  border-color: rgba(168, 162, 152, 0.32);
  color: #B6AFA4;
}

.api-mode-badge.is-offline .api-mode-dot {
  background: #8E887E;
}

.api-mode-badge.is-kv-pending {
  background: rgba(196, 146, 62, 0.18);
  border-color: rgba(232, 186, 98, 0.45);
  color: #F4D89C;
}

.api-mode-badge.is-kv-pending .api-mode-dot {
  background: #F5B841;
  box-shadow: 0 0 0 2px rgba(245, 184, 65, 0.25);
}

.ticker-bar .api-mode-badge {
  padding: 1px 7px;
  font-size: 10px;
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 44s linear infinite;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-item::before {
  content: "//";
  opacity: 0.45;
  font-size: 10px;
  color: #DFBE7D;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 解耦式非对称 HUD（丝巾身份签 · 机械翻牌计分器 · 机械按键） */
.hud-bar {
  position: relative;
  z-index: 40;
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

body.is-hub3d-view .hud-bar {
  position: fixed;
  top: 38px;
  left: 18px;
  right: 18px;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

body.is-hub3d-view .hud-bar > * {
  pointer-events: auto;
}

body.is-hub3d-act .hud-bar {
  opacity: 0;
  pointer-events: none !important;
  transform: translateY(-10px);
}

body.is-hub3d-act .hud-bar > * {
  pointer-events: none !important;
}

/* 左侧：酒红斜纹真丝领巾身份牌 */
.hud-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(223, 190, 125, 0.44);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04) 0 2px,
      transparent 2px 6px
    ),
    rgba(116, 26, 42, 0.9);
  backdrop-filter: blur(12px);
  color: #FFF8EC;
  box-shadow: 0 10px 26px rgba(14, 10, 12, 0.22);
}

.avatar-pair {
  display: flex;
  align-items: center;
}

.hud-avatar {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
  border: 1.5px solid #DFBE7D;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.bruce-avatar {
  margin-left: -10px;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hud-nickname {
  font-size: 15px;
  font-weight: 800;
  color: #FFF8EC;
  letter-spacing: 0.01em;
}

.hud-owner-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #151417;
  background: #DFBE7D;
  padding: 1px 7px;
  border-radius: 3px;
}

.mood-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  margin-top: 3px;
}

.mood-pill-happy {
  background: rgba(255, 248, 236, 0.16);
  color: #F4E7C9;
  border: 1px solid rgba(223, 190, 125, 0.38);
}

.mood-pill-sulk {
  background: rgba(255, 118, 102, 0.24);
  color: #FFD9D4;
  border: 1px solid rgba(255, 118, 102, 0.55);
}

/* 中右：机械翻牌幸福计分器 */
.hud-score-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 152px;
  padding: 6px 13px 7px;
  border-radius: 12px;
  border: 1px solid rgba(223, 190, 125, 0.38);
  background: linear-gradient(180deg, rgba(30, 27, 30, 0.88) 0%, rgba(19, 17, 20, 0.92) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(10, 8, 12, 0.22);
  overflow: hidden;
}

.hud-score-pill::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 59%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.score-flap-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.score-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: rgba(245, 239, 226, 0.66);
}

.score-value {
  font-size: 27px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #DFBE7D;
  line-height: 1.05;
}

body.mood-sulk .score-value {
  color: #FF7B6B;
}

.score-rank {
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1A130C;
  background: linear-gradient(180deg, #F5DA95, #D5AA52);
  padding: 1px 7px;
  border-radius: 99px;
}

/* 右上角高定重构：黑曜石细金线悬浮拨片胶囊（替代旧三大黑边方块键） */
.hud-actions.hud-atelier-dock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(223, 190, 125, 0.42);
  background: rgba(20, 18, 17, 0.78);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 194, 0.14),
    0 10px 28px rgba(10, 8, 6, 0.22);
}

.dock-item {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(250, 242, 225, 0.78);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 110ms var(--ease-out);
}

.dock-item:active {
  transform: scale(0.96);
}

.dock-item.is-active {
  background: rgba(223, 190, 125, 0.2);
  color: #FFEBB7;
  box-shadow: inset 0 0 0 1px rgba(223, 190, 125, 0.38);
}

.dock-item.is-honors {
  color: #F4D891;
}

.dock-item.is-alert {
  background: rgba(180, 48, 40, 0.45);
  color: #FFE5DF;
}

@media (hover: hover) and (pointer: fine) {
  .dock-item:hover {
    background: rgba(255, 244, 218, 0.11);
    color: #FFF8EB;
  }
}

.dock-divider {
  width: 1px;
  height: 16px;
  background: rgba(223, 190, 125, 0.26);
  margin: 0 2px;
}

.dock-sound-btn {
  position: relative;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(223, 190, 125, 0.44);
  background: rgba(223, 190, 125, 0.14);
  color: #F4D891;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 110ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
}

.dock-sound-btn:active {
  transform: scale(0.93);
}

.dock-sound-btn .mute-slash {
  opacity: 0;
  transition: opacity 150ms ease;
}

.dock-sound-btn.is-muted {
  color: rgba(246, 239, 226, 0.45);
  border-color: rgba(246, 239, 226, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.dock-sound-btn.is-muted .wave-inner,
.dock-sound-btn.is-muted .wave-outer {
  opacity: 0.15;
}

.dock-sound-btn.is-muted .mute-slash {
  opacity: 1;
  stroke: #FF8E7A;
}

/* 全局物理按键质感（取代传统圆角胶囊按钮） */
.btn-pill {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 15px;
  border-radius: 7px;
  border: 1.5px solid #151417;
  background: var(--tag-paper);
  color: #151417;
  box-shadow: 0 3px 0 #151417, 0 8px 16px rgba(0, 0, 0, 0.18);
  transition: transform 110ms var(--ease-out), box-shadow 110ms var(--ease-out), background-color 140ms ease;
}

.btn-pill:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #151417, 0 3px 6px rgba(0, 0, 0, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .btn-pill:hover {
    background: var(--tag-paper-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #151417, 0 10px 20px rgba(0, 0, 0, 0.22);
  }
  .btn-primary:hover {
    background: var(--silk-burgundy-deep) !important;
  }
}

.btn-primary {
  background: var(--silk-burgundy);
  color: #FFF8EC;
  box-shadow: 0 3px 0 #151417, inset 0 1px 0 rgba(255, 232, 200, 0.22), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.btn-cypress {
  background: var(--cypress);
  color: #FFFDF8;
}

.btn-block {
  width: 100%;
  padding: 12px 18px;
  font-size: 14.5px;
}

.btn-pill:disabled {
  opacity: 0.44;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 1px 0 #151417;
}

/* 主舞台容器 */
.stage-wrap {
  max-width: 1120px;
  margin: 14px auto 40px;
  padding: 0 14px;
  min-width: 0;
}

body.is-hub3d-view .stage-wrap {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.view-section {
  min-width: 0;
  max-width: 100%;
}

body.is-hub3d-view #view-map,
body.is-hub3d-view #view-scene {
  width: 100%;
  height: 100%;
}

/* 低于 80 分冷战提示牌 */
.anhedonia-banner {
  margin-bottom: 14px;
  border-radius: 10px;
  background: #F6ECE9;
  border: 1.5px solid #151417;
  box-shadow: 0 4px 0 #151417, 0 12px 26px rgba(0, 0, 0, 0.26);
  padding: 12px 16px;
}

body.is-hub3d-view .anhedonia-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 66px;
  z-index: 20;
  width: min(560px, calc(100vw - 36px));
  margin-bottom: 0;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(154, 123, 79, 0.55);
  background: rgba(247, 242, 234, 0.96);
  box-shadow: 0 16px 38px rgba(10, 8, 6, 0.34);
  transition: opacity 180ms ease;
}

body.is-hub3d-view:has(.hub3d-concierge-popover.is-open, .hub3d-keyholder.is-open, .hub3d-chat-popover.is-open) .anhedonia-banner {
  opacity: 0;
  pointer-events: none;
}

body.is-hub3d-act .anhedonia-banner {
  display: none !important;
}

.anhedonia-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.anhedonia-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1.5px solid #151417;
  object-fit: cover;
}

.anhedonia-copy {
  flex: 1;
  min-width: 0;
}

.anhedonia-copy strong {
  color: var(--danger);
  font-size: 14.5px;
}

.anhedonia-copy p {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* 林荫街区双幕剧场大厅 */
.lobby-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lobby-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1.5px solid #151417;
  background: var(--glass-strong);
  box-shadow: 0 4px 0 #151417, var(--shadow-soft);
}

.lobby-title-block {
  max-width: 660px;
}

.lobby-title-block h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}

.lobby-title-block p {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.pill-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 4px;
  background: #151417;
  color: #DFBE7D;
}

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

.lobby-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1.5px solid #151417;
  background: var(--glass-strong);
  box-shadow: 0 4px 0 #151417, var(--shadow-soft);
  transition: transform 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lobby-card:hover {
    transform: translateY(-2px);
  }
}

.lobby-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1.5px solid #151417;
  overflow: hidden;
  background: var(--bg-soft);
}

.lobby-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lobby-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

.lobby-index {
  font-weight: 900;
  color: var(--silk-burgundy);
  letter-spacing: 0.08em;
}

.lobby-card h3 {
  font-size: 18px;
  font-weight: 800;
}

.lobby-desc {
  font-size: 13px;
  color: var(--ink-muted);
  flex: 1;
}

.lobby-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reward-chip,
.hazard-chip {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #151417;
}

.reward-chip {
  background: #DCEEE4;
  color: var(--cypress);
}

.hazard-chip {
  background: #FBE4E1;
  color: var(--danger);
}

.lobby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* 低于 80 分私厨鲜食冷柜（House Pantry · 静奢手账与亚麻风） */
.pantry-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pantry-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 6px;
  border: 1px solid rgba(23, 19, 15, 0.22);
  background: #F7F2EA;
  box-shadow: 0 18px 40px rgba(10, 8, 6, 0.24);
}

.pantry-bruce-img {
  width: 88px;
  height: 88px;
  border-radius: 4px;
  border: 1px solid rgba(154, 123, 79, 0.55);
  object-fit: cover;
}

.pantry-hero-text {
  flex: 1;
  min-width: 0;
}

.pantry-hero-text h2 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #17130F;
  margin-top: 6px;
}

.pantry-hero-text p {
  font-size: 13px;
  color: #6E655A;
  margin-top: 5px;
}

.treat-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
}

.treat-pill-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 4px;
  background: #F7F2EA;
  border: 1px solid rgba(23, 19, 15, 0.16);
  box-shadow: 0 14px 34px rgba(10, 8, 6, 0.16);
  transition: transform 200ms var(--ease-out), border-color 180ms ease;
}

.treat-pill-card.is-reserve {
  background: #EFE8DC;
  border-top: 2px solid #9A7B4F;
}

.treat-pill-card.is-dim {
  opacity: 0.72;
}

.treat-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.treat-art {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  border: 1px solid rgba(154, 123, 79, 0.36);
  background: #FAF6EE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.treat-en {
  font-size: 11px;
  font-weight: 700;
  color: #742D2C;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.treat-cn {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
  font-weight: 600;
  color: #17130F;
  margin-top: 2px;
}

.treat-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #6E655A;
  font-weight: 500;
}

.treat-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #6E655A;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 19, 15, 0.14);
}

.treat-stats strong {
  font-family: Georgia, serif;
  color: #17130F;
  font-weight: 600;
}

.treat-stats span {
  white-space: nowrap;
}

.video-rescue-banner {
  padding: 18px 22px;
  border-radius: 4px;
  background: #EFE8DC;
  border: 1px solid rgba(154, 123, 79, 0.55);
  box-shadow: 0 16px 36px rgba(10, 8, 6, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rescue-banner-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.rescue-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  border: 1px solid rgba(154, 123, 79, 0.45);
  background: #F7F2EA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.rescue-banner-lead strong {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  color: #17130F;
}

.rescue-banner-lead p {
  font-size: 12.5px;
  color: #6E655A;
  margin-top: 3px;
}

.pantry-steward-frame {
  padding: 22px 20px;
  border-radius: 6px;
  border: 1px solid rgba(154, 123, 79, 0.45);
  background: #F7F2EA;
  color: #17130F;
  text-align: center;
  margin: 12px 0;
}

.pantry-steward-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #EFE8DC;
  border: 1px solid rgba(154, 123, 79, 0.4);
}

.pantry-steward-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #742D2C;
}

.pantry-steward-title {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  font-weight: 600;
  margin: 6px 0 4px;
}

.pantry-steward-sub {
  font-size: 12px;
  color: #6E655A;
}

.pantry-steward-timer {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  margin-top: 10px;
  color: #9A7B4F;
}

/* 深胡桃木 & 酒红丝绒 · 私人俱乐部荣誉挂牌墙 */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 8, 9, 0.62);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
}

.drawer-panel.honors-cabinet {
  width: min(448px, 100vw);
  height: 100dvh;
  border-left: 2px solid #DFBE7D;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 224, 180, 0.018) 0 3px,
      transparent 3px 11px
    ),
    linear-gradient(168deg, #271915 0%, #19100D 52%, #120B09 100%);
  color: #F6EFE2;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  box-shadow:
    inset 1px 0 0 rgba(255, 228, 178, 0.22),
    -18px 0 48px rgba(0, 0, 0, 0.56);
  animation: cabinetSlideIn 260ms var(--ease-drawer);
}

@keyframes cabinetSlideIn {
  from { opacity: 0.6; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(223, 190, 125, 0.28);
  flex: 0 0 auto;
}

.drawer-head h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FAF2E1;
  margin-top: 5px;
}

.honors-tag {
  background: rgba(223, 190, 125, 0.16);
  color: #DFBE7D;
  border: 1px solid rgba(223, 190, 125, 0.45);
}

.btn-honors-close {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 12px;
  background: #2C1E19;
  color: #F2DFB6;
  border-color: rgba(223, 190, 125, 0.55);
  box-shadow: 0 2px 0 #090605;
}

@media (hover: hover) and (pointer: fine) {
  .btn-honors-close:hover {
    background: #3B2821;
    transform: translateY(-1px);
  }
}

.swap-rule-note {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid rgba(223, 190, 125, 0.28);
  font-size: 11.5px;
  line-height: 1.48;
  background: rgba(15, 9, 8, 0.52);
  color: rgba(246, 239, 226, 0.8);
}

/* 内凹酒红天鹅绒展板 */
.honors-velvet-board {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(223, 190, 125, 0.42);
  background:
    radial-gradient(ellipse at 50% 15%, rgba(125, 30, 46, 0.58) 0%, rgba(58, 12, 24, 0.92) 56%, #240710 100%);
  box-shadow:
    inset 0 8px 24px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 224, 170, 0.1);
}

.lb-empty {
  padding: 28px 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(246, 239, 226, 0.72);
}

.lb-plaque {
  position: relative;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(223, 190, 125, 0.28);
  background: linear-gradient(155deg, #2D1F1B 0%, #1C1310 100%);
  color: #F6EFE2;
  box-shadow: 0 3px 0 rgba(9, 6, 5, 0.85), 0 8px 16px rgba(0, 0, 0, 0.34);
}

/* 第 1 名：宽幅拉丝香槟黄铜主荣誉铭牌 + 四角黄铜铆钉 */
.lb-plaque.is-rank-1 {
  padding: 12px 14px;
  border: 1.5px solid #F7DF9E;
  background: linear-gradient(135deg, #FCEBB6 0%, #E0BE74 48%, #B98C3C 100%);
  color: #1B120C;
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 235, 0.72),
    0 4px 0 #4B3310,
    0 12px 24px rgba(0, 0, 0, 0.46);
}

.lb-plaque.is-rank-2 {
  border-color: rgba(224, 230, 240, 0.65);
  background: linear-gradient(155deg, #2C2E35 0%, #1B1D22 100%);
}

.lb-plaque.is-rank-3 {
  border-color: rgba(215, 161, 121, 0.58);
  background: linear-gradient(155deg, #35231B 0%, #211510 100%);
}

.lb-plaque.is-me {
  outline: 2px solid #DFBE7D;
  outline-offset: 2px;
}

.lb-plaque.is-prey:not(.is-rank-1) {
  border-color: rgba(223, 190, 125, 0.52);
}

.plaque-rivet {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF6DA, #7A541C);
  border: 1px solid #4A320F;
}
.plaque-rivet.r-tl { top: 5px; left: 5px; }
.plaque-rivet.r-tr { top: 5px; right: 5px; }
.plaque-rivet.r-bl { bottom: 5px; left: 5px; }
.plaque-rivet.r-br { bottom: 5px; right: 5px; }

.lb-sovereign-banner {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #4A2D09;
  padding-bottom: 6px;
  margin-bottom: 7px;
  border-bottom: 1px dashed rgba(74, 45, 9, 0.34);
}

.lb-plaque-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lb-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.lb-rank {
  flex-shrink: 0;
  font-weight: 900;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: center;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(223, 190, 125, 0.14);
  color: #DFBE7D;
  border: 1px solid rgba(223, 190, 125, 0.3);
}

.lb-plaque.is-rank-1 .lb-rank {
  background: #23160C;
  color: #FCE9B2;
  border-color: #4B3310;
}

.lb-plaque.is-rank-2 .lb-rank {
  color: #E3E8F0;
  border-color: rgba(227, 232, 240, 0.4);
  background: rgba(227, 232, 240, 0.12);
}

.lb-plaque.is-rank-3 .lb-rank {
  color: #E6B18A;
  border-color: rgba(230, 177, 138, 0.4);
  background: rgba(230, 177, 138, 0.12);
}

.lb-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1.5px solid #DFBE7D;
  object-fit: cover;
}

.lb-plaque.is-rank-1 .lb-avatar {
  width: 40px;
  height: 40px;
  border-color: #2B1B0C;
}

.lb-info {
  min-width: 0;
  flex: 1;
}

.lb-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-weight: 800;
  font-size: 13.5px;
}

.lb-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--silk-burgundy);
  color: #FFF8EC;
  border: 1px solid rgba(223, 190, 125, 0.55);
}

.lb-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.lb-sub {
  font-size: 10.5px;
  color: rgba(246, 239, 226, 0.68);
  white-space: nowrap;
}

.lb-plaque.is-rank-1 .lb-sub {
  color: #3E280D;
  font-weight: 700;
}

.lb-mood-tag {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.lb-mood-tag.is-happy {
  background: rgba(223, 190, 125, 0.14);
  color: #EBD29B;
  border: 1px solid rgba(223, 190, 125, 0.28);
}

.lb-plaque.is-rank-1 .lb-mood-tag.is-happy {
  background: rgba(35, 22, 12, 0.12);
  color: #2A1908;
  border-color: rgba(35, 22, 12, 0.25);
}

.lb-mood-tag.is-sulk {
  background: rgba(54, 86, 128, 0.45);
  color: #CBE0FA;
  border: 1px solid rgba(147, 181, 219, 0.45);
}

.lb-prey-badge {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(223, 190, 125, 0.18);
  color: #FFE49E;
  border: 1px dashed rgba(223, 190, 125, 0.62);
}

.lb-plaque.is-rank-1 .lb-prey-badge {
  background: rgba(35, 22, 12, 0.85);
  color: #FCE9B2;
  border-style: solid;
  border-color: #23160C;
}

.lb-score-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.lb-score {
  font-size: 21px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #DFBE7D;
}

.lb-plaque.is-rank-1 .lb-score {
  font-size: 23px;
  color: #1B120C;
}

.lb-score-unit {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-top: 2px;
}

.drawer-footer {
  flex: 0 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(223, 190, 125, 0.25);
}

.btn-honors-switch {
  background: #2A1C17;
  color: #F6E6C4;
  border-color: rgba(223, 190, 125, 0.5);
  box-shadow: 0 3px 0 #090605;
}

@media (hover: hover) and (pointer: fine) {
  .btn-honors-switch:hover {
    background: #3A2720;
    transform: translateY(-1px);
  }
}

.modal-card {
  width: min(500px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  background: #F6F1E5;
  border: 2px solid #151417;
  box-shadow: 0 6px 0 #151417, 0 26px 60px rgba(0, 0, 0, 0.42);
  padding: 24px;
  animation: modalIn 200ms var(--ease-out);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-pill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 4px;
  background: #151417;
  color: #DFBE7D;
}

.modal-title {
  font-size: 22px;
  font-weight: 900;
  margin: 8px 0 8px;
}

.modal-lead {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.modal-bruce-thumb {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 2px solid #151417;
  object-fit: cover;
  display: block;
  margin: 8px auto 12px;
}

.soft-callout {
  background: #EDE4D1;
  border: 1.5px solid #151417;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 13px;
}

.soft-callout ul {
  padding-left: 18px;
  margin-top: 6px;
  color: var(--ink-muted);
}

.modal-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.soft-hint {
  font-size: 12px;
  color: var(--ink-muted);
}

.score-summary-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.5px solid #151417;
  background: #EDE4D1;
  margin-bottom: 14px;
}

.score-summary-pill strong {
  font-size: 24px;
}

.swap-compare-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  border: 1.5px solid #151417;
  background: #EDE4D1;
  text-align: center;
  margin-bottom: 14px;
}

.swap-num {
  font-size: 24px;
  font-weight: 900;
}

.swap-num.is-new {
  color: var(--cypress);
  font-size: 28px;
}

.swap-arrow {
  font-size: 20px;
  color: var(--silk-burgundy);
  font-weight: 900;
}

/* 归家序幕：日光大理石门廊 + 棉麻拍立得迎宾门卡夹 */
.prologue-backdrop {
  z-index: 120;
  padding: 0;
  background: #DAD0C0;
  backdrop-filter: none;
  overflow: hidden;
  display: block;
}

.prologue-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: pointer;
}

.prologue-sunbloom {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  background: radial-gradient(circle at 50% 48%, #FFFDF5 0%, #FFEAB3 48%, rgba(255, 244, 212, 0.96) 100%);
  transition: opacity 640ms var(--ease-out) 260ms;
}

.prologue-backdrop.is-opening .prologue-sunbloom {
  opacity: 1;
}

.prologue-skip-btn {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 20;
  border: 1px solid rgba(92, 68, 42, 0.24);
  background: rgba(252, 248, 241, 0.86);
  backdrop-filter: blur(10px);
  color: #3B2B22;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(42, 28, 16, 0.14);
}

.prologue-overlay-ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease-out), transform 460ms var(--ease-out);
}

.prologue-overlay-ui.is-foyer-ready {
  opacity: 1;
  transform: translateY(0);
}

.prologue-backdrop.is-opening .prologue-overlay-ui {
  opacity: 0;
  pointer-events: none !important;
  transition-duration: 200ms;
}

.prologue-overlay-ui.is-foyer-ready > .sunlit-folio-card,
.prologue-overlay-ui.is-foyer-ready > .prologue-welcome {
  pointer-events: auto;
}

/* 新住户：阳光棉麻纸面 + 拍立得双搭档卡夹 */
.sunlit-folio-card {
  width: min(740px, 100%);
  max-height: calc(100dvh - 82px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 18px 22px;
  align-items: center;
  border-radius: 20px;
  padding: 20px 22px;
  background: linear-gradient(160deg, rgba(254, 250, 243, 0.96) 0%, rgba(246, 238, 224, 0.94) 100%);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(196, 164, 114, 0.42);
  color: #241C18;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 56px rgba(34, 22, 12, 0.24);
}

.folio-silk-tag {
  background: #8B2234;
  color: #FFF8EC;
  border: 0;
  letter-spacing: 0.08em;
}

.sunlit-folio-card .onboarding-head h1 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  margin-top: 8px;
  color: #221915;
  letter-spacing: -0.01em;
}

.sunlit-folio-card .sub-copy {
  font-size: 12.5px;
  color: #6B5D52;
  margin-top: 4px;
}

.polaroid-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.polaroid-card {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(182, 156, 120, 0.45);
  background: #FFFFFF;
  padding: 7px 7px 9px;
  text-align: left;
  color: #241C18;
  box-shadow: 0 8px 20px rgba(48, 32, 16, 0.1);
  transition: transform 180ms var(--ease-out), border-color 160ms ease, box-shadow 180ms ease;
}

.polaroid-card[data-owner="Alex"] {
  transform: rotate(-1.6deg);
}

.polaroid-card[data-owner="Meya"] {
  transform: rotate(1.6deg);
}

.polaroid-card input {
  display: none;
}

.polaroid-card.selected {
  transform: rotate(0deg) translateY(-2px);
  border-color: #8B2234;
  box-shadow: 0 0 0 2px rgba(139, 34, 52, 0.18), 0 12px 26px rgba(139, 34, 52, 0.14);
}

.polaroid-photo-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 0.86;
  background: #F4EDE2;
}

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

.polaroid-stamp {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #8B2234;
  color: #FFF8EC;
  font-size: 9.5px;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}

.polaroid-card.selected .polaroid-stamp {
  opacity: 1;
  transform: scale(1);
}

.polaroid-cap {
  padding: 6px 2px 0;
}

.owner-name {
  font-weight: 900;
  display: block;
  font-size: 13.5px;
  color: #241C18;
}

.owner-role {
  font-size: 10.5px;
  color: #7A6B5F;
}

.folio-bruce-peek {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(235, 224, 206, 0.72);
  border: 1px solid rgba(190, 158, 112, 0.34);
}

.peek-bruce-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #C89B4B;
  flex-shrink: 0;
}

.peek-bruce-quote {
  font-size: 11.5px;
  line-height: 1.42;
  color: #4A392E;
  font-weight: 600;
}

.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field-group label {
  font-size: 12px;
  font-weight: 800;
  color: #362821;
}

.ai-name-btn {
  appearance: none;
  border: 1px solid rgba(139, 34, 52, 0.28);
  background: rgba(139, 34, 52, 0.08);
  color: #8B2234;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 140ms ease, transform 110ms var(--ease-out);
}

.ai-name-btn:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .ai-name-btn:hover {
    background: rgba(139, 34, 52, 0.16);
  }
}

.sunlit-folio-card .field-group input[type="text"] {
  font-size: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(168, 140, 102, 0.48);
  background: #FFFFFF;
  color: #241C18;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.sunlit-folio-card .field-group input[type="text"]:focus {
  outline: none;
  border-color: #8B2234;
  box-shadow: 0 0 0 3px rgba(139, 34, 52, 0.12);
}

.sunlit-folio-card .field-group input::placeholder {
  color: #A89A8C;
  font-size: 13px;
}

/* 4 位触摸数字锁槽（兼顾键盘直输与真机可点按质感） */
.pin-slots-wrap {
  position: relative;
  height: 44px;
}

.pin-native-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  font-size: 16px;
  z-index: 2;
  cursor: text;
}

.pin-slots-visual {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 100%;
}

.pin-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(168, 140, 102, 0.48);
  background: #FFFFFF;
  font-size: 18px;
  font-weight: 900;
  color: #8B2234;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.pin-slot.is-filled {
  background: #FFF9EE;
  border-color: #C79A44;
}

.pin-native-input:focus + .pin-slots-visual .pin-slot.is-active {
  border-color: #8B2234;
  box-shadow: 0 0 0 3px rgba(139, 34, 52, 0.12);
}

.sunlit-folio-card .field-hint {
  font-size: 11px;
  color: #7D6E62;
}

.form-error {
  font-size: 12px;
  color: #C93B2B;
  font-weight: 700;
}

.btn-sunlit-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #982539 0%, #731828 100%);
  color: #FFF8EC;
  border: 1px solid rgba(255, 226, 178, 0.42);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(115, 24, 40, 0.28);
}

@media (hover: hover) and (pointer: fine) {
  .btn-sunlit-enter:hover {
    background: linear-gradient(135deg, #A92B41 0%, #811C2E 100%) !important;
    box-shadow: 0 12px 30px rgba(115, 24, 40, 0.34);
  }
}

.folio-perk-note {
  text-align: center;
  font-size: 11px;
  color: #6E5F54;
}

/* 老住户：暖白棉麻底部迎宾卡 */
.prologue-welcome {
  width: min(448px, 100%);
}

.linen-resident-dock {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid rgba(196, 164, 114, 0.45);
  background: rgba(253, 249, 242, 0.94);
  backdrop-filter: blur(18px);
  color: #241C18;
  box-shadow: 0 20px 48px rgba(34, 22, 12, 0.24);
}

.welcome-resident-meta {
  display: flex;
  align-items: center;
  gap: 11px;
}

.welcome-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.welcome-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid #C89B4B;
}

.welcome-avatar.is-bruce {
  margin-left: -10px;
}

.welcome-text-col {
  min-width: 0;
  flex: 1;
}

.welcome-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #8B2234;
}

.welcome-resident-name {
  font-size: 16.5px;
  font-weight: 900;
  color: #241C18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-score-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #6B5D52;
}

.welcome-dock-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.prologue-switch-link {
  appearance: none;
  border: 0;
  background: none;
  color: #7D1E2E;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px;
}

.foyer-paw-whisper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(92vw, 480px);
  padding: 5px 13px;
  border-radius: 99px;
  background: rgba(253, 249, 242, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(190, 158, 112, 0.35);
  color: #3D2E25;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

.whisper-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #8B2234;
  box-shadow: 0 0 8px rgba(139, 34, 52, 0.45);
}

@media (max-width: 720px) {
  .sunlit-folio-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px 15px;
  }
  .polaroid-pair {
    gap: 9px;
    margin: 9px 0;
  }
  .polaroid-photo-wrap {
    aspect-ratio: 16 / 9;
  }
  .folio-bruce-peek {
    display: none;
  }
}

.video-placeholder-frame {
  border-radius: 10px;
  border: 1.5px solid #151417;
  background: #17161B;
  color: #F6F1E5;
  padding: 26px 16px;
  text-align: center;
  margin: 12px 0;
}

/* 浮字反馈层 */
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 250;
  overflow: hidden;
}

.fx-float-num {
  position: fixed;
  font-size: 26px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  animation: floatUp 880ms var(--ease-out) forwards;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
}

.fx-float-num.pos { color: var(--cypress); }
.fx-float-num.neg { color: var(--danger); }

.fx-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  animation: particleFly 620ms var(--ease-out) forwards;
}

@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, -10%) scale(0.9); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -145%) scale(1); }
}

@keyframes particleFly {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3); }
}

@media (max-width: 720px) {
  .lobby-header {
    padding: 16px;
  }
  .lobby-grid {
    grid-template-columns: 1fr;
  }
  .lobby-card {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .ticker-bar {
    gap: 6px;
    padding: 0 10px;
  }
  .ticker-bar .api-mode-detail {
    display: none;
  }
  .hud-bar {
    gap: 8px;
  }
  body.is-hub3d-view .hud-bar {
    top: 34px;
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px 8px;
  }
  body.is-hub3d-view .hud-identity {
    padding: 5px 10px 5px 6px;
    min-width: 0;
  }
  body.is-hub3d-view .hud-avatar {
    width: 30px;
    height: 30px;
  }
  body.is-hub3d-view .hud-owner-tag {
    display: none;
  }
  body.is-hub3d-view .hud-nickname {
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 92px;
  }
  body.is-hub3d-view .mood-pill {
    font-size: 9.5px;
    padding: 1px 5px;
  }
  body.is-hub3d-view .hud-score-pill {
    min-width: 98px;
    padding: 4px 10px 5px;
  }
  body.is-hub3d-view .score-label {
    display: none;
  }
  body.is-hub3d-view .score-value {
    font-size: 22px;
  }
  body.is-hub3d-view .hud-actions.hud-atelier-dock {
    grid-column: 1 / -1;
    justify-self: start;
    gap: 2px;
    padding: 3px;
  }
  body.is-hub3d-view .dock-item {
    padding: 5px 10px;
    font-size: 11.5px;
  }
  body.is-hub3d-view .dock-sound-btn {
    width: 28px;
    height: 28px;
  }
  body.is-hub3d-view .anhedonia-banner {
    left: 10px;
    bottom: 62px;
    width: calc(100vw - 20px);
    padding: 9px 11px;
  }
  .anhedonia-thumb {
    display: none;
  }
  .treat-shelf {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Plan B · HUD 状态条 / 私厨挑嘴标签 / 荣誉墙状态标 */
.hud-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.hud-status-strip:empty {
  display: none;
}

.hud-stat-chip {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.01em;
}

.hud-stat-chip.is-shield {
  background: rgba(65, 132, 92, 0.25);
  border: 1px solid rgba(114, 201, 146, 0.45);
  color: #D2F6DC;
}

.hud-stat-chip.is-crown {
  background: rgba(223, 190, 125, 0.22);
  border: 1px solid rgba(246, 214, 134, 0.56);
  color: #FCE6B0;
}

.hud-stat-chip.is-debt {
  background: rgba(220, 88, 72, 0.26);
  border: 1px solid rgba(255, 132, 114, 0.55);
  color: #FFDCD6;
}

.hud-stat-chip.is-revenge {
  background: rgba(154, 48, 62, 0.85);
  border: 1px solid rgba(255, 208, 134, 0.72);
  color: #FFF4DC;
}

.treat-palate-note {
  font-size: 11px;
  font-weight: 700;
  color: #742D2C;
  margin-top: 5px;
}

.lb-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.lb-status-pill.is-shield {
  background: rgba(65, 132, 92, 0.16);
  color: #29593B;
}

.lb-status-pill.is-crown {
  background: rgba(154, 123, 79, 0.2);
  color: #6B4D21;
}

.lb-status-pill.is-debt {
  background: rgba(164, 52, 46, 0.14);
  color: #8E2822;
}
