:root {
  --bg-deep: #0b0e17;
  --bg-panel: rgba(18, 22, 34, 0.92);
  --border-gold: rgba(244, 210, 140, 0.28);
  --gold: #f4d28c;
  --gold-bright: #ffe3a3;
  --crimson: #d9483b;
  --jade: #5cc9a7;
  --text-main: #f3efe6;
  --text-muted: #a9a499;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: radial-gradient(circle at top, #1b2236 0%, #090b12 75%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* 顶部 HUD */
.hud-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(11, 14, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
}

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

.live-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(217, 72, 59, 0.22);
  border: 1px solid rgba(217, 72, 59, 0.6);
  color: #ffb4ab;
}
.live-badge.offline {
  background: rgba(169, 164, 153, 0.16);
  border-color: rgba(169, 164, 153, 0.4);
  color: #cfcac0;
}

.streamer-pill {
  background: rgba(244, 210, 140, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pill-edit { opacity: 0.7; margin-left: 4px; font-size: 11px; }

.stat-pill {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.hud-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.hud-btn:hover { background: rgba(244, 210, 140, 0.18); }
.hud-btn:active { transform: scale(0.95); }
.tour-btn {
  background: linear-gradient(135deg, rgba(92, 201, 167, 0.22), rgba(102, 166, 255, 0.22));
  border-color: rgba(130, 210, 255, 0.45);
  color: #d9f3ff;
  font-weight: 600;
}

/* 三栏导播台布局 */
.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(320px, 460px) 300px;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 12px;
}

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

.chain-progress {
  font-size: 12px;
  color: var(--jade);
  margin-bottom: 8px;
}

.event-log {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.event-log li {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.45;
}
.log-muted { color: var(--text-muted); }

.chain-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.chain-badge {
  font-size: 11px;
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chain-badge.done {
  background: rgba(244, 210, 140, 0.14);
  border-color: rgba(244, 210, 140, 0.45);
  color: var(--gold-bright);
}

/* 中央 9:16 舞台 */
.stage-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  background: #06070c;
  user-select: none;
}

.stage-world {
  position: relative;
  width: 100%;
  height: 100%;
  transition: filter 0.6s ease, transform 0.25s ease;
}

/* 5 种全局光源模式 */
.stage-frame.lighting-dark .stage-world {
  filter: brightness(0.28) contrast(1.15) saturate(0.75);
}
.stage-frame.lighting-warm .stage-world {
  filter: brightness(1.02) saturate(1.06) sepia(0.06);
}
.stage-frame.lighting-cold .stage-world {
  filter: brightness(0.9) hue-rotate(-10deg) saturate(0.9);
}
.stage-frame.lighting-gold .stage-world {
  filter: brightness(1.08) saturate(1.22) contrast(1.05);
}
.stage-frame.lighting-storm .stage-world {
  filter: brightness(0.76) contrast(1.15) saturate(0.8);
}

.stage-layer {
  position: absolute;
  display: block;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, filter 0.25s ease;
}

.clickable-prop {
  pointer-events: auto;
  cursor: pointer;
}
.clickable-prop:hover {
  filter: drop-shadow(0 0 8px rgba(255, 227, 163, 0.55));
}
.clickable-prop:active {
  transform: scale(0.96);
}

/* Z-Index 12层渲染栈 */
.z-0 { z-index: 0; }
.z-5 { z-index: 5; }
.z-10 { z-index: 10; }
.z-12 { z-index: 12; }
.z-15 { z-index: 15; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-52 { z-index: 52; }
.z-53 { z-index: 53; }
.z-60 { z-index: 60; }
.z-61 { z-index: 61; }
.z-62 { z-index: 62; }
.z-65 { z-index: 65; }
.z-66 { z-index: 66; }
.z-70 { z-index: 70; }
.z-72 { z-index: 72; }
.z-75 { z-index: 75; }
.z-80 { z-index: 80; }
.z-82 { z-index: 82; }
.z-85 { z-index: 85; }
.z-90 { z-index: 90; }
.z-92 { z-index: 92; }
.z-94 { z-index: 94; }
.z-95 { z-index: 95; }

/* 拱形窗与天气 */
.window-view {
  position: absolute;
  left: 80.5%;
  top: 17.2%;
  width: 23.5%;
  aspect-ratio: 1024 / 1536;
  transform: perspective(600px) rotateY(-34deg) skewY(3.5deg);
  overflow: hidden;
  border-radius: 48% 48% 4px 4px;
  cursor: pointer;
}
.window-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #101936 0%, #243b6b 100%);
  transition: background 0.8s;
}
.window-weather-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.window-frame-img {
  position: relative;
  width: 100%;
  display: block;
  pointer-events: none;
}

/* 大仙双模本体 */
.daxian-container {
  position: absolute;
  left: 24%;
  top: 18%;
  width: 54%;
  aspect-ratio: 1024 / 1536;
  pointer-events: none;
}
.daxian-rig, .daxian-pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.daxian-rig {
  animation: idleBreath 3.8s ease-in-out infinite;
}
.rig-part {
  position: absolute;
  width: 100%;
  display: block;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rig-wearable {
  pointer-events: auto;
  cursor: pointer;
}
.daxian-pose {
  object-fit: contain;
  animation: popIn 0.22s ease-out;
}

@keyframes idleBreath {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}
@keyframes popIn {
  0% { transform: scale(0.96); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* 贴墙符纸缩略 */
.custom-wall-talismans {
  position: absolute;
  left: 65%;
  top: 22%;
  width: 11%;
  height: 15%;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  pointer-events: none;
}
.wall-talisman-mini {
  width: 46%;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* 圣诞树挂件 */
.tree-ornaments {
  position: absolute;
  left: 79%;
  top: 50%;
  width: 18%;
  height: 18%;
  pointer-events: none;
}
.tree-ornament {
  position: absolute;
  width: 26%;
  animation: sway 2.8s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

/* 红灯笼拉绳 */
.lantern-wrap {
  position: absolute;
  cursor: pointer;
  transform-origin: top center;
  animation: sway 3.6s ease-in-out infinite;
}
.lantern-wrap img { width: 100%; display: block; }
.pull-cord-hint {
  position: absolute;
  top: 96%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 72, 59, 0.55);
  animation: pulseHint 1.4s infinite;
}
@keyframes pulseHint {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.07); }
}

/* 自主猪猪巡游层 */
.pig-patrol-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.patrol-pig {
  position: absolute;
  width: 18%;
  pointer-events: auto;
  cursor: pointer;
  transition: left 1.1s ease, top 0.9s ease, transform 0.25s;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.patrol-pig:hover { transform: scale(1.08); }

.npc-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.npc-actor {
  position: absolute;
  width: 28%;
  pointer-events: auto;
  cursor: pointer;
  animation: popIn 0.35s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

/* 雾气与泥印遮罩 */
.lens-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 46% 36%, rgba(255,255,255,0.62) 0%, rgba(235,245,255,0.28) 45%, transparent 72%);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.4s;
}
.lens-fog.active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.lens-mud {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 52% 45%, rgba(92, 58, 33, 0.85) 0%, rgba(72, 43, 22, 0.45) 45%, transparent 72%);
  color: #ffe8c2;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 2px 6px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lens-mud.active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 弹幕与气泡 */
.danmaku-layer {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  height: 36%;
  overflow: hidden;
  pointer-events: none;
}
.danmaku-item {
  position: absolute;
  right: -40%;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 14, 23, 0.42);
  animation: danmakuFly 6.5s linear forwards;
}
.danmaku-item.gold { color: var(--gold-bright); border: 1px solid rgba(244,210,140,0.4); }
@keyframes danmakuFly {
  from { transform: translateX(0); }
  to { transform: translateX(-220%); }
}

.speech-bubble {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  background: rgba(13, 17, 28, 0.92);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  animation: popIn 0.2s ease;
}
.speech-speaker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #161820;
  background: var(--gold);
  padding: 1px 7px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.speech-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
}

/* 热区调试层 */
.hotspot-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hotspot-box {
  position: absolute;
  border: 1.5px dashed rgba(92, 201, 167, 0.85);
  background: rgba(92, 201, 167, 0.14);
  color: #d7fff2;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 3px;
  pointer-events: auto;
  cursor: pointer;
}

/* 暗场开播提示 */
.dark-intro-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(6,7,12,0.15) 0%, rgba(6,7,12,0.78) 100%);
  pointer-events: auto;
}
.dark-intro-card {
  width: 100%;
  background: rgba(17, 22, 34, 0.94);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.dark-intro-tag {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.dark-intro-card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-main);
}

/* 底部玩法与礼物条 */
.bottom-dock {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 8px;
}
.dock-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.dock-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.dock-tab:hover {
  background: rgba(244, 210, 140, 0.16);
  border-color: var(--border-gold);
}

.gift-strip {
  display: none;
  margin-top: 8px;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gift-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 11px;
  cursor: pointer;
}
.gift-btn:hover { background: rgba(244, 210, 140, 0.14); border-color: var(--border-gold); }
.gift-btn img { width: 34px; height: 34px; object-fit: contain; }

/* 右侧弹幕区 */
.danmaku-panel { display: flex; flex-direction: column; height: 330px; }
.chat-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  padding-right: 4px;
}
.chat-msg {
  line-height: 1.45;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}
.chat-user { color: var(--gold); font-weight: 700; margin-right: 4px; }
.chat-form { display: flex; gap: 6px; margin-top: 8px; }
.chat-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
}

/* 按钮通用 */
.btn-gold {
  background: linear-gradient(135deg, #f4d28c, #d99b38);
  color: #161820;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-gold-sm {
  background: var(--gold);
  color: #161820;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modal-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  background: #131826;
  border: 1.5px solid var(--border-gold);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header h2 { margin: 0; font-size: 16px; color: var(--gold-bright); }
.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.modal-body {
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
}

/* 玩法内部组件 */
.gp-section { margin-bottom: 14px; }
.gp-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.pig-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pig-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.pig-pick-btn img { width: 52px; height: 52px; object-fit: contain; }
.pig-pick-btn:hover { border-color: var(--gold); background: rgba(244, 210, 140, 0.12); }

/* 制符画板 */
.talisman-canvas-wrap {
  position: relative;
  width: 240px;
  height: 340px;
  margin: 0 auto 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
}
#talisman-canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  display: block;
}
.stamp-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
}
.stamp-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  cursor: pointer;
}
.stamp-btn.active { border-color: var(--gold); background: rgba(244, 210, 140, 0.22); }
.stamp-btn img { width: 100%; height: 100%; object-fit: contain; }

/* 四城巡播与阿尔卑斯终章 */
.tour-view {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #060911;
  display: flex;
  flex-direction: column;
}
.tour-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(8, 12, 22, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 8px;
  flex-wrap: wrap;
}
.tour-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.tour-stop-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8edf7;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.tour-stop-btn.active {
  background: rgba(244, 210, 140, 0.2);
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 700;
}
.tour-stage-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}
.tour-stage {
  position: relative;
  height: min(74vh, 640px);
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.tour-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-layers, .tour-hotspots, .tour-fx-canvas, .tour-danmaku {
  position: absolute;
  inset: 0;
}
.tour-fx-canvas { width: 100%; height: 100%; pointer-events: none; }
.tour-danmaku { pointer-events: none; overflow: hidden; }
.tour-layer-img {
  position: absolute;
  display: block;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.8s ease, filter 0.8s ease;
}
.tour-hotspot {
  position: absolute;
  cursor: pointer;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}
.tour-hotspot span {
  font-size: 10px;
  background: rgba(8, 12, 22, 0.72);
  color: #fff;
  padding: 1px 6px;
  border-radius: 999px;
}
.tour-caption-bar {
  margin-top: 8px;
  font-size: 13px;
  color: #cfd8eb;
  text-align: center;
  max-width: 520px;
}

/* 圣诞留白卡片 */
.card-envelope-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #161b28;
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 18px;
}
.christmas-card-paper {
  background: linear-gradient(160deg, #fcf8ef 0%, #f3ead7 100%);
  color: #2c251d;
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 0 0 0 1px rgba(160, 125, 65, 0.25);
}
.card-seal { font-size: 11px; color: #8c6a32; font-weight: 700; margin-bottom: 8px; }
.card-to { margin: 0 0 10px; font-size: 16px; color: #2c251d; }
.card-content {
  min-height: 110px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.75;
  color: #3b3227;
}
.card-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b5b45;
}
.card-editor-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.card-edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.card-edit-form input, .card-edit-form textarea {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
}

/* 战报 */
.report-body { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#report-canvas { width: 100%; max-width: 340px; border-radius: 12px; border: 1px solid var(--border-gold); }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* 手机端自适应（一等公民） */
@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    max-width: 480px;
    padding: 8px 10px 20px;
  }
  .side-panel { display: none; }
  .gift-strip { display: flex; }
  .gift-strip .gift-btn { flex: 0 0 72px; }
}
