/* 乐队少女 · 桌游桌面风格（按卡面重做） */

:root {
  /* ---- 设计令牌 v1（详见 docs/设计令牌表.md） ---- */
  /* 表面 */
  --bg: #14111b;
  --bg-0: #0e0c14;
  --bg-1: #14111b;
  --panel: #1c1826;
  --panel-2: #241f31;
  --line: rgba(255, 255, 255, .09);
  --veil: rgba(8, 6, 12, .78);
  /* 文字 */
  --ink: #f6f1e9;
  --ink-2: #d8cfe8;
  --muted: #a79bb4;
  --dim: #6f6479;
  /* 语义：金（资源/奖赏/主按钮）、玫瑰（压力）、紫（技能/资料）、薄荷（成功） */
  --gold: #e8c47a;
  --gold-soft: #f3d7a0;
  --gold-strong: #f7e0b0;   /* 主按钮渐变上端（更亮一档） */
  --gold-deep: #2a1f08;     /* 金底上的深色字 */
  --rose: #e35d8a;
  --rose-soft: #ff9db8;
  --danger: #c2415f;        /* 破坏性操作（清除对局等），比压力色更沉 */
  --danger-soft: #f2899f;
  --lilac: #9b8cf0;
  --lilac-soft: #b89cff;
  --mint: #7ee2b8;
  /* 字号 5 档 */
  --fs-hero: 22px;
  --fs-title: 17px;
  --fs-body: 14px;
  --fs-2nd: 12.5px;
  --fs-cap: 11px;
  /* 圆角 3 档 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;
  /* 触摸目标最小尺寸（手机端） */
  --tap: 40px;
  /* 间距（4 的倍数） */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  /* 阴影 3 档 */
  --shadow-card: 0 10px 24px -18px rgba(0, 0, 0, .75);
  --shadow-float: 0 18px 40px -24px rgba(0, 0, 0, .85);
  --shadow-modal: 0 40px 90px -40px #000;
  /* 层级 6 层 */
  --z-content: 0;
  --z-stage: 100;
  --z-float: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-dev: 900;
  /* 卡牌体系：乐队色由 app.js 的 BAND_COLORS 逐张注入，这里是兜底 */
  --band: #9b8cf0;
  --band-tint: rgba(155, 140, 240, .16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font: 14px/1.5 "Segoe UI", "Microsoft YaHei", sans-serif;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(227, 93, 138, .16), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(155, 140, 240, .12), transparent 60%),
    var(--bg);
}

/* ---------------- 开始界面 ---------------- */
.start {
  position: fixed;
  inset: 0;
  z-index: 100;
  /* 用 flex 而不是 grid 居中：grid 的 auto 列会按内容最大宽度撑开，
     窄屏时 .start-center 的 width:100% 就跟着变宽，整页横向溢出 */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(1000px 640px at 50% 38%, rgba(227, 93, 138, .18), transparent 62%),
    #100d17;
}
.float-layer { position: fixed; inset: 0; pointer-events: none; }
.float-card {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  opacity: .28;
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transform: rotate(var(--r, 0deg));
  filter: saturate(.95);
}
@keyframes drift {
  from { transform: translateX(-32vw) rotate(var(--r, 0deg)); }
  to   { transform: translateX(132vw) rotate(var(--r, 0deg)); }
}

/* 主菜单「进行中的对局」条：继续 / 清除 */
.live-game-banner {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(155, 140, 240, .45);
  background:
    linear-gradient(180deg, rgba(155, 140, 240, .18), rgba(155, 140, 240, .04)),
    rgba(20, 17, 27, .82);
  box-shadow: 0 10px 26px -18px rgba(155, 140, 240, .9);
  font-size: 12.5px;
  color: var(--ink);
}
.live-game-banner.hidden { display: none; }
.lgb-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #7ee2b8;
  box-shadow: 0 0 0 3px rgba(126, 226, 184, .18);
}
.lgb-text { white-space: nowrap; color: #ddd5ff; }
.lgb-actions { display: flex; gap: 6px; margin-left: 4px; }
.lgb-btn {
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
}
.lgb-btn:hover { border-color: rgba(232, 196, 122, .55); background: rgba(232, 196, 122, .12); }
.lgb-btn.danger { color: var(--danger-soft); border-color: var(--danger); background: rgba(194, 65, 95, .16); }
.lgb-btn.danger:hover { color: #fff; background: rgba(194, 65, 95, .34); border-color: var(--danger-soft); }
@media (max-width: 640px) {
  .live-game-banner { flex-wrap: wrap; justify-content: center; border-radius: 14px; }
  .lgb-text { white-space: normal; }
}

.start-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 122, .35);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
.start-center h1 {
  margin: 0;
  font-size: 64px;
  letter-spacing: .16em;
  font-weight: 800;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .6);
}
.lead { color: var(--muted); margin: 12px 0 30px; font-size: 15px; letter-spacing: .04em; }
#startBtn {
  font-size: 17px;
  padding: 14px 52px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f06a97, #b45bd8);
  border: 0;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(227, 93, 138, .35);
  letter-spacing: .1em;
  transition: transform .15s, box-shadow .15s;
}
#startBtn:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(227, 93, 138, .45); }
.version { color: #6f6479; font-size: 11px; margin-top: 22px; letter-spacing: .08em; }

/* 首页底部：备案号（工信部要求悬挂）+ 隐私政策 / 用户协议 */
.site-foot { margin-top: 6px; font-size: 11px; color: #7d7290; }
.site-foot-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2px; line-height: 1.9;
}
.site-foot a { color: #9c8fb5; text-decoration: none; }
.site-foot a:hover { color: #e8c47a; text-decoration: underline; }
.site-foot .sep { margin: 0 5px; opacity: .5; }
.site-foot .site-minor { color: #6f6479; }

.setup { display: flex; gap: 14px; justify-content: center; margin-bottom: 22px; }
.setup label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.setup select {
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}
#fixedBands { min-width: 220px; }
#fixedBands option { padding: 2px 6px; }
.team-pick { outline: 2px solid var(--gold); outline-offset: 2px; }
.team-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* ---------------- 顶栏 ---------------- */
header {
  min-height: 54px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 18px;
  /* 2026-11-24：以前是 92% 透明，牌桌内容滚到顶栏下面时会「透出来」——
     玩家截图里看到的就是出牌卡隔着顶栏显出一个半透明影子。改成不透明底色。 */
  background: linear-gradient(180deg, #191521, #12101a);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 18px -14px rgba(0, 0, 0, .95);
}
/* 单人挑战 Live：目标粉丝进度条（贴在顶栏下面一行） */
.solo-challenge-bar {
  flex: 0 0 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 2px 0 0; padding: 6px 10px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(232, 196, 122, .14), rgba(232, 196, 122, .04));
  border: 1px solid rgba(232, 196, 122, .35);
  font-size: 12.5px; color: #f0e6d2;
}
.solo-challenge-bar.ok { border-color: rgba(126, 226, 184, .55);
  background: linear-gradient(90deg, rgba(126, 226, 184, .16), rgba(126, 226, 184, .04)); }
.solo-challenge-bar .sc-tag {
  padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: #241a08; background: linear-gradient(180deg, #f3d7a0, #d9b06a);
}
.solo-challenge-bar.ok .sc-tag { background: linear-gradient(180deg, #9ff0c9, #62c79b); }
.solo-challenge-bar b { color: #ffe6b8; font-variant-numeric: tabular-nums; }
.solo-challenge-bar.ok b { color: #b7f0d4; }
.solo-challenge-bar .sc-bar {
  flex: 1 1 120px; min-width: 110px; height: 8px; border-radius: 4px; overflow: hidden;
  background: rgba(255, 255, 255, .1);
}
.solo-challenge-bar .sc-bar i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #e35d8a, #e8c47a);
  transition: width .25s ease;
}
.solo-challenge-bar.ok .sc-bar i { background: linear-gradient(90deg, #62c79b, #9ff0c9); }
.solo-challenge-bar .sc-rest { color: #d8cfe8; font-size: 12px; }
/* 询问弹窗上的「结算顺序」小标签（2026-11-25 优先级阶梯） */
.trg-layer {
  display: inline-block; margin: 0 0 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; letter-spacing: .02em; color: #cfc4e2;
  background: rgba(155, 140, 240, .16); border: 1px solid rgba(155, 140, 240, .35);
}
button { white-space: nowrap; }
@media (max-width: 900px) {
  #hint { display: none; }
  .brand { font-size: 13px; }
  .wrap { height: auto; }
  body { overflow: auto; }
}
.brand { font-weight: 700; letter-spacing: .08em; }
.spacer { flex: 1; }
.hint { color: var(--muted); font-size: 12px; }
.chips { display: flex; gap: 7px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: 999px;
  padding: 4px 11px;
}
.chip.on { color: #fff; border-color: rgba(227, 93, 138, .5); color: #ffc2d6; }
/* 角色异画：金色描边 + 轻微外发光 + 右上角「异画」角标（数值/结算完全不变） */
.char-card.char-alt {
  border-color: rgba(232, 196, 122, .75);
  box-shadow: 0 0 0 1px rgba(232, 196, 122, .35), 0 0 14px rgba(232, 196, 122, .28);
  background: linear-gradient(180deg, rgba(232, 196, 122, .10), rgba(255, 255, 255, .02));
}
.char-card.char-alt .char-name-row .name { color: #ffe9b8; }
/* 异画立绘是整张卡面：按比例完整显示，两侧用同一张图的模糊铺底补满 */
.char-card.char-alt .char-art { background: #0b0910; }
.char-card.char-alt .char-art .art {
  height: 168px; object-fit: contain; object-position: center;
  position: relative; z-index: 1;
}
.char-card.char-alt .char-art .art-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: blur(12px) brightness(.42) saturate(1.15);
  transform: scale(1.15);
}
.alt-flag {
  position: absolute; right: 5px; top: 5px; z-index: 2;
  padding: 1px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: #2a1e10; background: linear-gradient(180deg, #ffe6ab, #e8c47a);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
/* 特殊板块「本轮已用过」：置灰 + 不可点 */
.card.card-spent {
  opacity: .45; filter: grayscale(.7); cursor: not-allowed;
}
.card.card-spent .card-hint { color: #ffb4b4; }
/* 限时角色提示（SP 三角初华等）：金色描边 + 轻微呼吸，别被忽略 */
.chip.limited {
  color: #ffe9b8; border-color: rgba(232, 196, 122, .75);
  background: rgba(232, 196, 122, .14); font-weight: 600;
  animation: limitedPulse 2.4s ease-in-out infinite;
}
.chip.warn { color: #ffd0d0; border-color: rgba(255, 110, 110, .8); background: rgba(255, 90, 90, .16); }
@keyframes limitedPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(232, 196, 122, 0); }
  50% { box-shadow: 0 0 10px rgba(232, 196, 122, .45); }
}
.turn-badge {
  font-size: 11px;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.turn-badge.me {
  color: #2a1a24;
  border-color: transparent;
  background: linear-gradient(120deg, #f3d7a0, #e8c47a);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(232, 196, 122, .35);
}
.turn-badge.waiting { color: var(--muted); }
.turn-badge.phase-settlement,
.turn-badge.phase-preparation { color: #cfc3dd; border-style: dashed; }

button {
  background: linear-gradient(120deg, #e35d8a, #a15bd6);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  cursor: pointer;
}
button.ghost { background: transparent; border: 1px solid var(--line); color: #d6ccdf; }
button:disabled { opacity: .3; cursor: not-allowed; }

/* ---------------- 布局 ---------------- */
.wrap {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 14px 14px;
}.table {
  display: grid;
  grid-template-columns: minmax(300px, 1.02fr) minmax(360px, 1.18fr) minmax(280px, .8fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
}
.col-mid { gap: 10px; }
.col-right .log-panel { flex: 1; min-height: 240px; }
.wrap[data-phase="live"] .col-right .log-panel { font-size: 13px; line-height: 1.75; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.panel-head h2 { margin: 0; }
#selfPanel { min-height: 0; }

@media (max-width: 1180px) {
  .table { grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr); }
  .col-right { grid-column: 1 / -1; flex-direction: row; }
  .col-right > * { flex: 1; }
}

@media (max-width: 900px) {
  body { height: auto; min-height: 100vh; overflow: auto; display: block; }
  .wrap { flex: none; height: auto; }
  .table { display: block; height: auto; }
  .col { overflow: visible; margin-bottom: 12px; }
  .col-right { display: flex; flex-direction: column; }
  .col-right > * { flex: none; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 0;
}
h2 {
  margin: 0 0 9px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 600;
}
.meta { color: var(--muted); font-size: 12px; letter-spacing: 0; font-weight: 400; }

/* 队伍乐器等级合计：金色渐变小徽章，数值变化时轻微弹一下 */
.team-inst-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #f6e7c6;
  background: linear-gradient(135deg, rgba(232, 196, 122, .22), rgba(155, 140, 240, .18));
  border: 1px solid rgba(232, 196, 122, .38);
  box-shadow: inset 0 0 10px rgba(232, 196, 122, .08);
  vertical-align: middle;
  white-space: nowrap;
  transition: box-shadow .2s ease, transform .2s ease;
}
.team-inst-chip .inst-chip-ico { width: 12px; height: 12px; opacity: .9; }
.team-inst-chip b { color: #fff; font-size: 12px; margin-left: 1px; }
.team-inst-chip.bump { animation: teamInstPop .5s ease; }
@keyframes teamInstPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); box-shadow: 0 0 14px rgba(232, 196, 122, .45); }
  100% { transform: scale(1); }
}
.wrap[data-phase="live"] .team-inst-chip { margin-left: 0; }
.row { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------------- 板块 ---------------- */
.boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.boards.small { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 9px; }

.board {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  min-height: 84px;
  cursor: pointer;
  transition: border-color .14s, transform .14s;
}
.board:hover { border-color: rgba(227, 93, 138, .55); transform: translateY(-2px); }
.board.empty { border-style: dashed; }
.board .title { font-size: 13px; font-weight: 700; }
.board .sub { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.board .effect {
  font-size: 11px;
  color: #bdaecf;
  line-height: 1.45;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board .title { display: flex; align-items: center; gap: 4px; }
.board .title .info-btn { width: 15px; height: 15px; font-size: 11px; }
.draft-picked { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.picked-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(232, 196, 122, .14);
  border: 1px solid rgba(232, 196, 122, .35);
}
.picked-chip.them { background: rgba(155, 140, 240, .14); border-color: rgba(155, 140, 240, .35); }
/* 已选角色：可点击查看技能 */
.picked-chip.clickable {
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.picked-chip.clickable:hover {
  background: rgba(232, 196, 122, .26);
  border-color: rgba(232, 196, 122, .7);
  transform: translateY(-1px);
}
.choice-bar {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  z-index: 120;
}
.choice-bar button {
  background: linear-gradient(120deg, #e8c47a, #e35d8a);
  color: #2a1620;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(227, 93, 138, .35);
}
.modal-card button.picked {
  background: rgba(232, 196, 122, .25);
  border: 1px solid var(--gold);
  color: var(--gold);
}
/* 弹窗标题行：右侧「收起」，方便先看场上再回来处理 */
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.modal-head h3 { margin: 0 0 6px; }
.modal-collapse {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 3px 10px;
  margin-bottom: 6px;
}
.board .who { font-size: 11px; color: #d5cbe2; display: flex; align-items: center; gap: 2px; }
.board .who.muted { color: #6f6479; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  background: var(--lilac);
  box-shadow: 0 0 8px rgba(155, 140, 240, .5);
}
.dot.me { background: var(--gold); box-shadow: 0 0 8px rgba(232, 196, 122, .6); }
.board .art { width: 100%; border-radius: 8px; margin-bottom: 6px; }

/* ---------------- 卡牌：卡图为主，文字不再重复 ---------------- */
.card {
  --band: #9b8cf0;
  --band-tint: rgba(155, 140, 240, .16);
  width: 142px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--band-tint), var(--panel-2) 60%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--band);
  border-radius: var(--r-md);
  padding: 7px;
  cursor: pointer;
  font-size: var(--fs-2nd);
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(232, 196, 122, .55); }
.card.selected {
  border-color: var(--rose);
  box-shadow: 0 0 0 1px var(--rose) inset, 0 12px 28px rgba(227, 93, 138, .25);
}
.card.disabled { opacity: .45; cursor: not-allowed; }
.card.playable {
  border-color: rgba(232, 196, 122, .38);
  box-shadow: 0 0 0 1px rgba(232, 196, 122, .18) inset;
}
.card.playable:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(232, 196, 122, .22);
}
.hand-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; align-items: flex-start; }
.played-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; align-items: flex-start; }
.hand-row .card { width: 152px; flex: 0 0 auto; }
.hand-row .card .card-art { height: 186px; }
.played-row .card { width: 112px; flex: 0 0 auto; opacity: .94; }
.played-row .card .card-art { height: 136px; }
.team-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }

.char-card {
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px;
  align-items: stretch;
}
.char-card .char-art {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #0e0c14;
}
.char-card .char-art .art {
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  display: block;
}
.char-card .char-main { min-width: 0; }
.char-card .char-name-row { display: flex; align-items: center; gap: 4px; }
.char-card .char-name-row .name {
  margin-top: 0;
  font-size: var(--fs-2nd);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-btn {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  padding: 0;
  margin-left: auto;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
}
.info-btn:hover { color: var(--ink); border-color: var(--gold); }
.char-card .skill-btns { margin-top: 0; }
.played-row .card .card-band { display: none; }
.played-row .card .card-name { font-size: 11.5px; }
#handInfo, #playedInfo, #selfHint, #teamHint { letter-spacing: 0; }
.board .art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 740 / 1042;
  object-fit: contain;
  background: #0e0c14;
  border-radius: 8px;
}
/* 卡图区域：整张卡面完整显示，状态全部叠在图上 */
.card .card-art {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  background: #0e0c14;
  flex: 0 0 auto;
  aspect-ratio: 822 / 1122;
}
.card .card-art .art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card .card-art .art-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.card .card-cap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 5px;
  min-width: 0;
}
.card .card-name {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .card-band {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  display: inline-block;
  background: rgba(255, 255, 255, .07);
  border-radius: var(--r-pill);
  padding: 0 6px;
  margin: 3px 3px 0 0;
  font-size: var(--fs-cap);
  font-variant-numeric: tabular-nums;
}
.pill.warn { background: rgba(232, 196, 122, .18); color: var(--gold-soft); }
.pill.danger { background: rgba(227, 93, 138, .2); color: var(--rose-soft); }
.pill.ok { background: rgba(155, 140, 240, .2); color: var(--lilac-soft); }

.skill-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.skill-btn {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(155, 140, 240, .16);
  border: 1px solid rgba(155, 140, 240, .38);
  color: #ded5ff;
  box-shadow: none;
}
.skill-btn:hover { background: rgba(155, 140, 240, .3); border-color: var(--lilac); }
.skill-btn:disabled { opacity: .35; }

.meter { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e8c47a, #e35d8a); }
.meter.bond > span { background: linear-gradient(90deg, #9b8cf0, #6ad1e3); }

/* ---------------- 轮抽 ---------------- */
.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 9px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

/* ---------------- 资源 ---------------- */
.resources { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.res {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 11px;
  font-size: var(--fs-2nd);
  color: var(--muted);
}
.res img { width: 18px; height: 18px; object-fit: contain; }
.res b {
  font-size: var(--fs-body);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 牌堆 ---------------- */
.piles { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 9px; }
.pile {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  min-height: 104px;
  display: grid;
  place-items: center;
}
.pile img.back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.pile .label {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: var(--fs-cap);
  color: var(--ink);
  text-shadow: 0 2px 8px #000;
}
.pile .label b {
  display: block;
  font-size: var(--fs-title);
  font-variant-numeric: tabular-nums;
}
.pile.clickable { cursor: pointer; }
.pile.clickable:hover { border-color: rgba(232, 196, 122, .55); }

/* ---------------- 日志 ---------------- */
.log-panel { display: flex; flex-direction: column; min-height: 0; }
#log {
  overflow-y: auto;
  font-size: var(--fs-2nd);
  line-height: 1.62;
  flex: 1;
  padding-right: 4px;
  font-variant-numeric: tabular-nums;
}
#log .entry {
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
}
#log .entry:first-child { color: var(--ink); border-color: var(--rose); }
#log .entry.err { color: var(--rose-soft); }

/* ---------------- 弹窗 / 提示 ---------------- */
/* 点名提醒（例如「蔷薇乐章 · 蓝色蔷薇发动」）要能盖在谢幕帘上 */
.toast.toast-front { z-index: 134; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #2a2438;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  z-index: 60;
}
.hidden { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 12, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-box {
  width: 540px;
  max-width: 92vw;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.modal-box h3 { margin: 0 0 6px; font-size: 15px; }
.modal-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  margin: 8px 0;
  font-size: 13px;
}
.modal-card button { padding: 5px 12px; font-size: 12px; }
.modal-art {
  width: 86px;
  flex: 0 0 auto;
  aspect-ratio: 740 / 1042;
  object-fit: contain;
  border-radius: 6px;
  background: #0e0c14;
}
/* 更新说明里的「卡牌改动对比图」：弹窗里显示缩略图，点开新窗口看原图 */
.update-img-link { display: block; }
.update-img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin: 8px 0 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f1118;
  cursor: zoom-in;
}
.update-img:hover { border-color: rgba(232, 196, 122, .6); }
#modalBody { max-height: 62vh; overflow-y: auto; padding-right: 4px; }

/* 悬浮技能提示 */
#tip {
  position: fixed;
  z-index: 200;
  max-width: 320px;
  background: #241f31;
  border: 1px solid rgba(232, 196, 122, .45);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #f0e9db;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  pointer-events: none;
}
#tip b { color: #ffd9a0; }
#tip .tip-skill { color: #d8cdf0; display: block; margin-top: 4px; }
#tip .tip-hint {
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, .12);
  color: #9b8cf0;
  font-size: 11px;
  letter-spacing: .02em;
  opacity: .9;
}

.dev-entry {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 150;
  font-size: 11px;
  padding: 3px 8px;
  opacity: 0.6;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 6px;
}
.dev-entry:hover { opacity: 0.9; }
#modal { z-index: 200; }

.dev-group { margin: 6px 0 10px; }
.dev-group h4 { margin: 4px 0; font-size: 12px; color: var(--gold); }
.dev-row { display: block; font-size: 12px; padding: 1px 0; }
#modalBody h3 { margin: 10px 0 4px; }

/* 开发者测试模式（独立面板） */
.dev-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 6, 12, .78);
  backdrop-filter: blur(2px);
}
.dev-panel {
  width: min(1080px, 96vw);
  height: min(780px, 92vh);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.dev-head { display: flex; align-items: center; gap: 12px; }
.dev-head h3 { margin: 0; font-size: 16px; }
.dev-head .meta { flex: 1; }
.dev-tools { display: flex; gap: 8px; align-items: center; }
.dev-tools input[type="text"] {
  flex: 1;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
}
.dev-tools input[type="text"]:focus { border-color: rgba(232, 196, 122, .55); }
.dev-cols {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 12px;
}
@media (max-width: 900px) {
  .dev-cols {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(140px, 30%) minmax(0, 1fr) minmax(110px, 22%);
  }
  .dev-panel { height: 94vh; }
}
.dev-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .025);
}
.dev-col h4 { margin: 2px 2px 8px; font-size: 13px; color: var(--gold); }
.dev-list { flex: 1; overflow-y: auto; padding-right: 4px; }
.dev-bandgroup { margin-bottom: 6px; }
.dev-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 3px 4px;
  font-size: 12px;
  color: var(--gold);
  background: var(--panel-2);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.dev-band button { font-size: 11px; padding: 1px 8px; }
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px 8px;
  padding: 4px 0;
}
.dev-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
}
.dev-item:hover { background: rgba(232, 196, 122, .09); }
.dev-item.checked {
  background: rgba(232, 196, 122, .16);
  border-color: rgba(232, 196, 122, .35);
}
.dev-item input { accent-color: #e8c47a; }
.dev-item .dev-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-item .meta { font-size: 11px; flex: 0 0 auto; }
.dev-foot { display: flex; align-items: center; gap: 12px; }
.dev-foot .meta { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 乐队选择（logo 卡片） ---- */
/* ---- 开局选乐队：1:1 唱片封套卡片 ---- */
.band-setup { --band-w: 980px; }
/* 矮屏（1366×768 / 1280×800）把卡片收小，保证两行 + 按钮 + 版本号都在屏内 */
@media (max-height: 900px) {
  .band-setup { --band-w: 900px; }
}
@media (max-height: 820px) {
  .band-setup { --band-w: 830px; }
}
@media (max-height: 780px) {
  .band-setup { --band-w: 760px; }
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(var(--band-w, 980px), 100%);
  margin: 0 auto;
}
.band-card {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #17131f;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  transition: transform .18s var(--ease-out), border-color .18s, box-shadow .18s;
}
.band-card .band-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .35s var(--ease-out), filter .35s;
}
.band-card .band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 12, .0) 46%, rgba(8, 6, 12, .34) 72%, rgba(8, 6, 12, .9));
}
.band-card .band-logo {
  position: absolute;
  left: 13px;
  bottom: 28px;
  max-width: calc(100% - 34px);
  max-height: 32px;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  transition: opacity .22s var(--ease-out);
}
.band-card .band-logo.mono {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, .9));
}
/* 彩色 logo：默认藏在 mono 下面，选中时以"贴纸"形式弹出来 */
.band-card .band-logo.color {
  opacity: 0;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
/* 本身就是彩色的三支：没选中时也直接显示彩色 logo（不加贴纸） */
.band-card.is-color .band-logo.mono { opacity: 0; }
.band-card.is-color .band-logo.color {
  opacity: 1;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .9));
}
.band-card.picked .band-logo.mono { opacity: 0; }
.band-card.picked .band-logo.color {
  opacity: 1;
  max-height: 30px;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  filter: none;
  animation: logoPop .34s var(--ease-out) both;
}
.band-card .band-name {
  display: block;
  position: absolute;
  left: 13px;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .58);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}
.band-card .band-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: linear-gradient(140deg, #f3d7a0, #e8c47a);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}
.band-card .band-check img { width: 12px; height: 12px; filter: brightness(0); }
.band-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--band, #9b8cf0);
  opacity: 0;
  transition: opacity .2s;
}
.band-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 196, 122, .65);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .55);
}
.band-card:hover .band-cover { transform: scale(1.06); filter: brightness(1.1); }
.band-card:hover::after { opacity: .85; }
.band-card.picked {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(232, 196, 122, .35), 0 18px 36px rgba(0, 0, 0, .5);
}
.band-card.picked::after { opacity: 1; }
.band-card.picked .band-check {
  display: grid;
  animation: checkPop .32s var(--ease-out) both;
}
/* SP 角色必需的乐队：锁住，不能取消 */
.band-card.locked { cursor: not-allowed; }
.band-card.locked:hover { transform: none; box-shadow: none; }
.band-card.locked::before {
  content: "SP 必需";
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.5;
  color: #1a1420;
  background: var(--gold, #e8c47a);
  font-weight: 700;
}
.band-card.no-cover {
  display: grid;
  place-items: center;
  gap: 6px;
  background: linear-gradient(160deg, var(--band, #9b8cf0), #17131f 70%);
}
.band-card.no-cover .band-logo { position: static; max-height: 34px; }
.band-card.no-cover .band-name { position: static; color: #fff; font-size: 12px; }
@media (max-width: 640px) {
  .band-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== 开始页 · 选乐队横向轮盘（2026-11-21） ===== */
.band-grid.bw-mode { display: block; width: min(100%, 1040px); margin: 0 auto; }
.bw-stage {
  position: relative; height: 330px; perspective: 1300px; overflow: hidden;
  margin: 0 auto; max-width: 1000px;
  /* 手机上横滑交给轮盘，竖滑照样滚页面（2026-11-21） */
  touch-action: pan-y; user-select: none;
}
.bw-track {
  position: absolute; left: 50%; top: 52%; width: 640px; height: 210px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px dashed rgba(232, 196, 122, .10); pointer-events: none;
}
.bw-track::after {
  content: ""; position: absolute; inset: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 196, 122, .05), transparent 72%);
}
.bw-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.bw-slot {
  position: absolute; left: 50%; top: 50%; width: 180px; height: 180px;
  transform-style: preserve-3d; will-change: transform, opacity;
  transition: transform .55s cubic-bezier(.2, .8, .25, 1), opacity .35s ease;
}
.bw-slot .band-card { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 17px; }
.bw-slot .band-card:hover { transform: none; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.bw-slot.on .band-card {
  border-color: rgba(232, 196, 122, .95);
  box-shadow: 0 0 0 3px rgba(232, 196, 122, .30), 0 0 52px rgba(232, 196, 122, .30),
    0 20px 44px rgba(0, 0, 0, .55);
}
.bw-slot.on .band-card .band-name { color: rgba(255, 255, 255, .85); }
.bw-slot.on .band-card .band-logo { left: 15px; bottom: 30px; }
.band-order {
  position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%;
  display: none; align-items: center; justify-content: center; z-index: 3;
  font-size: 12px; font-weight: 800; color: #1a1420;
  background: linear-gradient(140deg, #f3d7a0, #e8c47a);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}
.band-card.picked .band-order { display: flex; animation: checkPop .32s var(--ease-out) both; }
.bw-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); z-index: 40;
  background: rgba(20, 16, 30, .85); color: var(--gold-soft); font-size: 22px;
  line-height: 1; cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.bw-arrow:hover { border-color: rgba(232, 196, 122, .7); background: rgba(232, 196, 122, .12); }
.bw-arrow:active { transform: translateY(-50%) scale(.94); }
.bw-arrow.left { left: 6px; }
.bw-arrow.right { right: 6px; }
.bw-hint {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  font-size: 11.5px; color: #8e84a6; letter-spacing: .06em; white-space: nowrap;
}
@media (max-height: 820px) {
  .bw-stage { height: 300px; }
  .bw-slot { width: 160px; height: 160px; }
}
@media (max-width: 640px) {
  .bw-stage { height: 270px; }
  .bw-slot { width: 122px; height: 122px; }
  .bw-track { width: 460px; height: 160px; }
  .bw-arrow { width: 38px; height: 38px; font-size: 18px; }
  .bw-arrow.left { left: 0; }
  .bw-arrow.right { right: 0; }
  .bw-hint { font-size: 10.5px; }
}

/* 选乐队动效：入场依次浮现 / 点击弹一下 / 彩色 logo 弹入 / 勾选旋转弹出 */
@keyframes logoPop {
  0%   { transform: scale(.72); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes checkPop {
  0%   { transform: scale(0) rotate(-40deg); opacity: 0; }
  70%  { transform: scale(1.18) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes cardPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.035); }
  100% { transform: scale(1); }
}
@keyframes bandIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
/* 首次点击前的声音提示（浏览器自动播放策略） */
.sound-hint {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%);
  z-index: 137; padding: 8px 18px; border-radius: 999px;
  background: rgba(40, 28, 60, .92); border: 1px solid #b98cff;
  color: #f4ecff; font-size: 13px; cursor: pointer;
  animation: soundHintPulse 2.4s ease-in-out infinite;
}
@keyframes soundHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 140, 255, .35); }
  50% { box-shadow: 0 0 0 8px rgba(185, 140, 255, 0); }
}

/* 额外 Live（校园演出 / 月读盛会）顶部播报条 */
.extra-live {
  position: fixed; left: 50%; top: 10px; transform: translateX(-50%);
  z-index: 136; display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(40, 28, 60, .92);
  border: 1px solid #b98cff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  color: #f4ecff; font-size: 13px;
}
.extra-live .elb-title { color: #d9b8ff; letter-spacing: .08em; }
.extra-live .elb-sub { opacity: .8; }
.extra-live button { font-size: 12px; padding: 4px 10px; }

/* 开始页「追加 / SP 角色」：按钮 + 弹窗 */
.extra-open { margin: 10px auto 0; display: inline-flex; align-items: center; gap: 8px; }
.extra-count { font-size: 11px; opacity: .7; }
.pool-math {
  margin: 6px auto 2px;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  text-align: center;
  min-height: 18px;
}
.pool-math.warn { color: #f2d9a4; }
.pool-math.danger { color: #ffb6ca; }
.extra-note { margin: 4px 0 10px; font-size: 12px; color: var(--muted); }
.extra-grid {
  display: grid; gap: 10px; margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.extra-card {
  position: relative; display: flex; gap: 10px; align-items: stretch;
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  color: var(--text); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, transform .12s;
}
.extra-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.extra-card.picked {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(185, 140, 255, .22), rgba(185, 140, 255, .06));
  box-shadow: 0 0 0 1px var(--accent) inset, 0 6px 20px rgba(185, 140, 255, .18);
}
.extra-card.picked b { color: var(--accent); }
.extra-art {
  flex: 0 0 54px; width: 54px; height: 76px; border-radius: 8px;
  background-size: cover; background-position: center top;
  border: 1px solid rgba(255, 255, 255, .12);
}
.extra-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.extra-body b { font-size: 14px; }
.extra-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.extra-skills em {
  font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: var(--muted);
}
.extra-card .meta { font-size: 11px; opacity: .65; }
.extra-check {
  position: absolute; right: 7px; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 11px; color: transparent; background: rgba(0, 0, 0, .25);
}
.extra-card.picked .extra-check {
  background: var(--accent); border-color: var(--accent); color: #1a1224;
  font-weight: 700;
}

/* 竹取物语：辉夜 → 月见八千代 替换动效 */
.swap {
  position: fixed; inset: 0; z-index: 240; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(30, 18, 52, .82), rgba(6, 4, 12, .94));
  backdrop-filter: blur(3px); cursor: pointer;
  animation: swapFade .35s ease-out both;
}
.swap-stage { display: flex; align-items: center; gap: 26px; }
.swap-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: swapIn .55s cubic-bezier(.2, .9, .3, 1.2) both;
}
.swap-card.from { animation-delay: .05s; }
.swap-card.to { animation-delay: .55s; }
.swap-art {
  width: 168px; height: 236px; object-fit: cover; object-position: center top;
  border-radius: 12px; border: 2px solid rgba(255, 255, 255, .22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .5);
  background: #171120;
}
.swap-card.to .swap-art { border-color: #c9a3ff; box-shadow: 0 0 34px rgba(185, 140, 255, .55); }
.swap-name { font-size: 15px; color: #f4ecff; letter-spacing: .06em; }
.swap-arrow {
  font-size: 34px; color: #c9a3ff; animation: swapArrow .5s ease .5s both;
  text-shadow: 0 0 18px rgba(185, 140, 255, .8);
}
.swap-title {
  font-size: 16px; color: #e8d9ff; letter-spacing: .14em;
  animation: swapTitle .6s ease .9s both;
}
@keyframes swapFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes swapIn {
  from { opacity: 0; transform: translateY(18px) scale(.9); }
  to { opacity: 1; transform: none; }
}
@keyframes swapArrow {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
@keyframes swapTitle {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 月读盛会的额外 Live：舞台垫一张图 */
.live-stage.extra-live-stage .stage-cover {
  filter: blur(2px) saturate(.95) brightness(.72);
  opacity: .9;
}
.live-stage.extra-live-stage .stage-spot {
  background:
    radial-gradient(58% 54% at 50% 0%, rgba(255, 240, 255, .22), transparent 72%),
    linear-gradient(180deg, rgba(10, 8, 14, .1), rgba(10, 8, 14, .55) 82%);
}

.band-card.band-pop { animation: cardPop .3s var(--ease-out); z-index: 5; }
#bandPicker.enter .band-card {
  animation: bandIn .42s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 32ms);
}
@media (prefers-reduced-motion: reduce) {
  #bandPicker.enter .band-card,
  .band-card.band-pop,
  .band-card.picked .band-check,
  .band-card.picked .band-logo.color { animation: none; }
}

/* ================================================================
   v0.7.0 视觉体系：乐队色 / 难度徽章 / 关键词 / 状态 / 动效
   ================================================================ */

/* ---- 难度徽章 ---- */
.card .diff {
  position: absolute;
  left: 5px;
  top: 5px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font-size: var(--fs-cap);
  font-weight: 800;
  color: var(--gold-deep);
  background: linear-gradient(140deg, var(--gold-strong), var(--gold));
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  font-variant-numeric: tabular-nums;
}
.card .diff.hard {
  background: linear-gradient(140deg, var(--rose-soft), var(--rose));
  color: var(--gold-deep);
}

/* ---- 关键词（开幕 / 谢幕 / 首秀） ---- */
.card .kw-row {
  position: absolute;
  left: 4px;
  bottom: 4px;
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  max-width: calc(100% - 8px);
}
.card .kw {
  font-size: 11px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 10, 18, .74);
  border: 1px solid rgba(255, 255, 255, .16);
}
.card .kw.kw-opening { color: #ffe0a3; border-color: rgba(232, 196, 122, .55); }
.card .kw.kw-finale { color: #ffc2d6; border-color: rgba(227, 93, 138, .55); }
.card .kw.kw-debut { color: #d6cdfa; border-color: rgba(155, 140, 240, .55); }

/* ---- 锁定 ---- */
.card.is-locked { opacity: .62; }
.card.is-locked:hover { transform: none; }
.card .lock-flag {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 8, 14, .55);
  font-size: 12px;
  font-weight: 700;
  color: #ffd9e3;
  letter-spacing: .08em;
}

/* ---- 可打出 ---- */
.card.playable {
  border-color: rgba(232, 196, 122, .42);
  box-shadow: 0 0 0 1px rgba(232, 196, 122, .18) inset, 0 6px 18px rgba(0, 0, 0, .35);
}
.card.playable .card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(232, 196, 122, .4);
  pointer-events: none;
}

/* ---- 动效 ---- */
@keyframes dealIn {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
.card.just-played { animation: dealIn .42s cubic-bezier(.2, .9, .3, 1.2); }

@keyframes bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.26); color: #ffe6ae; }
  100% { transform: scale(1); }
}
.res { position: relative; }
.res.bump b { display: inline-block; animation: bump .55s ease-out; }

@keyframes deltaUp {
  0%   { opacity: 0; transform: translateY(6px); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-16px); }
}
.res .delta {
  position: absolute;
  right: 8px;
  top: 0;
  font-size: 11px;
  font-weight: 800;
  color: #9ff0b0;
  pointer-events: none;
  animation: deltaUp .95s ease-out forwards;
}

/* ---- 板块：工位可视化 ---- */
.board .station {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #cfc3dd;
  padding: 3px 0;
  border-top: 1px dashed rgba(255, 255, 255, .07);
}
.board .station .seat {
  width: 18px;
  flex: 0 0 auto;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.board .chip-occ {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(232, 196, 122, .14);
  border: 1px solid rgba(232, 196, 122, .3);
  color: #f6e3bd;
}
.board .chip-occ.them {
  background: rgba(155, 140, 240, .14);
  border-color: rgba(155, 140, 240, .32);
  color: #ded5ff;
}
.board .chip-occ .st { opacity: .75; }
.board .empty-slot { font-size: 11px; color: #6f6479; }

/* ---- 牌堆卡背：压暗后融入桌面 ---- */
.pile { background: #0e0c14; }
.pile img.back { opacity: .9; filter: brightness(.38) saturate(.75) contrast(1.15); }
.pile .label { text-shadow: 0 2px 10px #000, 0 0 4px #000; }

/* ---- 对手区 ---- */
.opp-card { display: flex; flex-direction: column; gap: 6px; cursor: default; }
.opp-card:hover { transform: none; }
.opp-card .opp-res {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #e2d8ee;
}
.opp-card .opp-team { font-size: 11px; color: var(--muted); line-height: 1.55; }
.opp-card .opp-team b { color: #e8ddf5; font-weight: 600; }

/* ---- 日志：阶段标签 ---- */
#log .entry .log-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  font-size: var(--fs-cap);
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .07);
  color: var(--ink-2);
}
#log .entry.settle { border-left-color: rgba(232, 196, 122, .55); }
#log .entry.settle .log-tag { background: rgba(232, 196, 122, .18); color: var(--gold-soft); }
#log .entry.gain { border-left-color: rgba(120, 220, 160, .5); }
#log .entry.gain .log-tag { background: rgba(126, 226, 184, .16); color: var(--mint); }
#log .entry.err { border-left-color: var(--rose); }

/* ---- 赞助商合作进度 ---- */
.lv-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  margin: 0 0 6px;
}
.lv-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8c47a, #e35d8a);
  transition: width .35s ease;
}
.board .station .adv { flex: 1 1 auto; min-width: 0; color: #b9adca; }

/* ---- 对手角色小卡 ---- */
.opp-card .opp-res { display: inline-flex; align-items: center; gap: 3px; }
.opp-card .opp-res .ico { width: 13px; height: 13px; object-fit: contain; }
.opp-card .opp-team { display: flex; flex-wrap: wrap; gap: 5px; }
.opp-char {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  font-size: 11px;
  color: #ded5ff;
  max-width: 100%;
}
.opp-char img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex: 0 0 auto;
  background: #0e0c14;
}
.opp-char .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.opp-char .st { color: var(--muted); font-size: 11px; }

/* ---- 角色卡卡图底部渐隐，白底卡面融入暗色界面 ---- */
.char-card .char-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(18, 15, 24, .72));
  pointer-events: none;
}

/* ---- 赞助商：3 列太挤，改成按宽度自适应；工位单行不换行 ---- */
.boards.small { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.board .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board .station .adv { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .station .chip-occ { flex: 0 0 auto; }

/* ---- 矮屏 / 窄屏：手牌整体缩小一档，避免被挤到折叠线以下 ---- */
@media (max-width: 1180px) {
  .hand-row .card { width: 138px; }
  .hand-row .card .card-art { height: 168px; }
}
@media (max-height: 820px) {
  .hand-row .card { width: 128px; }
  .hand-row .card .card-art { height: 152px; }
  .played-row .card { width: 104px; }
  .played-row .card .card-art { height: 124px; }
  .team-row { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .char-card .char-art .art { height: 96px; }
}
@media (max-height: 820px) {
  .team-row { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .char-card .char-main .line { display: none; }
  .resources { margin-bottom: 8px; }
  .res { padding: 4px 9px; }
}

/* ================================================================
   v0.7.1 粒子特效层（fx.js）
   ================================================================ */
.fx-layer {
  position: fixed;
  inset: 0;
  /* 2026-10-28：抬高到谢幕帘(130)之上，否则「蔷薇乐章」的蓝花和谢幕星屑都被帘子盖住；
     仍然在弹窗(200) / 开发者面板(220)之下 */
  z-index: 134;
  pointer-events: none;
  display: block;
}
.fx-layer.fx-off { display: none; }

/* 粒子飞到目标时，目标闪一下 */
@keyframes fxHit {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 196, 122, .65); }
  35%  { transform: scale(1.055); box-shadow: 0 0 0 4px rgba(232, 196, 122, .28); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 196, 122, 0); }
}
.fx-hit { animation: fxHit .42s ease-out; }

/* 开关按钮：和「开发者模式」同一排 */
.fx-toggle {
  position: fixed;
  right: 96px;
  bottom: 8px;
  z-index: 150;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  opacity: .6;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 6px;
}
.fx-toggle:hover { opacity: .95; }
.fx-toggle.off { color: #6f6479; text-decoration: line-through; }

/* 声音开关：跟「特效」同一排，往左让位（特效在 96px，开发者按钮在 10px） */
.snd-toggle { right: 152px; }
#sfxToggle { right: 212px; }
#sndBtn { right: 272px; }

/* 音量面板 */
.snd-panel {
  position: fixed;
  right: 96px;
  bottom: 38px;
  z-index: 160;
  width: 214px;
  padding: 10px 12px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(24, 19, 32, .96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.snd-panel.hidden { display: none; }
.snd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink);
  margin-bottom: 7px;
}
.snd-row span { width: 34px; flex: 0 0 auto; white-space: nowrap; opacity: .8; }
.snd-row b {
  width: 36px;
  text-align: right;
  font-weight: 700;
  font-size: 11px;
  color: var(--gold);
}
.snd-row input[type="range"] {
  flex: 1 1 auto;
  height: 16px;
  accent-color: #b9a6ff;
  cursor: pointer;
}
.snd-tip { font-size: 11px; color: #7f7489; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .fx-layer { display: none; }
  .fx-hit { animation: none; }
}

/* ================================================================
   v0.7.2 事件卡（遭遇卡）展示
   ================================================================ */

/* ---- 我的区域：最近遭遇小卡条 ---- */
.enc-strip { margin: 2px 0 10px; }
.enc-strip-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.enc-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.enc-card {
  flex: 0 0 auto;
  width: 92px;
  padding: 5px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), var(--panel-2) 65%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--enc, var(--lilac));
  cursor: pointer;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.enc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .45);
  border-color: rgba(255, 255, 255, .22);
}
.enc-card .enc-art {
  aspect-ratio: 822 / 1122;
  border-radius: 6px;
  overflow: hidden;
  background: #0e0c14;
}
.enc-card .enc-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.enc-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(160deg, rgba(155, 140, 240, .12), rgba(0, 0, 0, .25));
}
.enc-card .enc-cap { padding-top: 4px; display: flex; flex-direction: column; gap: 1px; }
.enc-card .enc-name {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.enc-card .enc-type { font-size: 11px; color: var(--enc, var(--lilac)); }

@keyframes encIn {
  from { opacity: 0; transform: translateY(12px) rotate(-5deg) scale(.92); }
  to   { opacity: 1; transform: none; }
}
.enc-card.is-new {
  animation: encIn .55s cubic-bezier(.2, .9, .3, 1.2);
  box-shadow: 0 0 0 1px var(--enc) inset, 0 10px 24px rgba(0, 0, 0, .5);
}

/* ---- 抽到事件卡：登场浮层 ---- */
.enc-pop {
  position: fixed;
  left: 50%;
  top: 13%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  gap: 12px;
  width: min(520px, 92vw);
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(38, 32, 52, .98), rgba(22, 18, 30, .98));
  border: 1px solid rgba(255, 255, 255, .12);
  border-top: 3px solid var(--enc, var(--lilac));
  box-shadow: 0 24px 64px rgba(0, 0, 0, .65);
  cursor: pointer;
}
.enc-pop.in { animation: encPop .45s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes encPop {
  from { opacity: 0; transform: translate(-50%, -16px) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.enc-pop-art {
  width: 104px;
  flex: 0 0 auto;
  aspect-ratio: 822 / 1122;
  border-radius: 8px;
  overflow: hidden;
  background: #0e0c14;
}
.enc-pop-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.enc-pop-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.enc-pop-kicker {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--enc, var(--lilac));
}
.enc-pop-name { font-size: 16px; font-weight: 800; }
.enc-pop-text { font-size: 12px; color: #d8cde8; line-height: 1.5; }
.enc-pop-hint { font-size: 11px; color: #6f6479; margin-top: auto; }

/* ---- 事件卡大图弹窗 ---- */
.enc-modal { display: flex; gap: 14px; align-items: flex-start; }
/* 「使用这张遭遇卡」的按钮行（目前只有《紧凑的日程》） */
.enc-use-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.enc-use-row button {
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 8px;
}
.enc-modal-art {
  width: 210px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #0e0c14;
}
.enc-modal-type {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--enc, var(--lilac));
  border: 1px solid currentColor;
  margin-bottom: 6px;
}
.enc-modal-name { font-size: 15px; font-weight: 800; margin-bottom: 6px; }

/* ---- 对手抽到的事件卡 ---- */
.opp-enc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #cfc3dd;
  border-top: 1px dashed rgba(255, 255, 255, .08);
  padding-top: 5px;
}
.opp-enc-tag {
  font-size: 11px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--enc, var(--lilac));
  border: 1px solid currentColor;
}

@media (max-width: 900px) {
  .enc-pop { top: 8%; }
  .enc-modal { flex-direction: column; }
  .enc-modal-art { width: 140px; }
}

/* 事件卡浮层：位置与配色微调 */
.enc-pop {
  top: 11%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .68), 0 0 0 1px var(--enc, var(--lilac)) inset;
}
.enc-pop-art { width: 96px; }
.enc-pop-name { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.enc-pop-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 事件卡浮层：略收窄、上移，少挡一点资源条 */
.enc-pop { top: 8%; width: min(460px, 92vw); }
.enc-pop:hover { box-shadow: 0 28px 70px rgba(0, 0, 0, .7), 0 0 0 1px var(--enc, var(--lilac)) inset; }

/* ================================================================
   v0.7.3 素材接入：唱片墙 / 乐器图标 / 界面小图标
   ================================================================ */

/* ---- 开始界面：唱片墙背景 ---- */
.cover-wall {
  /* 固定在视口上：开始页内部滚动时，背景不会露出没遮罩的区域 */
  position: fixed;
  inset: -10%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  transform: rotate(-7deg) scale(1.08);
  pointer-events: none;
}
.cover-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  filter: blur(1.5px) brightness(.4) saturate(.82);
  opacity: .92;
}
.cover-tile:nth-child(even) { transform: translateY(14px); }
.cover-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 50% 46%, rgba(16, 13, 23, .95) 0%, rgba(16, 13, 23, .74) 46%, rgba(16, 13, 23, .22) 76%, transparent 100%),
    linear-gradient(180deg, rgba(16, 13, 23, .6), transparent 28%, transparent 68%, rgba(16, 13, 23, .8));
}
.float-layer { z-index: 2; }
.start-center { z-index: 3; }

@media (max-width: 900px) {
  .cover-wall { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
}

/* ---- 角色卡：乐器真图标 ---- */
.inst-row { display: flex; flex-wrap: wrap; gap: 2px 9px; margin-top: 2px; }
.inst {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.inst img { width: 14px; height: 14px; object-fit: contain; flex: 0 0 auto; }
.inst-label { line-height: 1; }

/* ---- 界面小图标（button / h2 内） ---- */
.h-ico {
  width: 13px;
  height: 13px;
  object-fit: contain;
  vertical-align: -2px;
  margin-right: 5px;
  opacity: .85;
}
h2 .h-ico { width: 12px; height: 12px; opacity: .55; margin-right: 4px; }
button .h-ico { opacity: .95; }

/* 唱片墙：稍微提亮，让封面本身成为背景纹理，但别抢标题 */
.cover-wall { filter: saturate(.8); }
.cover-tile { filter: blur(2.5px) brightness(.36) saturate(.8); opacity: .95; }
.cover-veil {
  background:
    radial-gradient(62% 56% at 50% 44%, rgba(16, 13, 23, .96) 0%, rgba(16, 13, 23, .8) 44%, rgba(16, 13, 23, .4) 72%, rgba(10, 8, 14, .55) 100%),
    radial-gradient(120% 95% at 50% 50%, transparent 42%, rgba(10, 8, 14, .8) 100%),
    linear-gradient(180deg, rgba(16, 13, 23, .7), transparent 26%, transparent 66%, rgba(16, 13, 23, .85));
}
/* 飘过的卡牌和唱片墙叠在一起太吵，压低存在感 */
.float-card { opacity: .16; }
.float-card { opacity: .1; filter: blur(1.5px) saturate(.9); }

/* ================================================================
   v0.7.4 板块 / 赞助商：场景图打底 + 自己的文字层
   （场景图是纯背景，规则文字用界面自己的，保证小卡片上也能读）
   ================================================================ */
.board.has-art {
  padding: 7px 9px;
  overflow: hidden;
  /* 不再写死高度：人多时卡片自己长高，文字层永远不会压在一起 */
  height: auto;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, .14);
  background-size: cover;
  background-position: center;
  background-color: #12101a;
}
.boards.small .board.has-art { min-height: 108px; }

.board.has-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 8, 14, .12) 0%, rgba(10, 8, 14, .52) 44%, rgba(10, 8, 14, .93) 100%);
}
.board.has-art:hover {
  border-color: rgba(232, 196, 122, .55);
}
.board.has-art:hover::after {
  background: linear-gradient(180deg, rgba(10, 8, 14, 0) 0%, rgba(10, 8, 14, .44) 44%, rgba(10, 8, 14, .88) 100%);
}

.board.has-art .board-title {
  position: static;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .95);
}
.board.has-art .board-title .info-btn {
  margin-left: auto;
  background: rgba(10, 8, 14, .66);
  text-shadow: none;
}

/* 卡面底部信息块：描述在上、人物 chip 在下，整体贴在底部，
   有多少人就往上长，不会互相压住（之前是两块各自绝对定位，人多就重叠） */
.board.has-art .board-meta {
  position: static;
  margin-top: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.board.has-art .board-hint {
  font-size: 11px;
  line-height: 1.35;
  color: #e2d8f0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .95);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board.has-art .board-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.board.has-art.empty { border-style: solid; }
.board.has-art.empty .board-hint { color: #b9adca; }
.board.has-art .chip-occ { padding: 1px 6px; font-size: 11px; }
.board.has-art .chip-occ .st { display: none; }
.board.has-art:hover .chip-occ .st { display: inline; }
.occ-ico { width: 11px; height: 11px; object-fit: contain; margin-right: 2px; }

/* 合作等级小徽章（赞助商卡面用） */
.lv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(232, 196, 122, .16);
  border: 1px solid rgba(232, 196, 122, .4);
  color: #f6e3bd;
  white-space: nowrap;
}
.lv-chip i {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  position: relative;
  overflow: hidden;
}
.lv-chip i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, #e8c47a, #e35d8a);
}

/* 弹窗里的板卡大图 */
.board-modal-art { display: block; width: 100%; border-radius: 10px; margin-bottom: 10px; }

/* 赞助商也用 3 列，和任务板块对齐（有场景图后不再需要宽卡片放工位文字） */
.boards.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ================================================================
   v0.7.5 乐队唱片：轮抽唱片架（选队封套样式见文件前部）
   ================================================================ */

/* 轮抽阶段的"唱片架"：本轮参与轮抽的乐队 */
.band-shelf { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.shelf-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.shelf-cover {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: #161320;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
}
.shelf-cover::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 11px;
  border-radius: 50%;
  background: #0e0c14;
}
.shelf-name { font-size: 11.5px; color: #e2d8f0; letter-spacing: .02em; }

/* ================================================================
   v0.7.6 图标体系补全：阶段 chip / 关键词徽章 / 标题与按钮
   ================================================================ */
.chip-ico {
  width: 12px;
  height: 12px;
  object-fit: contain;
  vertical-align: -2px;
  margin-right: 4px;
  opacity: .9;
}
.chip.on .chip-ico { opacity: 1; }

/* 关键词徽章：白描小图标 + 文字 */
.card .kw {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.card .kw img {
  width: 10px;
  height: 10px;
  object-fit: contain;
  opacity: .9;
}

/* 顶栏「重开」「特效」「开发者」按钮里的图标稍微紧凑一点 */
#btn-new .h-ico,
.fx-toggle .h-ico,
.dev-entry .h-ico {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -1px;
}
.dev-entry .h-ico { opacity: .7; }

/* ================================================================
   v0.7.7 弹窗筛选 / 练习室骰子 / 升降箭头
   ================================================================ */
.pile-tools {
  position: sticky;
  top: -2px;
  z-index: 2;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 0 10px;
  background: linear-gradient(180deg, var(--panel-2) 64%, rgba(36, 31, 49, 0));
}
.pile-search {
  flex: 1 1 170px;
  min-width: 130px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12.5px;
  padding: 6px 10px;
  outline: none;
}
.pile-search:focus { border-color: rgba(232, 196, 122, .55); background: rgba(255, 255, 255, .09); }
.pile-select {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  padding: 6px 8px;
  outline: none;
}
.pile-count { font-size: 11px; color: var(--muted); margin-left: auto; }

/* 练习室骰子 */
.dice-wrap { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.dice {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(150deg, #fffdf7, #e7dcc8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.dice i { border-radius: 50%; background: #1c1826; opacity: 0; }
.dice[data-face="1"] i:nth-child(5) { opacity: 1; }
.dice[data-face="2"] i:nth-child(1),
.dice[data-face="2"] i:nth-child(9) { opacity: 1; }
.dice[data-face="3"] i:nth-child(1),
.dice[data-face="3"] i:nth-child(5),
.dice[data-face="3"] i:nth-child(9) { opacity: 1; }
.dice[data-face="4"] i:nth-child(1),
.dice[data-face="4"] i:nth-child(3),
.dice[data-face="4"] i:nth-child(7),
.dice[data-face="4"] i:nth-child(9) { opacity: 1; }
.dice[data-face="5"] i:nth-child(1),
.dice[data-face="5"] i:nth-child(3),
.dice[data-face="5"] i:nth-child(5),
.dice[data-face="5"] i:nth-child(7),
.dice[data-face="5"] i:nth-child(9) { opacity: 1; }
.dice[data-face="6"] i:nth-child(1),
.dice[data-face="6"] i:nth-child(3),
.dice[data-face="6"] i:nth-child(4),
.dice[data-face="6"] i:nth-child(6),
.dice[data-face="6"] i:nth-child(7),
.dice[data-face="6"] i:nth-child(9) { opacity: 1; }

@keyframes diceRoll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-12deg) scale(1.06); }
  50% { transform: rotate(10deg) scale(.98); }
  75% { transform: rotate(-6deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1); }
}
.dice.rolling { animation: diceRoll .3s linear infinite; }
@keyframes dicePop {
  from { transform: scale(.86); }
  60% { transform: scale(1.09); }
  to { transform: scale(1); }
}
.dice.settled { animation: dicePop .36s cubic-bezier(.2, .9, .3, 1.3); }
.dice-title { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-bottom: 3px; }

/* 排名徽章 + 升降箭头 */
.rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 12px;
  color: #e2d8ee;
}
.rank-chip .arrow { font-size: 11px; }
.rank-chip.up .arrow { color: #9ff0b0; }
.rank-chip.down .arrow { color: #ff9db8; }
.res .delta.down { color: #ff9db8; }
.pile-tools::-webkit-search-cancel-button { filter: invert(.7); }

/* ================================================================
   v0.7.8 翻面 / 面具 / Live 谢幕
   ================================================================ */
/* 面具角标 */
.mask-flag {
  position: absolute;
  left: 4px;
  top: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 8, 14, .72);
  border: 1px solid rgba(232, 196, 122, .5);
  box-shadow: 0 0 10px rgba(232, 196, 122, .35);
}
.mask-flag img { width: 14px; height: 14px; object-fit: contain; }

/* 翻面 / 戴面具的一次性动画 */
@keyframes flipPulse {
  0% { transform: perspective(600px) rotateY(0deg); }
  45% { transform: perspective(600px) rotateY(78deg) scale(.96); }
  100% { transform: perspective(600px) rotateY(0deg); }
}
.card.fx-flip { animation: flipPulse .66s ease-in-out; }

/* ---- 崩溃（V5.0：不是翻面，只是失去技能与乐队标签）----
   卡面保持正面，右上角打「崩溃」标记，技能按钮变灰 */
.char-card.is-flipped .char-art .art { filter: saturate(.75) brightness(.9); }
.char-card.is-flipped .char-art::before {
  content: "崩溃";
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff0f5;
  background: linear-gradient(140deg, #ff9db8, #e35d8a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.char-card.is-flipped .char-name-row .name { color: #ffb6c9; }
.char-card.is-flipped .skill-btns { opacity: .35; }

/* ---- 坚定卡 / 崩溃卡：抽卡时的显著提示（卡背翻到卡面）---- */
.stress-pop {
  position: fixed;
  left: 50%;
  top: 70px;
  transform: translateX(-50%) translateY(-10px);
  z-index: 140;
  display: flex;
  gap: 13px;
  width: min(430px, 92vw);
  padding: 12px;
  border-radius: 14px;
  background: rgba(16, 12, 22, .96);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .62);
  cursor: pointer;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}
.stress-pop.in { opacity: 1; transform: translateX(-50%) translateY(0); }
.stress-pop.crisis {
  border-color: rgba(227, 93, 138, .8);
  box-shadow: 0 0 0 1px rgba(227, 93, 138, .3), 0 0 28px rgba(227, 93, 138, .35), 0 22px 52px rgba(0, 0, 0, .62);
}
.stress-pop.resolve {
  border-color: rgba(232, 196, 122, .85);
  box-shadow: 0 0 0 1px rgba(232, 196, 122, .3), 0 0 28px rgba(232, 196, 122, .32), 0 22px 52px rgba(0, 0, 0, .62);
}

.stress-flip {
  width: 118px;
  height: 167px;
  flex: 0 0 auto;
  position: relative;
  perspective: 760px;
}
.stress-face {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  backface-visibility: hidden;
  background: #0e0c14;
  transition: transform .5s cubic-bezier(.3, .7, .3, 1);
  display: grid;
  place-items: center;
}
.stress-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stress-face span { font-size: 13px; font-weight: 800; color: #e8c47a; }
.stress-face.back { transform: rotateY(0deg); }
.stress-face.front { transform: rotateY(180deg); }
.stress-flip.revealed .stress-face.back { transform: rotateY(-180deg); }
.stress-flip.revealed .stress-face.front { transform: rotateY(0deg); }

.stress-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.stress-kicker {
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 700;
}
.stress-pop.crisis .stress-kicker { color: #ff9db8; }
.stress-pop.resolve .stress-kicker { color: #f3d7a0; }
.stress-name { font-size: 19px; font-weight: 800; margin: 1px 0 3px; }
.stress-text { font-size: 12px; line-height: 1.5; color: #d8cde8; }

@keyframes maskGlow {
  0% { box-shadow: 0 0 0 0 rgba(232, 196, 122, .8); }
  40% { box-shadow: 0 0 0 6px rgba(232, 196, 122, .25), 0 0 26px rgba(232, 196, 122, .5); }
  100% { box-shadow: 0 0 0 0 rgba(232, 196, 122, 0); }
}
.card.fx-mask { animation: maskGlow .85s ease-out; }

/* ---- Live 谢幕浮层 ---- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  background: rgba(8, 6, 12, .84);
  backdrop-filter: blur(3px);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease;
}
.curtain.in { opacity: 1; }
.curtain-bg {
  position: absolute;
  inset: -6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  opacity: .16;
  filter: blur(7px) saturate(.75);
  pointer-events: none;
}
.curtain-bg span { background-size: cover; background-position: center; }

.curtain-card {
  position: relative;
  width: min(520px, 92vw);
  padding: 22px 24px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(40, 34, 55, .98), rgba(20, 17, 28, .98));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: curtainIn .45s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes curtainIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.curtain-kicker { font-size: 11px; letter-spacing: .22em; color: var(--gold); }
.curtain-title {
  margin: 2px 0 16px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .18em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .6);
}
.curtain-rows { display: flex; flex-direction: column; gap: 7px; }
.curtain-row {
  display: grid;
  grid-template-columns: 42px 1fr auto 62px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  animation: curtainRowIn .42s ease both;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes curtainRowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
.curtain-row.lit { background: rgba(255, 255, 255, .05); border-color: var(--line); }
.curtain-row.me { background: rgba(232, 196, 122, .16); border-color: rgba(232, 196, 122, .45); }
.curtain-row .crank { font-size: 21px; font-weight: 800; color: var(--gold); text-align: center; }
.curtain-row.virtual .cname { color: var(--muted); }
.curtain-row .cname { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.curtain-row .metag {
  font-size: 11px;
  padding: 0 6px;
  border-radius: 999px;
  color: #2a1a24;
  background: linear-gradient(120deg, #f3d7a0, #e8c47a);
  font-weight: 700;
}
.curtain-row .cfans { font-size: 13px; color: var(--rose-soft); font-variant-numeric: tabular-nums; }
.curtain-row .ccoins { font-size: 12px; color: var(--gold-soft); text-align: right; min-height: 1em; font-variant-numeric: tabular-nums; }

/* ---- 颁奖版式（2026-11-19 阶段 2）：名次用奖牌色，冠军放大 + 皇冠角标 ---- */
.curtain-row[data-i="0"] {
  border-color: rgba(232, 196, 122, .75);
  background: linear-gradient(90deg, rgba(232, 196, 122, .22), rgba(232, 196, 122, .05));
  box-shadow: 0 0 0 1px rgba(232, 196, 122, .25), 0 12px 28px -16px rgba(232, 196, 122, .9);
  transform: scale(1.015);
}
.curtain-row[data-i="0"] .crank {
  font-size: 26px;
  color: var(--gold-strong);
  text-shadow: 0 0 18px rgba(232, 196, 122, .85);
}
.curtain-row[data-i="1"] .crank { color: #cfd6e6; }         /* 银 */
.curtain-row[data-i="2"] .crank { color: #d79a63; }         /* 铜 */
.curtain-row[data-i="0"] .cname::after {
  content: "冠军";
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font-size: var(--fs-cap);
  font-weight: 800;
  color: var(--gold-deep);
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
}
.curtain-title { letter-spacing: .24em; }
.curtain-hint { margin-top: 14px; text-align: center; font-size: 11px; color: #6f6479; letter-spacing: .1em; }

/* 开发者「一控多」：顶部提示当前操作的是哪个玩家 */
.hotseat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #1b1220;
  background: linear-gradient(135deg, #ffd479, #ff9ad5);
  font-weight: 700;
}
.hotseat-badge.hidden { display: none; }

/* ---------------- 日志筛选 / 行动者标识 ---------------- */
.log-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0 8px;
}
.log-filter button {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.log-filter button:hover { color: var(--ink); }
.log-filter button.on {
  background: rgba(227, 93, 138, .22);
  color: #ffd7e5;
  border-color: rgba(227, 93, 138, .55);
}
#log .entry { display: flex; gap: 6px; align-items: flex-start; }
#log .entry .log-txt { flex: 1; min-width: 0; }
#log .entry.me { border-left-color: rgba(227, 93, 138, .55); }
#log .entry.opp {
  color: #ece6ff;
  border-left-color: rgba(155, 140, 240, .8);
  background: linear-gradient(90deg, rgba(155, 140, 240, .13), transparent 72%);
}
#log .entry.opp .log-tag {
  background: rgba(155, 140, 240, .22);
  color: #ded7ff;
}
.log-actor {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.7;
  padding: 0 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.log-actor.you { background: rgba(227, 93, 138, .22); color: #ffc9db; }
.log-actor.opp {
  background: rgba(155, 140, 240, .3);
  color: #e6e0ff;
  font-weight: 600;
}
.log-round {
  margin: 10px 0 4px;
  padding-bottom: 3px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
  border-bottom: 1px dashed rgba(232, 196, 122, .25);
}

/* ================= 响应式增强：任意窗口尺寸都自适应 ================= */
html, body { max-width: 100%; }
img { max-width: 100%; }
.wrap { padding: clamp(8px, 1.1vw, 16px); }
header { padding: clamp(6px, .7vw, 10px) clamp(8px, 1.2vw, 18px); }
.modal { padding: 12px; overflow-y: auto; }

/* 面板不再被压扁：列内放不下就让整页滚动 */
.col > .panel:not(.log-panel) { flex: 0 0 auto; }

/* 中宽：保持三栏，只压缩列宽；矮屏由列内滚动兜底 */
@media (max-width: 1180px) and (min-width: 901px) {
  .table {
    grid-template-columns: minmax(210px, .95fr) minmax(260px, 1.15fr) minmax(220px, .9fr);
  }
  .col-right { grid-column: auto; flex-direction: column; }
  .col-right .log-panel { min-height: 200px; }
}

/* 窄屏：全部单列、整页滚动 */
@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .wrap { flex: none; height: auto; }
  .table { display: block; height: auto; }
  .col {
    overflow: visible;
    margin-bottom: 12px;
    max-height: none;
    padding-right: 0;
  }
  .col-right { display: flex; flex-direction: column; }
  .col-right > * { flex: none; }
  .col-right .log-panel { min-height: 220px; max-height: 52vh; }
  #log { max-height: 42vh; }
  .boards { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
  .boards.small { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .modal-box {
    width: min(600px, 94vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }
  /* 弹窗内容很长（选角色 / 选卡）时要能滚：flex 里必须给 #modalBody 一个可收缩的高度，
     否则 max-height:90vh 的 .modal-box 会把超出部分直接裁掉，表现为「有的卡消失了」 */
  .modal-box { max-height: 88vh; }
  #modalBody { max-height: none; overflow-y: auto; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
}

/* 手机：收紧间距和字号 */
@media (max-width: 640px) {
  .brand { display: none; }
  header { gap: 6px 8px; }
  header .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  header .chips::-webkit-scrollbar { display: none; }
  header button { padding: 6px 11px; font-size: 12px; }
  .turn-badge { font-size: 11px; padding: 2px 8px; }
  .panel { padding: 10px 11px; border-radius: 12px; }
  .board { min-height: 72px; padding: 8px; }
  .boards { grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); gap: 7px; }
  .boards.small { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
  .card { width: min(132px, 41vw); }
  .modal-card { flex-wrap: wrap; }
  .modal-art { width: 62px; }
  .start-center { padding: 18px 14px; }
  .start-center h1 { font-size: clamp(34px, 11vw, 48px); letter-spacing: .08em; }
  .lead { font-size: 13px; margin: 8px 0 18px; }
  .band-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
}

/* 开始界面：矮屏可滚动，避免内容被裁掉 */
@media (max-height: 700px) {
  .start { overflow-y: auto; align-items: start; }
  .start-center { padding-top: 32px; padding-bottom: 32px; }
}

/* 板块卡（遭遇卡变成的特殊板块）：提示可以派角色执行 */
.card-hint { display: block; font-size: 11px; color: var(--gold); opacity: .8; margin-top: 2px; }

/* ================================================================
   v0.8.0 Step 1 · Live 舞台布局
   ----------------------------------------------------------------
   只有 .wrap[data-phase="live"] 生效，其它阶段完全不受影响。
   做法：把三栏里的各个区块（队伍 / 资源 / 板块 / 手牌 / 舞台）变成
   .table 的栅格项，用 grid-template-areas 重新摆位，DOM 不动。
   ================================================================ */

/* ---------------- Live 战况带：粉丝竞速（你 + 对手） ----------------
   一排半透明卡片：谁粉丝多、领先多少、本轮又拿了多少，一眼看完。
   领先者金框 + 皇冠，自己用淡紫描边，本轮新增用薄荷绿。 */
.fan-race {
  display: flex;
  gap: 8px;
  margin: 10px 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fan-race::-webkit-scrollbar { display: none; }
.fan-race[hidden] { display: none; }

.fr-chip {
  position: relative;
  flex: 1 1 0;
  min-width: 104px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "who who gain"
    "fans fans fans"
    "bar bar bar";
  align-items: center;
  gap: 2px 6px;
  padding: 7px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%),
    rgba(28, 24, 38, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.fr-chip.me {
  border-color: rgba(155, 140, 240, .55);
  background:
    linear-gradient(180deg, rgba(155, 140, 240, .18), rgba(155, 140, 240, .04) 70%),
    rgba(28, 24, 38, .82);
}
.fr-chip.lead {
  border-color: rgba(232, 196, 122, .75);
  box-shadow:
    0 0 0 1px rgba(232, 196, 122, .28),
    0 6px 18px -10px rgba(232, 196, 122, .55),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}
.fr-crown {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -1px;
  filter: drop-shadow(0 0 6px rgba(232, 196, 122, .85));
}
/* ---------------- 统一图标（阶段 3：彩色 emoji → icons/ 里的 png） ----------------
   以前文案里混着 🔒 ✅ ⚡ ♛ ★，和 png 图标画风不一致。
   现在统一用 <img class="ui-ico">：1em 见方、跟随字号、基线自动对齐。 */
/* ================================================================
   手机端触摸目标（2026-11-19 阶段 4）
   ----------------------------------------------------------------
   实测 390x844 下有 30 个可点元素高度只有 25~35px（规则书 27px、
   模式按钮 30px…），手指点不准。这里统一兜底到 --tap（40px）：
   文字按钮保证高度，纯图标按钮额外保证宽度。
   ================================================================ */
/* ---------------- 手机端舞台版式（阶段 4） ----------------
   原来 .stage-top 里「LIVE STAGE」和「已计入 0/4 …座位 1」挤在一行，
   390 宽时直接叠字；四个区域标签（弃牌/移除/草稿/遭遇）竖成两行把舞台撑高。
   这里：装饰标题隐藏、数据行独占一行、标签改成横向滚动条。 */
@media (max-width: 640px) {
  .stage-top {
    flex-wrap: wrap;
    gap: 4px;
  }
  .stage-kicker { display: none; }
  .stage-stat {
    flex: 1 0 100%;
    font-size: var(--fs-cap);
    line-height: 1.45;
    text-align: left;
  }
  .live-piles {
    display: flex;
    flex: 1 0 100%;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .live-piles::-webkit-scrollbar { display: none; }
  .lp-chip { flex: 0 0 auto; }
  /* 横带（我 / 对手）原来一行塞不下就叠字，手机上允许换行 */
  .my-lane-head,
  .opp-head {
    flex-wrap: wrap;
    row-gap: 3px;
  }
  .lane-lock,
  .opp-lock {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .tool-btn,
  .doc-strip-btn,
  .ghost,
  .tab,
  .chip,
  .tp-btn,
  .tp-jump,
  .lgb-btn,
  .dock-close,
  .ts-close,
  .ts-pack,
  .cs-tab,
  .cs-pack,
  .btn,
  #btn-next,
  #btn-pass,
  button.tab {
    min-height: var(--tap);
  }
  /* 纯图标按钮（只剩图标、没有文字）需要同时保证宽度 */
  .tool-btn,
  .dock-close,
  .lgb-close,
  .cv-close,
  .cv-nav {
    min-width: var(--tap);
    justify-content: center;
  }
  /* 图标按钮变高后，图标本身别跟着放大 */
  .tool-btn .h-ico { width: 16px; height: 16px; }
  /* 对局内的小标签与底部开关（原来 21~29px 高） */
  .lp-chip,
  .opp-sp-live {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
  }
  .fx-toggle,
  .dev-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--tap);
    min-height: var(--tap);
  }
  /* 页脚（备案号 / 隐私 / 协议 / 登录）原来只有 21~27px 高 */
  .site-foot a,
  .foot-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
  }
}

.ui-ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  object-fit: contain;
  opacity: .95;
}
.ui-ico-lg { width: 1.4em; height: 1.4em; }
.locked-lock .ui-ico { width: 14px; height: 14px; }
.chu2-state .ui-ico { width: 13px; height: 13px; }
.ci-special-line .ui-ico { width: 13px; height: 13px; margin-right: 2px; }
.cs-badge-ic .ui-ico { width: 15px; height: 15px; }
.cs-arch-st .ui-ico { width: 12px; height: 12px; vertical-align: -2px; }

.fr-who {
  grid-area: who;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-chip.me .fr-who { color: #cfc6ff; }
.fr-gain {
  grid-area: gain;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(167, 155, 180, .55);
}
.fr-gain.on { color: #7ee2b8; }
.fr-fans {
  grid-area: fans;
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fr-fans .ico { width: 13px; height: 13px; opacity: .9; align-self: center; }
.fr-fans b { font-size: 19px; font-weight: 800; letter-spacing: .2px; }
.fr-chip.me .fr-fans b { color: #e7e0ff; }
.fr-chip.lead .fr-fans b { color: var(--gold); }
.fr-bar {
  grid-area: bar;
  height: 3px;
  margin-top: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.fr-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(155, 140, 240, .9), rgba(227, 93, 138, .9));
  transition: width .35s ease;
}
.fr-chip.lead .fr-bar i {
  background: linear-gradient(90deg, var(--gold), #f6dca6);
  box-shadow: 0 0 8px rgba(232, 196, 122, .5);
}

/* ---------------- 舞台容器（默认隐藏，Live 才出现） ---------------- */
.wrap[data-phase="live"] #liveStage:not([hidden]) {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 14px 16px 0;
  min-width: 0;
  min-height: 320px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(155, 140, 240, .22), transparent 62%),
    radial-gradient(90% 70% at 50% 115%, rgba(227, 93, 138, .16), transparent 62%),
    #100c18;
}
.stage-cover {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(.8) brightness(.5);
  opacity: .5;
  transform: scale(1.06);
  pointer-events: none;
}
.stage-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 54% at 50% 0%, rgba(255, 246, 236, .16), transparent 72%),
    linear-gradient(180deg, rgba(10, 8, 14, .12), rgba(10, 8, 14, .58) 82%);
}

/* ================================================================
   舞台美术三层（2026-11-19 阶段 2）
   ----------------------------------------------------------------
   全部用 CSS 渐变画，不新增任何图片素材：
     .stage-beams     顶部三束灯柱（缓慢摆动，减少动效时静止）
     .stage-band      舞台下沿的乐队剪影（模糊 + 金色边缘光）
   两层都 pointer-events:none，不挡任何点击。
   ================================================================ */
.stage-beams,
.stage-band {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* ---- 灯柱：从舞台顶部打下来的三束光（锥形渐变比两个斜矩形更自然） ---- */
.stage-beams {
  inset: -6% 0 26%;
  opacity: .9;
  background:
    conic-gradient(from 174deg at 50% -8%,
      transparent 0 4%,
      rgba(255, 246, 224, .20) 6% 9%,
      transparent 11% 15%,
      rgba(255, 246, 224, .15) 17% 20%,
      transparent 22% 26%,
      rgba(255, 246, 224, .18) 28% 31%,
      transparent 33% 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 62%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0 62%, transparent 94%);
  animation: beamSway 9s ease-in-out infinite alternate;
}
@keyframes beamSway {
  from { opacity: .62; transform: rotate(-.6deg) scaleY(.985); }
  to   { opacity: .95; transform: rotate(.6deg) scaleY(1.015); }
}
/* ---- 乐队剪影 ---- */
.stage-band {
  left: 50%;
  bottom: 4%;
  width: min(430px, 48%);
  height: 116px;
  transform: translateX(-50%);
  z-index: 1;
  opacity: .55;
  filter: blur(1.5px);
}
.stage-band::before {
  /* 三个人的头肩轮廓 */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38px 34px at 22% 42%, #0a0810 0 92%, transparent 94%),
    radial-gradient(44px 38px at 50% 32%, #0a0810 0 92%, transparent 94%),
    radial-gradient(36px 32px at 78% 44%, #0a0810 0 92%, transparent 94%),
    radial-gradient(120px 92px at 22% 100%, #0a0810 0 92%, transparent 94%),
    radial-gradient(140px 100px at 50% 100%, #0a0810 0 92%, transparent 94%),
    radial-gradient(116px 88px at 78% 100%, #0a0810 0 92%, transparent 94%);
  filter: blur(5px);
}
.stage-band::after {
  /* 金色轮廓光 */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40px 36px at 22% 40%, rgba(232, 196, 122, .16) 0 40%, transparent 62%),
    radial-gradient(46px 40px at 50% 30%, rgba(232, 196, 122, .2) 0 40%, transparent 62%),
    radial-gradient(38px 34px at 78% 42%, rgba(232, 196, 122, .14) 0 40%, transparent 62%);
  filter: blur(7px);
}
@media (prefers-reduced-motion: reduce) {
  .stage-beams { animation: none; }
}
.stage-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .24em;
  color: #cfc3dd;
}
.stage-kicker .h-ico { width: 14px; height: 14px; }
.stage-stat { font-size: 12px; color: var(--muted); }
.stage-stat b { color: var(--ink); font-weight: 700; }
.stage-stat b i { font-style: normal; font-weight: 400; color: var(--muted); }
.stage-played {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 16px);
  padding: 10px 8px 18px;
  overflow: hidden;
}
/* 出牌位：张数多时按容器宽度压缩（不写死 px），少于 6 张时保持效果图尺寸 */
.stage-played .card {
  width: 118px;
  flex: 1 1 0;
  min-width: 84px;
  max-width: 118px;
  transform: rotate(var(--r, 0deg));
  transform-origin: 50% 92%;
}
.stage-slot-empty {
  flex: 1 1 0;
  min-width: 84px;
  max-width: 118px;
  align-self: flex-end;
  aspect-ratio: 3 / 5;
  max-height: 100%;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .015);
  display: grid;
  place-items: center;
  padding: 8px;
  font-size: 11px;
  color: #6f6479;
  text-align: center;
}
.play-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #2a1a24;
  background: linear-gradient(120deg, #f3d7a0, #e8c47a);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
/* 不计入出牌数量：用冷色，避免和「额外名额」的金色角标混淆 */
.play-tag.no-count {
  color: #dcd4ef;
  background: rgba(46, 36, 60, .92);
  border: 1px solid rgba(155, 140, 240, .6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.stage-played .card .card-art { height: 150px; }
.stage-played .card .card-band { display: none; }
.stage-played .card .card-name { font-size: 11.5px; }
.stage-played > .meta { align-self: center; }
.stage-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .45));
  border-top: 1px solid rgba(255, 255, 255, .05);
}
/* 舞台左下：锁定区（Live 阶段常驻，可被洗回类效果作用） */
.locked-zone { display: none; }
.wrap[data-phase="live"] .locked-zone:not([hidden]) {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 214px;
  transition: bottom .18s ease;
}
.wrap[data-phase="live"].dock-open .locked-zone { bottom: 100px; }
.locked-head {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.locked-row { display: flex; gap: 6px; flex-wrap: wrap; }
.locked-chip {
  position: relative;
  width: 46px;
  height: 58px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(155, 140, 240, .45);
  background: #0e0c14;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  transition: transform .14s, border-color .14s;
}
.locked-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.locked-art { display: block; width: 100%; height: 100%; }
.locked-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .55;
  filter: saturate(.6);
}
.locked-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8));
}
.locked-note { font-size: 11px; color: var(--muted); }

/* ---------------- Live 栅格：左队伍 / 中舞台+技能坞+手牌 / 右对手+日志 ---------------- */
.wrap[data-phase="live"] .table {
  /* 舞台多分一点宽度：左右两栏各收 14px，日志另加宽（见下方 log-panel） */
  grid-template-columns: minmax(206px, 232px) minmax(0, 1fr) minmax(250px, 300px);
  grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "th    stage right"
    "tm    stage right"
    "res   stage right"
    "enc   stage right"
    "stc   stage right"
    "lck   stage right"
    "brd   stage right"
    "brd   dock  right"
    "brd   hand  right";
  gap: 10px;
}
/* 坚定/崩溃 + 已锁定：Live 里塞进左栏底部。
   这两块的标题是装饰性的，Live 屏窄，标题直接藏掉，只留内容（按钮本身写着数量） */
.wrap[data-phase="live"] .h-stress,
.wrap[data-phase="live"] .h-locked { display: none; }
.wrap[data-phase="live"] #stressCardsRow { grid-area: stc; }
.wrap[data-phase="live"] #locked { grid-area: lck; }
/* 三栏 / 我的区域 都"透明化"，里面的区块直接参与上面的栅格 */
.wrap[data-phase="live"] .col-left,
.wrap[data-phase="live"] .col-mid,
.wrap[data-phase="live"] #selfPanel { display: contents; }

.wrap[data-phase="live"] #liveStage { grid-area: stage; }
.wrap[data-phase="live"] .h-team {
  grid-area: th;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 2px;
}
.wrap[data-phase="live"] #team { grid-area: tm; }
.wrap[data-phase="live"] #myStats { grid-area: res; }
.wrap[data-phase="live"] #myEncounters { grid-area: enc; }
.wrap[data-phase="live"] #publicPanel {
  grid-area: brd;
  align-self: start;
  max-height: 100%;
  overflow-y: auto;
}
.wrap[data-phase="live"] #hand { grid-area: hand; }
.wrap[data-phase="live"] #skillDock { grid-area: dock; }
.wrap[data-phase="live"] .col-right { grid-area: right; }
.wrap[data-phase="live"] .h-hand,
.wrap[data-phase="live"] .h-played,
.wrap[data-phase="live"] .h-area,
.wrap[data-phase="live"] .h-locked,
.wrap[data-phase="live"] #selfPanel > .panel-head,
.wrap[data-phase="live"] #played,
.wrap[data-phase="live"] #playerArea,
.wrap[data-phase="live"] #locked,
.wrap[data-phase="live"] #pilesPanel { display: none; }

/* 左栏：队伍行 */
.wrap[data-phase="live"] .team-row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  max-height: clamp(240px, 46vh, 440px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.wrap[data-phase="live"] .char-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "art main"
    "art skills";
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  padding: 5px 7px;
  border-radius: 11px;
}
.wrap[data-phase="live"] .char-card .char-art {
  grid-area: art;
  width: 44px;
  height: 52px;
}
.wrap[data-phase="live"] .char-card .char-art .art { height: 100%; }
.wrap[data-phase="live"] .char-card .char-main { grid-area: main; min-width: 0; }
.wrap[data-phase="live"] .char-card .inst-row { display: none; }
.wrap[data-phase="live"] .char-card .meter { display: none; }
.wrap[data-phase="live"] .char-card .pill { margin: 1px 2px 0 0; font-size: 11px; padding: 0 5px; }
.wrap[data-phase="live"] .char-card .char-name-row .name { font-size: 12px; }
.wrap[data-phase="live"] .char-card .skill-btns {
  grid-area: skills;
  gap: 3px;
  margin-top: 1px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.wrap[data-phase="live"] .char-card .skill-btns::-webkit-scrollbar { display: none; }
.wrap[data-phase="live"] .char-card .skill-btn {
  font-size: 11px;
  padding: 1px 7px;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 左栏：资源 / 遭遇条 */
.wrap[data-phase="live"] #myStats {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  gap: 6px;
}
.wrap[data-phase="live"] #myStats .res { padding: 4px 9px; font-size: 11.5px; }
.wrap[data-phase="live"] #myStats .res img { width: 17px; height: 17px; }
.wrap[data-phase="live"] #myEncounters:empty { display: none; }

/* 左栏：板块细带（Live 里压成一行行小药丸，只留名字 + 在场角色） */
.wrap[data-phase="live"] #publicPanel { padding: 8px 9px; min-height: 0; }
.wrap[data-phase="live"] #publicPanel > h2 { display: none; }
.wrap[data-phase="live"] #publicPanel .boards,
.wrap[data-phase="live"] #publicPanel .boards.small {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}
.wrap[data-phase="live"] #publicPanel .board,
.wrap[data-phase="live"] #publicPanel .boards.small .board {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 3px 8px;
  border-radius: 999px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  transform: none;
}
.wrap[data-phase="live"] #publicPanel .board.has-art,
.wrap[data-phase="live"] #publicPanel .boards.small .board.has-art {
  background-image: none !important;
  background-color: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  max-height: none;
  overflow: visible;
}
.wrap[data-phase="live"] #publicPanel .board.has-art::after { display: none; }
.wrap[data-phase="live"] #publicPanel .board-meta {
  margin: 0;
  flex-direction: row;
  align-items: center;
  gap: 3px;
}
.wrap[data-phase="live"] #publicPanel .board-title { font-size: 11px; font-weight: 600; gap: 0; }
.wrap[data-phase="live"] #publicPanel .board-title .info-btn,
.wrap[data-phase="live"] #publicPanel .board-hint { display: none; }
.wrap[data-phase="live"] #publicPanel .board .title { font-size: 11px; }
.wrap[data-phase="live"] #publicPanel .board .sub,
.wrap[data-phase="live"] #publicPanel .board .effect,
.wrap[data-phase="live"] #publicPanel .lv-bar,
.wrap[data-phase="live"] #publicPanel .lv-chip,
.wrap[data-phase="live"] #publicPanel .board .station .adv,
.wrap[data-phase="live"] #publicPanel .board .station .seat { display: none; }
.wrap[data-phase="live"] #publicPanel .board .station,
.wrap[data-phase="live"] #publicPanel .board-foot {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  margin: 0;
}
.wrap[data-phase="live"] #publicPanel .board .station .chip-occ { font-size: 11px; }
.wrap[data-phase="live"] #publicPanel .chip-occ { font-size: 11px; padding: 0 5px; }
.wrap[data-phase="live"] #publicPanel .empty-slot { font-size: 11px; }
.wrap[data-phase="live"] #publicPanel #publicArea { gap: 4px; }
.wrap[data-phase="live"] #publicPanel #publicArea:not(:has(.card)) { display: none; }

/* 手牌：扇形（--r / --y / --fan-gap 由 app.js 按张数写内联） */
.wrap[data-phase="live"] #hand {
  display: flex;
  flex-wrap: nowrap;
  /* 2026-11-24 修：扇形手牌原来 overflow:visible + 居中，一行 8 张比中间栏宽时
     两侧的牌直接跑到栏外、手指也滑不动（录屏里的「只在中间，划不动」）。
     改成可横向滚动 + safe center：放得下仍然居中，放不下自动靠左、能滑回第一张。 */
  justify-content: safe center;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  padding: 16px 6px 26px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.wrap[data-phase="live"] #hand .card {
  width: 120px;
  flex: 0 0 120px;
  margin-left: var(--fan-gap, 0px);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transform-origin: 50% 130%;
  transition: transform .16s, border-color .14s, box-shadow .14s;
}
.wrap[data-phase="live"] #hand .card:first-child { margin-left: 0; }
.wrap[data-phase="live"] #hand .card .card-art { height: 156px; }
.wrap[data-phase="live"] #hand .card:hover {
  transform: rotate(var(--r, 0deg)) translateY(calc(var(--y, 0px) - 12px)) scale(1.03);
  z-index: 5;
}
.wrap[data-phase="live"] #hand > .meta { align-self: center; }

/* 手牌分页条：只在 Live 且超过 8 张时出现，浮在手牌下沿 */
.hand-pager { display: none; }
.wrap[data-phase="live"] .hand-pager:not([hidden]) {
  grid-area: hand;
  align-self: end;
  justify-self: center;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  margin-bottom: 2px;
  border-radius: 999px;
  background: rgba(10, 8, 14, .74);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.hand-arrow {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
}
.hand-arrow:hover:not(:disabled) { border-color: var(--gold); }
.hand-arrow:disabled { opacity: .25; cursor: default; }
.hand-page-info { letter-spacing: .02em; }
/* 有分页条时给手牌多留一点下沿，免得压住卡名 */
.wrap[data-phase="live"] #hand.has-pager { padding-bottom: 46px; }

/* 技能坞：浮在舞台底部（不占栅格行，开关时不挤队伍/手牌） */
.skill-dock { display: none; }
.wrap[data-phase="live"] .table { position: relative; }
.wrap[data-phase="live"] .skill-dock:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  min-height: 78px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(232, 196, 122, .32);
  background:
    linear-gradient(120deg, rgba(232, 196, 122, .09), rgba(227, 93, 138, .06) 55%, rgba(155, 140, 240, .08)),
    var(--panel);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: dockIn .18s ease-out both;
}
/* 坞盖住舞台底部：把台上的出牌往上让出位置（只动卡片，不动页面栅格） */
.wrap[data-phase="live"] .stage-played { transition: padding-bottom .18s ease; }
.wrap[data-phase="live"].dock-open .stage-played { padding-bottom: 108px; }
@keyframes dockIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.dock-char { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.dock-art {
  width: 54px;
  height: 64px;
  border-radius: 9px;
  overflow: hidden;
  background: #0e0c14;
  border: 1px solid var(--line);
}
.dock-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.dock-meta { min-width: 100px; }
.dock-name { display: flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 700; }
.dock-band { font-size: 11px; font-weight: 400; color: var(--muted); }
.dock-state { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.dock-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
.dock-skill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #ece3ff;
  background: linear-gradient(120deg, rgba(155, 140, 240, .28), rgba(227, 93, 138, .18));
  border: 1px solid rgba(155, 140, 240, .5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.dock-skill:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(232, 196, 122, .2);
}
.dock-skill .ds-count { font-size: 11px; color: var(--gold); }
.dock-skill .ds-reason { font-size: 11px; color: #a99cb8; }
.dock-skill.off {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: #7f7489;
  box-shadow: none;
  cursor: not-allowed;
}
.dock-skill.off .ds-count { color: #7f7489; }
.dock-close {
  flex: 0 0 auto;
  margin-left: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  box-shadow: none;
}
.dock-close:hover { color: var(--ink); border-color: var(--gold); }

/* 角色行右侧的 ⚡：有可用技能时点亮，点开就是技能坞 */
.wrap[data-phase="live"] .char-card .skill-bolt {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: #6f6479;
  font-size: 11px;
  line-height: 1;
}
.wrap[data-phase="live"] .char-card .skill-bolt.on {
  color: #2a1a24;
  border-color: transparent;
  background: linear-gradient(120deg, #f3d7a0, #e8c47a);
  box-shadow: 0 0 16px rgba(232, 196, 122, .4);
}
.wrap[data-phase="live"] .char-card.is-dock-open {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 12px 26px rgba(232, 196, 122, .12);
}

/* ---------------- 转场：0ms 板块收带 → 180ms 手牌入扇 → 200ms 灯亮 → 700ms 到位 ---------------- */
@keyframes liveStripIn {
  from { opacity: .25; transform: translateY(-14px) scaleX(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes liveStageIn {
  0%   { opacity: 0; transform: translateY(12px) scale(.985); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes liveSpotOn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes liveFanIn {
  from { opacity: 0; transform: rotate(0deg) translateY(72px) scale(.92); }
  to   { opacity: 1; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); }
}
#playArea.phase-enter #publicPanel {
  animation: liveStripIn .46s cubic-bezier(.2, .7, .2, 1) both;
}
#playArea.phase-enter #liveStage {
  animation: liveStageIn .5s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: .2s;
}
#playArea.phase-enter .stage-spot {
  animation: liveSpotOn .5s ease-out both;
  animation-delay: .2s;
}
#playArea.phase-enter #hand .card {
  animation: liveFanIn .48s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.18s + var(--i, 0) * 18ms);
}

/* ---------------- Live 断点：单独写，不动公共 .table 规则 ---------------- */
@media (max-width: 1180px) {
  .wrap[data-phase="live"] .table {
    grid-template-columns: minmax(200px, 226px) minmax(0, 1fr) minmax(214px, 250px);
  }
  .wrap[data-phase="live"] .stage-played .card { width: 104px; flex-basis: 104px; }
  .wrap[data-phase="live"] .stage-played .card .card-art { height: 132px; }
  .wrap[data-phase="live"] #hand .card { width: 112px; flex-basis: 112px; }
  .wrap[data-phase="live"] #hand .card .card-art { height: 146px; }
}

@media (max-width: 1180px) {
  .wrap[data-phase="live"] .table {
    grid-template-columns: 190px minmax(0, 1fr) 214px;
  }
  .wrap[data-phase="live"] .char-card { grid-template-columns: 44px minmax(0, 1fr); }
  .wrap[data-phase="live"] .char-card .char-art { width: 44px; height: 54px; }
  .wrap[data-phase="live"] .stage-played .card { width: 94px; flex-basis: 94px; }
  .wrap[data-phase="live"] .stage-played .card .card-art { height: 118px; }
}

/* 窄屏（≤980）：单列，从上到下 = 舞台 / 手牌 / 队伍 / 资源 / 板块 / 对手日志 */
@media (max-width: 900px) {
  .wrap[data-phase="live"] .table {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 10px;
  }
  .wrap[data-phase="live"] #liveStage:not([hidden]) { min-height: 300px; order: 1; }
  .wrap[data-phase="live"] #skillDock { order: 2; }
  /* 2026-11-24 修：Live 手牌是「扇形居中 + overflow:visible」，
     一行 8 张在手机上（390~900 宽）比屏幕宽得多，两侧的牌直接跑到屏幕外，
     手指也滑不动（没有滚动条、居中布局又不能负向滚动）。
     窄屏改成从左边开始的横向滚动条，滑就能翻到最前面。 */
  .wrap[data-phase="live"] #hand {
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 4px;
    padding-right: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .wrap[data-phase="live"] #hand .card { scroll-snap-align: start; }
  .wrap[data-phase="live"] .hand-pager { order: 3; align-self: center; }
  .wrap[data-phase="live"] .h-team { order: 4; }
  .wrap[data-phase="live"] #team { order: 5; max-height: none; }
  .wrap[data-phase="live"] #myStats { order: 6; }
  .wrap[data-phase="live"] #myEncounters { order: 7; }
  .wrap[data-phase="live"] #publicPanel { order: 8; overflow: visible; }
  .wrap[data-phase="live"] .col-right { order: 9; }
}

/* 矮屏：队伍行和舞台卡再压一档 */
@media (max-height: 820px) {
  .wrap[data-phase="live"] .char-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 3px 6px;
    row-gap: 1px;
  }
  .wrap[data-phase="live"] .char-card .char-art { width: 36px; height: 44px; }
  .wrap[data-phase="live"] .char-card .char-name-row .name { font-size: 11.5px; }
  .wrap[data-phase="live"] .char-card .pill { font-size: 11px; padding: 0 4px; }
  .wrap[data-phase="live"] .char-card .skill-btn { font-size: 11px; padding: 0 6px; }
  .wrap[data-phase="live"] .team-row {
    gap: 5px;
    padding: 6px;
    max-height: 44vh;
  }
  .wrap[data-phase="live"] .char-card { padding: 3px 6px; column-gap: 6px; }
  .wrap[data-phase="live"] #myStats { padding: 6px 8px; gap: 4px; }
  .wrap[data-phase="live"] #myStats .res { padding: 3px 8px; font-size: 11px; }
  .wrap[data-phase="live"] #myStats .res img { width: 15px; height: 15px; }
  .wrap[data-phase="live"] .stage-played .card { width: 100px; flex-basis: 100px; }
  .wrap[data-phase="live"] .stage-played .card .card-art { height: 126px; }
  .wrap[data-phase="live"] #hand .card { width: 88px; flex-basis: 88px; }
  .wrap[data-phase="live"] #hand .card .card-art { height: 112px; }
  .wrap[data-phase="live"] #hand .card .card-name { font-size: 11px; }
  .wrap[data-phase="live"] #hand .card .card-band { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #playArea.phase-enter #publicPanel,
  #playArea.phase-enter #liveStage,
  #playArea.phase-enter .stage-spot,
  #playArea.phase-enter #hand .card { animation: none; }
}


/* ================================================================
   v0.8.2 Step 3 · 混音结算回放面板
   ================================================================ */
.mix-panel {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 6, 12, .62);
  backdrop-filter: blur(2px);
  overflow-y: auto;
}
.mix-panel.hidden { display: none; }
.mix-box {
  width: min(760px, 94vw);
  border-radius: 18px;
  border: 1px solid rgba(227, 93, 138, .35);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(155, 140, 240, .18), transparent 60%),
    linear-gradient(180deg, #241d33, #17131f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  padding: 18px 20px;
  animation: mixIn .2s ease-out both;
}
@keyframes mixIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.mix-head { display: flex; gap: 14px; align-items: center; }
.mix-art {
  width: 86px;
  height: 112px;
  border-radius: 9px;
  overflow: hidden;
  background: #0e0c14;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}
.mix-art img { width: 100%; height: 100%; object-fit: contain; }
.mix-kicker { font-size: 11px; letter-spacing: .16em; color: #ff9db8; }
.mix-name { font-size: 24px; font-weight: 800; margin-top: 2px; }
.mix-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.mix-effect {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: #ded5ee;
}
.mix-hint {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(91, 140, 255, .16), rgba(155, 140, 240, .12));
  border: 1px solid rgba(120, 150, 255, .4);
}
.mix-hint-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4fd6c8, #3b8fd8);
  box-shadow: 0 4px 12px rgba(60, 160, 220, .35);
}
.mix-hint-icon img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
.mix-hint-body { min-width: 0; }
.mix-hint-title { font-weight: 700; font-size: 13px; }
.mix-hint-rule { margin-top: 4px; font-size: 12px; color: #d8d0ea; }
.mix-hint-result { margin-top: 6px; font-size: 12px; color: #f3d7a0; font-weight: 600; }
.mix-dest { margin-top: 14px; font-size: 12px; }
.mix-dest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 2px;
  border-top: 1px dashed rgba(255, 255, 255, .08);
}
.mix-tag { padding: 1px 9px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line); }
.mix-tag.on { color: #2a1a24; background: linear-gradient(120deg, #f3d7a0, #e8c47a); border-color: transparent; }
.mix-tag.off { color: #a99cb8; }
.mix-dest-name { flex: 1 1 auto; }
.mix-dest-to { color: var(--muted); }
.mix-dest-note { font-size: 11.5px; color: #a99cb8; padding: 2px 0 0 2px; }
.mix-foot { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.mix-note { flex: 1 1 auto; font-size: 11px; color: #6f6479; line-height: 1.5; }
.mix-close { padding: 9px 26px; border-radius: 999px; background: linear-gradient(120deg, #f06a97, #b45bd8); }

/* ================================================================
   v0.8.4 轮抽界面重做
   效果图：docs/mockups/轮抽优化-方案A-展柜.png
   ================================================================ */
#draftPanel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding: 14px 20px;
  background:
    radial-gradient(1000px 460px at 42% -20%, rgba(155, 140, 240, .16), transparent 70%),
    linear-gradient(180deg, #201a2c, #17131f 72%);
}
.draft-head { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.draft-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
}
#draftTitle { color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.draft-round { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.draft-hint { font-size: 11px; color: #7f7489; }
.draft-status {
  margin-left: auto;
  padding: 3px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  color: #2a1a24;
  background: linear-gradient(120deg, #f3d7a0, #e8c47a);
  box-shadow: 0 4px 14px rgba(232, 196, 122, .3);
  white-space: nowrap;
}
.draft-status.wait {
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  box-shadow: none;
}
.draft-status.budget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 13px;
  color: #ece3ff;
  font-weight: 700;
  background: rgba(155, 140, 240, .18);
  border: 1px solid rgba(155, 140, 240, .4);
  box-shadow: none;
}
.draft-status.budget .budget-item { display: inline-flex; align-items: baseline; gap: 2px; }
.draft-status.budget .budget-item b { font-size: 20px; line-height: 1; letter-spacing: .02em; }
.draft-status.budget .budget-cap { font-size: 11px; color: #b9aef0; }
.draft-status.budget .budget-sep { color: #6f6488; }
.draft-status.budget .budget-bar {
  width: 66px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}
.draft-status.budget .budget-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b9a6ff, #8e7bf0);
  transition: width .2s ease;
}
.draft-status.budget.over .budget-bar i { background: linear-gradient(90deg, #ff8fb0, #e35d8a); }
.draft-status.over {
  color: #ffb6ca;
  background: rgba(227, 93, 138, .2);
  border-color: rgba(227, 93, 138, .5);
}

.draft-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 14px 20px;
}
#draftPanel.team-mode .draft-body { grid-template-columns: minmax(0, 1fr); }
#draftPanel.team-mode .draft-aside { display: none; }

/* ---- 卡池 ---- */
#draftPool.draft-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 14px 12px;
  max-height: none;
  overflow: visible;
  padding: 0;
  min-height: 0;
  position: relative;
}
#draftPool::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1200px;
  height: 620px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 196, 122, .10), rgba(227, 93, 138, .04) 55%, transparent 74%);
  pointer-events: none;
}
.draft-card {
  position: relative;
  z-index: 1;
  width: 210px;
  height: 310px;
  padding: 7px 7px 0;
  border-radius: 15px;
  background: linear-gradient(180deg, #241e32, #171220);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.draft-card:hover {
  transform: translateY(-10px);
  border-color: rgba(232, 196, 122, .75);
  box-shadow: 0 26px 46px rgba(0, 0, 0, .6), 0 0 0 1px rgba(232, 196, 122, .25) inset;
}
.draft-card.disabled { opacity: .55; cursor: default; }
.draft-card.disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, .13);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .55);
}
.draft-card.is-picked {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(232, 196, 122, .55) inset, 0 18px 34px rgba(0, 0, 0, .55);
}
.draft-art {
  width: 100%;
  height: 248px;
  border-radius: 9px;
  overflow: hidden;
  background: #0e0c14;
}
.draft-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 角色异画：卡牌高度与普通卡一致，异画在卡内等比缩小；
   两侧不再是黑边，而是同一张图的模糊铺底（高级感、也不浪费空间） */
.draft-art { position: relative; }
.draft-card.has-alt .draft-art { background: #0b0910; }
.draft-card.has-alt .draft-art img.art { object-fit: contain; position: relative; z-index: 1; }
.draft-card.has-alt .draft-art img.art-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: blur(12px) brightness(.42) saturate(1.15);
  transform: scale(1.15);
}
.draft-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  padding: 8px 2px 0;
}
.draft-name .nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-sub { font-size: 11px; color: var(--muted); padding: 2px 2px 9px; display: flex; align-items: center; gap: 5px; }
.band-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.sub-ico { width: 12px; height: 12px; object-fit: contain; opacity: .75; margin-left: 4px; }
.draft-cost {
  position: absolute;
  top: 11px;
  right: 11px;          /* 从左上挪到右上，不再压住卡面左侧的竖排名字 */
  left: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  color: #2a1a24;
  background: linear-gradient(120deg, #f3d7a0, #e8c47a);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}
.draft-cost .cost-ico {
  width: 13px;
  height: 13px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);   /* 白描图标压成深色，压在金色底上 */
  opacity: .78;
}
.draft-check {
  /* 勾选跟在名字后面，不再压住卡面 */
  position: static;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #2a1a24;
  background: linear-gradient(120deg, #f3d7a0, #e8c47a);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .4);
}

/* ---- 右栏 ---- */
.draft-aside { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.draft-aside .band-shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.draft-aside .shelf-item { background: transparent; border: 0; padding: 0; flex-direction: row; gap: 7px; }
.draft-aside .shelf-cover { width: 30px; height: 30px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; }
.draft-aside .shelf-cover::after { margin: 11px; width: 8px; height: 8px; }
.draft-aside .shelf-name { font-size: 11px; color: #cbbfe0; }
.rail-title {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
}
.rail-title.them { color: #b5a7e8; }
.draft-rail { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.rail-block {
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.rail-meta { font-size: 11px; color: #8d8299; }
.rail-hint {
  margin-top: auto;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .12);
  font-size: 11px;
  color: #8d8299;
  line-height: 1.8;
}
.rail-hint .rail-title { margin-bottom: 2px; }

/* ---- 组队阶段底部条 ---- */
.draft-team-bar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;            /* 窄屏放不下就换行，别把中间的角色标签挤成竖条 */
  align-items: center;
  gap: 8px 12px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.draft-team-bar.hidden { display: none; }
.tbar-label { font-size: 11px; letter-spacing: .16em; color: var(--gold); white-space: nowrap; }
/* flex-basis 给个下限：挤不下时整块换到下一行（占满宽），而不是压成 18px */
.tbar-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
  flex: 1 1 180px;
  min-width: 0;
}
.tbar-cost { font-size: 12.5px; font-weight: 700; color: #d9cdf8; white-space: nowrap; }
#confirmTeam { white-space: nowrap; }

/* 手机：角色标签独占一行，费用/按钮换到第二行 */
@media (max-width: 640px) {
  .tbar-chips { flex-basis: 100%; }
  .draft-team-bar { gap: 6px 10px; }
}

/* ---- 断点 ---- */
@media (max-width: 1180px) {
  .draft-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .draft-card { width: 190px; height: 286px; }
  .draft-art { height: 228px; }
  .draft-name { font-size: 14px; }
}
@media (max-height: 820px) {
  .draft-card { width: 180px; height: 272px; }
  .draft-art { height: 214px; }
  .draft-name { font-size: 13.5px; padding-top: 6px; }
}
@media (max-width: 1180px) {
  .draft-body { grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; }
  .draft-card { width: 180px; height: 272px; }
  .draft-art { height: 214px; }
}
@media (max-width: 900px) {
  #draftPanel { height: auto; padding: 12px 14px; }
  .draft-body { display: flex; flex-direction: column; }
  .draft-aside { display: grid; grid-template-columns: 1fr; }
  .draft-card { width: 150px; height: 232px; }
  .draft-art { height: 178px; }
  .draft-name { font-size: 12.5px; }
}

/* ================================================================
   v0.8.5 动效 A 批：弹窗 / Toast / 日志 / 阶段切换
   ================================================================ */
:root {
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-scene: 420ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---- 弹窗：背景淡入 + 弹框上浮（关闭反向） ---- */
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalBoxIn {
  from { opacity: 0; transform: translateY(14px) scale(.975); }
  to   { opacity: 1; transform: none; }
}
@keyframes modalBoxOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(8px) scale(.985); }
}
.modal.entering { animation: modalFadeIn var(--dur-fast) var(--ease-out) both; }
.modal.entering .modal-box { animation: modalBoxIn 200ms var(--ease-out) both; }
.modal.closing {
  animation: modalFadeOut 140ms ease-in both;
  pointer-events: none;
}
.modal.closing .modal-box { animation: modalBoxOut 140ms ease-in both; }

/* ---- Toast：淡入上浮，2 秒后淡出 ---- */
.toast {
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* ---- 日志：只让新行淡入 ---- */
@keyframes logIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
#log .entry.log-in { animation: logIn 180ms var(--ease-out) both; }

/* ---- 阶段切换（非 Live）：三栏依次淡入上浮 ---- */
@keyframes phaseRise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
#playArea.phase-enter-work .col { animation: phaseRise 260ms var(--ease-out) both; }
#playArea.phase-enter-work .col-left { animation-delay: 0ms; }
#playArea.phase-enter-work .col-mid { animation-delay: 70ms; }
#playArea.phase-enter-work .col-right { animation-delay: 140ms; }
#playArea.phase-enter-preparation .col,
#playArea.phase-enter-settlement .col { animation: phaseRise 240ms var(--ease-out) both; }
#playArea.phase-enter-preparation .col-mid,
#playArea.phase-enter-settlement .col-mid { animation-delay: 60ms; }
#playArea.phase-enter-preparation .col-right,
#playArea.phase-enter-settlement .col-right { animation-delay: 110ms; }

/* 系统开了「减少动效」：以上全部关掉 */
@media (prefers-reduced-motion: reduce) {
  .modal.entering,
  .modal.closing,
  .modal.entering .modal-box,
  .modal.closing .modal-box,
  #log .entry.log-in,
  #playArea.phase-enter-work .col,
  #playArea.phase-enter-preparation .col,
  #playArea.phase-enter-settlement .col { animation: none; }
  .toast { transition: none; }
}

/* ================================================================
   v0.8.6 轮抽选人动效
   ================================================================ */
.draft-card.is-picking {
  z-index: 5;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 196, 122, .5) inset, 0 22px 44px rgba(0, 0, 0, .6);
  transform: translateY(-10px) scale(1.03);
}
.draft-card.is-picking-out {
  opacity: 0;
  transform: translateY(-16px) scale(.9);
  transition: opacity 160ms ease, transform 160ms ease;
}
.draft-fly {
  position: fixed;
  z-index: 210;
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 122, .7);
  background: #0e0c14;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .6);
  will-change: transform, opacity;
}
.draft-fly img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes poolIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
#draftPool.pool-refresh .draft-card {
  animation: poolIn .28s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 20ms);
}
@keyframes chipPop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.14); opacity: 1; }
  100% { transform: none; }
}
.picked-chip.chip-pop { animation: chipPop .34s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  .draft-card.is-picking,
  .draft-card.is-picking-out { transition: none; }
  #draftPool.pool-refresh .draft-card,
  .picked-chip.chip-pop { animation: none; }
}

/* ================================================================
   v0.8.7 开始界面：选乐队封套 + 白色图标
   ================================================================ */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-ico { width: 13px; height: 13px; opacity: .8; }
.setup { gap: 10px; }
.setup label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  color: #cbbfe0;
  font-size: 12px;
}
.setup .setup-ico { width: 14px; height: 14px; opacity: .7; }
.setup select {
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12.5px;
}
.band-setup { flex-direction: column; align-items: center; gap: 12px; width: 100%; margin-top: 14px; }
.start-center { width: 100%; max-width: 1100px; margin: auto 0; }
.band-setup-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: min(var(--band-w, 980px), 100%);
  margin: 0 auto;
  text-align: left;
}
.band-setup-title {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #e8ddf7;
}
.band-setup-title::before {
  content: "";
  width: 3px;
  height: 12px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f3d7a0, #e35d8a);
}
.band-setup-sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.band-pick-count {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(232, 196, 122, .12);
  border: 1px solid rgba(232, 196, 122, .35);
  font-weight: 600;
}
.band-pick-count:empty { display: none; }
#startBtn { display: inline-flex; align-items: center; gap: 10px; }
#startBtn .btn-play { width: 18px; height: 18px; opacity: .95; }

/* ---------------- 资料面板（codex.js） ---------------- */
/* 资料内容多，弹窗要宽一些；只在资料打开时加 .wide，不影响其它弹窗 */
#modal.wide .modal-box { width: min(1060px, 94vw); }
#modal.wide #modalBody { max-height: 72vh; }
.cdx-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.cdx-tab {
  font-size: 12px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
}
.cdx-tab.on {
  color: #1d1526; font-weight: 800; border-color: transparent;
  background: linear-gradient(120deg, #f3d7a0, #e8c47a);
}
.cdx-section {
  margin: 14px 0 8px; font-size: 11px; letter-spacing: .16em; color: #9d92b0;
}
.cdx-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.cdx-term {
  display: flex; gap: 9px; padding: 9px 10px; min-height: 88px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 11px;
}
.cdx-term-ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(155, 140, 240, .16); border: 1px solid rgba(155, 140, 240, .3);
}
.cdx-term-ico img { width: 20px; height: 20px; object-fit: contain; }
.cdx-term-name { font-size: 12.5px; font-weight: 800; }
.cdx-term-desc { font-size: 11px; line-height: 1.5; color: #b6abca; margin-top: 2px; }
.cdx-chip {
  display: inline-block; margin-top: 5px; font-size: 11px; padding: 1px 6px;
  border-radius: 999px; color: #cfc3ea; border: 1px solid rgba(255, 255, 255, .14);
}
.cdx-tokens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cdx-token {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 11px;
}
.cdx-token img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.cdx-token-name { font-size: 12px; font-weight: 800; width: 70px; flex: 0 0 auto; }
.cdx-token-desc { font-size: 11px; color: #b6abca; line-height: 1.45; }
.cdx-words { display: flex; flex-wrap: wrap; gap: 7px; }
.cdx-word {
  font-size: 11px; padding: 5px 11px; border-radius: 999px;
  background: rgba(155, 140, 240, .14); border: 1px solid rgba(155, 140, 240, .28);
  color: #d9cdf8;
}
.cdx-word b { color: #fff; margin-right: 5px; }
.cdx-mix { display: flex; flex-direction: column; gap: 5px; }
.cdx-mix-row {
  display: flex; align-items: center; gap: 12px; padding: 5px 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 11px;
}
/* 统一白底垫片（不放描边/投影，视觉上更干净） */
.cdx-logo-plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 8px; padding: 4px 6px;
  flex: 0 0 auto;
}
.cdx-logo-plate.wide { padding: 5px 8px; }
.cdx-mix-logo {
  width: 96px; height: 34px; object-fit: contain; display: block;
}
.cdx-mix-band { width: 150px; flex: 0 0 150px; font-size: 13px; font-weight: 800; }
.cdx-mix-rule { font-size: 11px; color: #b6abca; line-height: 1.5; }
.cdx-note { margin-top: 10px; font-size: 11px; color: #8b7fa3; line-height: 1.6; }
.cdx-bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cdx-band {
  padding: 10px 12px; background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 11px;
}
.cdx-band-logo {
  height: 46px; max-width: 230px; object-fit: contain; display: block;
}
.cdx-band-name { font-size: 11px; color: #9d92b0; margin: 4px 0 5px; }
.cdx-band-line { font-size: 11px; line-height: 1.5; color: #b6abca; margin-top: 3px; }
.cdx-advice { color: #cfc3ea; }

@media (max-width: 900px) {
  .cdx-terms { grid-template-columns: 1fr; }
  .cdx-tokens, .cdx-bands { grid-template-columns: 1fr; }
}

/* 乐队资料弹窗顶部的 logo */
.band-info-logo {
  display: inline-block; margin: 0 0 10px; padding: 5px 8px; border-radius: 8px;
  background: #fff;
}
.band-info-logo img {
  height: 40px; max-width: 240px; object-fit: contain; display: block;
}

/* 板块上的角色可以点开看详情 */
.chip-occ.clickable { cursor: pointer; border-bottom: 1px dashed rgba(255,255,255,.35); }
/* 特殊板块卡片上「站着谁」的一行 */
.occ-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip-occ.clickable:hover { color: #fff; background: rgba(155,140,240,.35); }

.dock-fade { display: none; }

/* 平板（≤980）：唱片墙 / 飘过的卡是装饰层，别让它们撑出横向滚动条 */
@media (max-width: 900px) {
  /* 窄屏改成整页（html）滚动：body 一旦 overflow:auto 就成了内层滚动容器，
     页头的 position:sticky 会失效，tab 切换时的 scrollTo 也滚不动 */
  html { overflow-x: hidden; }
  body { height: auto; min-height: 100dvh; overflow: visible; }
}

/* ================================================================
   v0.8.14 手机适配（≤720px）
   ----------------------------------------------------------------
   桌面布局一行不动，下面全部只在窄屏生效：
   1) 开始界面：唱片封套两列、整页可上下滚动、按钮拉满；
   2) 游戏界面：底栏开关收成一行不盖正文、Live 队伍卡两列；
   3) 照顾刘海屏：底部留 safe-area。
   ================================================================ */
@media (max-width: 900px) {
  /* ---------- 开始界面 ---------- */
  /* 关键：flex 子项默认 min-width:auto，会被卡片的最小内容宽度撑开 */
  .start-center { min-width: 0; padding: 16px 14px calc(88px + env(safe-area-inset-bottom)); }
  .band-setup, .band-grid { min-width: 0; max-width: 100%; }
  .eyebrow { margin-bottom: 14px; padding: 4px 11px; font-size: 11px; letter-spacing: .2em; }
  .eyebrow-ico { width: 12px; height: 12px; }
  .start-center h1 { font-size: clamp(32px, 10.5vw, 46px); letter-spacing: .1em; }
  .lead { font-size: 12.5px; margin: 8px 0 16px; }
  .setup { flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .setup label { padding: 5px 10px 5px 9px; }
  .band-setup { gap: 10px; margin-top: 4px; }
  .band-setup-head { flex-wrap: wrap; gap: 2px 8px; }
  .band-setup-sub { font-size: 11px; }
  /* 手机：三列，10 支乐队 4 行就能放完，开始按钮不用滚很远 */
  .band-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .band-card .band-logo { left: 11px; bottom: 30px; max-height: 34px; }
  .band-card .band-name { left: 11px; bottom: 10px; font-size: 11px; }
  #startBtn { width: min(100%, 340px); justify-content: center; }
  .version { margin-top: 14px; font-size: 11px; }

  /* ---------- 游戏界面 ---------- */
  /* 装饰层（唱片墙 / 飘过的卡）比屏幕宽，别让它撑出横向滚动条 */
  html { overflow-x: hidden; }
  body { overflow-x: clip; }
  /* 整页滚动（≤980 的规则已经设过，这里保持一致性） */
  body { height: auto; min-height: 100dvh; overflow: visible; }
  /* flex:0 0 auto —— 否则 body 是 flex 容器时页头会被压扁，内容压到下面 */
  header { flex: 0 0 auto; min-height: 0; padding: 6px 10px; gap: 6px 8px; }
  header button { padding: 5px 9px; font-size: 11.5px; }
  header .chip { padding: 3px 9px; font-size: 11px; }
  /* 这个 spacer 会把按钮顶到下一行，手机上省掉，页头从 3 行缩到 2 行 */
  header .spacer { display: none; }
  /* 信息条自己横滑（不换行），把「你的回合」和按钮留在同一行两排里 */
  header .chips { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 76px); }
  header .turn-badge { flex: 0 0 auto; }
  header .chip { padding: 2px 8px; flex: 0 0 auto; white-space: nowrap; }
  .wrap { padding: 8px 8px calc(70px + env(safe-area-inset-bottom)); }
  .panel { padding: 9px 10px; }
  /* Live 阶段队伍卡：两列，不要再挤成一竖条 */
  .wrap[data-phase="live"] .team-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
  /* 出牌位：4 个空位在 390px 下会顶出右边，允许压缩 */
  .wrap[data-phase="live"] .stage-played { gap: 6px; padding: 8px 6px 14px; }
  .wrap[data-phase="live"] .stage-played .card,
  .wrap[data-phase="live"] .stage-slot-empty { min-width: 0; }

  /* 底部开关后面垫一层渐隐（#dockFade），正文从下面滚过时不会和按钮文字糊在一起 */
  .dock-fade {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(56px + env(safe-area-inset-bottom));
    z-index: 140;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(16, 13, 23, 0), rgba(16, 13, 23, .96) 52%, rgba(16, 13, 23, .99));
  }

  /* ---------- 右下角开关：收成一行，别盖住正文 ---------- */
  .fx-toggle,
  .dev-entry {
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 5px 8px;
    font-size: 11px;
    opacity: .92;
    background: rgba(16, 13, 23, .88);
    backdrop-filter: blur(6px);
  }
  #fxToggle { right: 8px; }
  #musicToggle { right: 64px; }
  #sfxToggle { right: 122px; }
  #sndBtn { right: 180px; }
  .dev-entry { left: 8px; right: auto; }
  .snd-panel { right: 8px; bottom: calc(48px + env(safe-area-inset-bottom)); }
}


/* ================================================================
   v0.8.15 手机页签：牌桌 / 手牌 / 队伍 / 日志
   ----------------------------------------------------------------
   * 只在 ≤720px、且已经进入对局（body.in-game）时出现；
   * 桌面 `.mtabs` 永久 display:none，其它样式也都写在媒体查询里，桌面不受影响；
   * 一次只显示一组内容，Live 里的复杂栅格在手机上拍平成一列。
   ================================================================ */
.mtabs {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 146;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(14, 11, 20, .97);
  border-top: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}
.mtabs button {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 4px 8px;
  background: none;
  border: 0;
  border-radius: 0;
  color: #9d92b0;
  font-size: 11px;
  letter-spacing: .04em;
}
.mtabs button img { width: 18px; height: 18px; opacity: .55; }
.mtabs button.on { color: var(--gold); }
.mtabs button.on img { opacity: 1; }

@media (max-width: 900px) {
  body.in-game:not(.drafting) .mtabs { display: flex; }
  /* 回主菜单时开始页在最前面，页签要让开（开始页 z-index 比页签低） */
  #startScreen:not(.hidden) ~ .mtabs { display: none !important; }

  /* 底部「页签 + 开关」占位 */
  body.in-game .wrap { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  body.in-game:not(.drafting) .fx-toggle,
  body.in-game:not(.drafting) .dev-entry { bottom: calc(58px + env(safe-area-inset-bottom)); }
  body.in-game:not(.drafting) .snd-panel { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.in-game:not(.drafting) .dock-fade { height: calc(100px + env(safe-area-inset-bottom)); }

  /* 轮抽区有一块 1200px 宽的装饰光晕（.draft-grid::before），
     在手机上会把整页撑宽 → 手机浏览器"缩到整页" → 画面只占左半边。这里裁掉。 */
  #draftPool.draft-grid { overflow-x: hidden; }

  /* Live 的三栏/栅格在手机上一律拍平成一列 */
  .wrap[data-phase="live"] .table { display: block; height: auto; }
  .wrap[data-phase="live"] #selfPanel { display: block; }

  /* 先把所有内容块藏起来，再按页签放出（!important 要压过 Live/桌面规则） */
  #liveStage, #publicPanel, #pilesPanel, #selfPanel, #oppPanel, .log-panel,
  .panel-head, #myStats, #myEncounters, .h-team, #team,
  .h-hand, #hand, #handPager, .h-played, #played,
  .h-area, #playerArea, .h-stress, #stressCardsRow, .h-locked, #locked {
    display: none !important;
  }

  /* 每栏只留当前页签需要的那一列，避免空栏留出多余间距 */
  body[data-mtab="table"] .wrap:not([data-phase="live"]) .col-mid,
  body[data-mtab="table"] .wrap:not([data-phase="live"]) .col-right,
  body[data-mtab="table"] .wrap[data-phase="live"] .col-left,
  body[data-mtab="table"] .wrap[data-phase="live"] .col-right,
  body[data-mtab="hand"] .col-left,
  body[data-mtab="hand"] .col-right,
  body[data-mtab="team"] .col-left,
  body[data-mtab="team"] .col-right,
  body[data-mtab="log"] .col-left,
  body[data-mtab="log"] .col-mid { display: none !important; }

  /* —— 牌桌：任务板块 / 赞助商 / 公共区域 / 牌堆 —— */
  body[data-mtab="table"] .wrap:not([data-phase="live"]) #publicPanel,
  body[data-mtab="table"] .wrap:not([data-phase="live"]) #pilesPanel { display: block !important; }
  /* —— 牌桌（Live）：舞台 + 队伍（点角色开技能） —— */
  body[data-mtab="table"] .wrap[data-phase="live"] #liveStage:not([hidden]) { display: flex !important; }
  body[data-mtab="table"] .wrap[data-phase="live"] #selfPanel { display: block !important; }
  body[data-mtab="table"] .wrap[data-phase="live"] .h-team { display: flex !important; }

  /* —— 手牌 —— */
  body[data-mtab="hand"] #selfPanel { display: block !important; }
  body[data-mtab="hand"] .wrap[data-phase="live"] #liveStage:not([hidden]) { display: flex !important; }
  body[data-mtab="hand"] .h-hand { display: block !important; }
  body[data-mtab="hand"] #hand { display: flex !important; scrollbar-width: none; }
  body[data-mtab="hand"] #hand::-webkit-scrollbar { display: none; }
  body[data-mtab="hand"] #handPager:not([hidden]) { display: flex !important; }
  body[data-mtab="hand"] .wrap:not([data-phase="live"]) .h-played { display: block !important; }
  body[data-mtab="hand"] .wrap:not([data-phase="live"]) #played { display: flex !important; }

  /* —— 队伍：资源 / 遭遇 / 角色 / 区域卡 / 坚定崩溃 / 锁定 —— */
  body[data-mtab="team"] #selfPanel { display: block !important; }
  body[data-mtab="team"] .panel-head { display: flex !important; }
  body[data-mtab="team"] #myStats { display: flex !important; }
  body[data-mtab="team"] #myEncounters { display: block !important; }
  body[data-mtab="team"] .h-team { display: block !important; }
  body[data-mtab="team"] .wrap[data-phase="live"] .h-team { display: flex !important; }
  /* 队伍卡固定两列（Live 里原本是一竖条，手机上太窄） */
  body[data-mtab="team"] #team,
  body[data-mtab="table"] .wrap[data-phase="live"] #team {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body[data-mtab="team"] .h-area,
  body[data-mtab="team"] .h-stress,
  body[data-mtab="team"] .h-locked { display: block !important; }
  body[data-mtab="team"] #playerArea,
  body[data-mtab="team"] #stressCardsRow,
  body[data-mtab="team"] #locked { display: flex !important; }

  /* —— 日志：对手 + 实时结算 —— */
  body[data-mtab="log"] #oppPanel { display: block !important; }
  body[data-mtab="log"] .log-panel { display: flex !important; }

  /* Live 手牌：手机不扇形叠在一起，改成可左右滑的卡列 */
  body[data-mtab="hand"] .wrap[data-phase="live"] #hand {
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  body[data-mtab="hand"] .wrap[data-phase="live"] #hand .card {
    width: 108px;
    flex: 0 0 108px;
    margin-left: 0 !important;
    transform: none !important;
  }
  body[data-mtab="hand"] .wrap[data-phase="live"] #hand .card:hover { transform: none !important; }
  body[data-mtab="hand"] .wrap[data-phase="live"] #hand .card .card-art { height: 148px; }
  body[data-mtab="hand"] .wrap[data-phase="live"] .stage-slot-empty { max-height: 150px; }

  /* Live 点角色弹出的技能坞：手机上固定在页签上方，别沉到页面底下 */
  .wrap[data-phase="live"] .skill-dock:not([hidden]) {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(58px + env(safe-area-inset-bottom));
    z-index: 152;  /* 盖住右下角那排开关，别和它们叠字 */
    max-height: 46vh;
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 -14px 44px rgba(0, 0, 0, .65);
  }
}

/* 资料 → 规则书 */
.cdx-rules { display: flex; flex-direction: column; gap: 12px; }
.cdx-rule-sec {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 12px 14px;
}
.cdx-rule-h { font-size: 14px; font-weight: 700; color: #f3d7a0; margin-bottom: 6px; letter-spacing: .04em; }
.cdx-rule-list { margin: 0; padding-left: 20px; color: #d8cfe8; }
.cdx-rule-list li { margin: 5px 0; line-height: 1.7; }
.cdx-rule-list b { color: #fff; }

/* ---------------- 规则书 v2：左目录 + 右侧分章卡片（2026-11-19） ----------------
   文案全部沿用 codex.js 的 RULES，这里只换排版：目录导航 + 「四阶段」拆成流程卡。 */
.cdx-rules2 {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.cdx-toc {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.cdx-toc-btn {
  display: flex;
  align-items: baseline;
  gap: 7px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: var(--fs-2nd);
  color: var(--muted);
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: var(--r-sm);
  padding: 6px 8px;
  cursor: pointer;
  line-height: 1.45;
}
.cdx-toc-btn:hover { background: rgba(255, 255, 255, .05); color: #f6f1e9; }
.cdx-toc-btn.on {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(155, 140, 240, .22), rgba(155, 140, 240, 0));
  border-left-color: var(--lilac);
}
.cdx-toc-no { flex: none; font-size: var(--fs-cap); color: var(--dim); }
.cdx-toc-btn.on .cdx-toc-no { color: var(--lilac-soft); }
.cdx-doc { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cdx-sec {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 14px 9px;
  background: rgba(255, 255, 255, .02);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 6px;
}
.cdx-sec-h { font-size: var(--fs-body); font-weight: 700; color: var(--gold-soft); margin-bottom: 6px; letter-spacing: .04em; }
/* 「每轮的四个阶段」：四张流程卡 */
.cdx-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cdx-phase {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0));
}
.cdx-phase-ico { width: 22px; height: 22px; opacity: .92; margin-bottom: 3px; }
.cdx-phase-h { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.cdx-phase-body { font-size: 12px; line-height: 1.65; color: #d8cfe8; }
.cdx-phase-body b { color: #fff; }

/* 「赞助商（详细）」：每家赞助商一张卡，按 基础/Lv3/Lv6/Lv9/工位 分条 */
.cdx-sponsors { display: grid; gap: 10px; margin-bottom: 10px; }
.cdx-sp {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
}
.cdx-sp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cdx-sp-name { font-size: 14px; font-weight: 800; color: var(--gold-soft); }
.cdx-sp-note { font-size: 11.5px; color: var(--muted); }
.cdx-sp-row { display: flex; gap: 8px; padding: 2px 0; font-size: 12px; line-height: 1.65; }
.cdx-sp-tag {
  flex: none; min-width: 42px; color: var(--lilac-soft);
  font-weight: 700; font-size: 11.5px; letter-spacing: .02em;
}
.cdx-sp-text { color: #d8cfe8; }
.cdx-sp-text b { color: #fff; }
@media (max-width: 640px) {
  .cdx-sp-row { font-size: 11.5px; }
  .cdx-sp-tag { min-width: 36px; }
}
@media (max-width: 900px) {
  .cdx-rules2 { grid-template-columns: 1fr; gap: 10px; }
  .cdx-toc {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    scrollbar-width: none;
  }
  .cdx-toc::-webkit-scrollbar { display: none; }
  .cdx-toc-btn {
    width: auto;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .cdx-toc-btn.on { border-bottom-color: #9b8cf0; }
  .cdx-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================================================================
   v0.8.16 主界面：正式 logo / 在线人数 / 反馈入口
   ================================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.brand-logo {
  display: block;
  width: min(460px, 78vw);
  max-height: 32vh;
  object-fit: contain;
  margin: 0 auto 8px;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, .6));
}

.start-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 16px;
}

.online-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(110, 224, 160, .10);
  border: 1px solid rgba(110, 224, 160, .32);
  color: #bff0d2;
  font-size: 12px;
  white-space: nowrap;
}
.online-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5ee08a; box-shadow: 0 0 8px #5ee08a;
  animation: onlinePulse 2.4s ease-in-out infinite;
}
.online-chip b { color: #eafff2; font-size: 13px; }
@keyframes onlinePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: #cbbfe0;
  font-size: 12px;
  white-space: nowrap;
}
.feedback-btn:hover { border-color: rgba(232, 196, 122, .6); color: #fff; }

.fb-field { display: block; margin: 10px 0; }
.fb-field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.fb-textarea, .fb-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.fb-textarea { min-height: 120px; resize: vertical; }
.fb-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.fb-meta { font-size: 11px; color: #7d7290; margin-top: 8px; line-height: 1.6; }

/* 矮屏（笔记本 768/900）：logo 收一点，保证「开始游戏」不用滚动就能看到 */
@media (max-height: 1080px) {
  .brand-logo { width: min(380px, 62vw); max-height: 24vh; margin-bottom: 4px; }
  .start-meta { margin: 0 0 12px; }
  .lead { margin: 6px 0 12px; }
}
@media (max-height: 820px) {
  .brand-logo { width: min(300px, 50vw); max-height: 18vh; }
  .eyebrow { margin-bottom: 10px; }
}

/* 昵称输入（开始页） */
.name-setup { margin-bottom: 8px; }
.name-setup input {
  width: 150px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 4px 9px;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}
.name-setup input::placeholder { color: #6f6479; }
@media (max-width: 900px) {
  .name-setup input { width: 118px; }
}

/* 手牌区的「做专辑」按钮 */
.hand-tool {
  margin-left: 10px;
  padding: 3px 11px;
  font: inherit;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 122, .45);
  background: rgba(232, 196, 122, .12);
  color: #f3d7a0;
  cursor: pointer;
}
.hand-tool:hover { background: rgba(232, 196, 122, .22); }

/* 强 AI 开关（开始页） */
.strong-setup { margin-bottom: 8px; justify-content: center; }
.strong-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  cursor: pointer;
  font-size: 12.5px;
  color: #cbbfe0;
  text-align: left;
}
.strong-toggle input { margin: 0; accent-color: #e8c47a; }
.strong-toggle small {
  display: block;
  color: #8f849f;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

/* ================================================================
   v0.8.38 开始页：视觉重点回到 logo + 选乐队
   ================================================================ */
.start-tools {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.start-tools .online-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #a79bb4;
  font-size: 11.5px;
}
.start-tools .online-chip b { color: #f3d7a0; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .28);
  color: #b8adc8;
  font-size: 11.5px;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.tool-btn:hover { color: #f3d7a0; border-color: rgba(232, 196, 122, .4); background: rgba(0, 0, 0, .4); }
.tool-btn .h-ico { width: 13px; height: 13px; opacity: .75; }

/* ---------------- 规则 / 卡表：主界面最显眼的两个入口（2026-11-19） ----------------
   新手最先要点的是这两样，所以给它们单独的尺寸与配色；其余工具按钮保持原样。 */
.start-tools .doc-hot {
  padding: 8px 16px;
  font-size: var(--fs-2nd);
  font-weight: 700;
  gap: 7px;
  border-radius: var(--r-md);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.start-tools .doc-hot .h-ico { width: 18px; height: 18px; opacity: .95; }
.start-tools .doc-rule {
  color: var(--gold-soft);
  border-color: rgba(232, 196, 122, .62);
  background: linear-gradient(180deg, rgba(232, 196, 122, .24), rgba(232, 196, 122, .06));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.start-tools .doc-card {
  color: var(--lilac-soft);
  border-color: rgba(155, 140, 240, .62);
  background: linear-gradient(180deg, rgba(155, 140, 240, .26), rgba(155, 140, 240, .06));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.start-tools .doc-rule:hover {
  color: #ffeecd;
  border-color: rgba(232, 196, 122, .9);
  background: linear-gradient(180deg, rgba(232, 196, 122, .34), rgba(232, 196, 122, .1));
  transform: translateY(-2px);
}
.start-tools .doc-card:hover {
  color: #f2eeff;
  border-color: rgba(155, 140, 240, .9);
  background: linear-gradient(180deg, rgba(155, 140, 240, .36), rgba(155, 140, 240, .1));
  transform: translateY(-2px);
}

/* 标题下的资料提示条 */
.doc-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px auto 2px;
  padding: 6px 7px 6px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(18, 15, 24, .72);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  max-width: min(92vw, 560px);
}
.doc-strip-text { font-size: var(--fs-2nd); color: var(--ink-2); white-space: nowrap; }
.doc-strip-text b { color: var(--gold-soft); font-weight: 700; }
.doc-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font: inherit;
  font-size: var(--fs-2nd);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.doc-strip-btn .h-ico { width: 15px; height: 15px; }
.doc-strip-btn.is-rule {
  color: var(--gold-deep);
  border: 1px solid var(--gold-soft);
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
}
.doc-strip-btn.is-card {
  color: var(--lilac-soft);
  border: 1px solid rgba(155, 140, 240, .6);
  background: rgba(155, 140, 240, .22);
}
.doc-strip-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
@media (max-width: 640px) {
  .start-tools .doc-hot { padding: 7px 12px; font-size: 12px; }
  .start-tools .doc-hot .h-ico { width: 15px; height: 15px; }
  .doc-strip { flex-wrap: wrap; justify-content: center; border-radius: 14px; padding: 8px 10px; }
  .doc-strip-text { white-space: normal; text-align: center; width: 100%; }
}

/* 乐队区：主视觉，压缩其它区块 */
.band-setup { margin: 6px 0 14px; }
.band-setup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.band-setup-title { font-size: 13px; font-weight: 700; color: #f3d7a0; letter-spacing: .06em; }
.band-setup-sub { font-size: 11px; color: #7d7290; }
.inline-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11.5px;
  color: #a79bb4;
}
.inline-select + .inline-select { margin-left: 4px; }
.inline-select select {
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: #e9e2f2;
  padding: 3px 7px;
  font: inherit;
  font-size: 12px;
}

/* 底部一行：昵称 / 登录 / 强 AI */
.start-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.foot-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .08);
}
.foot-name input {
  width: 130px;
  background: transparent;
  border: 0;
  outline: none;
  color: #f6f1e9;
  font: inherit;
  font-size: 12px;
}
.foot-name input::placeholder { color: #6f6479; }
.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .28);
  color: #b8adc8;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.foot-link:hover { color: #f3d7a0; }
.start-foot .strong-toggle {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
}
.start-foot .strong-toggle small { display: none; }

.foot-name .setup-ico { width: 14px; height: 14px; opacity: .7; flex: 0 0 auto; }

@media (max-width: 900px) {
  /* 手机上工具条从角落挪到顶部一行，避免压住标题 */
  .start-tools {
    position: static;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 2px;
  }
  .eyebrow { display: none; }
  .tool-btn span { display: none; }
  .tool-btn { padding: 7px 9px; }
  .start-tools .online-chip { padding: 4px 9px; }
  .start-tools .online-chip b { font-size: 12px; }
  .band-setup { margin-top: 2px; }
  .band-setup-head { justify-content: center; gap: 6px 8px; }
  .band-setup-sub { display: none; }
  .inline-select { margin-left: 0; }
  .start-foot { gap: 8px; }
  .foot-name input { width: 96px; }
  /* 给底部音效/音乐开关留出空间，别压住开始按钮 */
  .start-center { padding-bottom: 74px; }
  #startBtn { margin-top: 4px; }
}

/* ==================== 乐队导览 / 收藏 ==================== */
.start-extra { display: flex; gap: 8px; margin-top: 8px; justify-content: center; }
.start-extra .ghost {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  color: var(--ink); border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer;
}

/* ---- 导览列表 ---- */
.tour-screen, .col-screen {
  position: fixed; inset: 0; z-index: 170; overflow: auto;
  background: radial-gradient(900px 560px at 50% -10%, rgba(227, 93, 138, .14), transparent 60%),
              radial-gradient(700px 480px at 100% 100%, rgba(155, 140, 240, .1), transparent 60%),
              #12101a;
  padding: 18px 16px 40px;
}
.tour-screen.hidden, .col-screen.hidden { display: none; }
.ts-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ts-kicker {
  display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 8px;
}
.ts-title { margin: 6px 0 2px; font-size: 20px; }
.ts-sub { font-size: 11.5px; color: var(--muted); }
.ts-head-right { display: flex; gap: 8px; align-items: center; }
.ts-pill {
  font-size: 11.5px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 10px;
}
.ts-close, .cs-close {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--ink);
  border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer;
}
/* 收藏页里的卡包入口条（手机端主要靠它） */
/* 只在窄屏（手机/平板）显示：桌面端用页头的「开卡包」按钮，整条横贯太丑 */
.cs-pack {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px auto 0; padding: 12px 16px; border-radius: 12px; max-width: 900px;
  background: linear-gradient(135deg, rgba(232,196,122,.18), rgba(232,196,122,.05));
  border: 1px solid rgba(232,196,122,.45);
}
@media (max-width: 900px) {
  .cs-pack { display: flex; max-width: none; }
}
.cs-pack-txt b { display: block; color: #ffe9b8; font-size: 15px; letter-spacing: .04em; }
.cs-pack-txt span { display: block; color: #a79bb4; font-size: 11.5px; margin-top: 2px; }
.cs-pack-btn {
  flex: 0 0 auto; border: none; cursor: pointer; font-family: inherit; font-weight: 800;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; color: #2a1f08;
  background: linear-gradient(135deg,#ffe6a8,#e8b96a);
  box-shadow: 0 6px 18px rgba(232,185,106,.28);
}
.cs-pack-btn:active { transform: scale(.97); }
@media (max-width: 640px) {
  .cs-pack { flex-wrap: wrap; }
  .cs-pack-btn { width: 100%; }
}
/* 收藏页里的「开卡包」入口：金色、比关闭按钮显眼 */
.ts-pack {
  border: 1px solid rgba(232,196,122,.65); color: #ffe9b8;
  background: rgba(232,196,122,.16); border-radius: 8px;
  padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  margin-right: 8px;
}
.ts-pack:hover { background: rgba(232,196,122,.26); }
.ts-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ts-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; position: relative; overflow: hidden;
}
.ts-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--band, #9b8cf0);
}
.ts-row:hover { border-color: rgba(255, 255, 255, .22); }
.ts-name { width: 132px; font-weight: 700; font-size: 14px; flex: 0 0 auto; }
.ts-mech { flex: 1; font-size: 12px; color: var(--muted); }
.ts-meta { width: 96px; text-align: right; font-size: 11px; color: var(--muted); flex: 0 0 auto; }
.ts-act { width: 76px; text-align: right; font-size: 12px; color: var(--rose); font-weight: 600; flex: 0 0 auto; }
.ts-row.done .ts-act { color: var(--muted); }

/* ---- 导览中的说明面板（贴底） ---- */
.tour-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  background: #17131f; border-top: 1px solid rgba(232, 196, 122, .28);
  padding: 11px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 44px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.tour-panel.hidden { display: none; }
/* 导览进行中：把「点击任意处开启声音」的浮层抬到面板上方，不再压住按钮（2026-11-19） */
body.in-tour .sound-hint { bottom: calc(230px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 900px) {
  body.in-tour .sound-hint { bottom: calc(210px + env(safe-area-inset-bottom, 0px)); }
}
.tp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.tp-band { color: var(--gold); }
.tp-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.tp-jump {
  font: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
  padding: 3px 10px; border-radius: 999px; color: #241a08;
  border: 1px solid #f0d7a4; background: linear-gradient(180deg, #f2d79c, #e0b463);
}
.tp-jump.hidden { display: none; }
.tp-jump:hover { filter: brightness(1.06); }

/* 「这一步要看的地方」呼吸高亮：角色卡 / 手牌 / 任意目标 */
.tour-focus {
  position: relative;
  border-radius: 12px;
  outline: 2px solid rgba(232, 196, 122, .95);
  outline-offset: 3px;
  animation: tourPulse 1.7s ease-in-out infinite;
  z-index: 2;
}
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 196, 122, .5); }
  55% { box-shadow: 0 0 0 10px rgba(232, 196, 122, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tour-focus { animation: none; }
}
.tp-do { font-size: 13.5px; line-height: 1.55; margin-top: 4px; }
.tp-then { font-size: 12.5px; color: #cfc6db; margin-top: 3px; line-height: 1.5; }
.tp-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.tp-btns { display: flex; gap: 8px; margin-top: 8px; }
.tp-btn {
  flex: 1; border: 0; border-radius: 8px; padding: 9px 10px; font-size: 13px;
  font-weight: 600; background: var(--rose); color: #fff; cursor: pointer;
}
.tp-btn.ghost { background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid var(--line); }
.tp-btn.quiet { flex: 0 0 68px; background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* ---- 导览结束弹窗 ---- */
.tf-wrap { display: flex; gap: 14px; flex-wrap: wrap; }
.tf-art { width: 132px; height: 132px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
  background: var(--panel-2); border: 1px solid var(--line); }
.tf-art-empty { background: linear-gradient(150deg, #2b2438, #14111b); }
.tf-side { flex: 1; min-width: 200px; }
.tf-got { color: var(--gold); font-weight: 700; font-size: 13px; }
.tf-h { font-size: 11.5px; color: var(--muted); margin: 8px 0 4px; }
.tf-list { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.6; }

/* ---- 收藏 ---- */
.cs-tabs { display: flex; gap: 6px; margin-top: 14px; }
.cs-tab {
  flex: 1; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--muted); border-radius: 6px; padding: 7px 0; font-size: 12.5px; cursor: pointer;
}
.cs-tab.on { background: rgba(227, 93, 138, .16); border-color: rgba(227, 93, 138, .45); color: var(--ink); font-weight: 600; }
.cs-body { margin-top: 10px; }
.cs-tools {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
}
.cs-fill, .cs-fill {
  border: 1px solid rgba(227, 93, 138, .5); background: rgba(227, 93, 138, .14);
  color: var(--ink); border-radius: 7px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.cs-hint { font-size: 11px; }
.cs-group { margin-bottom: 14px; }
.cs-group-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.cs-group-count { color: var(--muted); font-size: 11px; }
.cs-albums {
  display: grid; gap: 6px;
  /* 自适应密度：格子小一点，一屏能看到更多唱片 */
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
}
.cs-album {
  position: relative; aspect-ratio: 1; border-radius: 7px; overflow: hidden; padding: 0;
  border: 1px solid var(--line); background: linear-gradient(150deg, #2a2338, #14111b);
  cursor: default;
}
.cs-album img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 未收集的唱片：画成一张黑胶（纹路 + 中心标签），比原来一块灰方块好看 */
.cs-album:not(.got) {
  cursor: pointer;
  border-color: rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .92) 0 13%, transparent 14%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 4px),
    linear-gradient(150deg, #262031, #100e18);
}
.cs-album:not(.got)::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, .28);
  pointer-events: none;
}
.cs-album:not(.got):hover { border-color: rgba(232, 196, 122, .5); }
.cs-album:not(.got):hover::after { color: rgba(232, 196, 122, .75); }
.cs-album:not(.got) .cs-album-name { display: none; }
/* 已收集：加一圈乐队色描边，收集感更强 */
.cs-album.got { border-color: rgba(232, 196, 122, .35); box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .9); }
.cs-album-name {
  position: absolute; left: 3px; right: 3px; bottom: 2px; font-size: 11px; color: #fff;
  text-shadow: 0 1px 3px #000; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-album:not(.got) .cs-album-name { text-align: center; font-size: 11px; color: var(--muted); }
/* 鼠标悬停时把整张唱片名字浮出来，格子小也不会看不全 */
.cs-album.got:hover .cs-album-name {
  font-size: 11px; white-space: normal; line-height: 1.25; background: rgba(10, 8, 14, .82);
  border-radius: 4px; padding: 2px 3px;
}

/* ===== 唱片轮盘（收藏页 · 2026-11-21） ===== */
.aw-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; overflow: hidden; }
.aw-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.aw-chip {
  border: 1px solid var(--line); background: rgba(24, 19, 34, .6); color: #b9aecd;
  border-radius: 999px; padding: 5px 13px; font: inherit; font-size: 12.5px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.aw-chip small { color: #8e84a6; font-size: 10.5px; margin-left: 3px; }
.aw-chip:hover { border-color: rgba(232, 196, 122, .45); color: #ffe9b8; }
.aw-chip.on {
  border-color: rgba(232, 196, 122, .75); color: #ffe9b8;
  background: linear-gradient(180deg, rgba(232, 196, 122, .18), rgba(232, 196, 122, .05));
}
.aw-stage { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; align-items: center; }
.aw-wheel { position: relative; width: 600px; height: 600px; margin: 0 auto;
  user-select: none; touch-action: pan-y; }
.aw-track {
  position: absolute; left: 50%; top: 50%; width: 476px; height: 440px;
  transform: translate(-50%, -50%); border: 1px dashed rgba(232, 196, 122, .16);
  border-radius: 50%; pointer-events: none;
}
.aw-track::after {
  content: ""; position: absolute; inset: 40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 196, 122, .05), transparent 72%);
}
.aw-ring { position: absolute; inset: 0; }
.aw-slot {
  position: absolute; width: 78px; height: 78px; padding: 0; border: 0; background: none;
  transform: translate(-50%, -50%); cursor: pointer; border-radius: 12px;
  transition: left .5s cubic-bezier(.2, .8, .25, 1), top .5s cubic-bezier(.2, .8, .25, 1),
    opacity .3s ease, filter .3s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .38);
}
.aw-slot img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block;
  border: 2px solid rgba(255, 255, 255, .14);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.aw-slot:hover img { transform: scale(1.1); border-color: rgba(232, 196, 122, .65); }
.aw-slot.on img {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(232, 196, 122, .22), 0 0 22px rgba(232, 196, 122, .35);
}
.aw-slot.dim img { filter: grayscale(1) brightness(.35) blur(.6px); }
.aw-slot.dim::after {
  content: "未收集"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 10.5px; letter-spacing: .08em; color: #b9aecd;
  text-shadow: 0 1px 4px #000;
}
.aw-slot.out { opacity: 0; }
.aw-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 16, 30, .82);
  color: var(--gold-soft); font-size: 22px; line-height: 1; cursor: pointer; z-index: 40;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.aw-arrow:hover { border-color: rgba(232, 196, 122, .7); background: rgba(232, 196, 122, .12); }
.aw-arrow:active { transform: translateY(-50%) scale(.94); }
.aw-arrow.left { left: 4px; }
.aw-arrow.right { right: 4px; }
.aw-center {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: 280px; text-align: center; pointer-events: none; z-index: 35;
}
.aw-big {
  width: 250px; height: 250px; margin: 0 auto; border-radius: 20px; padding: 6px; position: relative;
  background: linear-gradient(160deg, rgba(232, 196, 122, .95), rgba(155, 123, 224, .85));
  box-shadow: 0 22px 54px rgba(0, 0, 0, .6), 0 0 40px rgba(232, 196, 122, .14);
  pointer-events: auto;
}
.aw-big img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; display: block; }
.aw-big img.in { animation: awIn .5s cubic-bezier(.2, .8, .25, 1); }
@keyframes awIn {
  0% { opacity: .1; transform: scale(1.07) rotate(-1.2deg); filter: brightness(1.35); }
  100% { opacity: 1; transform: none; filter: none; }
}
.aw-big.pulse { animation: awPulse .7s ease; }
@keyframes awPulse {
  0% { box-shadow: 0 22px 54px rgba(0, 0, 0, .6), 0 0 0 rgba(232, 196, 122, 0); }
  45% { box-shadow: 0 22px 54px rgba(0, 0, 0, .6), 0 0 46px rgba(232, 196, 122, .45); }
  100% { box-shadow: 0 22px 54px rgba(0, 0, 0, .6), 0 0 40px rgba(232, 196, 122, .14); }
}
.aw-lock {
  position: absolute; inset: 6px; border-radius: 15px; display: flex; align-items: center;
  justify-content: center; background: rgba(10, 8, 16, .62); font-size: 12px;
  letter-spacing: .18em; color: #d8cfe8;
}
.aw-name { margin-top: 14px; font-size: 18px; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-band { margin-top: 2px; font-size: 11.5px; letter-spacing: .14em; color: var(--lilac); }
.aw-stamp {
  display: inline-block; margin-top: 7px; font-size: 11px; border-radius: 999px; padding: 2px 10px;
  border: 1px solid rgba(232, 196, 122, .45); color: #ffe9b8;
}
.aw-stamp.no { border-color: rgba(255, 255, 255, .18); color: #9c92b2; }
.aw-side {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  background: rgba(26, 21, 38, .82); box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.aw-kicker { font-size: 10.5px; letter-spacing: .22em; color: #8e84a6; }
.aw-side h3 { font-size: 19px; margin: 6px 0 2px; color: #fff; }
.aw-side-band { font-size: 12px; letter-spacing: .1em; color: var(--lilac); }
.aw-desc { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .12);
  font-size: 12.5px; line-height: 1.8; color: #c9bfdc; min-height: 74px; }
.aw-actions { display: flex; gap: 8px; margin-top: 14px; }
.aw-btn {
  flex: 1; border: 1px solid var(--line); border-radius: 11px; padding: 9px 0;
  background: rgba(255, 255, 255, .05); color: #e7dff5; font: inherit; font-weight: 700;
  font-size: 13px; cursor: pointer; transition: transform .15s ease, border-color .2s ease;
}
.aw-btn:hover { border-color: rgba(232, 196, 122, .5); }
.aw-btn:active { transform: scale(.98); }
.aw-btn.primary {
  border-color: rgba(232, 196, 122, .7); color: #1a1420;
  background: linear-gradient(180deg, #f4dba6, #d9b36d);
}
.aw-tip { margin-top: 10px; font-size: 11px; color: #8e84a6; line-height: 1.7; }
@media (max-width: 1100px) {
  .aw-stage { grid-template-columns: 1fr; overflow: hidden; }
  .aw-wheel { transform: scale(.78); transform-origin: top center; height: 500px; margin-bottom: -80px; }
  .aw-side { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .aw-stage { display: block; overflow: hidden; }
  .aw-wheel {
    width: 600px; height: 600px; margin: 0 0 -236px calc(50% - 300px);
    transform: scale(.62); transform-origin: top center;
  }
  .aw-side { margin: 0; width: 100%; max-width: none; }
  .aw-slot { width: 72px; height: 72px; }
  .aw-name { font-size: 16px; }
  .aw-big { width: 226px; height: 226px; }
  .aw-center { width: 250px; }
}
/* 收藏页顶部统计：三条进度 + 票根 */
.cs-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.cs-stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-cap); color: var(--muted);
}
.cs-stat-label { color: var(--muted); }
.cs-stat-bar {
  width: 76px; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); overflow: hidden;
}
.cs-stat-bar i { display: block; height: 100%; border-radius: 999px; }
.cs-stat-bar i.gold { background: linear-gradient(90deg, var(--gold-strong), var(--gold)); }
.cs-stat-bar i.lilac { background: linear-gradient(90deg, var(--lilac-soft), var(--lilac)); }
.cs-stat-bar i.mint { background: linear-gradient(90deg, var(--mint), #4fc79b); }
.cs-stat b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cs-stat-of { color: var(--dim); font-weight: 400; }
.cs-tickets {
  padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(232, 196, 122, .4); background: rgba(232, 196, 122, .12);
}
.cs-tickets b { color: var(--gold-soft); }

.cs-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cs-badge {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 10px 10px;
  background: var(--panel); opacity: .5; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cs-badge.got {
  opacity: 1;
  border-color: rgba(232, 196, 122, .45);
  background: linear-gradient(180deg, rgba(232, 196, 122, .1), var(--panel) 60%);
  box-shadow: var(--shadow-card);
}
/* 徽章图标做成圆牌：未拿到是虚线空环，拿到是金环 + 星 */
.cs-badge-ic {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  color: var(--dim);
  font-size: 15px;
}
.cs-badge.got .cs-badge-ic {
  border: 2px solid rgba(232, 196, 122, .8);
  background: radial-gradient(circle at 50% 35%, rgba(232, 196, 122, .3), rgba(232, 196, 122, .04) 70%);
  box-shadow: 0 0 18px -6px rgba(232, 196, 122, .8);
}
.cs-badge.got .cs-badge-ic .ui-ico { width: 22px; height: 22px; }
.cs-badge-name { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.cs-badge.got .cs-badge-name { color: var(--gold-soft); }
.cs-badge-ic {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: rgba(232, 196, 122, .16); color: var(--gold);
  font-size: 13px; margin-bottom: 6px;
}
.cs-badge-name { font-size: 12.5px; font-weight: 600; }
.cs-badge-desc { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.cs-badge-kind { font-size: 11px; color: var(--muted); margin-top: 4px; opacity: .7; }

@media (min-width: 901px) {
  .cs-albums { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
  .cs-badges { grid-template-columns: repeat(4, 1fr); }
  /* 桌面别拉满整屏，读完一行不用左右扫 */
  .col-screen .cs-head, .col-screen .cs-tabs, .col-screen .cs-body {
    max-width: 1080px; margin-left: auto; margin-right: auto;
  }
  .tour-panel { left: 50%; transform: translateX(-50%); max-width: 900px; border-radius: 12px;
    bottom: 16px; border: 1px solid var(--line); }
  .tp-btns { max-width: 420px; }
}

@media (max-width: 640px) {
  .cs-albums { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 5px; }
  .cs-group { margin-bottom: 10px; }
}

/* 平板竖屏：别挤成十几列，给 6～7 列 */
@media (min-width: 641px) and (max-width: 900px) {
  .cs-albums { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 7px; }
}

@media (max-width: 640px) {
  .ts-name { width: 96px; font-size: 13px; }
  .ts-meta { display: none; }
  .ts-mech { font-size: 11px; }
  .ts-act { width: 64px; font-size: 11px; }
  .tf-art { width: 96px; height: 96px; }
}

/* ---- 收藏页：获取规则 ---- */
.cs-rules {
  border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .035);
  padding: 8px 12px; margin-bottom: 10px; font-size: 12px; color: var(--muted);
}
.cs-rules summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 12.5px;
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.cs-rules summary::-webkit-details-marker { display: none; }
.cs-rules summary::before {
  content: "▸"; color: var(--rose); font-size: 11px; transition: transform .15s;
}
.cs-rules[open] summary::before { transform: rotate(90deg); }
.cs-rules ul { margin: 6px 0 2px; padding-left: 18px; line-height: 1.65; }
.cs-rules b { color: var(--gold); font-weight: 600; }
.tf-hint {
  margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.5;
  border-top: 1px dashed var(--line); padding-top: 6px;
}

/* ==================== 唱片展示效果 ==================== */
/* 封套 + 唱片：唱片从封套右侧滑出并旋转 */
.vinyl-wrap {
  position: relative; width: 132px; height: 132px; flex: 0 0 auto;
  display: block;
}
.vinyl-cover {
  position: relative; z-index: 2; width: 100%; height: 100%;
  border-radius: 8px; object-fit: cover; display: block;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .55);
  animation: cover-pop .45s cubic-bezier(.2, .8, .2, 1) both;
}
.vinyl-disc {
  position: absolute; z-index: 1; top: 50%; left: 50%;
  width: 92%; height: 92%; border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, #2a2536 0 18%, rgba(0, 0, 0, 0) 19%),
    repeating-radial-gradient(circle at 50% 50%,
      #12101a 0 2px, #1a1622 2px 4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
  animation:
    disc-out .85s cubic-bezier(.16, .9, .2, 1) .12s both,
    disc-spin 7s linear 1s infinite;
}
.vinyl-disc::after {
  /* 盘心标签 */
  content: ""; position: absolute; left: 50%; top: 50%; width: 34%; height: 34%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, .22), rgba(0, 0, 0, .55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
@keyframes cover-pop {
  from { opacity: 0; transform: translateY(8px) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes disc-out {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.9); }
  to { opacity: 1; transform: translate(24%, -50%) rotate(90deg) scale(1); }
}
@keyframes disc-spin {
  from { transform: translate(24%, -50%) rotate(90deg); }
  to { transform: translate(24%, -50%) rotate(450deg); }
}
.vinyl-wrap.big { width: 232px; height: 232px; }
.vinyl-wrap.big .vinyl-disc { animation-delay: .1s, .9s; }

/* 大图展示层 */
.alb-view {
  position: fixed; inset: 0; z-index: 195; display: flex; align-items: center;
  justify-content: center; padding: 24px;
  background: rgba(8, 6, 12, .78); backdrop-filter: blur(3px);
}
.alb-view.hidden { display: none; }
.alb-view-box {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 26px 28px 20px; border-radius: 16px;
  background: radial-gradient(600px 300px at 50% 0, rgba(227, 93, 138, .16), transparent 70%), #1a1622;
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  max-width: 92vw;
}
.alb-view.play .alb-view-box { animation: cover-pop .3s ease both; }
.alb-view-name { font-size: 15px; font-weight: 700; text-align: center; }
.alb-view-band { font-size: 12px; color: var(--gold); margin-top: 2px; text-align: center; }
.alb-view-tag {
  margin-top: 8px; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.alb-view-close {
  margin-top: 4px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07);
  color: var(--ink); border-radius: 8px; padding: 7px 18px; font-size: 13px; cursor: pointer;
}

/* 唱片墙：悬停微浮起 + 名字浮层已经写在上面 */
.cs-album.got img { transition: transform .18s ease, filter .18s ease; }
.cs-album.got:hover img { transform: scale(1.05); filter: brightness(1.08); }
.cs-album.got { box-shadow: 0 0 0 0 rgba(232, 196, 122, 0); transition: box-shadow .18s ease, transform .18s ease; }
.cs-album.got:hover { box-shadow: 0 0 0 1px rgba(232, 196, 122, .55), 0 8px 20px rgba(0, 0, 0, .45); transform: translateY(-2px); }

@media (max-width: 640px) {
  .alb-view-box { padding: 20px 16px 16px; }
  .vinyl-wrap.big { width: 190px; height: 190px; }
  .tf-wrap .vinyl-wrap { width: 110px; height: 110px; }
}

/* 给滑出的唱片留位置，别压到旁边的文字 */
.tf-wrap .vinyl-wrap { margin-right: 54px; }
.alb-view .vinyl-wrap { margin-right: 48px; }
@media (max-width: 640px) {
  .tf-wrap .vinyl-wrap { margin-right: 34px; }
  .alb-view .vinyl-wrap { margin-right: 36px; }
}

/* ---- 乐队档案 ---- */
.cs-archives { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cs-arch {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--panel); position: relative;
}
.cs-arch.gold { border-color: rgba(232, 196, 122, .45); box-shadow: 0 0 0 1px rgba(232, 196, 122, .18) inset; }
.cs-arch.lock { opacity: .55; }
.cs-arch-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cs-arch-head b { font-size: 14px; }
.cs-arch-st { font-size: 11px; color: var(--muted); }
.cs-arch.gold .cs-arch-st { color: var(--gold); }
.cs-arch-title { font-size: 12.5px; color: var(--rose); margin-top: 3px; }
.cs-arch ul { margin: 8px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.68; }
.cs-arch ul li { margin-bottom: 5px; }
.cs-arch-lock { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.cs-arch-src {
  margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--muted); line-height: 1.4;
}
/* 唱片背面的题注 */
.alb-view-note {
  margin-top: 10px; max-width: 320px; text-align: left; font-size: 12px; line-height: 1.6;
  color: #d7cfe3; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px;
}
.alb-view-note-k { display: block; font-size: 11px; color: var(--gold); margin-bottom: 3px; }
.alb-view-src { margin-top: 5px; font-size: 11px; color: var(--muted); max-width: 320px; text-align: left; }

@media (min-width: 901px) {
  .cs-archives { grid-template-columns: 1fr 1fr; }
}

/* ---- 唱片杂谈 ---- */
.alb-view-gossip {
  margin-top: 8px; max-width: 320px; text-align: left;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  background: rgba(155, 140, 240, .06);
}
.g-head { font-size: 11px; color: var(--lilac); margin-bottom: 5px; }
.g-src-note { color: var(--muted); font-size: 11px; margin-left: 4px; }
.g-item { font-size: 11.5px; line-height: 1.55; color: #ded7e8; margin-bottom: 5px; }
.g-tag {
  display: inline-block; font-size: 11px; border-radius: 4px; padding: 0 5px;
  margin-right: 5px; vertical-align: 1px; border: 1px solid;
}
.g-tag.t-吐槽 { color: #ffd27a; border-color: rgba(255, 210, 122, .5); }
.g-tag.t-剧透 { color: #ff8f8f; border-color: rgba(255, 143, 143, .5); }
.g-tag.t-推测 { color: #9ad6ff; border-color: rgba(154, 214, 255, .5); }
.g-tag.t-争议 { color: #d3a6ff; border-color: rgba(211, 166, 255, .5); }
.g-tag.t-冷知识 { color: #9ae6b4; border-color: rgba(154, 230, 180, .5); }
.g-spoiler { margin-top: 4px; }
.g-spoiler-btn {
  width: 100%; border: 1px dashed rgba(255, 143, 143, .5); background: rgba(255, 143, 143, .08);
  color: #ffb3b3; border-radius: 7px; padding: 5px; font-size: 11px; cursor: pointer;
}
.g-spoiler-body { margin-top: 6px; }
.g-spoiler-body.hidden { display: none; }
.g-foot { margin-top: 6px; font-size: 11px; color: var(--muted); }

/* 唱片大图内容变多了：允许纵向滚动；横方向别滚（唱片的圆盘是故意探出去的） */
.alb-view-box { max-height: 86vh; overflow-y: auto; overflow-x: hidden; }
.alb-view .vinyl-wrap { margin-right: 56px; }
.alb-view-meta { width: 100%; display: flex; flex-direction: column; align-items: center; }

/* AI 强度下拉 */
.strong-toggle { display: inline-flex; align-items: center; gap: 6px; }
.strong-toggle select {
  background: rgba(255, 255, 255, .07); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 8px; font-size: 12.5px; cursor: pointer;
}
.strong-toggle select:focus { outline: 1px solid var(--rose); }

/* 排行榜分栏 */
.lb-tabs { display: flex; gap: 8px; margin: 10px 0 4px; }
.lb-tab {
  font-size: 12.5px; padding: 6px 14px; border-radius: 8px; text-decoration: none;
  color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
}
.lb-tab.on { color: var(--ink); border-color: rgba(227, 93, 138, .5); background: rgba(227, 93, 138, .16); font-weight: 600; }

/* 卡图加载失败的占位（artError 用）：保留方框，显示一个淡淡的图标，不再整块消失 */
.art-missing-box { background: linear-gradient(150deg, #2a2338, #14111b) !important; }
.art-missing-box::after {
  content: "🖼"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 18px; opacity: .35; pointer-events: none;
}

/* Live 阶段：随手的弃牌 / 移除 / 草稿查看条 */
.live-piles {
  display: inline-flex; gap: 5px; flex-wrap: wrap; align-items: center;
  margin-left: 8px;
}
.live-piles.hidden { display: none; }
.lp-chip {
  font-size: 11px; padding: 2px 7px; border-radius: 6px; cursor: pointer;
  color: #e9e0ff; background: rgba(155, 140, 240, .16);
  border: 1px solid rgba(155, 140, 240, .34);
  line-height: 1.5;
}
.lp-chip b { color: #ffd9a0; margin-right: 3px; }
.lp-chip:hover { background: rgba(155, 140, 240, .3); border-color: var(--lilac); }
@media (max-width: 640px) {
  .live-piles { margin-left: 4px; gap: 4px; }
  .lp-chip { font-size: 11px; padding: 2px 5px; }
}

/* 触屏导览面板：底部常驻控件会压住「继续」按钮
 * ------------------------------------------------------------------
 * 手机（≤720）：底部两层 —— 页签条（约 51px，z-index 146）
 *   和它上面那排开关（音量/音乐/音效/特效/开发者，约 27px，z-index 150）；
 * 平板竖屏（721–899）：只有那排开关（底 8px 起、约 21px 高，z-index 150）。
 * 面板原来是贴底的 left/right 0 + bottom 0/6px、z-index 90，正好落在它们下面：
 *   ①「继续」被页签条/开关盖住，点了没反应（点到的是页签图标）；
 *   ② 备注那行文字和「开发者」按钮叠字。
 * 现在：面板抬到开关那排之上，z-index 排到它们前面；桌面（≥900）保持原样。
 * 底下数字都对应上面两层的高度，改页签条/开关高度时同步改这里。 */
@media (max-width: 900px) {
  .tour-panel {
    left: 6px; right: 6px;
    bottom: calc(40px + env(safe-area-inset-bottom, 0px));   /* 让开底部开关那排 */
    z-index: 160;                                            /* 高过页签(146)/开关(150)，低于弹窗(200) */
    border-radius: 12px;
  }
}

/* 手机：再抬过一个页签条，正文可滚、备注字号收紧一档 */
@media (max-width: 900px) {
  .tour-panel {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));   /* 40 + 页签条 50 */
    max-height: 46vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px 8px;
  }
  .tp-do { font-size: 12.5px; line-height: 1.45; }
  .tp-then { font-size: 11.5px; }
  .tp-note { font-size: 11px; }
  .tp-btns { position: sticky; bottom: 0; background: rgba(25, 21, 36, .97); padding-top: 6px; }
  .tp-btn { padding: 8px 8px; font-size: 12.5px; }
}

/* ================================================================
   联机对战（房间）：大厅 + 房间里的两个小部件
   ----------------------------------------------------------------
   * 大厅是浮层，z-index 175：高过页签条(146)与开关(150)、导览列表(170)，
     低于弹窗(200) / 开发者面板(220)，所以房间里的弹窗照常能盖住它；
   * 房间里的「等谁」条贴底，位置和导览面板同一套让位逻辑（别被页签条压住）。
   ================================================================ */
.room-screen {
  position: fixed; inset: 0; z-index: 175; overflow: auto;
  background: radial-gradient(120% 80% at 50% 0%, rgba(60, 40, 90, .55), rgba(10, 8, 16, .96));
  padding: 24px 14px 40px;
}
.room-screen.hidden { display: none; }
.rs-box {
  max-width: 640px; margin: 0 auto; background: rgba(25, 21, 36, .97);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.rs-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.rs-kicker { font-size: 11px; letter-spacing: .18em; color: var(--gold); }
.rs-title { margin: 2px 0 4px; font-size: 20px; }
.rs-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.rs-close {
  flex: 0 0 auto; background: rgba(255, 255, 255, .06); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 12.5px;
}
.rs-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.rs-field { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.rs-field select, .rs-input {
  background: rgba(255, 255, 255, .06); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; font-size: 13px;
}
.rs-input { width: 96px; letter-spacing: .18em; text-align: center; }
.rs-or { font-size: 12px; color: var(--muted); }
.rs-btn {
  border: 0; border-radius: 9px; padding: 9px 16px; font-size: 13.5px; font-weight: 600;
  background: var(--rose); color: #fff; cursor: pointer;
}
.rs-btn.ghost { background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid var(--line); }
.rs-btn.quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.rs-btn[disabled] { opacity: .5; cursor: default; }
.rs-error {
  margin-top: 10px; font-size: 12.5px; color: #ffd9e3; background: rgba(227, 93, 138, .16);
  border: 1px solid rgba(227, 93, 138, .45); border-radius: 8px; padding: 8px 10px;
}
.rs-error.hidden { display: none; }
.rs-lobby { margin-top: 16px; }
.rs-lobby.hidden { display: none; }
.rs-code-row { display: flex; align-items: baseline; gap: 8px; }
.rs-code-label { font-size: 12px; color: var(--muted); }
.rs-code { font-size: 26px; letter-spacing: .22em; color: var(--gold); }
.rs-hint { font-size: 11.5px; color: var(--muted); }
.rs-seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.rs-seat-link { display: flex; align-items: center; gap: 7px; text-decoration: none; color: inherit; }
.rs-seat-link:hover .rs-seat-name { color: #f3d7a0; }
.rs-seat-box { position: relative; display: inline-flex; flex: none; }
.rs-seat-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(232, 196, 122, .35); background: #241f33; flex: none; }
.rs-seat-box.of { width: 36px; height: 36px; margin: -5px; }
.rs-seat-box.of .rs-seat-av { width: 100%; height: 100%; border: 0; border-radius: 0;
  object-fit: contain; background: transparent; }
.rs-seat-ring { position: absolute; left: 50%; top: 50%; width: 132%; height: 132%;
  transform: translate(-50%, -50%); pointer-events: none; }
.rs-seat {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); min-width: 0;
}
.rs-seat.me { border-color: rgba(232, 196, 122, .55); background: rgba(232, 196, 122, .1); }
.rs-seat.bot { opacity: .6; }
.rs-seat-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-seat-pid { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.rs-seat-tag { font-size: 11px; color: var(--gold); min-height: 1em; }
.rs-actions { display: flex; gap: 8px; margin-top: 6px; }

/* 房间里：顶栏的小标签 + 底部「在等谁」 */
.room-chip {
  font-size: 11px; padding: 3px 9px; border-radius: 999px; cursor: pointer;
  color: #ffe6b8; background: rgba(232, 196, 122, .14);
  border: 1px solid rgba(232, 196, 122, .45); white-space: nowrap;
}
.room-wait {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 155;
  max-width: 92vw; padding: 7px 14px; border-radius: 999px; font-size: 12px;
  color: #ffe6b8; background: rgba(25, 21, 36, .95);
  border: 1px solid rgba(232, 196, 122, .45); box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.room-wait.hidden { display: none; }

@media (max-width: 900px) {
  .room-screen { padding: 12px 8px 24px; }
  .rs-box { padding: 13px 12px 15px; border-radius: 12px; }
  .rs-seats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .rs-code { font-size: 22px; }
  /* 手机底部有页签条(约 51px)+开关那排(约 27px)：等谁条要抬上去，别被压住 */
  .room-wait { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); font-size: 11.5px; }
}

/* 房间里「我回来了」：捡回被托管的座位 */
.room-back {
  margin-left: 8px; border: 1px solid rgba(232, 196, 122, .6); border-radius: 999px;
  background: rgba(232, 196, 122, .18); color: #ffe6b8; font-size: 11.5px;
  padding: 3px 10px; cursor: pointer;
}

/* Live 里没牌可打：把「停手」点亮，别让人干等 */
#btn-pass.need-pass {
  background: linear-gradient(180deg, #ffcf6b, #ffa93c) !important;
  color: #3a2600 !important;
  border-color: #ffd98a !important;
  box-shadow: 0 0 0 0 rgba(255, 200, 90, .7);
  animation: passPulse 1.6s ease-out infinite;
}
@keyframes passPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 200, 90, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 200, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 200, 90, 0); }
}

/* 联机：轮到我 / 在等别人，两种样子分开，别让人分不清 */
.room-wait.mine {
  background: linear-gradient(180deg, rgba(255, 214, 130, .96), rgba(255, 176, 72, .96));
  color: #3a2600; border-color: #ffd98a; font-weight: 700;
  animation: passPulse 1.8s ease-out infinite;
}
.room-wait.waiting { opacity: .92; }

/* 「测试」小标签：联机对战目前是测试功能 */
.test-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  color: #2b1a00;
  background: linear-gradient(180deg, #ffd07a, #ffb347);
  vertical-align: 1px;
}
.rs-test-note {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #ffe6b8;
  background: rgba(255, 170, 60, .14);
  border: 1px solid rgba(255, 190, 90, .45);
}

/* ================================================================
   卡图大图查看器 / 角色详情大图 / 出牌特写
   ================================================================ */
.snd-mini { padding: 2px 10px; font-size: 12px; min-width: 44px; }

.card-viewer {
  position: fixed; inset: 0; z-index: 260;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 6, 14, .92);
  backdrop-filter: blur(6px);
}
.card-viewer.hidden { display: none; }
.cv-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 92vw; }
#cvImg {
  max-width: min(88vw, 620px); max-height: 76vh; width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
  background: #17141f; object-fit: contain;
}
.cv-caption { display: flex; gap: 12px; align-items: baseline; color: #ece7f8; font-size: 14px; }
.cv-caption b { font-size: 16px; }
.cv-caption span { color: #9d96b5; font-size: 12px; }
.cv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(30, 26, 44, .75); color: #fff; font-size: 30px; line-height: 1;
  cursor: pointer;
}
.cv-prev { left: 18px; }
.cv-next { right: 18px; }
.cv-close {
  position: absolute; top: 14px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(30, 26, 44, .8); color: #fff; font-size: 24px; cursor: pointer;
}
.cv-nav:hover, .cv-close:hover { background: rgba(60, 50, 90, .9); }

/* 角色详情：左边大卡图，右边技能/数值 */
.char-info-grid {
  display: grid; grid-template-columns: minmax(220px, 42%) 1fr;
  gap: 18px; align-items: stretch;
}
.char-info-art { position: sticky; top: 0; }
.char-info-art img {
  width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .45); cursor: zoom-in;
}
.char-info-art .meta { margin-top: 6px; font-size: 11px; opacity: .6; text-align: center; }
.char-info-main { min-width: 0; display: flex; flex-direction: column; gap: 11px; }

/* 出牌特写 */
.card-flash { position: fixed; inset: 0; z-index: 190; pointer-events: none; display: grid; place-items: center; }
.card-flash.hidden { display: none; }
#cardFlashImg {
  max-width: 76vw; max-height: 68vh; border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .15);
  transform: scale(.86) rotate(-1.5deg); opacity: 0;
}
.card-flash.in #cardFlashImg { animation: cardFlashIn .95s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes cardFlashIn {
  0% { transform: scale(.86) rotate(-1.5deg); opacity: 0; }
  18% { transform: scale(1.04) rotate(0); opacity: 1; }
  72% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(1.02) rotate(0); opacity: 0; }
}
.card-flash-name {
  position: absolute; bottom: 6vh; color: #fff; font-size: 16px;
  letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

/* 手机适配 */
@media (max-width: 900px) {
  .cv-nav { width: 46px; height: 46px; font-size: 24px; }
  .cv-prev { left: 6px; }
  .cv-next { right: 6px; }
  #cvImg { max-width: 86vw; max-height: 64vh; }
  .cv-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .char-info-grid { grid-template-columns: 1fr; }
  .char-info-art { position: static; }
  .char-info-art img {
    max-height: 38vh; width: auto; max-width: 100%;
    margin: 0 auto; display: block;
  }
  #cardFlashImg { max-width: 84vw; max-height: 56vh; }
  .card-flash-name { bottom: 12vh; }
}
@media (prefers-reduced-motion: reduce) {
  .card-flash.in #cardFlashImg { animation-duration: .01s; }
}

/* 手牌长按看大图：别触发浏览器的图片菜单/选中 */
#hand .card-art img.art { -webkit-touch-callout: none; user-select: none; }

/* ================================================================
   新手教程（聚光灯 + 说明卡）
   ================================================================ */
.tour-spot { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.tour-spot.hidden { display: none; }
.tour-hole {
  position: absolute; border-radius: 14px; pointer-events: none;
  transition: left .16s ease, top .16s ease, width .16s ease, height .16s ease;
}
.tour-tip {
  position: absolute; width: min(360px, 92vw);
  background: #1b1726; border: 1px solid rgba(232, 196, 122, .35);
  border-radius: 14px; padding: 14px 16px; color: #e9e3f5; pointer-events: auto;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .55);
}
.tour-tip .tt-kicker { color: #e8c47a; font-size: 11px; letter-spacing: .14em; }
.tour-tip .tt-title { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.tour-tip .tt-body { font-size: 13px; line-height: 1.75; color: #c9c2da; }
.tour-tip .tt-progress { margin-top: 8px; font-size: 11px; color: #8d8199; }
.tour-tip .tt-btns { display: flex; gap: 8px; margin-top: 12px; }
.tour-tip .tt-btns button { flex: 1; padding: 9px 10px; border-radius: 10px; }
.ts-row.ts-newbie { border-color: rgba(232, 196, 122, .45); background: rgba(232, 196, 122, .07); }

@media (max-width: 900px) {
  .tour-tip { left: 12px !important; right: 12px; bottom: 14px; top: auto !important; width: auto; }
  .tour-tip .tt-body { font-size: 13.5px; }
}

.tour-tip .tt-hint { margin-top: 6px; font-size: 12px; line-height: 1.6; color: #f0a6c0; }
.tour-tip .tt-btns button:disabled { opacity: .45; cursor: not-allowed; }

/* 手机专用新手教程：顶部条 + 可收起，避免挡住操作 */
@media (max-width: 900px) {
  .tour-tip.mobile {
    left: 10px !important; right: 10px !important; top: 8px !important; bottom: auto !important;
    width: auto; max-height: 36vh; overflow-y: auto; padding: 10px 12px;
  }
  .tour-tip.mobile .tt-title { font-size: 15px; }
  .tour-tip.mobile .tt-body { font-size: 12.5px; line-height: 1.55; }
  .tour-tip.mobile.folded .tt-body,
  .tour-tip.mobile.folded .tt-hint,
  .tour-tip.mobile.folded .tt-progress { display: none; }
  .tour-tip.mobile .tt-btns button { padding: 7px 8px; font-size: 12px; }
  #tourSpot { pointer-events: none; }
  .tour-hole { box-shadow: 0 0 0 9999px rgba(8, 6, 14, .35) !important; }
}

/* 手机教程：默认缩成左上角小条，点「展开」才铺开 */
@media (max-width: 900px) {
  .tour-tip.mobile.compact {
    left: 8px !important; right: auto !important; top: 8px !important; bottom: auto !important;
    width: min(64vw, 260px); max-height: none; padding: 6px 9px; border-radius: 10px;
  }
  .tour-tip.mobile.compact .tt-kicker { font-size: 11px; }
  .tour-tip.mobile.compact .tt-title {
    font-size: 12.5px; margin: 1px 0 0; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .tour-tip.mobile.compact .tt-body,
  .tour-tip.mobile.compact .tt-hint,
  .tour-tip.mobile.compact .tt-progress,
  .tour-tip.mobile.compact #ttPrev,
  .tour-tip.mobile.compact #ttReset,
  .tour-tip.mobile.compact #ttSkip { display: none !important; }
  .tour-tip.mobile.compact .tt-btns { margin-top: 4px; gap: 6px; }
  .tour-tip.mobile.compact .tt-btns button { padding: 4px 8px; font-size: 11px; }
  .tour-hole { box-shadow: 0 0 0 9999px rgba(8, 6, 14, .18) !important; }
}

@media (max-width: 900px) {
  .tour-tip.mobile.bottom { top: auto !important; bottom: 76px !important; }
}


/* 手机竖屏：额外 Live 播报条不要压住顶部阶段/菜单按钮，挪到页签上方 */
@media (max-width: 900px) {
  .extra-live {
    top: auto;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    padding: 8px 12px;
    border-radius: 14px;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 2px;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
  }
  .extra-live .elb-title { flex: 0 0 auto; }
  .extra-live .elb-sub { flex: 1 1 100%; text-align: center; }
}

/* 联机等待条和「不能行动」等 Toast 不要互相盖住 */
.toast { z-index: 170; }
.toast.toast-front { z-index: 175; }

/* 唱片收藏里的「主页展示」编辑 */
.cs-showcase{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin:12px 0 16px;padding:12px 14px;border-radius:14px;background:rgba(232,196,122,.07);
  border:1px solid rgba(232,196,122,.24)}
.cs-showcase b{display:block;font-size:14px;color:#f2ecfb}
.cs-showcase span{display:block;font-size:12px;color:#a99fbd;margin-top:3px}
.cs-showcase-btns{display:flex;gap:8px;align-items:center}
.cs-profile-link{font-size:12px;color:#e8c47a;text-decoration:none;border:1px solid rgba(232,196,122,.4);
  border-radius:999px;padding:7px 12px}
.ss-edit{max-height:64vh;overflow:auto;padding-right:4px}
.ss-sec{margin-bottom:16px}
.ss-head{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 8px}
.ss-head b{font-size:14px;color:#f2ecfb}.ss-head span{font-size:12px;color:#e8c47a}
.ss-grid{display:grid;gap:7px}
.ss-chars{grid-template-columns:repeat(auto-fill,minmax(78px,1fr))}
.ss-albums{grid-template-columns:repeat(auto-fill,minmax(86px,1fr))}
.ss-item{padding:3px;border:1px solid #3b334b;border-radius:10px;background:#1b1726;cursor:pointer;
  color:#cfc5dd;font:inherit;overflow:hidden;text-align:left}
.ss-item img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px;background:#2a2238}
.ss-item span{display:block;font-size: 11px;line-height:1.3;padding:4px 2px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ss-item.on{border-color:#e8c47a;background:#3a2e1c;box-shadow:0 0 0 1px #e8c47a inset}
.ss-actions{position:sticky;bottom:0;padding:10px 0 2px;background:linear-gradient(transparent,#1b1726 30%)}
.ss-actions .cs-fill{width:100%}
@media (max-width: 900px){.ss-edit{max-height:58vh}.ss-chars{grid-template-columns:repeat(4,1fr)}
  .ss-albums{grid-template-columns:repeat(3,1fr)}.cs-showcase{align-items:flex-start}}
a.lb-name{color:inherit;text-decoration:none;border-bottom:1px dotted rgba(232,196,122,.35)}
a.lb-name:hover{color:#e8c47a}
.mix-batch{margin-top:6px;font-size:12px;color:#e8c47a;background:rgba(232,196,122,.1);
  border:1px solid rgba(232,196,122,.25);border-radius:8px;padding:4px 8px;display:inline-block}

/* 随机补漏抽到唱片的获得动效 */
.csr{position:fixed;inset:0;z-index:260;display:flex;align-items:center;justify-content:center;
  background:rgba(8,6,14,.72);opacity:0;transition:opacity .22s ease;backdrop-filter:blur(3px)}
.csr.show{opacity:1}
.csr-box{position:relative;width:min(430px,88vw);padding:30px 24px 22px;text-align:center;
  border-radius:22px;background:linear-gradient(150deg,#2b2337,#17131f);border:1px solid rgba(232,196,122,.4);
  box-shadow:0 24px 80px rgba(0,0,0,.6),0 0 50px rgba(232,196,122,.13);
  transform:scale(.82) translateY(14px);transition:transform .3s cubic-bezier(.2,1.3,.4,1)}
.csr.show .csr-box{transform:scale(1) translateY(0)}
.csr-glow{position:absolute;inset:-30px;border-radius:50%;background:radial-gradient(circle,rgba(232,196,122,.25),transparent 65%);
  animation:csrGlow 1.8s ease-in-out infinite alternate;pointer-events:none}
.csr-vinyl{position:absolute;left:50%;top:88px;width:210px;height:210px;margin-left:-105px;border-radius:50%;
  background:repeating-radial-gradient(circle,#111 0 3px,#1d1b22 4px 7px);
  box-shadow:inset 0 0 0 18px #0b0a0e,0 8px 30px rgba(0,0,0,.5);animation:csrSpin 7s linear infinite;opacity:.9}
.csr-cover{position:relative;width:180px;height:180px;object-fit:cover;border-radius:12px;
  border:1px solid rgba(255,255,255,.22);box-shadow:0 16px 40px rgba(0,0,0,.6);
  animation:csrCover .6s cubic-bezier(.2,1.4,.4,1) both}
.csr-kicker{margin-top:16px;font-size:11px;letter-spacing:.24em;color:#e8c47a}
.csr-name{margin-top:5px;font-size:19px;font-weight:800;color:#f6f1e9}
.csr-hint{margin-top:7px;font-size:11px;color:#9b91ad}
@keyframes csrSpin{to{transform:rotate(360deg)}}
@keyframes csrCover{from{transform:scale(.7) rotate(-5deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
@keyframes csrGlow{from{opacity:.55;transform:scale(.94)}to{opacity:1;transform:scale(1.05)}}
@media (max-width: 900px){.csr-cover{width:150px;height:150px}.csr-vinyl{width:178px;height:178px;margin-left:-89px;top:82px}}

/* 收藏页 · 角色异画分页 */
.cs-alt-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 4px 14px; color: var(--muted); font-size: 12.5px;
}
/* 角色异画 · 全图陈列 */
.cs-alt-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin: 4px 0 16px; padding: 14px 18px; border-radius: 16px;
  background:
    radial-gradient(1200px 200px at 10% -40%, rgba(232, 196, 122, .22), transparent 70%),
    linear-gradient(120deg, rgba(232, 196, 122, .12), rgba(227, 93, 138, .10) 60%, transparent);
  border: 1px solid rgba(232, 196, 122, .35);
}
.cs-alt-hero-title { font-size: 19px; font-weight: 800; letter-spacing: .06em; color: #ffe9b8; }
.cs-alt-hero-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.cs-alt-roll {
  padding: 9px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: #2a1e10; border: 0;
  background: linear-gradient(180deg, #ffe6ab, #e8c47a);
  box-shadow: 0 6px 18px rgba(232, 196, 122, .35);
}
.cs-alt-gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.cs-alt-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .10);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.cs-alt-card:hover { transform: translateY(-4px); border-color: rgba(232, 196, 122, .55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 18px rgba(232, 196, 122, .18); }
.cs-alt-frame {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 822 / 1122;               /* 完整卡面比例，不裁切 */
  background: radial-gradient(circle at 50% 40%, rgba(232, 196, 122, .10), #0b0910 70%);
  border: 1px solid rgba(232, 196, 122, .35);
}
.cs-alt-card.owned .cs-alt-frame { border-color: rgba(232, 196, 122, .75);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 122, .25); }
.cs-alt-card.using .cs-alt-frame { box-shadow: 0 0 0 2px rgba(232, 196, 122, .8), 0 0 22px rgba(232, 196, 122, .35); }
.cs-alt-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cs-alt-flag {
  position: absolute; left: auto; right: 8px; top: 8px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: #2a1e10; background: linear-gradient(180deg, #ffe6ab, #e8c47a);
}
.cs-alt-flag.lock { color: #cfc6e0; background: rgba(20, 16, 28, .78); border: 1px solid rgba(255,255,255,.18); }
.cs-alt-flag.using { left: auto; right: 8px; color: #fff; background: linear-gradient(180deg, #ff7fb0, #e35d8a); }
.cs-alt-card:not(.owned) .cs-alt-frame img { filter: saturate(.55) brightness(.62); }
.cs-alt-name { font-size: 13.5px; font-weight: 700; text-align: center; }
.cs-alt-band-name {
  margin-top: -4px; text-align: center; font-size: 11px;
  color: var(--muted); opacity: .75; letter-spacing: .02em;
}
.cs-alt-btns { display: flex; gap: 8px; }
.cs-alt-btns button { flex: 1 1 auto; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; }
.cs-alt-note { margin-top: 12px; opacity: .75; }

/* 异画收藏：按乐队筛选 + 勾选批量操作 */
.cs-alt-tools {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0 0 6px; padding: 10px 0 4px;
}
.cs-alt-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.cs-alt-tab {
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px;
  color: #cfc4e0; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background .15s, border-color .15s, color .15s;
}
.cs-alt-tab:hover { border-color: rgba(232, 196, 122, .45); color: #f5e6c6; }
.cs-alt-tab.on {
  color: #2a1e10; font-weight: 800;
  background: linear-gradient(180deg, #ffe6ab, #e8c47a);
  border-color: rgba(255, 230, 171, .8);
  box-shadow: 0 4px 14px rgba(232, 196, 122, .25);
}
.cs-alt-batch {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 40px; padding: 7px 12px; border-radius: 12px;
  background: linear-gradient(100deg, rgba(58, 44, 76, .55), rgba(30, 24, 40, .35));
  border: 1px solid rgba(120, 104, 150, .45);
}
.cs-alt-batch-hint { flex: 1 1 220px; font-size: 12px; color: var(--muted); }
.cs-alt-batch button {
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #2a1e10; border: 1px solid rgba(255, 226, 160, .7);
  background: linear-gradient(180deg, #ffe6ab, #e8c47a);
}
.cs-alt-batch button.ghost {
  color: #d8cce8; background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .18);
}
.cs-alt-batch button:disabled { opacity: .38; cursor: not-allowed; }
.cs-alt-band {
  display: flex; align-items: baseline; gap: 10px;
  margin: 18px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.cs-alt-band span {
  font-size: 14px; font-weight: 800; letter-spacing: .04em; color: #f2dfb2;
}
.cs-alt-band em { font-size: 11.5px; color: var(--muted); font-style: normal; }
.cs-alt-card.picked {
  border-color: rgba(232, 196, 122, .9);
  box-shadow: 0 0 0 1px rgba(232, 196, 122, .45), 0 10px 24px rgba(0, 0, 0, .35);
}
.cs-alt-pick {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  width: 24px; height: 24px; display: grid; place-items: center;
  cursor: pointer; border-radius: 7px;
  background: rgba(15, 11, 22, .78); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(3px);
}
.cs-alt-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cs-alt-pick span {
  width: 12px; height: 12px; border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, .65);
}
.cs-alt-pick input:checked + span {
  background: linear-gradient(180deg, #ffe6ab, #e8c47a);
  border-color: #ffe6ab;
  box-shadow: 0 0 8px rgba(232, 196, 122, .55);
}
.cs-alt-pick input:checked + span::after {
  content: "✓"; display: block; margin-top: -7px; margin-left: 1px;
  font-size: 13px; line-height: 1; color: #2a1e10; font-weight: 900;
}

/* 收藏页 · 头像 / 头像框 / 出框头像 */
.cs-ava-section {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: var(--ink);
}
.cs-ava-section .tiny { font-weight: 400; opacity: .7; }
.cs-ava-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.cs-ava-card {
  display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .10);
}
.cs-ava-card.using { border-color: rgba(232, 196, 122, .8); box-shadow: 0 0 0 1px rgba(232, 196, 122, .35); }
.cs-ava-box {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: radial-gradient(circle at 50% 45%, rgba(232,196,122,.08), #0b0910 72%);
  border: 1px solid rgba(255, 255, 255, .08); overflow: hidden;
}
.cs-ava-box img { width: 76%; height: 76%; border-radius: 50%; object-fit: cover; display: block; }
/* 出框头像：整张方形立绘，人物从圆里出来 —— 不裁圆、放大一点 */
.cs-ava-card.out .cs-ava-box { overflow: visible; background: transparent; border-color: transparent; }
.cs-ava-card.out .cs-ava-box img {
  width: 116%; height: 116%; border-radius: 0; object-fit: contain; background: transparent;
}
.cs-ava-card.lock .cs-ava-box img { filter: saturate(.55) brightness(.62); }
.cs-ava-name { font-size: 12px; text-align: center; line-height: 1.3; }
.cs-ava-card .cs-alt-btns button { padding: 5px 8px; border-radius: 999px; font-size: 12px; }

/* 个人主页编辑 */
.ss-edit { display: flex; flex-direction: column; gap: 14px; }
.ss-picked { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ss-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ss-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 12.5px;
  background: rgba(232, 196, 122, .12); border: 1px solid rgba(232, 196, 122, .45); color: inherit;
}
.ss-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ss-chip b { opacity: .6; font-weight: 400; }
.ss-tabs { display: flex; gap: 8px; }
.ss-tab {
  padding: 6px 16px; border-radius: 999px; font-size: 13.5px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
}
.ss-tab.on { color: #ffe9b8; border-color: rgba(232, 196, 122, .6); background: rgba(232, 196, 122, .14); }
.ss-tools { display: flex; flex-direction: column; gap: 8px; }
.ss-search {
  width: 100%; padding: 8px 12px; border-radius: 10px; font-size: 13.5px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: inherit;
}
.ss-bands { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-band {
  padding: 3px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted);
}
.ss-band.on { color: #ffe9b8; border-color: rgba(232, 196, 122, .55); }
.ss-grid.ss-chars { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-height: 46vh; overflow: auto; }
.ss-card { position: relative; display: flex; flex-direction: column; gap: 4px; }
.ss-card-main {
  display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); color: inherit; text-align: left;
}
.ss-card.on .ss-card-main { border-color: rgba(232, 196, 122, .8); box-shadow: 0 0 0 1px rgba(232, 196, 122, .35) inset; }
.ss-card-art {
  position: relative; display: block; border-radius: 9px; overflow: hidden;
  aspect-ratio: 3 / 4; background: #0b0910;
}
.ss-card-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ss-alt-badge {
  position: absolute; right: 4px; top: 4px; padding: 1px 6px; border-radius: 999px;
  font-size: 11px; font-style: normal; font-weight: 700; color: #2a1e10;
  background: linear-gradient(180deg, #ffe6ab, #e8c47a);
}
.ss-card-check {
  position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 700;
  color: #2a1e10; background: linear-gradient(180deg, #ffe6ab, #e8c47a);
}
.ss-card-name { font-size: 12.5px; font-weight: 700; }
.ss-card-band { font-size: 11px; color: var(--muted); }
.ss-alt-toggle {
  padding: 3px 8px; border-radius: 999px; font-size: 11px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(232, 196, 122, .4); color: #ffe9b8;
}
.ss-alt-toggle.on { background: rgba(232, 196, 122, .22); }

/* 平泽唯·单线程标记（与上一轮同一板块 → 本次收益翻倍） */
.single-flag {
  position: absolute; right: 4px; bottom: 4px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  overflow: hidden; display: block;
  border: 2px solid #ffd76e;
  box-shadow: 0 0 10px rgba(255, 215, 110, .75), 0 2px 6px rgba(0, 0, 0, .5);
  animation: singlePulse 1.8s ease-in-out infinite;
}
.single-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes singlePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 215, 110, .5), 0 2px 6px rgba(0, 0, 0, .5); }
  50%      { box-shadow: 0 0 16px rgba(255, 215, 110, .95), 0 2px 6px rgba(0, 0, 0, .5); }
}

/* 单人模式开局面板 */
.solo-setup { display: flex; flex-direction: column; gap: 14px; }
.solo-row { display: flex; flex-direction: column; gap: 6px; }
.solo-row select {
  padding: 8px 10px; border-radius: 10px; font-size: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: inherit;
}
.solo-bands { display: flex; flex-wrap: wrap; gap: 6px; }
.solo-band {
  padding: 4px 12px; border-radius: 999px; font-size: 12.5px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
}
.solo-band.on { color: #ffe9b8; border-color: rgba(232,196,122,.6); background: rgba(232,196,122,.16); }

/* 单人模式任务卡面板（左下角常驻，可通过 .hidden 收起） */
.solo-tasks {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  width: min(420px, 46vw);
  background: rgba(22, 18, 30, .92); border: 1px solid rgba(232, 196, 122, .35);
  border-radius: 12px; padding: 8px 10px; backdrop-filter: blur(6px);
}
.solo-tasks.hidden { display: none; }
.st-head { font-size: 12px; color: #e8c47a; margin-bottom: 6px; }
.st-list { display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow: auto; }
.st-card { border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 6px 8px; }
.st-card.ready { border-color: rgba(232,196,122,.7); box-shadow: 0 0 10px rgba(232,196,122,.18); }
.st-cond { font-size: 12.5px; }
.st-reward { font-size: 11px; color: var(--muted); margin: 3px 0 5px; }
.st-tokens { font-size: 11px; color: #ffe9b8; margin-top: 2px; }
.st-tokens b { font-size: 12.5px; }
.st-btns { display: flex; gap: 6px; }
.st-btns button { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; }
.st-btns button:disabled { opacity: .5; }

/* 获得异画：全屏翻牌动效 */
.altgain {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 6, 12, .82); backdrop-filter: blur(6px);
}
.altgain.hidden { display: none; }
.altgain-glow {
  position: absolute; width: min(78vw, 560px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,196,122,.5), rgba(232,196,122,0) 65%);
  animation: altGlow 2.8s ease-out both;
}
.altgain-stage {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 10px; padding: 18px; text-align: center;
}
.altgain-kicker { font-size: 12px; letter-spacing: .35em; color: #ffe9b8; }
.altgain-card {
  width: min(62vw, 300px); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(232,196,122,.65);
  box-shadow: 0 24px 70px rgba(0,0,0,.65), 0 0 40px rgba(232,196,122,.35);
}
.altgain-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.altgain.play .altgain-card { animation: altFlip 1s cubic-bezier(.2,.8,.2,1) both; }
.altgain.play .altgain-kicker,
.altgain.play .altgain-label,
.altgain.play .altgain-ok { animation: altFade .7s .55s both; }
.altgain-label { font-size: 15px; color: #fff; text-shadow: 0 2px 12px #000; }
.altgain-ok {
  margin-top: 4px; padding: 8px 28px; border-radius: 999px; border: 0;
  background: linear-gradient(120deg, #f06a97, #e8c47a); color: #2a1e10;
  font-weight: 700; cursor: pointer;
}
@keyframes altFlip {
  0%   { transform: perspective(1200px) rotateY(95deg) scale(.9); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: perspective(1200px) rotateY(0) scale(1); opacity: 1; }
}
@keyframes altGlow {
  0%   { opacity: 0; transform: scale(.6); }
  40%  { opacity: 1; }
  100% { opacity: .35; transform: scale(1); }
}
@keyframes altFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* 单人模式剧情卡 */
.solo-story { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.solo-story-ending {
  align-self: flex-start; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #2a1e10;
  background: linear-gradient(180deg, #ffe6ab, #e8c47a);
}
.solo-story-id { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.solo-story-title { margin: 0; font-size: 19px; }
.solo-story-text { font-size: 14px; line-height: 1.85; white-space: pre-wrap; max-height: 46vh; overflow: auto; }
/* 推进条件 + 「还差多少」：一眼看出这次会不会换卡 */
.solo-story-branch {
  padding: 8px 10px; border-radius: 9px; font-size: 12.5px; line-height: 1.75;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #d9d0e6;
}
.solo-story-need { margin-top: 3px; color: #ffe9b8; }

.solo-btns { display: flex; gap: 8px; }
.solo-rank { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.solo-rank-row {
  display: grid; grid-template-columns: 42px 1.3fr 1fr .9fr .7fr 1fr;
  gap: 8px; align-items: center; padding: 7px 10px; border-radius: 9px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 12.5px;
}
.solo-rank-row .gold { color: #ffe9b8; font-weight: 700; }
.solo-rank-row .muted { color: var(--muted); }

/* 单人：领队再行动按钮 */
.st-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-note { font-size: 11px; color: var(--muted); margin: -2px 0 6px; }
/* 已完成任务：默认收起，点开才占地方 */
.st-done { margin: 2px 0 6px; font-size: 11.5px; color: #b9e0b0; }
.st-done summary { cursor: pointer; color: #e8c47a; outline: none; }
.st-done-list { margin: 4px 0 0 8px; display: flex; flex-direction: column; gap: 2px; }
.st-done-list div { color: #a9c7a3; font-size: 11px; line-height: 1.5; }
.solo-tasks.collapsed .st-note { display: none; }
/* 首次进单人模式的规则导览 */
.solo-intro { display: flex; flex-direction: column; gap: 10px; }
.solo-intro-list { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; }
.solo-intro-list b { color: #ffe9b8; }
.st-again {
  margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 11.5px;
  color: #2a1e10; background: linear-gradient(180deg, #ffe6ab, #e8c47a); border: 0;
}
/* 单人开局面板：乐队可视化 */
.solo-band { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 12px; }
.solo-band b { font-size: 12.5px; }
.solo-band i { font-style: normal; font-size: 11px; opacity: .7; }
.solo-band.leader-band { border-color: rgba(227, 93, 138, .8); box-shadow: 0 0 0 1px rgba(227, 93, 138, .35) inset; }
/* 排行榜切换 */
.board-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.board-tab {
  padding: 5px 16px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
}
.board-tab.on { color: #ffe9b8; border-color: rgba(232,196,122,.6); background: rgba(232,196,122,.16); }

.solo-end-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.solo-end-stats > div {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(232,196,122,.10); border: 1px solid rgba(232,196,122,.35);
}
.solo-end-stats b { font-size: 18px; color: #ffe9b8; }
.solo-end-stats span { font-size: 11px; color: var(--muted); }
/* 结局页顶部：玩家头像 + 名字 */
.solo-end-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.solo-end-ava {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,.08); border: 1px solid rgba(232,196,122,.35);
}
.solo-end-ava-txt {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: #ffe9b8;
}
.solo-end-name { font-size: 15px; font-weight: 700; }
.solo-end-tickets {
  margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px;
  line-height: 1.7; color: #cfc5dd;
  background: rgba(232,196,122,.08); border: 1px solid rgba(232,196,122,.25);
}
.solo-end-tickets b { color: #ffe9b8; }

/* 单人：领队选择（列表 + 详情） */
.solo-leader { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.solo-leader-left { display: flex; flex-direction: column; gap: 8px; }
.solo-leader-list {
  display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  max-height: 52vh; overflow: auto;
}
.solo-leader-item {
  display: flex; flex-direction: column; gap: 2px; padding: 5px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); color: inherit; text-align: left;
}
.solo-leader-item.on { border-color: rgba(232,196,122,.8); box-shadow: 0 0 0 1px rgba(232,196,122,.35) inset; }
.solo-leader-item img { width: 100%; aspect-ratio: 3/4; object-fit: contain; border-radius: 7px; background: #0b0910; }
.solo-leader-item .nm { font-size: 12px; font-weight: 700; }
.solo-leader-item .bd { font-size: 11px; color: var(--muted); }
.solo-leader-item .tag-sp {
  font-style: normal; font-size: 11px; padding: 0 4px; border-radius: 5px;
  background: rgba(232,196,122,.18); color: var(--gold, #e8c47a); vertical-align: 1px;
}
.solo-leader-right {
  display: flex; flex-direction: column; gap: 6px; padding: 10px;
  border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.solo-leader-art { width: 100%; aspect-ratio: 3/4; object-fit: contain; border-radius: 10px; background: #0b0910; }
.solo-leader-name { font-size: 16px; font-weight: 800; color: #ffe9b8; }
.solo-leader-tip { color: #e8c47a; }
.solo-leader-pick {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(232,196,122,.5); color: inherit;
}
.solo-leader-pick img { width: 28px; height: 36px; object-fit: contain; border-radius: 5px; background: #0b0910; }
.solo-leader-pick i { font-style: normal; font-size: 11px; color: var(--muted); }

/* 排行榜分页：做成按钮样式（参考唱片收藏分页） */
.lb-tabs-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.lb-tabs-btns .lb-tab {
  padding: 5px 16px; border-radius: 999px; font-size: 13px; text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
}
.lb-tabs-btns .lb-tab.on {
  color: #ffe9b8; border-color: rgba(232,196,122,.6); background: rgba(232,196,122,.16);
}
/* 单人榜表格 */
.lb-solo-head { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.lb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lb-table th { text-align: left; padding: 6px 8px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.lb-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.lb-table .lb-rank { color: #ffe9b8; font-weight: 700; }
.lb-table .lb-fans { color: #ffe9b8; font-weight: 700; }
.lb-table .lb-time { color: var(--muted); font-size: 12px; }
.lb-empty { padding: 24px 0; color: var(--muted); }

/* 领队详情：技能区 */
.solo-leader-skills { display: flex; flex-direction: column; gap: 6px; max-height: 30vh; overflow: auto; }
.solo-skill {
  padding: 6px 8px; border-radius: 8px; font-size: 12px; line-height: 1.6;
  background: rgba(155,140,240,.10); border: 1px solid rgba(155,140,240,.28);
}
.solo-skill b { color: #cbbfe0; }

/* 单人任务面板：可收起、手机不挡棋盘 */
.solo-tasks { max-height: 46vh; display: flex; flex-direction: column; }
.solo-tasks.collapsed .st-list,
.solo-tasks.collapsed .st-head .st-again,
.solo-tasks.collapsed .st-head #soloRest { display: none; }
.solo-tasks.collapsed { width: auto; }
.st-head { position: relative; }
.st-toggle {
  padding: 2px 10px; border-radius: 999px; font-size: 11px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #ffe9b8;
}
.st-list { overflow: auto; }
@media (max-width: 900px) {
  .solo-tasks {
    left: 6px; right: 6px; bottom: 6px; width: auto; max-height: 38vh;
    border-radius: 10px; padding: 6px 8px;
  }
  .solo-tasks .st-list { flex-direction: row; gap: 6px; }
  .solo-tasks .st-card { min-width: 200px; flex: 0 0 auto; }
  .st-head { font-size: 11.5px; }
  .st-cond { font-size: 11.5px; }
  .st-reward { font-size: 11px; }
}

/* 招募：角色卡网格 + 出场动画 */
.recruit-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 8px 0 12px; }
.recruit-card {
  display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); color: inherit; text-align: left;
  animation: cardIn .28s ease both;
}
.recruit-card img { width: 100%; aspect-ratio: 3/4; object-fit: contain; border-radius: 9px; background: #0b0910; }
.recruit-card .rc-name { font-size: 13px; font-weight: 700; }
.recruit-card .rc-meta { font-size: 11px; color: var(--muted); }
.recruit-card .rc-skill { font-size: 11px; line-height: 1.5; color: #cbbfe0; max-height: 8.5em; overflow: auto; }
.recruit-card .rc-pick { margin-top: 2px; font-size: 11.5px; color: #ffe9b8; }
.recruit-card.picked { border-color: rgba(232,196,122,.85); box-shadow: 0 0 12px rgba(232,196,122,.25); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
/* 剧情卡卡面 + 出场动画（推进时像翻牌一样入场） */
.story-enter { animation: storyIn .42s cubic-bezier(.2,.8,.2,1) both; }
.solo-story-art {
  width: 100%; max-width: 360px; border-radius: 12px; margin: 2px 0 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); border: 1px solid rgba(232,196,122,.35);
  animation: storyFlip .6s cubic-bezier(.2,.8,.2,1) both;
  backface-visibility: hidden;
}
@keyframes storyIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes storyFlip {
  from { opacity: 0; transform: perspective(1000px) rotateY(-78deg) scale(.96); }
  70%  { opacity: 1; }
  to   { opacity: 1; transform: perspective(1000px) rotateY(0deg) scale(1); }
}

/* 单人招募：入队高亮 */
.char-card.just-joined {
  animation: joinPop .9s ease both;
  border-color: rgba(232,196,122,.95) !important;
}
@keyframes joinPop {
  0% { transform: scale(.86); box-shadow: 0 0 0 0 rgba(232,196,122,.85); }
  55% { transform: scale(1.04); box-shadow: 0 0 22px 6px rgba(232,196,122,.55); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232,196,122,0); }
}

/* ================================================================
   v0.9.19 · 手机竖屏优化（≤720px 且 portrait）
   ----------------------------------------------------------------
   * 开始页：logo 收小、乐队卡排布不变，开始按钮不用滚两屏；
   * 对局页：页头压成两行并贴顶，任务板块两列，底部开关收成图标；
   * 只影响竖屏手机，桌面与横屏完全不变。
   ================================================================ */
@media (max-width: 900px) and (orientation: portrait) {
  /* ---------- 开始页 ---------- */
  .start-center { padding: 10px 12px 26px; }
  .eyebrow { margin-bottom: 8px; padding: 3px 10px; font-size: 11px; letter-spacing: .2em; }
  .brand-logo { width: min(220px, 50vw); max-height: 11vh; margin-bottom: 2px; }
  .lead { margin: 4px 0 10px; font-size: 12px; }
  .band-setup { margin: 4px 0 10px; }
  .band-setup-head { gap: 6px; flex-wrap: wrap; }
  /* 竖屏 4 列：10 支乐队 3 行，开始按钮能留在首屏 */
  .band-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .band-card { border-radius: 10px; }
  .band-card .band-logo { left: 6px; bottom: 16px; max-height: 18px; }
  .band-card .band-name { left: 6px; bottom: 4px; font-size: 11px; }
  /* 声音提示贴到屏幕底部，别挡在乐队卡中间 */
  .sound-hint {
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding: 6px 14px; font-size: 11.5px;
  }
  #startBtn { width: min(100%, 320px); padding: 12px 24px; font-size: 15px; }
  .start-extra { gap: 6px; flex-wrap: wrap; }
  .start-extra .ghost { padding: 6px 10px; font-size: 11.5px; }
  .start-foot { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .version { margin-top: 10px; }
  .start-tools { top: 8px; right: 8px; gap: 4px; }
  .start-tools .tool-btn { padding: 5px 7px; }
  .start-tools .tool-btn span { display: none; }
  .start-tools .online-chip { padding: 3px 8px; font-size: 11px; }

  /* ---------- 对局页：页头两行、贴顶 ---------- */
  header {
    padding: 5px 7px calc(5px + env(safe-area-inset-top));
    gap: 4px 6px;
    background: rgba(16, 13, 23, .97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  /* 只有进对局才让页头压在最上面：开始页是盖住整屏的浮层，别被页头顶开 */
  body.in-game header {
    position: sticky;
    top: 0;
    z-index: 150;
  }
  /* 开始页上不要挂对局用的底部开关（音量/特效/开发者） */
  #startScreen:not(.hidden) ~ #sndBtn,
  #startScreen:not(.hidden) ~ #musicToggle,
  #startScreen:not(.hidden) ~ #sfxToggle,
  #startScreen:not(.hidden) ~ #fxToggle,
  #startScreen:not(.hidden) ~ #devBtn,
  #startScreen:not(.hidden) ~ .dock-fade { display: none !important; }
  #onlineChip { display: none !important; }   /* 在线人数只留开始页那份 */
  header .chip { padding: 2px 7px; font-size: 11px; }
  header .turn-badge { padding: 2px 7px; font-size: 11px; }
  header button { padding: 4px 8px; font-size: 11px; border-radius: 8px; }
  header button .h-ico { width: 12px; height: 12px; }
  #btn-next { margin-left: auto; }

  /* ---------- 任务板块 / 赞助商：两列 ---------- */
  #publicPanel .boards,
  #publicPanel .boards.small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .board.has-art { min-height: 104px; padding: 6px 8px; }
  .boards.small .board.has-art { min-height: 92px; }
  .board.has-art .board-title { font-size: 11.5px; }
  .board.has-art .board-hint { font-size: 11px; line-height: 1.3; -webkit-line-clamp: 3; }
  .panel { padding: 8px 9px; }
  .panel h2 { font-size: 12px; }

  /* ---------- 底部开关：收成纯图标一行 ---------- */
  .fx-toggle,
  .dev-entry { padding: 6px; font-size: 0; gap: 0; }
  .fx-toggle .h-ico,
  .dev-entry .h-ico { width: 15px; height: 15px; margin: 0; }
  #fxToggle { right: 8px; }
  #musicToggle { right: 44px; }
  #sfxToggle { right: 80px; }
  #sndBtn { right: 116px; }
  body.in-game .wrap { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

  /* ---------- 单人任务卡：手机上占满宽度，浮在页签上方 ---------- */
  .solo-tasks {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: calc(110px + env(safe-area-inset-bottom));
    max-height: 46vh;
    padding: 6px 8px;
  }
  .st-head { font-size: 11px; gap: 4px 6px; margin-bottom: 4px; }
  .st-again { padding: 2px 8px; font-size: 11px; }
  .st-list { max-height: 34vh; }
}

/* 更新记录里的对比图 */
.upd-img { display:block; max-width:100%; margin-top:10px; border-radius:10px;
  border:1px solid rgba(255,255,255,.12); }

.upd-img-link { position: relative; display: block; cursor: zoom-in; }
.upd-img-hint { position: absolute; right: 8px; bottom: 8px; padding: 3px 10px;
  border-radius: 999px; background: rgba(0,0,0,.55); color: #f3e6c8; font-size: 12px; }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px; margin: 10px 0; max-height: 46vh; overflow: auto; }
.album-chip { display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left;
  background: #221d2e; border: 1px solid rgba(255,255,255,.12); color: #e7e0f5; font-size: 12px; }
.album-chip span { color: #a79bb4; font-size: 11px; }
.album-chip.sel { border-color: rgba(232,196,122,.75); background: rgba(232,196,122,.16); }
#albumSubmit { margin-top: 8px; }

/* ---------------- CHU² 制作人面板（方案 B：浮层 + 卡片） ---------------- */
/* 靠左下角停：右下角是「确认队伍 / 确认」这类按钮，挡住会让对局卡死 */
.chu2-float {
  position: fixed; left: 14px; right: auto; bottom: 96px; z-index: 70;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  max-width: min(560px, calc(100vw - 28px));
}
.chu2-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(232,196,122,.16); border: 1px solid rgba(232,196,122,.65);
  color: #ffe9b8; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.chu2-btn b { color: #ffe9b8; letter-spacing: .02em; }
.chu2-btn span { color: #cfc5dd; font-weight: 400; font-size: 12px; }
.chu2-float.collapsed .chu2-body { display: none; }
.chu2-body {
  width: min(560px, calc(100vw - 28px));
  padding: 12px; border-radius: 16px;
  background: rgba(24,26,37,.97); border: 1px solid rgba(232,196,122,.45);
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
}
.chu2-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: #a79bb4; margin-bottom: 8px;
}
.chu2-close {
  background: none; border: none; color: #a79bb4; font-size: 11.5px; cursor: pointer;
}
.chu2-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.chu2-grid.pick { margin-top: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 制作人面板选择弹窗：卡片名字/说明要能正常换行，不能撑破格子。
   注意这里**不能**再叫 .modal —— .modal 是整屏遮罩（position:fixed; inset:0），
   卡片会被拉成整屏、盖住确认按钮（2026-11-09 线上反馈）。 */
.chu2-grid.pick .chu2-card { min-width: 0; overflow-wrap: anywhere; }
.chu2-grid.pick .chu2-desc,
.chu2-grid.pick .chu2-name,
.chu2-grid.pick .chu2-head-line { white-space: normal; word-break: break-word; }

/* 兼容线上旧标记（旧 app.js 发的是 class="chu2-grid modal"）：
   在 app.js 换新之前，线上只更新 style.css 也要能正常显示。整包发版后可删。 */
#modal .chu2-grid.modal {
  position: static !important; inset: auto !important;
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: auto !important; max-width: none !important;
  margin: 10px 0 0 !important;
  background: none !important; z-index: auto !important;
  align-items: stretch !important; justify-content: normal !important;
}
#modal .chu2-grid.modal .chu2-card { min-width: 0; overflow-wrap: anywhere; }
#modal .chu2-grid.modal .chu2-desc,
#modal .chu2-grid.modal .chu2-name,
#modal .chu2-grid.modal .chu2-head-line { white-space: normal; word-break: break-word; }
.chu2-card {
  display: block; text-align: left; padding: 10px 12px; border-radius: 12px;
  background: #21242f; border: 1px solid rgba(255,255,255,.10);
  color: #e7e0f5; font-size: 12px; cursor: default;
}
button.chu2-card { cursor: pointer; }
.chu2-card.on { background: rgba(232,196,122,.10); border-color: rgba(232,196,122,.55); }
.chu2-card.off { opacity: .72; }
.chu2-card.picked { border-color: #ffe9b8; box-shadow: 0 0 0 2px rgba(232,196,122,.35) inset; }
.chu2-name {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px; color: #f3ecff;
}
.chu2-state { font-size: 11px; font-weight: 400; }
.chu2-state.ok { color: #6ee7a8; }
.chu2-state.no { color: #ff8fa3; }
.chu2-icons { display: flex; gap: 4px; margin: 8px 0 6px; flex-wrap: wrap; }
.chu2-ico { position: relative; display: inline-flex; }
.chu2-ico img { width: 22px; height: 22px; display: block; }
.chu2-ico.lack img { opacity: .25; filter: grayscale(1); }
.chu2-ico i {
  position: absolute; right: -3px; bottom: -3px; font-style: normal;
  font-size: 11px; color: #ffe9b8; background: rgba(0,0,0,.55);
  border-radius: 6px; padding: 0 3px;
}
.chu2-desc { color: #a79bb4; font-size: 11px; line-height: 1.5; }
.chu2-pick {
  margin-top: 8px; text-align: center; font-size: 11.5px; font-weight: 700;
  color: #ffe9b8; border-top: 1px dashed rgba(255,255,255,.12); padding-top: 6px;
}
@media (max-width: 900px) {
  .chu2-float { bottom: 78px; right: 10px; }
  .chu2-grid.pick { grid-template-columns: 1fr; }
  #modal .chu2-grid.modal { grid-template-columns: 1fr !important; }
  .chu2-body { padding: 10px; }
}

/* ---------------- 行动顺序条（准备/工作/Live 通用） ---------------- */
.order-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232,196,122,.07), transparent);
}
.order-bar.hidden { display: none; }
.ob-label { font-size: 11px; letter-spacing: .16em; color: var(--gold); white-space: nowrap; }
.ob-seats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ob-seat {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px;
  border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted);
  white-space: nowrap;
}
.ob-seat i {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 11px; background: rgba(255,255,255,.10); color: var(--ink);
}
.ob-seat.me { border-style: dashed; }
.ob-seat.done { opacity: .45; }
.ob-seat.now {
  border-color: rgba(232,196,122,.8); color: var(--ink); background: rgba(232,196,122,.16);
  box-shadow: 0 6px 18px rgba(232,196,122,.16);
}
.ob-seat.now i { background: var(--gold); color: #2a1f08; font-weight: 800; }
.ob-arrow { color: #4c4560; font-size: 11px; }
.ob-tip { margin-left: auto; font-size: 12px; color: #ffcf6a; white-space: nowrap; }
@media (max-width: 900px) {
  .order-bar { padding: 6px 10px; gap: 6px; overflow-x: auto; flex-wrap: nowrap; }
  .ob-seats { flex-wrap: nowrap; }
  .ob-seat { font-size: 11px; padding: 2px 8px 2px 3px; }
  .ob-tip { display: none; }
}

/* ---------------- Live：对手打出的卡 ---------------- */
.opp-stage { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.opp-stage.hidden { display: none; }
.opp-lane {
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 5px 8px;
  background: rgba(255,255,255,.025);
}
.opp-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.opp-head b { color: var(--ink); font-size: 12px; }
.opp-head .meta { margin-left: auto; font-size: 11px; }
.opp-tag { font-size: 11px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); }
.opp-tag.on { background: var(--gold); color: #2a1f08; border: 0; font-weight: 800; }
.opp-cards { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.opp-cards .card { width: 74px; }
.opp-cards .card .card-art { height: 74px; }
.opp-empty { font-size: 11px; color: #6f6479; }

/* 锁定的卡：金框 + 发光 + 角标 */
.card.is-locked { border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(232,196,122,.55), 0 0 22px rgba(232,196,122,.35) !important; }
.card.is-locked::after {
  content: "🔒"; position: absolute; right: 3px; top: 3px; font-size: 11px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.9));
}

/* ================================================================
   2026-11-09 · Live 版面重排（P0）
   1) 收起左栏（任务板块/赞助商/牌堆在 Live 用不上），舞台吃满左+中；
   2) 日志固定右栏 300px；
   3) 舞台按人分横带：对手 → 我，底部「我的队伍」+ 技能坞。
   只影响 [data-phase="live"] 的桌面布局，其它阶段与手机端不动。
   ================================================================ */
@media (min-width: 901px) {
  .wrap[data-phase="live"] .table {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: minmax(0, 1fr) auto auto auto auto;
    grid-template-areas:
      "stage right"
      "dock  right"
      "th    right"
      "tm    right"
      "hand  hand";
    gap: 8px 10px;
  }
  .wrap[data-phase="live"] .col-left { display: none; }
  .wrap[data-phase="live"] #oppPanel { display: none; }
  .wrap[data-phase="live"] #myStats,
  .wrap[data-phase="live"] #myEncounters,
  .wrap[data-phase="live"] #stressCardsRow,
  .wrap[data-phase="live"] #locked { display: none; }
  .wrap[data-phase="live"] .col-right { grid-area: right; min-height: 0; }
  .wrap[data-phase="live"] .col-right .log-panel { flex: 1; min-height: 0; }

  /* ---- 舞台：占满左侧，按人分横带 ---- */
  .wrap[data-phase="live"] #liveStage:not([hidden]) {
    min-height: 0;
    height: 100%;
    padding: 10px 12px 8px;
    gap: 0;
  }
  .wrap[data-phase="live"] .stage-top { flex: 0 0 auto; margin-bottom: 4px; }
  .wrap[data-phase="live"] .locked-zone:not([hidden]) { order: 1; }
  .wrap[data-phase="live"] #oppStage { order: 2; }
  .wrap[data-phase="live"] #myLaneHead { order: 3; }
  .wrap[data-phase="live"] #stagePlayed { order: 4; }
  /* 锁定提示：从舞台左下角挪到顶部一条，避免盖住「我的横带」 */
  .wrap[data-phase="live"] .locked-zone:not([hidden]) {
    position: static;
    inset: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: none;
    margin: 2px 0 4px;
    padding: 4px 8px;
    border-radius: 9px;
    border: 1px solid rgba(232, 196, 122, .45);
    background: linear-gradient(90deg, rgba(232, 196, 122, .16), rgba(232, 196, 122, .04));
  }
  .wrap[data-phase="live"] .locked-zone .locked-head { white-space: nowrap; color: #ffe9b8; }
  .wrap[data-phase="live"] .locked-zone .locked-row { flex-direction: row; }
  .wrap[data-phase="live"] .locked-zone .locked-chip { width: 30px; height: 36px; }
  .wrap[data-phase="live"] .locked-zone .locked-note { font-size: 11px; }
  .wrap[data-phase="live"] #oppStage {
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 0;
    padding-right: 2px;
    overflow: visible;
  }
  /* 可以同时展开多条 → 舞台整体上下滚，不再只让对手区滚 */
  .wrap[data-phase="live"] #liveStage:not([hidden]) { overflow-y: auto; }
  .wrap[data-phase="live"] .opp-lane.turn {
    border-color: rgba(232, 196, 122, .85);
    box-shadow: 0 0 0 1px rgba(232, 196, 122, .2), 0 8px 26px rgba(232, 196, 122, .12);
  }
  .wrap[data-phase="live"] #oppStage .card { width: 54px; flex: 0 0 54px; }
  .wrap[data-phase="live"] #oppStage .card .card-art { height: 54px; }
  .wrap[data-phase="live"] #oppStage .card .card-band { display: none; }
  .wrap[data-phase="live"] #oppStage .card .card-cap { padding-top: 2px; }
  .wrap[data-phase="live"] #oppStage .card .card-name { font-size: 11px; }
  .wrap[data-phase="live"] #oppStage .card .card-diff { font-size: 11px; }
  .wrap[data-phase="live"] #oppStage .opp-lane { padding: 3px 7px; }
  .wrap[data-phase="live"] #oppStage .opp-head { font-size: 11px; }
  .wrap[data-phase="live"] #oppStage .opp-head b { font-size: 11px; }
  .wrap[data-phase="live"] #oppStage .opp-cards { gap: 4px; margin-top: 2px; }
  .wrap[data-phase="live"] #oppStage .opp-empty { font-size: 11px; color: #6f6479; }

  /* 我的横带：和对手完全一样的卡片尺寸，不再占满整块舞台 */
  .wrap[data-phase="live"] .my-lane-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 4px;
    padding: 0 2px;
    font-size: 11.5px;
    color: var(--muted);
  }
  .wrap[data-phase="live"] .my-lane-head b { color: var(--ink); font-size: 12.5px; }
  .wrap[data-phase="live"] .my-lane-head .lane-count { margin-left: auto; font-size: 11px; }
  .wrap[data-phase="live"] .my-lane-head.turn b { color: #ffe9b8; }
  .wrap[data-phase="live"] .lane-tag {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid var(--line);
  }
  .wrap[data-phase="live"] .lane-tag.on {
    color: #2a1f08;
    background: var(--gold);
    border: 0;
    font-weight: 800;
  }
  .wrap[data-phase="live"] #stagePlayed {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px 8px;
    overflow: visible;
    border-radius: 11px;
    border: 1px solid rgba(232, 196, 122, .3);
    background: rgba(232, 196, 122, .07);
  }
  .wrap[data-phase="live"] #myLaneHead.turn + #stagePlayed {
    border-color: rgba(232, 196, 122, .8);
    box-shadow: 0 0 0 1px rgba(232, 196, 122, .18);
  }
  /* 我自己的出牌比对手大一号：一眼能分出手牌 / 我的出牌 / 对手出牌 */
  .wrap[data-phase="live"] #stagePlayed .card {
    width: 84px;
    min-width: 0;
    max-width: 84px;
    flex: 0 0 84px;
  }
  .wrap[data-phase="live"] #stagePlayed .card .card-art { height: 94px; }
  .wrap[data-phase="live"] #stagePlayed .card .card-name { font-size: 11px; }
  .wrap[data-phase="live"] #stagePlayed .card .card-diff { font-size: 11px; }
  .wrap[data-phase="live"] #stagePlayed .stage-slot-empty { display: none; }
  .wrap[data-phase="live"] #stagePlayed > .meta { align-self: center; }

  /* 手牌：回到底部整行，恢复 120px 大卡的扇形（原来观感）
     2026-11-24：桌面宽屏这里是最后一条覆盖规则，原来是 center + overflow:visible，
     一行 8 张比手牌栏宽时两侧的牌跑出栏外、滑不动（录屏那个 bug）。
     改成「safe center + 横向滚动」：放得下居中、放不下靠左且能滑回第一张。 */
  .wrap[data-phase="live"] #hand {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: safe center;
    gap: 0;
    padding: 16px 6px 22px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .wrap[data-phase="live"] #hand .card {
    width: 120px;
    flex: 0 0 120px;
  }
  .wrap[data-phase="live"] #hand .card .card-art { height: 156px; }
  .wrap[data-phase="live"] .hand-pager:not([hidden]) { display: flex !important; }

  /* ---- 底部：我的队伍（横向可滚） ---- */
  .wrap[data-phase="live"] .h-team {
    grid-area: th;
    margin: 0;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .wrap[data-phase="live"] .team-row {
    flex-direction: row;
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 4px 6px;
    scrollbar-width: thin;
  }
  .wrap[data-phase="live"] .team-row .char-card {
    flex: 0 0 160px;
    padding: 4px 6px;
  }

  /* ---- 技能坞：不再浮在底部盖住手牌，改成队伍条上方的一行 ---- */
  .wrap[data-phase="live"] .skill-dock:not([hidden]) {
    position: static;
    inset: auto;
    grid-area: dock;
    min-height: 0;
    padding: 8px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  }
  .wrap[data-phase="live"] .dock-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: stretch;
  }
  .wrap[data-phase="live"] .dock-skill {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--ink);
    text-align: left;
    cursor: default;
  }
  .wrap[data-phase="live"] .dock-skill.off { opacity: .55; }
  .wrap[data-phase="live"] .dock-skill .ds-top {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .wrap[data-phase="live"] .dock-skill .ds-name { font-size: 12.5px; font-weight: 700; }
  .wrap[data-phase="live"] .dock-skill .ds-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--warn);
    border: 1px solid rgba(255, 207, 106, .4);
    border-radius: 6px;
    padding: 0 5px;
  }
  .wrap[data-phase="live"] .dock-skill .ds-desc {
    font-size: 11px;
    line-height: 1.5;
    color: #c9bfd8;
  }
  .wrap[data-phase="live"] .dock-skill .ds-reason {
    font-size: 11px;
    color: #ff9db8;
  }
  .wrap[data-phase="live"] .dock-skill .ds-actions { display: flex; gap: 6px; margin-top: auto; }
  .wrap[data-phase="live"] .dock-skill .ds-use,
  .wrap[data-phase="live"] .dock-skill .ds-more {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: var(--ink);
  }
  .wrap[data-phase="live"] .dock-skill .ds-use:not(:disabled) {
    background: linear-gradient(135deg, #ffe6a8, #e8b96a);
    color: #2a1f08;
    border: 0;
    font-weight: 800;
  }
  .wrap[data-phase="live"] .dock-skill .ds-use:disabled { opacity: .5; }
}

/* 出牌卡：名字下面补一行难度，和示意一致（只在舞台/对手卡上出现） */
.card-cap .card-diff {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* 技能坞的技能卡：桌面和手机共用的卡片布局（2026-11-09 起技能带说明/发动/详情） */
.skill-dock .dock-skill {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  text-align: left;
  cursor: default;
  box-shadow: none;
}
.skill-dock .dock-skill.off { opacity: .55; cursor: not-allowed; }
.skill-dock .dock-skill .ds-top { display: flex; align-items: center; gap: 6px; }
.skill-dock .dock-skill .ds-name { font-size: 12.5px; font-weight: 700; }
.skill-dock .dock-skill .ds-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--warn);
  border: 1px solid rgba(255, 207, 106, .4);
  border-radius: 6px;
  padding: 0 5px;
}
.skill-dock .dock-skill .ds-desc { font-size: 11px; line-height: 1.5; color: #c9bfd8; }
.skill-dock .dock-skill .ds-reason { font-size: 11px; color: #ff9db8; }
.skill-dock .dock-skill .ds-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 3px; }
.skill-dock .dock-skill .ds-use,
.skill-dock .dock-skill .ds-more {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  box-shadow: none;
}
.skill-dock .dock-skill .ds-use:not(:disabled) {
  background: linear-gradient(135deg, #ffe6a8, #e8b96a);
  color: #2a1f08;
  border: 0;
  font-weight: 800;
}
.skill-dock .dock-skill .ds-use:disabled { opacity: .5; }
.skill-dock .dock-skills { align-items: stretch; }
.skill-dock .dock-skills .dock-skill { flex: 1 1 210px; }

/* 舞台横带：难度统一写在卡名下面，卡图上的数字角标隐藏（避免同一张卡两个难度） */
.wrap[data-phase="live"] #stagePlayed .card .diff,
.wrap[data-phase="live"] #oppStage .card .diff { display: none; }

/* 横带顺序在手机/桌面一致：锁定条 → 对手 → 我 */
.wrap[data-phase="live"] .locked-zone:not([hidden]) { order: 1; }
.wrap[data-phase="live"] #oppStage { order: 2; }
.wrap[data-phase="live"] #myLaneHead { order: 3; }
.wrap[data-phase="live"] #stagePlayed { order: 4; }

/* 我的横带标题：手机也要有 */
.my-lane-head { display: flex; align-items: center; gap: 8px; }
.my-lane-head[hidden] { display: none; }

/* ================================================================
   2026-11-09 · 方案 C：对手横带可收起 + 锁定预告 + 大号手牌
   ================================================================ */
.opp-head { cursor: pointer; user-select: none; }
.opp-head:hover .opp-toggle { color: var(--gold); }
.opp-chev { width: 12px; color: var(--gold); font-size: 11px; flex: 0 0 auto; }
.opp-toggle { font-size: 11px; color: #8e84a6; white-space: nowrap; }
.opp-lane.collapsed .opp-cards { display: none; }
.opp-lane.collapsed .opp-head { padding-top: 6px; padding-bottom: 6px; }
.opp-mini { display: flex; gap: 3px; margin-left: 2px; }
.opp-mini img {
  width: 18px; height: 22px; object-fit: cover; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .16); opacity: .85;
}
.opp-lock,
.lane-lock {
  font-size: 11px; color: #ffe9b8; border: 1px solid rgba(232, 196, 122, .55);
  background: rgba(232, 196, 122, .12); border-radius: 999px; padding: 0 7px;
  white-space: nowrap;
}
.lane-lock:empty { display: none; }

/* 顺位锁定的卡：金框 + 底部条，提前告诉玩家这张会被锁 */
.card.will-lock {
  border-color: rgba(232, 196, 122, .85) !important;
  box-shadow: 0 0 0 2px rgba(232, 196, 122, .45) !important;
}
.card.will-lock::after {
  content: attr(data-lock-label);
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 11px; line-height: 1.4; text-align: center; padding: 2px 0;
  background: rgba(232, 196, 122, .95); color: #2a1f08; font-weight: 800;
}
.card.will-lock.is-locked::after { content: "🔒 已锁定"; }

/* 矮窗口：手牌略收（110px），仍然是大卡扇形 */
@media (min-width: 901px) and (max-height: 760px) {
  .wrap[data-phase="live"] #hand { padding: 4px 6px 10px; }
  .wrap[data-phase="live"] #hand .card { width: 110px; flex: 0 0 110px; }
  .wrap[data-phase="live"] #hand .card .card-art { height: 120px; }
}

/* CHU² 面板：长按拖动提示与拖动状态 */
.chu2-drag-hint {
  font-style: normal; font-size: 11px; font-weight: 400; color: #8e84a6;
  border: 1px dashed rgba(255,255,255,.18); border-radius: 999px; padding: 0 6px;
  margin-left: 4px;
}
.chu2-float { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.chu2-float.dragging {
  transition: none !important;
  cursor: grabbing;
  user-select: none;
  touch-action: none;
  z-index: 210;
  opacity: .96;
}
.chu2-float.dragging .chu2-btn { cursor: grabbing; }

/* 手机端：横带可收起同样生效；舞台整体滚动，别只让对手区挤成一条 */
@media (max-width: 900px) {
  .wrap[data-phase="live"] #liveStage:not([hidden]) { overflow-y: auto; }
  .wrap[data-phase="live"] #oppStage { flex: 0 0 auto; overflow: visible; }
  .opp-head { font-size: 11px; }
  .opp-mini img { width: 20px; height: 24px; }
  .opp-lock, .lane-lock { font-size: 11px; padding: 0 6px; }
}

/* 横带布局里不再显示「第 N 张空位」（手机上尤其占地方） */
.wrap[data-phase="live"] .stage-slot-empty { display: none; }
/* 只有按钮/标题栏当拖动把手，面板内容仍可上下滚 */
.chu2-btn, .chu2-head { touch-action: none; }

/* 2026-11-09 · 手牌「现在打出预计 +N 粉丝」 */
.card .card-art .fan-preview {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 4;
  padding: 1px 5px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7d98e, #e8bd63);
  color: #1a1220;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  pointer-events: none;
  white-space: nowrap;
}
.kind-hand .card-art .fan-preview { font-size: 11px; }
.tip-fans {
  margin-top: 6px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(243, 207, 122, .12);
  color: #f3cf7a;
  font-size: 12px;
  line-height: 1.5;
}

/* ============================================================
   效果来源卡：触发 / 选择弹窗顶部「谁 / 哪张卡在结算」
   ============================================================ */
.effect-source {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 9px 10px 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(120, 104, 150, .55);
  background: linear-gradient(100deg, rgba(58, 44, 76, .55), rgba(30, 24, 40, .4));
  overflow: hidden;
}
.effect-source::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--es-accent, #b89cff);
}
.effect-source.song {
  border-color: color-mix(in srgb, var(--es-accent, #b89cff) 42%, transparent);
  background: linear-gradient(100deg, rgba(42, 34, 58, .7), rgba(27, 22, 37, .5));
}
.es-cover,
.es-portrait {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  background: #0e0c14;
  border: 1px solid rgba(255, 255, 255, .14);
}
/* 标准角色卡图是整张卡面：用 background 裁成半身，不显示卡框和技能文字 */
.es-portrait {
  background-size: 260% auto;
  background-position: 50% 16%;
  background-repeat: no-repeat;
  background-color: #0e0c14;
}
.es-text { min-width: 0; flex: 1; }
.es-kicker {
  font-size: 11px;
  letter-spacing: .4px;
  color: color-mix(in srgb, var(--es-accent, #b89cff) 72%, #fff 28%);
}
.es-name {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  color: #f5efe5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.es-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: #b6a8c6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.es-badge {
  position: relative;
  z-index: 1;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--es-accent, #b89cff) 55%, transparent);
  background: color-mix(in srgb, var(--es-accent, #b89cff) 18%, transparent);
  color: #f2e9f8;
  font-size: 11px;
  line-height: 1.2;
}
/* 有异画的角色：整幅异画 + 金边（按收藏页那张设计稿做） */
.effect-source.char.alt {
  display: block;
  height: 258px;
  min-height: 258px;
  padding: 0;
  border-color: rgba(226, 188, 112, .7);
  border-radius: 14px;
  background: #1b1420;
}
.effect-source.char.alt::before {
  width: 4px;
  background: linear-gradient(180deg, #f0d08a, #b8884a);
  z-index: 4;
}
/* 模糊铺底：异画用 contain 完整展示人物，空白处用同一张图虚化补满 */
.effect-source.char.alt .es-alt-bg {
  position: absolute;
  inset: -18px;
  background-size: cover;
  background-position: var(--es-alt-x, 50%) var(--es-alt-y, 35%);
  filter: blur(14px) brightness(.58) saturate(.9);
  transform: scale(1.06);
}
.effect-source.char.alt .es-alt-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--es-alt-x, 50%) var(--es-alt-y, 35%);
  z-index: 1;
  /* 异画文件是整张卡面：铺满后靠父级 overflow 裁切；
     每张异画可用 --es-alt-y / --es-alt-zoom 单独适配面部位置。 */
  transform: scale(var(--es-alt-zoom, 1));
  transform-origin: center var(--es-alt-y, 35%);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45));
}
.effect-source.char.alt .es-alt-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(17, 12, 21, .05) 34%, rgba(17, 12, 21, .66) 68%, rgba(17, 12, 21, .97) 100%),
    linear-gradient(90deg, rgba(17, 12, 21, .55), transparent 48%);
}
.effect-source.char.alt .es-text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 3;
}
.effect-source.char.alt .es-name {
  margin-top: 3px;
  font-size: 30px;
  line-height: 1.1;
  color: #fff2d6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}
.effect-source.char.alt .es-meta {
  margin-top: 4px;
  font-size: 16px;
  color: #e6cfad;
}
.effect-source.char.alt .es-kicker {
  color: #f0d08a;
  font-size: 11.5px;
}
.effect-source.char.alt .es-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  z-index: 3;
  border-color: rgba(240, 208, 138, .7);
  background: rgba(240, 208, 138, .18);
  color: #ffe8b8;
}
@media (max-width: 640px) {
  .effect-source.char.alt { height: 210px; min-height: 210px; }
  .effect-source.char.alt .es-name { font-size: 23px; }
  .effect-source.char.alt .es-meta { font-size: 14px; }
  .es-cover, .es-portrait { width: 48px; height: 48px; }
  .es-name { font-size: 14px; }
  .es-meta { font-size: 11px; }
}


/* ---- 对手赞助商等级（联机公开信息） ---- */
.opp-sponsors {
  margin-top: 5px; padding: 6px;
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(232,196,122,.08), rgba(120,90,160,.10));
  border: 1px solid rgba(232,196,122,.22);
}
.opp-sponsors-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 5px; font-size: 11px; color: #cdbddc;
}
.opp-sponsors-head span { letter-spacing: .06em; color: #e8c47a; font-weight: 700; }
.opp-sp-view {
  margin-left: auto; padding: 0; border: 0; background: transparent;
  color: #e8c47a; font: inherit; font-size: 11px; cursor: pointer;
}
.opp-sponsors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.opp-sp-chip {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  padding: 3px 4px; border-radius: 7px; text-align: left;
  background: rgba(16,12,23,.62); border: 1px solid rgba(255,255,255,.09);
  color: #e8ddf2; cursor: pointer;
}
.opp-sp-chip:hover { border-color: rgba(232,196,122,.5); background: rgba(40,30,54,.8); }
.opp-sp-chip > img {
  width: 22px; height: 22px; border-radius: 5px; object-fit: cover;
  flex: 0 0 auto; border: 1px solid rgba(255,255,255,.14);
}
.opp-sp-txt { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.opp-sp-txt b { font-size: 11px; font-weight: 600; color: #d8cce5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opp-sp-txt em { margin-top: 1px; font-style: normal; font-size: 11px; font-weight: 800; color: #ffe0a0; }
.opp-sp-bar { display: block; height: 2px; border-radius: 2px; background: #392b48; margin-top: 2px; overflow: hidden; }
.opp-sp-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #e8c47a, #ffedc4); }

/* 对手赞助商详情 */
.opp-sp-public {
  padding: 7px 10px; margin-bottom: 8px; border-radius: 9px;
  font-size: 11px; color: #cbbce0;
  background: rgba(120,90,190,.12); border: 1px solid rgba(160,130,230,.28);
}
.opp-sp-who { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12px; color: #e8ddf2; }
.opp-sp-who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(232,196,122,.4); }
.opp-sp-row {
  display: flex; gap: 10px; padding: 9px;
  margin-bottom: 7px; border-radius: 11px;
  background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.08);
}
.opp-sp-row.focus { border-color: rgba(232,196,122,.5); box-shadow: 0 0 0 1px rgba(232,196,122,.18) inset; }
.opp-sp-art { width: 88px; height: 64px; border-radius: 7px; object-fit: cover; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.14); }
.opp-sp-main { min-width: 0; flex: 1 1 auto; }
.opp-sp-line { display: flex; align-items: baseline; gap: 8px; }
.opp-sp-line b { font-size: 14px; color: #fff1d9; }
.opp-sp-line span { font-size: 11px; color: #b9a9c9; }
.opp-sp-levelbar { position: relative; height: 6px; margin: 7px 0 3px; border-radius: 4px; background: #392b48; overflow: hidden; }
.opp-sp-levelbar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #b8874a, #ffe6ab); }
.opp-sp-mark { position: absolute; top: -2px; bottom: -2px; width: 1px; background: rgba(255,255,255,.5); }
.opp-sp-nums { display: flex; justify-content: space-between; font-size: 11px; color: #9d8eae; }
.opp-sp-effect { margin-top: 5px; font-size: 11px; line-height: 1.6; color: #d7cbe4; }
.opp-sp-effect b { color: #ffe0a0; }
.opp-sp-effect .muted { color: #9d8eae; }
.opp-sp-cost {
  display: inline-block; margin-top: 5px; padding: 2px 7px; border-radius: 6px;
  font-size: 11px; color: #ffcf9a;
  background: rgba(232,196,122,.10); border: 1px solid rgba(232,196,122,.25);
}
@media (max-width: 640px) {
  .opp-sp-art { width: 64px; height: 52px; }
  .opp-sp-row { gap: 7px; padding: 7px; }
  .opp-sp-line b { font-size: 13px; }
}

.opp-sp-live {
  max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 1px 7px; border-radius: 999px; font: inherit; font-size: 11px;
  color: #ffe0a0; background: rgba(232,196,122,.10);
  border: 1px solid rgba(232,196,122,.35); cursor: pointer;
}
.opp-sp-live:hover { background: rgba(232,196,122,.20); }

/* 4 人局：对手赞助商压成一行，给日志让高度 */
.opp-sp-inline {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  margin-top: 5px; padding: 4px 5px; border-radius: 8px;
  background: rgba(232,196,122,.055);
  border: 1px solid rgba(232,196,122,.20);
}
.opp-sp-inline .cap { flex: 0 0 auto; font-size: 11px; color: #b9a5c9; }
.opp-sp-pill {
  display: inline-flex; align-items: center; gap: 2px; min-width: 0;
  padding: 1px 4px; border-radius: 999px; border: 1px solid #4b395b;
  background: #1b1424; color: #d8cbe5; font: inherit; font-size: 11px;
  white-space: nowrap; cursor: pointer;
}
.opp-sp-pill img { width: 12px; height: 12px; border-radius: 3px; object-fit: cover; }
.opp-sp-pill b { font-size: 11px; color: #b9aac8; }
.opp-sp-pill.mid b { color: #d8b6ff; }
.opp-sp-pill.high b { color: #ffd27f; }
.opp-sp-pill:hover { border-color: rgba(232,196,122,.55); }
.opp-sp-inline .opp-sp-view {
  margin-left: auto; padding: 0; border: 0; background: transparent;
  color: #e8c47a; font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer;
}
@media (max-width: 640px) {
  .opp-sp-inline { gap: 3px; padding: 3px 4px; }
  .opp-sp-pill { font-size: 11px; padding: 1px 3px; }
  .opp-sp-pill b { font-size: 11px; }
}

/* 对手面板可收起：多对手时默认收起，日志拿回高度 */
#oppPanel h2 { display: flex; align-items: center; gap: 6px; }
#oppPanel h2 .meta { margin-left: 0; }
.panel-toggle {
  margin-left: auto; padding: 2px 9px; border-radius: 999px;
  border: 1px solid rgba(232,196,122,.35); background: rgba(232,196,122,.08);
  color: #ffe0a0; font: inherit; font-size: 11px; cursor: pointer;
}
.panel-toggle:hover { background: rgba(232,196,122,.16); }
#oppPanel.collapsed #oppTeam { display: none; }
.opp-summary {
  padding: 5px 7px 4px; font-size: 11px; line-height: 1.55;
  color: #d4c5e2; background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06); border-radius: 8px;
}
.opp-summary span { color: #e8ddf2; white-space: nowrap; }
.opp-summary em { color: #9e8fae; font-style: normal; white-space: nowrap; }
@media (max-width: 640px) {
  .panel-toggle { font-size: 11px; padding: 1px 7px; }
  .opp-summary { font-size: 11px; }
}

/* 遭遇卡弹窗：和角色 / 乐曲效果一样出卡图 */
.effect-source.encounter {
  display: block; height: 224px; min-height: 224px;
  padding: 0; overflow: hidden; border-radius: 14px;
  border-color: color-mix(in srgb, var(--es-accent, #9b8cf0) 70%, transparent);
  background: #15101e;
}
.effect-source.encounter .es-enc-bg {
  position: absolute; inset: -18px; background-size: cover;
  background-position: center 24%; filter: blur(15px) brightness(.55) saturate(.9);
  transform: scale(1.06);
}
.effect-source.encounter .es-enc-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
  z-index: 1;
}
.effect-source.encounter .es-enc-shade {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(14,10,19,.02) 32%, rgba(14,10,19,.82) 100%),
              linear-gradient(90deg, rgba(14,10,19,.45), transparent 55%);
}
.effect-source.encounter .es-text {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 3;
}
.effect-source.encounter .es-name {
  margin-top: 2px; font-size: 25px; line-height: 1.2; color: #fff2dc;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}
.effect-source.encounter .es-meta {
  margin-top: 3px; font-size: 12px; color: #d8c8e5;
}
.effect-source.encounter .es-kicker { font-size: 11px; color: var(--es-accent, #cbb8ff); }
.effect-source.encounter .es-badge {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  border-color: currentColor; color: var(--es-accent, #cbb8ff);
  background: rgba(17,12,24,.56);
}
.enc-modal-copy {
  margin-top: 12px; font-size: 13px; line-height: 1.7; color: #e7dced;
}
@media (max-width: 640px) {
  .effect-source.encounter { height: 190px; min-height: 190px; }
  .effect-source.encounter .es-name { font-size: 21px; }
}

/* 角色详情 · 右侧文字区 */
.ci-summary {
  padding: 15px 16px 14px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(57, 42, 72, .82), rgba(31, 23, 41, .9));
  border: 1px solid #51405f;
}
.ci-kicker { font-size: 11px; letter-spacing: .16em; color: #b9a7c9; }
.ci-title-row { display: flex; align-items: baseline; gap: 10px; margin-top: 3px; }
.ci-name { font-size: 29px; font-weight: 800; color: #fff2da; letter-spacing: .02em; }
.ci-band {
  padding: 2px 9px; border-radius: 999px; font-size: 11px;
  color: #ffe0a2; border: 1px solid rgba(232,196,122,.45);
  background: rgba(232,196,122,.10);
}
.ci-stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 7px; margin-top: 11px; }
.ci-stat {
  min-width: 0; padding: 7px 9px; border-radius: 9px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075);
}
.ci-stat.wide { grid-column: span 1; }
.ci-stat > span { display: block; font-size: 11px; color: #a99ab9; margin-bottom: 3px; }
.ci-stat > b { font-size: 14px; color: #f0e2f6; font-weight: 700; }
.ci-insts { display: flex; flex-wrap: wrap; gap: 4px; }
.ci-inst {
  display: inline-block; padding: 1px 6px; border-radius: 5px;
  font-size: 11px; color: #e3d7ec; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.ci-muted { font-size: 11px; color: #8d7e9c; }
.ci-note {
  padding: 9px 12px; border-radius: 10px; font-size: 11.5px; line-height: 1.65;
  color: #d9cbe6; background: rgba(120,90,190,.11); border: 1px solid rgba(160,130,230,.25);
}
.ci-note b { color: #ffe0a0; }
.ci-special {
  padding: 10px 12px; border-radius: 10px;
  background: rgba(232,196,122,.055); border: 1px solid rgba(232,196,122,.22);
}
.ci-special-head { font-size: 12px; font-weight: 700; color: #ffe0a0; margin-bottom: 5px; }
.ci-special-head span { margin-left: 5px; font-size: 11px; font-weight: 400; color: #ab9bbb; }
.ci-special-line { font-size: 11px; line-height: 1.7; color: #d6c8e3; }
.ci-special-line b { color: #f0e2f6; }
.ci-special-line em { color: #a99ab9; font-style: normal; }
.ci-section { margin-top: 1px; }
.ci-section-head { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 7px; }
.ci-section-head b { font-size: 15px; color: #f3e7f7; }
.ci-section-head span { font-size: 11px; color: #a99ab9; }
.ci-skill {
  padding: 12px 14px; margin-bottom: 8px; border-radius: 11px;
  background: linear-gradient(100deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  border-left: 2px solid rgba(232,196,122,.55);
}
.ci-skill-head { display: flex; align-items: baseline; gap: 8px; }
.ci-skill-no { font-size: 11px; color: #e8c47a; font-weight: 800; letter-spacing: .08em; }
.ci-skill-head b { font-size: 14px; color: #ffe7b0; }
.ci-skill p {
  margin: 6px 0 0; font-size: 13px; line-height: 1.8; color: #e3d7eb;
  max-width: 74ch;
}
.ci-empty { padding: 14px; font-size: 12px; color: #a99ab9; border: 1px dashed #4d3b5c; border-radius: 10px; }
.ci-action-card {
  padding: 10px 12px; border-radius: 10px; font-size: 11.5px; line-height: 1.6;
  color: #d9cbe6; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.ci-action-card button { margin-top: 6px; }
.ci-foot { margin-top: auto; padding-top: 8px; font-size: 11px; color: #8f819f; }
@media (max-width: 900px) {
  .ci-name { font-size: 24px; }
  .ci-stats { grid-template-columns: 1fr 1fr; }
  .ci-stat.wide { grid-column: span 2; }
  .ci-skill p { font-size: 12px; }
}

/* 房主强制开始：只在联机准备阶段、有人没准备好时出现 */
#btn-force-next {
  border-color: rgba(232,196,122,.5);
  color: #ffe0a0;
  background: rgba(232,196,122,.10);
  font-size: 11px;
}
#btn-force-next:hover { background: rgba(232,196,122,.18); }

.hand-tool.final-album {
  border-color: rgba(232,196,122,.65);
  color: #ffe2a6;
  background: rgba(232,196,122,.16);
  box-shadow: 0 0 0 1px rgba(232,196,122,.12) inset;
}
.hand-tool.final-album::before { content: "★ "; color: #ffd27f; }

/* ================================================================
   效果文本强调（方案 A，2026-11-19）
   规则在 src/ui/emphasis.js，卡表页共用同一份；这里只管颜色。
   数字 / 资源 / 卡名 / 时机 / 使用限制，共 5 类。
   ================================================================ */
.em-n { color: #f3d7a0; font-weight: 700; }
.em-r {
  color: #f7e0b0; font-weight: 700;
  background: rgba(232, 196, 122, .14);
  border-radius: 4px; padding: 0 3px;
}
.em-c { color: #fff; font-weight: 700; }
.em-k { color: #b89cff; font-weight: 700; }
.em-limit {
  color: #ff9db8; font-weight: 700;
  background: rgba(227, 93, 138, .15);
  border-radius: 4px; padding: 0 4px;
  white-space: nowrap;
}
/* 指代：乐队 = 实线下划线，角色 = 点状下划线（同色系，避免颜色太多） */
.em-band {
  color: #7ee2b8; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 2px; text-decoration-color: rgba(126, 226, 184, .55);
}
.em-char {
  color: #9cd8ff; font-weight: 700;
  text-decoration: underline dotted; text-decoration-thickness: 1px;
  text-underline-offset: 2px; text-decoration-color: rgba(156, 216, 255, .6);
}

/* 正在播放（右下角，BGM 曲目信息） */
#nowPlaying {
  position: fixed; right: 16px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); z-index: 110;
  display: flex; align-items: center; gap: 9px; padding: 8px 12px;
  max-width: 270px; border-radius: 12px;
  background: rgba(12, 10, 18, .74); border: 1px solid rgba(232, 196, 122, .22);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  color: #e9e2f3; pointer-events: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
#nowPlaying.on { opacity: 1; transform: none; }
#nowPlaying.off { opacity: 0; }
#nowPlaying .np-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
#nowPlaying .np-eq i {
  width: 3px; border-radius: 2px; background: var(--gold, #e8c47a);
  animation: npEq .9s ease-in-out infinite;
}
#nowPlaying .np-eq i:nth-child(1) { height: 6px; animation-delay: -.2s; }
#nowPlaying .np-eq i:nth-child(2) { height: 12px; animation-delay: -.5s; }
#nowPlaying .np-eq i:nth-child(3) { height: 8px; animation-delay: -.35s; }
@keyframes npEq {
  0%, 100% { transform: scaleY(.5); opacity: .65; }
  50% { transform: scaleY(1.25); opacity: 1; }
}
#nowPlaying .np-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#nowPlaying .np-t {
  font-size: 12px; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#nowPlaying .np-a {
  font-size: 10.5px; line-height: 1.3; color: #a99fc0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 640px) {
  #nowPlaying { right: 10px; bottom: calc(102px + env(safe-area-inset-bottom, 0px)); max-width: 58vw; padding: 7px 10px; }
  #nowPlaying .np-t { font-size: 11px; }
  #nowPlaying .np-a { font-size: 10px; }
}
/* 手机 / 平板上右下角有一排开关（音量 / 音效 / 音乐 / 特效），条子要让到它们上面，
   并且避开 iPhone 的底部安全区（2026-11-21：之前被那排按钮压住） */
@media (max-width: 900px) {
  #nowPlaying { bottom: calc(102px + env(safe-area-inset-bottom, 0px)); }
}
/* 开始页底部整排都是按钮（开始游戏 / 单人 / 联机 / 唱片收藏…），条子放哪儿都挡人；
   开始页干脆不显示，进对局后再出现 */
#startScreen:not(.hidden) ~ #nowPlaying { display: none; }

/* 单人模式改版期间：入口置灰（2026-11-21）。改好之后和 app.js 的 SOLO_MAINTENANCE 一起撤掉 */
#btn-single:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.6);
}

/* ================================================================
   单人爬塔 · 学期页（2026-11-21）
   ----------------------------------------------------------------
   * 只在"本局 = 新爬塔"时由 solo.js 挂出来；
   * 3 选 1 的卡用 stPop 缓动弹出（stagger 110ms），主策划要求"缓动卡片弹出"。
   ================================================================ */
.st-wrap {
  position: fixed; inset: 0; z-index: 320; display: flex;
  align-items: stretch; justify-content: center;
  background: rgba(8, 6, 12, .97); backdrop-filter: blur(10px); overflow: auto;
}
.st-wrap.hidden { display: none; }
body.st-open { overflow: hidden; }
.st-panel {
  width: min(980px, 100%); background: #17131f; color: #e9e2f3;
  border: 1px solid rgba(232, 196, 122, .25); border-radius: 18px;
  padding: 16px 18px 18px; box-shadow: 0 26px 74px rgba(0, 0, 0, .62);
  animation: stPop .4s cubic-bezier(.16, 1, .3, 1) both;
}
.st-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.st-head b { font-size: 15px; letter-spacing: .04em; }
.st-res { font-size: 12px; color: #ffe6b8; }
.st-res:nth-of-type(2) { margin-left: auto; }
.st-x {
  margin-left: 6px; font: inherit; font-size: 11.5px; cursor: pointer;
  padding: 4px 10px; border-radius: 999px; color: #cbbde0;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
}
.st-note { font-size: 12px; color: #a99fc0; line-height: 1.7; margin: 6px 0 12px; }
.st-field { display: block; font-size: 12px; color: #b9afc9; margin-bottom: 12px; }
.st-field select {
  display: block; width: 100%; margin-top: 6px; padding: 8px 10px; font: inherit;
  border-radius: 10px; color: #efe8fa; background: #221c2e;
  border: 1px solid rgba(255, 255, 255, .16);
}

/* 12 格进度 */
.st-progress { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.st-term { display: flex; align-items: center; gap: 5px; }
.st-cell {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; color: #9d92b0; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.st-cell.done { background: rgba(232, 196, 122, .16); color: #e8c47a; }
.st-cell.now {
  background: linear-gradient(180deg, #f3d7a0, #e8c47a); color: #241a08; font-weight: 800;
  animation: stPulse 1.8s ease-in-out infinite;
}
.st-cell.boss { border-color: rgba(232, 196, 122, .5); }
.st-term i { font-style: normal; font-size: 10.5px; color: #8e84a6; margin-left: 3px; }
@keyframes stPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 196, 122, .5); }
  50% { box-shadow: 0 0 0 6px rgba(232, 196, 122, 0); }
}

/* 遭遇卡 */
.st-enc { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.st-enc-art {
  width: 210px; height: 130px; flex: 0 0 auto; border-radius: 12px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, .14);
  animation: stFade .5s ease both;
}
.st-enc-art.no-art { background: linear-gradient(150deg, #2a2237, #1b1626); }
.st-enc-txt { font-size: 12px; color: #b9afc9; line-height: 1.65; }
.st-enc-txt b { display: block; color: #fff; font-size: 13px; margin-bottom: 4px; }
@keyframes stFade { from { opacity: 0 } to { opacity: 1 } }

/* 3 选 1：缓动弹出 */
.st-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-card {
  padding: 16px 14px; border-radius: 14px; text-align: left; cursor: pointer;
  color: #efe8fa; background: linear-gradient(170deg, #241d31, #17131f);
  border: 1px solid rgba(232, 196, 122, .28);
  animation: stPop .46s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms);
  transition: transform .18s ease, border-color .18s ease;
}
.st-card:hover { transform: translateY(-3px); border-color: rgba(232, 196, 122, .85); }
.st-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.st-card small { color: #a99fc0; font-size: 11.5px; line-height: 1.5; }
@keyframes stPop {
  from { opacity: 0; transform: translateY(26px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 二级面板（休息三档 / 赞助商） */
.st-sub { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .14); }
.st-sub.hidden, .st-shop.hidden { display: none; }
.st-sub b { font-size: 13px; }
.st-rows { display: grid; gap: 8px; margin-top: 8px; }
.st-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit;
  color: #e9e2f3; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); text-align: left;
}
.st-row:hover { border-color: rgba(232, 196, 122, .7); }
.st-row i { font-style: normal; font-size: 11.5px; color: #ffe6b8; flex: none; }
.st-row.off { opacity: .4; cursor: not-allowed; }

/* 选购 */
.st-shop { margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .14); }
.st-shophead { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.st-buys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.st-buy {
  padding: 10px 9px; border-radius: 10px; cursor: pointer; font: inherit; text-align: left;
  color: #e9e2f3; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  animation: stPop .4s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.st-buy b { display: block; font-size: 12px; margin-bottom: 3px; }
.st-buy small { display: block; font-size: 10.5px; color: #a99fc0; }
.st-buy i { font-style: normal; font-size: 11.5px; color: #ffe6b8; }
.st-buy.off { opacity: .38; cursor: not-allowed; }
.st-buy:not(.off):hover { border-color: rgba(232, 196, 122, .8); }
.st-shopfoot { display: flex; gap: 10px; margin-top: 12px; justify-content: flex-end; }
.st-btn {
  font: inherit; font-size: 12.5px; padding: 8px 16px; border-radius: 10px; cursor: pointer;
  color: #e9e2f3; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
}
.st-btn.primary {
  color: #241a08; border-color: #f0d7a4;
  background: linear-gradient(180deg, #f2d79c, #e0b463);
}
.st-btn:hover { filter: brightness(1.07); }

/* 右下角入口 + 轻提示 */
.st-entry {
  position: fixed; right: 16px; bottom: 140px; z-index: 130;
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; color: #241a08;
  background: linear-gradient(180deg, #f2d79c, #e0b463);
  border: 1px solid #f0d7a4; box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.st-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 400; padding: 9px 16px; border-radius: 999px; font-size: 12.5px;
  color: #ffe6b8; background: rgba(25, 21, 36, .96);
  border: 1px solid rgba(232, 196, 122, .45);
  animation: stFade .25s ease both;
}
@media (max-width: 720px) {
  /* 单人浮标：手机上压住队伍卡 / 音乐条，缩小并上移一点 */
  .st-entry {
    right: 10px; bottom: 176px; font-size: 11.5px; padding: 7px 13px; opacity: .94;
  }

  .st-actions { grid-template-columns: 1fr; }
  .st-buys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-enc { flex-direction: column; align-items: stretch; }
  .st-enc-art { width: 100%; height: 150px; }
}

/* 单人爬塔：回忆之物图标 + 随机事件面板（2026-11-21） */
.st-relics { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 12px; }
.st-relic {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 5px; border-radius: 999px; font-size: 11px; color: #ffe6b8;
  background: rgba(232, 196, 122, .12); border: 1px solid rgba(232, 196, 122, .35);
}
.st-relic img {
  width: 16px; height: 16px; object-fit: contain;
  filter: invert(80%) sepia(28%) saturate(600%) hue-rotate(350deg);
}
.st-relic.none { color: #8e84a6; border-color: rgba(255, 255, 255, .12); background: none; }
.st-event { display: flex; gap: 12px; align-items: center; margin: 10px 0 4px; }
.st-event-art {
  width: 150px; height: 94px; flex: 0 0 auto; border-radius: 10px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, .14);
}
.st-event-txt b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.st-event-txt small { color: #b9afc9; font-size: 12px; line-height: 1.6; }
.st-row small { display: block; color: #a99fc0; font-size: 11px; margin-top: 2px; }

/* 单人爬塔：全屏适配 + 领队卡片（2026-11-21 反馈） */
.st-wrap { padding: 0; }
.st-panel {
  width: min(1180px, 96vw);
  max-height: 96dvh; overflow: auto;
  border-radius: 0; margin: auto;
}
@media (min-height: 700px) and (min-width: 1000px) {
  .st-panel { border-radius: 18px; }
}
.st-leaders {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; max-height: 58dvh; overflow: auto; padding: 4px 2px 8px;
}
.st-leader {
  padding: 8px 8px 10px; border-radius: 12px; cursor: pointer; font: inherit;
  color: #e9e2f3; background: linear-gradient(170deg, #221c2e, #17131f);
  border: 1px solid rgba(255, 255, 255, .12); text-align: center;
  transition: transform .16s ease, border-color .16s ease;
}
.st-leader:hover { transform: translateY(-2px); border-color: rgba(232, 196, 122, .6); }
.st-leader.on { border-color: #e8c47a; box-shadow: 0 0 0 2px rgba(232, 196, 122, .35); }
.st-leader-art {
  display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 9px;
  overflow: hidden; background: #120f18; margin-bottom: 6px;
}
.st-leader-art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.st-leader b { display: block; font-size: 12.5px; }
.st-leader small { display: block; color: #a99fc0; font-size: 10.5px; margin-top: 2px; }
/* SP 角标（2026-11-23：SP 角色可当领队，卡片上标一下免得和本尊看混） */
.st-sp-tag {
  display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 5px;
  font-size: 9.5px; line-height: 14px; vertical-align: 1px; letter-spacing: .06em;
  color: #ffe0a8; background: rgba(232, 196, 122, .18); border: 1px solid rgba(232, 196, 122, .5);
}
.st-startbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .14);
}
.st-startbar .st-note { margin: 0; }

/* ================================================================
   单人爬塔 · P5 式学期日历（2026-11-21 主策划口径）
   一行一个学期，四格是春夏秋冬；学期末那格是"挑战 Live"期限。
   ================================================================ */
.st-cal { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.st-cal-row { display: grid; grid-template-columns: 64px repeat(4, minmax(0, 1fr)); gap: 8px; }
.st-cal-month {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; background: linear-gradient(160deg, #2a2237, #1b1626);
  border: 1px solid rgba(232, 196, 122, .28); padding: 4px 0;
}
.st-cal-month b { font-size: 20px; line-height: 1; color: #e8c47a; }
.st-cal-month small { font-size: 9.5px; color: #a99fc0; letter-spacing: .08em; }
.st-day {
  position: relative; min-height: 62px; padding: 6px 8px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  transition: border-color .2s ease, transform .2s ease;
}
.st-day.past { background: rgba(232, 196, 122, .08); border-color: rgba(232, 196, 122, .3); }
.st-day.today {
  border-color: #e8c47a; transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(232, 196, 122, .28), 0 8px 18px rgba(0, 0, 0, .35);
  background: linear-gradient(165deg, rgba(232, 196, 122, .18), rgba(232, 196, 122, .05));
}
.st-day.deadline { border-style: dashed; }
.st-day.deadline.today { border-style: solid; }
.st-day-no { position: absolute; right: 7px; top: 4px; font-size: 10px; color: #6f6479; }
.st-day-season { font-size: 11px; color: #a99fc0; letter-spacing: .1em; }
.st-day-icon { font-size: 15px; line-height: 1.2; }
.st-day-label { font-size: 11px; color: #e9e2f3; font-weight: 600; }
.st-day.deadline .st-day-label { color: #ff9fc0; }
.st-day.today .st-day-label { color: #ffe6b8; }
.st-today {
  font-size: 12.5px; color: #ffe6b8; font-weight: 700; letter-spacing: .06em;
  margin: 0 0 8px; padding-left: 2px;
}
.st-today::before { content: "▸ "; color: #e8c47a; }
@media (max-width: 720px) {
  .st-cal-row { grid-template-columns: 40px repeat(4, minmax(0, 1fr)); gap: 5px; }
  .st-day { min-height: 54px; padding: 5px 6px; }
  .st-cal-month b { font-size: 16px; }
  .st-day-season { font-size: 10px; }
  .st-day-label { font-size: 10px; }
}

/* ================================================================
   单人爬塔 · 手账装饰（2026-11-21）
   ----------------------------------------------------------------
   字体走**本机**手写体（华文行楷 / 楷体 / 方正舒体），不打包进发行包，
   避免把 Windows 商业字体塞进游戏；发行版请换霞鹜文楷（OFL 开源）。
   其余装饰（胶带、印章、纸纹、烫金边）全部用 CSS/SVG 画，无外部素材。
   ================================================================ */
.st-panel {
  /* 纸纹：极淡的颗粒，避免大面积纯色发闷 */
  background-image:
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #1b1626, #141020);
  background-blend-mode: overlay, normal;
  border: 1px solid rgba(232, 196, 122, .32);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  position: relative;
}
/* 四角烫金短边 */
.st-panel::before, .st-panel::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
  border: 2px solid rgba(232, 196, 122, .5);
}
.st-panel::before { left: 6px; top: 6px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.st-panel::after { right: 6px; bottom: 6px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

/* 字体：回调成游戏默认字体（2026-11-22 主策划：手写体先不用） */
.st-head b { font-size: 15px; letter-spacing: .04em; }
.st-today { font-size: 13.5px; }

/* 日历：更像贴在笔记本上的四个格子 */
.st-cal { position: relative; }
.st-day {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .25);
}
.st-day.past { transform: rotate(-.5deg); }
.st-day:nth-child(even).past { transform: rotate(.4deg); }
.st-day.today::before {
  content: ""; position: absolute; left: 50%; top: -7px; transform: translateX(-50%) rotate(-2deg);
  width: 54px; height: 13px;
  background: repeating-linear-gradient(135deg, rgba(232, 196, 122, .55) 0 5px, rgba(232, 196, 122, .3) 5px 10px);
  border-left: 1px dashed rgba(0, 0, 0, .25); border-right: 1px dashed rgba(0, 0, 0, .25);
  opacity: .85;
}
/* 期限那格：红色胶带 + 印章感 */
.st-day.deadline .st-day-icon { filter: drop-shadow(0 0 6px rgba(255, 120, 160, .65)); }

/* 三选一：月圆之夜式「挂在墙上的立卡」（2026-11-22） */
.st-actions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; align-items: start; padding: 10px 6px 4px;
}
.st-card {
  position: relative; padding: 0; cursor: pointer; font: inherit; color: #efe8fa;
  background: linear-gradient(180deg, #221b2e 0%, #1a1526 60%, #141020 100%);
  border: 2px solid rgba(232, 196, 122, .45); border-radius: 14px 14px 10px 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: stPop .5s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.st-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #e8c47a;
  box-shadow: 0 20px 42px rgba(0, 0, 0, .6), 0 0 0 2px rgba(232, 196, 122, .25);
}
/* 上下装饰角（拱形 + 金属感），对应参考图卡顶的尖角 */
.st-card-orn {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 54px; height: 12px; pointer-events: none;
}
.st-card-orn.top {
  top: -7px; border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #e8c47a, #8d6f36);
  clip-path: polygon(0 100%, 12% 25%, 50% 0, 88% 25%, 100% 100%);
}
.st-card-orn.bottom {
  bottom: -7px; border-radius: 0 0 12px 12px;
  background: linear-gradient(0deg, #e8c47a, #8d6f36);
  clip-path: polygon(0 0, 12% 75%, 50% 100%, 88% 75%, 100% 0);
}
.st-card-name {
  display: block; text-align: center; font-size: 15px; font-weight: 800;
  letter-spacing: .12em; padding: 12px 8px 8px; color: #ffe6b8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.st-card-frame {
  display: block; margin: 0 10px; padding: 4px;
  border-radius: 10px; border: 1px solid rgba(232, 196, 122, .35);
  background: rgba(0, 0, 0, .35);
}
.st-card-art {
  display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 7px;
  background-size: cover; background-position: center;
  filter: saturate(.95) brightness(.9);
}
.st-card-quote {
  display: block; margin: 10px 10px 14px; padding: 9px 10px; min-height: 46px;
  border-radius: 8px; font-size: 12px; line-height: 1.55; color: #cfc4e0;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
}
@media (max-width: 720px) {
  .st-actions { grid-template-columns: 1fr; gap: 14px; }
  .st-card-frame { margin: 0 8px; }
}

/* 右上角印章 */
.st-seal {
  position: relative; width: 46px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center; text-align: center;
  font-family: "STKaiti", "华文楷体", "KaiTi", serif; font-size: 10.5px; line-height: 1.1;
  color: #ff8fb0; border: 2px solid rgba(255, 143, 176, .75); border-radius: 6px;
  transform: rotate(-7deg); opacity: .85; pointer-events: none; margin-left: auto;
  box-shadow: inset 0 0 0 2px rgba(255, 143, 176, .18);
}


/* ================================================================
   单人爬塔 · 用事件卡图做的装饰（2026-11-22）
   素材从素材盘现成事件卡图裁出来（tools/make_solo_art.py 手工裁切），
   压暗处理后当胶带 / 拍立得 / 横幅用，不抢正文。
   ================================================================ */
.st-deco-banner {
  height: 62px; margin: -6px -18px 12px; border-radius: 18px 18px 0 0;
  background-image:
    linear-gradient(90deg, rgba(20,16,32,.94), rgba(20,16,32,.55) 45%, rgba(20,16,32,.94)),
    url("solo/art/deco/banner.webp");
  background-size: cover, cover; background-position: center, center 35%;
  border-bottom: 1px solid rgba(232, 196, 122, .28);
  position: relative;
}
.st-deco-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: linear-gradient(180deg, transparent, rgba(20,16,32,.95));
}
.st-day.today::before {
  background-image: url("solo/art/deco/tape1.webp");
  background-size: cover; background-position: center;
  width: 62px; height: 15px; opacity: .9;
  border: 0; transform: translateX(-50%) rotate(-2.5deg);
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.st-deco-photos {
  position: absolute; right: 34px; bottom: 132px; display: flex; gap: 10px;
  pointer-events: none; transform: rotate(1.6deg); opacity: .9;
}
.st-deco-photos img {
  width: 96px; height: 66px; object-fit: cover; border-radius: 3px;
  border: 4px solid rgba(255, 255, 255, .82);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .5);
}
.st-deco-photos img:nth-child(1) { rotate: -4deg; }
.st-deco-photos img:nth-child(2) { rotate: 2.5deg; margin-top: 6px; }
.st-deco-photos img:nth-child(3) { rotate: -1.5deg; }
@media (max-width: 900px) { .st-deco-photos { display: none; } }


/* 春夏秋冬：取自主策划给的四格长图（每季一条） */
.st-day.today { background-image: linear-gradient(180deg, rgba(20,16,32,.82), rgba(20,16,32,.94)), var(--season-art, none); background-size: cover; background-position: center; }
.st-day.past { background-image: linear-gradient(180deg, rgba(20,16,32,.88), rgba(20,16,32,.96)), var(--season-art, none); background-size: cover; background-position: center; }
.st-cal-row[data-t="1"] .st-day { --season-hint: 1; }

/* 遭遇卡弹窗 */
.st-enc-card { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 12px; }
.st-enc-card-art {
  width: 260px; height: 170px; flex: 0 0 auto; border-radius: 10px;
  background-size: cover; background-position: center;
  border: 2px solid rgba(232, 196, 122, .45); box-shadow: 0 8px 20px rgba(0,0,0,.45);
}
.st-enc-card-txt b { display: block; font-size: 15px; margin-bottom: 6px; color: #ffe6b8; }
.st-enc-card-txt small { color: #cfc4e0; font-size: 12.5px; line-height: 1.7; }
.st-row.primary { background: linear-gradient(180deg, rgba(232,196,122,.24), rgba(232,196,122,.1)); border-color: rgba(232,196,122,.6); }
@media (max-width: 720px) { .st-enc-card { flex-direction: column; } .st-enc-card-art { width: 100%; height: 150px; } }

/* 选购卡：带卡图与效果 */
.st-buy-art {
  display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; margin-bottom: 6px;
  background-size: cover; background-position: center; background-color: #1a1526;
  border: 1px solid rgba(232, 196, 122, .3);
}
.st-buy em { display: block; font-style: normal; font-size: 11px; color: #b9afc9; line-height: 1.5; margin-top: 3px; }

/* 草稿区选购：五张等高卡片，效果文字最多 3 行（以前会互相压住） */
.st-buys {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; align-items: stretch; margin: 10px 0 14px;
}
.st-buy {
  display: flex; flex-direction: column; gap: 4px;
  height: 100%; min-height: 0; padding: 10px; border-radius: 12px;
  text-align: left; cursor: pointer; font: inherit; color: #e9e2f3;
  background: linear-gradient(180deg, #221b2e, #17131f);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .16s ease, border-color .16s ease;
}
.st-buy:hover { transform: translateY(-3px); border-color: rgba(232, 196, 122, .6); }
.st-buy.off { opacity: .45; cursor: not-allowed; }
.st-buy-art { flex: 0 0 auto; }
.st-buy b { font-size: 13.5px; line-height: 1.35; }
.st-buy small { color: #a99fc0; font-size: 11px; }
.st-buy em {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; font-style: normal; font-size: 11px; line-height: 1.55;
  color: #b9afc9; margin-top: 2px; flex: 1 1 auto;
}
.st-buy i { font-style: normal; font-size: 12px; color: #ffe6b8; font-weight: 700; margin-top: auto; }
.st-shophead { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 4px; }
.st-shopfoot { display: flex; gap: 10px; justify-content: flex-end; }

/* 单人打工面板 */
.st-workteam { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.st-chip {
  padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 12px; cursor: pointer;
  color: #e9e2f3; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.st-chip.on { color: #9be6b0; border-color: rgba(155, 230, 176, .5); }
.st-chip.sel { border-color: #e8c47a; box-shadow: 0 0 0 2px rgba(232, 196, 122, .3); color: #ffe6b8; }
.st-workboards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-workboard {
  padding: 14px 10px; border-radius: 12px; cursor: pointer; font: inherit; text-align: center;
  color: #e9e2f3; background: linear-gradient(180deg, #221b2e, #17131f);
  border: 1px solid rgba(232, 196, 122, .35); transition: transform .16s ease, border-color .16s ease;
}
.st-workboard:hover { transform: translateY(-3px); border-color: #e8c47a; }
.st-workboard b { display: block; font-size: 14px; margin-bottom: 4px; color: #ffe6b8; }
.st-workboard small { color: #a99fc0; font-size: 11px; }

/* 弹窗（遭遇卡整图 / 通用确认） */
.st-mask {
  position: fixed; inset: 0; z-index: 340; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 4, 10, .82); backdrop-filter: blur(6px); padding: 20px;
}
.st-mask.hidden { display: none; }
.st-modal {
  width: min(720px, 94vw); max-height: 92dvh; overflow: auto; border-radius: 16px; padding: 16px 18px 18px;
  background: linear-gradient(180deg, #221b2e, #141020);
  border: 1px solid rgba(232, 196, 122, .42); box-shadow: 0 30px 80px rgba(0, 0, 0, .75);
}
.st-modal-head b { font-size: 15px; color: #ffe6b8; }
.st-modal-art { margin: 10px 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.st-modal-art img { display: block; width: 100%; height: auto; }
.st-modal-text { font-size: 13px; line-height: 1.8; color: #cfc4e0; margin: 6px 0 14px; }
.st-modal-foot { display: flex; justify-content: flex-end; }
.st-buy-art.relic { aspect-ratio: 1 / 1; background-color: rgba(255,255,255,.04); background-size: 62%; background-repeat: no-repeat; background-position: center; }
.st-buys.relics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* 爬塔季度页补丁（2026-11-22）：结果提示 / 挑战目标 / 选人 / 赞助商下一级 */
.st-result {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.7;
  color: #ffe9c2; background: rgba(232, 196, 122, .12);
  border: 1px solid rgba(232, 196, 122, .38);
}
.st-result div + div { margin-top: 2px; }
.st-goal { color: #ffd28a; }
.st-next { color: #9ad7c8 !important; }
.st-pick { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .12); }
.st-pick.hidden { display: none; }
.st-pick .st-note { margin: 0 0 6px; }
.st-pick .st-chip small { display: block; color: #a99fc0; font-size: 10.5px; margin-top: 1px; }
.st-shopfoot .st-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* 爬塔遮罩（z-index 320）打开时，主界面的弹窗要能压在上面：
   否则遭遇卡四选一 / 技能询问 / 锁卡弹窗会被爬塔页挡住，玩家点不到（2026-11-22 修） */
body.st-open #modal,
body.st-open .modal { z-index: 420; }

/* 爬塔季度页：队伍状态条 / 紧凑回忆之物 / 日志（2026-11-22 主策划反馈） */
.st-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.st-char {
  padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.5;
  color: #e9e2f3; background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
}
.st-char.is-flipped { border-color: rgba(255, 120, 120, .5); opacity: .85; }
.st-char b { display: block; font-size: 12.5px; color: #ffe6b8; margin-bottom: 2px; }
.st-char-line { display: block; color: #b9afc9; }
.st-char-line i { font-style: normal; color: #cfc4e0; }
.st-char-line i.hot { color: #ff9a9a; font-weight: 700; }
.st-char-inst { display: block; color: #9ad7c8; font-size: 11px; margin-top: 2px; }
.st-tag {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 6px;
  font-size: 10px; font-weight: 400; vertical-align: 1px;
}
.st-tag.gold { color: #ffe6b8; background: rgba(232, 196, 122, .22); }
.st-tag.mask { color: #d7b8ff; background: rgba(160, 110, 230, .25); }
.st-tag.shine { color: #ffe9a8; background: rgba(255, 210, 90, .22); }
.st-tag.bad { color: #ffb3b3; background: rgba(230, 90, 90, .22); }

/* 回忆之物：一行小条目，不再抢乐曲卡的位置 */
.st-shophead.sub { margin-top: 14px; }
.st-relic-list { display: flex; flex-direction: column; gap: 6px; }
.st-relic-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 10px; font: inherit; text-align: left; cursor: pointer;
  color: #e9e2f3; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(232, 196, 122, .22);
}
.st-relic-row:hover { border-color: rgba(232, 196, 122, .65); }
.st-relic-row.off { opacity: .45; cursor: not-allowed; }
.st-relic-row i { font-style: normal; font-size: 11.5px; color: #ffe6b8; flex: none; }
.st-relic-icon {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  background-repeat: no-repeat; background-position: center; background-size: 22px 22px;
  background-color: rgba(232, 196, 122, .10);
  filter: none;
}
.st-relic-txt { min-width: 0; }
.st-relic-txt b { display: block; font-size: 12.5px; color: #ffe6b8; }
.st-relic-txt small { display: block; font-size: 11px; color: #b9afc9; line-height: 1.4; }

/* 日志：默认收起 */
.st-log { margin-top: 12px; font-size: 11.5px; color: #b9afc9; }
.st-log summary { cursor: pointer; color: #e8c47a; outline: none; }
.st-log-body {
  margin-top: 6px; max-height: 200px; overflow: auto;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .1);
  line-height: 1.7; white-space: pre-wrap;
}
.st-log-body div { border-bottom: 1px dashed rgba(255, 255, 255, .06); padding: 1px 0; }

/* 2026-11-22 主策划反馈「布局不合理」：
   ① 装饰拍立得是绝对定位，内容一长就压到按钮上 → 直接不显示；
   ② 日历格子里的季节长图缩进小格会糊成一团黑 → 只看颜色 + 文字。 */
.st-deco-photos { display: none; }
.st-day.today {
  background: linear-gradient(165deg, rgba(232, 196, 122, .18), rgba(232, 196, 122, .05));
  background-image: linear-gradient(165deg, rgba(232, 196, 122, .18), rgba(232, 196, 122, .05));
}
.st-day.past {
  background: rgba(232, 196, 122, .08);
  background-image: none;
}

/* 日历「今天」那格上方的胶带：以前用的是一张照片（tape1.webp），
   缩到 62×15 就糊成一团黑影（2026-11-22 反馈）。改回 CSS 斜条纹，干净。 */
.st-day.today::before {
  background-image: repeating-linear-gradient(135deg,
    rgba(232, 196, 122, .55) 0 5px, rgba(232, 196, 122, .3) 5px 10px);
  background-size: auto; width: 54px; height: 13px; opacity: .8;
  border-left: 1px dashed rgba(0, 0, 0, .25); border-right: 1px dashed rgba(0, 0, 0, .25);
}

/* 单人模式收局 · 杀戮尖塔式分数结算表（2026-11-22） */
.solo-summary { gap: 8px; }
.solo-run-tag {
  display: flex; align-items: baseline; gap: 10px; margin: 2px 0 2px;
  padding: 8px 12px; border-radius: 10px;
  background: linear-gradient(150deg, rgba(232, 196, 122, .16), rgba(232, 196, 122, .04));
  border: 1px solid rgba(232, 196, 122, .42);
}
.solo-run-tag b { font-size: 17px; color: #ffe6b8; letter-spacing: .06em; }
.solo-run-tag em {
  font-style: normal; margin-left: auto; font-size: 11.5px;
  color: #a99fc0; letter-spacing: .12em;
}
.solo-run-stars { font-size: 13px; letter-spacing: 2px; color: #ffcf7a; }
.solo-run-tag.hidden {
  background: linear-gradient(150deg, rgba(160, 120, 255, .22), rgba(90, 60, 160, .08));
  border-color: rgba(180, 140, 255, .6);
  box-shadow: 0 0 18px rgba(150, 110, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.solo-run-tag.hidden b { color: #e8d6ff; text-shadow: 0 0 10px rgba(180, 140, 255, .55); }
.solo-run-tag.hidden em { color: #c9b6ee; }
.solo-score {
  margin: 10px 0 4px; padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(232, 196, 122, .3);
}
.solo-score-title { font-size: 12px; color: #e8c47a; letter-spacing: .08em; margin-bottom: 6px; }
.solo-score-row {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12.5px; color: #e9e2f3; padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
}
.solo-score-row span { flex: 1; }
.solo-score-row em { font-style: normal; color: #a99fc0; font-size: 11.5px; }
.solo-score-row b { min-width: 56px; text-align: right; color: #ffe9b8; }
.solo-score-total {
  display: flex; align-items: baseline; gap: 8px; margin-top: 6px;
  padding-top: 6px; border-top: 1px solid rgba(232, 196, 122, .45);
  font-size: 13px; color: #ffd28a;
}
.solo-score-total span { flex: 1; }
.solo-score-total b { font-size: 22px; color: #ffe6b8; }
.solo-score-extra { margin-top: 6px; font-size: 11px; color: #8f83a6; line-height: 1.6; }

/* 房主手动让电脑代打（2026-11-22） */
.room-wait { display: flex; align-items: center; gap: 10px; }
.room-takeover {
  flex: none; padding: 3px 10px; border-radius: 999px; font: inherit; font-size: 11.5px;
  color: #ffd9a0; background: rgba(232, 196, 122, .16);
  border: 1px solid rgba(232, 196, 122, .55); cursor: pointer;
}
.room-takeover:hover { background: rgba(232, 196, 122, .28); }
.room-takeover[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== 单人爬塔：铺满 + 两栏布局 + 查看面板（2026-11-22 第二轮反馈） ===== */
.st-panel { width: 100%; max-width: none; padding: 12px 18px 18px; border-radius: 0; }
.st-wrap { padding: 0; }
.st-body {
  display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px; align-items: start;
}
.st-body > .st-col { min-width: 0; }
@media (max-width: 980px) {
  .st-body { grid-template-columns: 1fr; }
}
.st-col.side .st-cal { margin-top: 2px; }

/* 标题栏里的「查看」按钮 */
.st-view { flex: none; padding: 4px 12px; border-radius: 999px; font-size: 12px; }

/* 遭遇卡弹窗：小一号（主策划：参考正式模式的小弹窗） */
.st-modal.small { width: min(430px, 92vw); padding: 12px 14px 14px; }
.st-modal.small .st-modal-head b { font-size: 14px; }
.st-enc-body { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 4px; }
.st-enc-thumb {
  width: 96px; height: 96px; flex: none; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(232, 196, 122, .35); background: #1a1526;
}
.st-enc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-modal.small .st-modal-text { margin: 0; font-size: 12.5px; line-height: 1.65; }

/* 查看面板（手牌 / 弃牌堆 / 队伍） */
.st-modal.wide { width: min(1080px, 96vw); max-height: 90dvh; }
.st-vtabs { display: inline-flex; gap: 6px; margin-left: 12px; flex-wrap: wrap; }
.st-vtab {
  padding: 3px 10px; border-radius: 999px; font: inherit; font-size: 12px; cursor: pointer;
  color: #cfc4e0; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.st-vtab.on { color: #ffe6b8; border-color: rgba(232, 196, 122, .7); background: rgba(232, 196, 122, .16); }
.st-vbody { margin-top: 10px; max-height: 70dvh; overflow: auto; }
.st-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.st-vcard, .st-vchar {
  padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: #e9e2f3;
}
.st-vcard-art {
  display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 8px;
  background-size: cover; background-position: center; background-color: #1a1526;
  border: 1px solid rgba(232, 196, 122, .28); margin-bottom: 6px;
}
.st-vchar-art {
  display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 8px;
  background-size: cover; background-position: center top; background-color: #1a1526;
  border: 1px solid rgba(232, 196, 122, .28); margin-bottom: 6px;
}
.st-vcard b, .st-vchar b { display: block; color: #ffe6b8; font-size: 12.5px; }
.st-vcard small, .st-vchar small { display: block; color: #a99fc0; font-size: 11px; margin-top: 2px; }
.st-vchar small.inst { color: #9ad7c8; }
.st-vcard em, .st-vchar em {
  display: block; font-style: normal; font-size: 11px; color: #b9afc9;
  line-height: 1.5; margin-top: 5px; max-height: 6.5em; overflow: auto;
}

/* 2026-11-22：铺满整屏（之前 .st-panel 有 max-height + 居中，看着像"浮在中间的卡片"） */
.st-wrap { align-items: stretch; justify-content: stretch; overflow: auto; }
.st-panel {
  min-height: 100dvh; max-height: none; height: auto; margin: 0;
  border-radius: 0; border-left: 0; border-right: 0;
  display: flex; flex-direction: column; gap: 0;
}
.st-panel > .st-deco-banner { flex: none; }
.st-panel > .st-head { flex: none; }
.st-panel > .st-body { flex: 1 1 auto; }
/* 三选一的立卡在整屏下不用那么高，一屏能看全 */
.st-card-frame { aspect-ratio: 4 / 3; }
.st-card-art { background-size: cover; background-position: center; }

/* 单人：草稿区/查看面板在整屏两栏下的尺寸微调 */
.st-shop .st-buys { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.st-modal.wide { width: min(920px, 96vw); }
.st-vgrid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.st-vchar em { max-height: 9em; }
.st-vbody { padding-right: 2px; }

/* 主界面正弹着选择时，爬塔页上的提示条（2026-11-22） */
.st-pending {
  padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.7;
  background: rgba(232, 196, 122, .10); border: 1px dashed rgba(232, 196, 122, .55);
  color: #ffe6b8;
}
.st-pending b { display: block; font-size: 14px; margin-bottom: 2px; }
.st-pending small { display: block; color: #c9bedb; font-size: 12px; }
.st-pending .st-btns { margin-top: 8px; }

/* 单人：队伍立绘 / 手牌铺在页面上；招募候选卡（2026-11-22 第三轮反馈） */
.st-team { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.st-char { display: flex; gap: 8px; align-items: flex-start; }
.st-char-art {
  width: 46px; height: 62px; flex: none; border-radius: 8px;
  background-size: cover; background-position: center top; background-color: #1a1526;
  border: 1px solid rgba(232, 196, 122, .32);
}
.st-char-info { min-width: 0; }
.st-char-info b { margin-bottom: 2px; }

/* 手牌：横向一排小卡 */
.st-hand { margin: 4px 0 12px; }
.st-hand-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin-bottom: 6px; }
.st-hand-head b { color: #ffe6b8; }
.st-hand-head span { color: #a99fc0; font-size: 11px; }
.st-hand-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.st-hcard {
  flex: none; width: 104px; padding: 6px; border-radius: 10px; cursor: pointer;
  font: inherit; text-align: left; color: #e9e2f3;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(232, 196, 122, .28);
}
.st-hcard:hover { border-color: rgba(232, 196, 122, .75); }
.st-hcard-art {
  display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 6px;
  background-size: cover; background-position: center; background-color: #1a1526;
  border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 4px;
}
.st-hcard b { display: block; font-size: 11.5px; color: #ffe6b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-hcard small { display: block; font-size: 10.5px; color: #a99fc0; }

/* ================================================================
   单人爬塔 · 第四轮（2026-11-22 晚）主策划反馈
   ----------------------------------------------------------------
   1. 决心 / 钱币 / 粉丝 太小、不直观 → 单独一行资源栏（图标 + 大字 + 说明）
   2. 单人页看不到异画 / 悬浮没效果 / 点不开角色详情 → 接回主界面的
      #tip 悬浮提示、角色详情弹窗、卡图大图
   3. 招募角色卡效果挤成一坨 → 立绘 + 名字 + 固定高度技能框 + 选她条
   4. 打工阶段只该看见咖啡厅 / 练习室 / 游乐园（赞助商 / 特殊板块点不了）
   ================================================================ */

/* ---------- 1. 顶部资源栏 ---------- */
.st-head .st-title { display: flex; align-items: baseline; gap: 8px; }
.st-title .st-title-small { font-size: 12.5px; color: #a99fc0; letter-spacing: .1em; }
.st-title .st-title-season { font-size: 19px; color: #ffe6b8; letter-spacing: .08em; }
.st-hud {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px; margin: 2px 0 14px; align-items: stretch;
}
.st-hud-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 9px 12px; border-radius: 12px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  border: 1px solid rgba(232, 196, 122, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.st-hud-ico {
  width: 34px; height: 34px; flex: none; object-fit: contain; padding: 5px;
  border-radius: 9px; opacity: .95;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .65));
}
.st-hud-item.hud-resolve .st-hud-ico {
  background: rgba(255, 120, 150, .16); border-color: rgba(255, 120, 150, .38);
  filter: drop-shadow(0 0 5px rgba(255, 120, 150, .45));
}
.st-hud-item.hud-coin .st-hud-ico {
  background: rgba(232, 196, 122, .14); border-color: rgba(232, 196, 122, .38);
}
.st-hud-item.hud-fans .st-hud-ico {
  background: rgba(200, 160, 255, .14); border-color: rgba(200, 160, 255, .34);
}
.st-hud-item.hud-team .st-hud-ico {
  background: rgba(154, 215, 200, .14); border-color: rgba(154, 215, 200, .34);
}
.st-hud-txt { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.st-hud-txt span { font-size: 11px; letter-spacing: .16em; color: #a99fc0; }
.st-hud-txt b { font-size: 24px; font-weight: 800; color: #fff3dc; line-height: 1.15; }
.st-hud-txt b i { font-style: normal; font-size: 13px; font-weight: 600; color: #a99fc0; }
.st-hud-txt small { font-size: 11px; color: #9ad7c8; }
.st-hud-txt .st-hud-pips { font-size: 11px; letter-spacing: 1.5px; color: #ffcf7a; margin-top: 3px; }
.st-hud-item.hud-fans .st-hud-ico { filter: drop-shadow(0 0 6px rgba(255, 197, 120, .45)); }
.st-hud-item.hud-resolve .st-hud-ico { filter: drop-shadow(0 0 6px rgba(255, 120, 150, .5)); }
.st-hud-goal {
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  min-width: 152px; padding: 9px 14px; border-radius: 12px;
  background: rgba(255, 143, 176, .10); border: 1px dashed rgba(255, 143, 176, .6);
}
.st-hud-goal span { font-size: 11px; color: #ffb3c9; letter-spacing: .1em; }
.st-hud-goal b { font-size: 22px; color: #ffd7e2; line-height: 1.2; }
.st-hud-goal b i { font-style: normal; font-size: 12.5px; color: #c9a6b4; }
.st-hud-goal em { font-style: normal; font-size: 11px; color: #e9c7d3; }
.st-hud-goal.done { background: rgba(155, 230, 176, .10); border-color: rgba(155, 230, 176, .6); }

/* 挑战目标血条（2026-11-23：单人 fan 目标做成"打怪血条"） */
.st-goal-track {
  display: block; width: 100%; height: 6px; margin-top: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .10); overflow: hidden;
}
.st-goal-track i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #ff8fb8, #ffd37a);
  box-shadow: 0 0 8px rgba(255, 143, 184, .45);
  transition: width .35s ease;
}

/* ---------- 随机 Live：舞台血条（"打怪"感 + 少女乐队舞台） ---------- */
.st-boss {
  position: relative; margin: 4px 0 10px; padding: 14px 16px 12px;
  border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -30%, rgba(255, 173, 208, .28), transparent 60%),
    linear-gradient(165deg, rgba(60, 26, 70, .92), rgba(24, 14, 34, .94));
  border: 1px solid rgba(255, 160, 200, .42);
  box-shadow: inset 0 1px 0 rgba(255, 220, 235, .12), 0 6px 22px rgba(0, 0, 0, .35);
}
.st-boss.down { border-color: rgba(155, 230, 176, .7); }
.st-boss-lights { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-around; }
.st-boss-lights i {
  width: 26%; height: 74px; opacity: .5;
  background: conic-gradient(from 180deg at 50% 0, transparent 42%, rgba(255, 224, 240, .30) 50%, transparent 58%);
  filter: blur(2px);
}
.st-boss-head {
  position: relative; display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.st-boss-kicker {
  font-size: 11.5px; letter-spacing: .18em; color: #ffd0e4; text-transform: uppercase;
}
.st-boss-head b { font-size: 26px; color: #fff3f8; line-height: 1; }
.st-boss-head b i { font-style: normal; font-size: 13px; color: #d9b6cc; }
.st-boss-track {
  position: relative; height: 18px; border-radius: 999px; overflow: hidden;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 190, 220, .38);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55);
}
.st-boss-fill {
  display: block; height: 100%; border-radius: 999px; position: relative;
  background: linear-gradient(90deg, #ff6f9f, #ff9bc4 45%, #ffd37a);
  box-shadow: 0 0 14px rgba(255, 140, 180, .65);
  transition: width .45s cubic-bezier(.2, .9, .3, 1);
}
.st-boss-fill em {
  position: absolute; inset: 0; border-radius: 999px;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .22) 0 6px,
    transparent 6px 14px);
  animation: stBossShine 1.6s linear infinite;
}
@keyframes stBossShine { from { background-position: 0 0; } to { background-position: 28px 0; } }
.st-boss-need {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  color: #fff6fa; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.st-boss-foot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 7px;
  font-size: 11px; color: #cdb6c8;
}

/* 茶点（2026-11-23 加）：资源栏里能看见 + 就地能用，不用回主界面 */
.st-hud-item.hud-tea .st-hud-ico {
  background: rgba(120, 220, 200, .14); border-color: rgba(120, 220, 200, .38);
  filter: drop-shadow(0 0 5px rgba(120, 220, 200, .40));
}
.st-hud-item.hud-tea .st-hud-txt { flex: 1 1 auto; }
.st-hud-btn {
  flex: none; align-self: center; padding: 5px 9px; border-radius: 8px;
  font-size: 11.5px; line-height: 1.2; white-space: nowrap; cursor: pointer;
  color: #062018; font-weight: 800; border: 1px solid rgba(140, 235, 210, .75);
  background: linear-gradient(160deg, #9ff0d8, #5fd3b4);
}
.st-hud-btn:disabled {
  cursor: not-allowed; color: #8b93a5; border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
}
.st-hud-btn:not(:disabled):hover { filter: brightness(1.08); }
.st-hud-goal.done span, .st-hud-goal.done em { color: #a9e8c0; }
.st-hud-goal.done b { color: #d6ffe4; }
@media (max-width: 900px) {
  .st-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-hud-goal { grid-column: 1 / -1; }
}

/* ---------- 2. 悬浮提示 / 角色卡 / 手牌 ---------- */
/* 爬塔页是 z-index 320 的独立遮罩：主界面的 #tip 原来是 200，永远被盖住，
   所以"单人页悬浮看不到效果"。这里只抬层级，提示内容还是主界面那一份。 */
body.st-open #tip { z-index: 640; }
#tip.st-tip { max-width: 380px; }

.st-team { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.st-char {
  position: relative; display: flex; align-items: stretch; gap: 8px;
  padding: 8px; border-radius: 12px; font: inherit; text-align: left; cursor: pointer;
  color: #e9e2f3; background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.st-char:hover {
  border-color: rgba(232, 196, 122, .75); background: rgba(232, 196, 122, .08);
  transform: translateY(-2px);
}
.st-char-art {
  position: relative; width: 52px; height: 74px; flex: none; border-radius: 8px; overflow: hidden;
  background-size: cover; background-position: center top; background-color: #1a1526;
  border: 1px solid rgba(232, 196, 122, .32);
}
.st-char.has-alt .st-char-art { border-color: #e8c47a; box-shadow: 0 0 0 1px rgba(232, 196, 122, .45); }
.st-alt-flag {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: 9px; color: #241a08; background: linear-gradient(180deg, #f3d7a0, #e0b463);
}
.st-char-info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.st-char-meter {
  display: block; height: 4px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .10); margin: 2px 0 1px;
}
.st-char-meter i { display: block; height: 100%; border-radius: 999px; background: #9ad7c8; }
.st-char-meter i.hot { background: #ff8f8f; }
.st-char-more { position: absolute; right: 6px; top: 5px; font-size: 9.5px; color: #8f83a6; }

.st-hcard { transition: border-color .16s ease, transform .16s ease; }
.st-hcard:hover { transform: translateY(-2px); }

/* 主样式里有一条全局的 `button { white-space: nowrap }`：爬塔页很多卡面本身就是
   按钮，效果文字于是被压成一整行、右边直接截断（2026-11-22 实测）。
   这里只放开"需要换行"的那几个块。 */
body.st-open .st-buy, body.st-open .st-buy em,
body.st-open .st-vcard em, body.st-open .st-vchar em,
body.st-open .st-char, body.st-open .st-char-info,
body.st-open .st-rcard-name { white-space: normal; }

/* 回忆之物：单独一小块，别再和行动卡底部黏在一起 */
.st-relicbox { margin-top: 16px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .12); }
.st-relicbox-title { display: block; font-size: 11.5px; color: #a99fc0; letter-spacing: .12em; margin-bottom: 6px; }
.st-relicbox .st-relics { margin: 0; }

/* ---------- 3. 招募候选：一张卡一块地方，效果不再挤成一坨 ---------- */.st-recruit-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin: 10px 0 12px; align-items: stretch;
}
.st-rcard {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px; border-radius: 14px; font: inherit; text-align: left; cursor: pointer;
  color: #e9e2f3; background: linear-gradient(180deg, #221b2e, #17131f);
  border: 1px solid rgba(232, 196, 122, .35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  animation: stPop .42s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
.st-rcard:hover {
  transform: translateY(-4px); border-color: #e8c47a;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .55), 0 0 0 2px rgba(232, 196, 122, .22);
}
.st-rcard.busy { opacity: .55; pointer-events: none; }
.st-rcard-art {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 10px;
  background-size: cover; background-position: center top; background-color: #1a1526;
  border: 1px solid rgba(255, 255, 255, .12);
}
.st-rcard-cost {
  position: absolute; left: 6px; top: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: #241a08;
  background: linear-gradient(180deg, #f3d7a0, #e0b463);
}
.st-rcard-zoom {
  position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; color: #ffe9c2; background: rgba(10, 8, 16, .74);
  border: 1px solid rgba(232, 196, 122, .5);
}
.st-rcard-name { display: flex; flex-direction: column; gap: 1px; }
.st-rcard-name b { font-size: 15px; color: #ffe6b8; line-height: 1.3; }
.st-rcard-name small { font-size: 11.5px; color: #a99fc0; }
.st-rcard-skill {
  display: block; flex: 1 1 auto; height: auto; min-height: 104px; max-height: 132px;
  overflow: auto; white-space: pre-wrap;
  padding: 8px 9px; border-radius: 8px; font-size: 11.5px; line-height: 1.7;
  color: #d8cdf0; background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .10);
}
.st-rcard-cta {
  display: block; text-align: center; padding: 7px 0; border-radius: 9px;
  font-size: 12.5px; font-weight: 800; color: #241a08;
  background: linear-gradient(180deg, #f2d79c, #e0b463);
}
@media (max-width: 1100px) { .st-recruit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .st-recruit-grid { grid-template-columns: 1fr; }
  .st-rcard-skill { height: auto; max-height: 120px; }
}

/* ---------- 卡牌详情 / 看大图 ---------- */
.st-modal.carddetail { width: min(640px, 94vw); }
/* 「查看牌与角色」面板：格子放宽一点，效果文字别挤成一条 */
.st-vgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.st-vcard em { max-height: 8.5em; font-size: 11.5px; line-height: 1.6; }
/* 本季遭遇卡缩略图（点开看大图） */
.st-enc-thumb.big {
  width: 112px; height: 74px; flex: none; padding: 0; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(232, 196, 122, .35); background: #1a1526; cursor: zoom-in;
}
.st-enc-thumb.big img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-carddetail { display: flex; gap: 14px; align-items: flex-start; margin-top: 10px; }
.st-carddetail-art {
  flex: none; width: 280px; padding: 0; border-radius: 10px; overflow: hidden;
  background: #1a1526; border: 1px solid rgba(232, 196, 122, .4); cursor: zoom-in;
}
.st-carddetail-art img { display: block; width: 100%; height: auto; }
.st-carddetail-noart { display: block; padding: 40px 0; text-align: center; color: #8f83a6; font-size: 12px; }
.st-carddetail-txt { flex: 1 1 auto; min-width: 0; }
.st-carddetail-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #a99fc0; }
.st-carddetail-meta span { color: #9ad7c8; }
.st-carddetail-txt p {
  margin: 8px 0; font-size: 13px; line-height: 1.85; color: #e9e2f3; white-space: pre-wrap;
}
.st-carddetail-hint { font-size: 11px; color: #8f83a6; }
@media (max-width: 720px) {
  .st-carddetail { flex-direction: column; }
  .st-carddetail-art { width: 100%; }
}

/* ---------- 4. 打工阶段：只留三块板块 ---------- */
body.st-solo-work #publicPanel > h2:nth-of-type(2),
body.st-solo-work #sponsors,
body.st-solo-work #pilesPanel > h2:nth-of-type(2),
body.st-solo-work #specialBoards { display: none !important; }
body.st-solo-work #publicPanel > h2:first-of-type::after {
  content: "（爬塔：只开放这三块，队伍派完自动进入下一季）";
  margin-left: 8px; font-size: 11px; font-weight: 400; color: #e8c47a; letter-spacing: 0;
}

/* 右下角入口：打工打完了 / 挑战 Live 打完了，闪一下提醒回爬塔页 */
.st-entry.attention { animation: stBlink 1.4s ease-in-out infinite; }
@keyframes stBlink {
  0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
  50% { box-shadow: 0 0 0 7px rgba(232, 196, 122, .28), 0 10px 26px rgba(0, 0, 0, .45); }
}

/* ================================================================
   单人爬塔 · 第五轮（2026-11-22 晚第二批反馈）
   ----------------------------------------------------------------
   1. 开局面板：先选 4 支乐队 → 再从这几支乐队里选领队（特殊角色不再出现）
   2. 乐曲卡一律显示**整张卡**（原图 822×1122，以前裁成 16:10 把效果文字切了）
   3. 选购：点卡先弹详情（整张卡 + 效果全文），再问"买不买"
   ================================================================ */

/* ---------- 1. 开局面板 ---------- */
.st-startblock { margin: 0 0 14px; }
.st-startlabel {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12.5px; color: #cfc4e0; margin-bottom: 8px;
}
.st-startlabel b {
  color: #241a08; background: linear-gradient(180deg, #f2d79c, #e0b463);
  padding: 1px 8px; border-radius: 999px; font-size: 11px;
}
.st-startlabel span { margin-left: auto; font-size: 11.5px; color: #a99fc0; }
.st-bandpick { display: flex; flex-wrap: wrap; gap: 8px; }
.st-bandchip {
  font: inherit; font-size: 12.5px; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  color: #e9e2f3; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: border-color .16s ease, background .16s ease;
}
.st-bandchip i {
  font-style: normal; margin-left: 6px; font-size: 10.5px;
  color: #8f83a6;
}
.st-bandchip:hover { border-color: rgba(232, 196, 122, .6); }
.st-bandchip.on {
  color: #241a08; border-color: #f0d7a4;
  background: linear-gradient(180deg, #f2d79c, #e0b463);
}
.st-bandchip.on i { color: #6a4d17; }
.st-leader .inst { color: #9ad7c8 !important; }
/* 领队网格里的说明文字要占满一行（不然会被挤进 120px 的格子里换行） */
.st-leaders > .st-note { grid-column: 1 / -1; margin: 2px 0 8px; }

/* ---------- 2. 乐曲卡显示整张卡 ---------- */
.st-buy-art, .st-hcard-art, .st-vcard-art {
  aspect-ratio: 822 / 1122; background-size: cover; background-position: center;
}
.st-hcard { width: 116px; }
.st-buy-art { background-color: #141020; }
.st-buy-art.no-art { background-image: linear-gradient(160deg, #241d31, #141020); }
.st-buy em { -webkit-line-clamp: 2; }

/* ---------- 3. 选购弹窗：看完整效果再决定买不买 ---------- */
.st-carddetail-buy {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  margin: 12px 0 6px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .14);
}
.st-carddetail-buy span { margin-right: auto; font-size: 11.5px; color: #a99fc0; }
.st-carddetail-buy .st-btn[disabled] { opacity: .45; cursor: not-allowed; }
.st-relicdetail-icon {
  width: 96px; height: 96px; flex: none; border-radius: 12px;
  background-color: rgba(232, 196, 122, .10); background-repeat: no-repeat;
  background-position: center; background-size: 64px 64px;
  border: 1px solid rgba(232, 196, 122, .35);
}
@media (max-width: 720px) {
  .st-hcard { width: 104px; }
}

/* ================================================================
   单人爬塔 · 第八轮（2026-11-23 傍晚）
   - 封面换成主策划给的图（banner_cover.webp）
   - 回忆之物用主策划给的卡面框（relic_frame.webp）+ 现有图标
   ================================================================ */
.st-deco-banner {
  height: 78px;
  background-image:
    linear-gradient(90deg, rgba(20,16,32,.92), rgba(20,16,32,.35) 45%, rgba(20,16,32,.92)),
    url("solo/art/deco/banner_cover.webp");
  background-size: cover, cover;
  background-position: center, center 42%;
}

/* ---------- 回忆之物卡面（框 + 图标 + 名字 + 效果） ---------- */
.st-reliccard {
  position: relative; width: min(430px, 92vw); aspect-ratio: 900 / 1230;
  border-radius: 20px; overflow: hidden; flex: none;
  background: url("solo/art/deco/relic_frame.webp") center / cover no-repeat #f3eefc;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
/* 位置按卡框实测比例放：标题栏 5.4–11.4%，中段画框到 64.8%，下半个文字框 64.8–89% */
.st-reliccard-icon {
  position: absolute; left: 50%; top: 36.5%; transform: translate(-50%, -50%);
  width: 30%; aspect-ratio: 1 / 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #57507a, #2c2745 70%);
  box-shadow: 0 8px 22px rgba(40, 30, 70, .35), inset 0 0 0 4px rgba(255, 255, 255, .55);
}
.st-reliccard-icon img {
  width: 60%; height: 60%; object-fit: contain; display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45));
}
.st-reliccard-name {
  position: absolute; left: 8%; right: 8%; top: 53%;
  text-align: center; font-size: 21px; font-weight: 800; letter-spacing: .08em;
  color: #3b3350; text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}
.st-reliccard-text {
  position: absolute; left: 10%; right: 10%; top: 69%; bottom: 17%;
  display: flex; align-items: center;
  overflow: auto; font-size: 14px; line-height: 1.85; color: #4a4363;
  white-space: normal;
}
.st-reliccard-text b { color: #6b4bb0; }
.st-reliccard-foot {
  position: absolute; left: 10%; right: 10%; bottom: 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.st-reliccard-price { font-size: 13.5px; font-weight: 800; color: #7a4bd0; }
.st-reliccard-foot .st-btn { padding: 6px 16px; font-size: 12.5px; }

/* 商店里的回忆之物一行：小号的"卡面框 + 图标"缩略图 */
.st-relic-icon.framed {
  width: 38px; height: 52px; border-radius: 6px; background-color: #efe9fb;
  background-image: url("solo/art/deco/relic_frame.webp");
  background-size: 100% 100%; background-repeat: no-repeat;
  border: 1px solid rgba(232, 196, 122, .35); position: relative;
}
.st-relic-icon.framed::after {
  content: ""; position: absolute; inset: 14% 20% 44%;
  background-image: var(--relic-art, none);
  background-size: contain; background-position: center; background-repeat: no-repeat;
  /* 图标本身是白色的，放在浅色卡框上几乎看不见 → 反色成深色 */
  filter: invert(1) opacity(.8);
}


/* 赞助商行动：还没选角色时只是"等你选人"，不要灰到看不清 */
.st-row.st-row-wait { opacity: .62; }
.st-row.st-row-wait:hover { border-color: rgba(232, 196, 122, .35); }

/* 回忆之物图鉴（查看面板的一页） */
.st-codex {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px;
}
.st-codex-item {
  display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
}
.st-codex-item.got { border-color: rgba(232, 196, 122, .55); background: rgba(232, 196, 122, .07); }
/* 隐藏回忆之物：拿到之前是个"？？？"的空壳（2026-11-23 隐藏路线） */
.st-codex-item.secret {
  border-color: rgba(170, 130, 240, .45);
  background: linear-gradient(150deg, rgba(120, 80, 190, .16), rgba(40, 24, 60, .18));
}
.st-codex-item.secret .st-codex-txt b { color: #d9c4ff; }
.st-codex-item.secret .st-codex-txt em { color: #b9a3e0; }
.st-tag.secret { color: #e2ccff; background: rgba(150, 105, 235, .26); }
.st-codex-item .st-relic-icon.framed { width: 46px; height: 63px; flex: none; }
.st-codex-txt { min-width: 0; }
.st-codex-txt b { display: block; font-size: 13px; color: #ffe6b8; }
.st-codex-txt small { display: block; font-size: 11.5px; color: #cfc4e0; line-height: 1.6; margin-top: 2px; }
.st-codex-txt em {
  display: block; font-style: normal; font-size: 11px; color: #9ad7c8; margin-top: 4px;
}

/* 挑战减益（每学期重抽） */
.st-chmods {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 12.5px;
  color: #ffd9c2;
  background: linear-gradient(160deg, rgba(255, 126, 74, .20), rgba(255, 84, 60, .07));
  border: 1px solid rgba(255, 146, 92, .62);
  box-shadow: inset 0 1px 0 rgba(255, 210, 180, .16), 0 0 0 1px rgba(0, 0, 0, .18),
              0 4px 16px rgba(255, 96, 60, .10);
}
.st-chmods b {
  color: #ffd0a8; font-size: 13.5px; letter-spacing: .04em; white-space: nowrap;
}
.st-chmods em { font-style: normal; font-size: 11px; color: #b9a9c8; white-space: nowrap; }
.st-chmods.quiet {
  color: #cdbfe0; border-color: rgba(200, 180, 220, .35);
  background: rgba(255, 255, 255, .04); box-shadow: none;
}
.st-chmods.quiet b { color: #d9cbea; }
.st-chmod-chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1 1 auto; }
.st-chmod-chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px;
  border-radius: 999px; font-size: 12px; color: #ffe6d4;
  background: rgba(255, 190, 140, .13); border: 1px solid rgba(255, 170, 120, .42);
}
.st-chmod-chip i { font-style: normal; font-weight: 800; color: #ffcf9e; }
.st-chmod-more {
  margin-left: auto; padding: 4px 10px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 11.5px; color: #ffd9b8; white-space: nowrap;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 180, 130, .45);
}
.st-chmod-more:hover { background: rgba(255, 210, 160, .16); }
/* 顶部「挑战减益」入口（不是挑战季也能查本局全部） */
.st-chmod-btn { position: relative; }
.st-chmod-btn .st-chmod-dot {
  display: inline-block; min-width: 17px; padding: 0 5px; margin-left: 6px;
  border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 17px;
  color: #3a1405; background: linear-gradient(160deg, #ffc98a, #ff8f5a);
}
/* 「挑战减益」面板（查看里的一个页签） */
.st-chmods-page { display: grid; gap: 10px; }
.st-chmod-sem {
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(232, 196, 122, .22);
}
.st-chmod-sem.on {
  border-color: rgba(255, 160, 110, .62); background: rgba(255, 140, 90, .10);
}
.st-chmod-semhead {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: 12.5px; color: #ffd2ac; font-weight: 800;
}
.st-chmod-sem .st-note { margin: 0; }
.st-chmod-item {
  display: flex; align-items: baseline; gap: 8px; padding: 4px 0;
  font-size: 12.5px; color: #efe6f8; border-top: 1px dashed rgba(255, 255, 255, .07);
}
.st-chmod-item:first-of-type { border-top: 0; }
.st-chmod-item b { color: #ffcf9e; white-space: nowrap; }
.st-chmod-item small { color: #d6c9e6; font-size: 12px; }

/* 随机 Live：进度条 + 手牌 */
.st-meter-big {
  height: 8px; border-radius: 999px; overflow: hidden; margin: 6px 0 10px;
  background: rgba(255, 255, 255, .10);
}
.st-meter-big i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #f2d79c, #e8c47a); transition: width .3s ease; }
.st-rlcards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.st-rlcard {
  width: 128px; padding: 6px; border-radius: 10px; cursor: pointer; font: inherit;
  color: #e9e2f3; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(232, 196, 122, .35); text-align: left;
}
.st-rlcard:hover { border-color: #e8c47a; transform: translateY(-2px); }
.st-rlcard[disabled] { opacity: .45; pointer-events: none; }
.st-rlcard-art {
  display: block; width: 100%; aspect-ratio: 822 / 1122; border-radius: 6px;
  background-size: cover; background-position: center; background-color: #141020;
  border: 1px solid rgba(255, 255, 255, .12); margin-bottom: 4px;
}
.st-rlcard b { display: block; font-size: 11.5px; color: #ffe6b8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-rlcard small { display: block; font-size: 10.5px; color: #a99fc0; }
.st-rlcard i { display: block; font-style: normal; font-size: 11.5px; color: #9ad7c8; margin-top: 2px; }

/* 回忆之物卡面嵌到弹窗里 */
.st-modal.relicmodal { width: min(520px, 94vw); }

/* 难度档位（A0..A20） */
.st-ascrow { display: flex; align-items: center; gap: 12px; }
.st-ascrow input[type="range"] {
  flex: 1 1 auto; accent-color: #e8c47a; height: 4px; cursor: pointer;
}
.st-ascrow b {
  min-width: 46px; text-align: center; font-size: 15px; color: #ffe6b8;
  padding: 2px 8px; border-radius: 8px; background: rgba(232, 196, 122, .14);
  border: 1px solid rgba(232, 196, 122, .4);
}
.st-asc-badge {
  padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  color: #241a08; background: linear-gradient(180deg, #ff9fb0, #e35d8a);
  align-self: center;
}

/* 队伍卡上的「技能」小按钮（单人页以前没有发动技能的入口） */
.st-skill-btn {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer;
  padding: 2px 8px; border-radius: 999px;
  color: #241a08; background: linear-gradient(180deg, #f2d79c, #e0b463);
  border: 1px solid #f0d7a4;
}
.st-skill-btn:hover { filter: brightness(1.08); }
.st-char { cursor: pointer; }

/* 本季遭遇：效果文字收 3 行，点缩略图看大图（不再弹窗挡一次） */
.st-enc-effect {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal;
}

/* 看大图：主界面的 #cardViewer 是 z-index 260，比爬塔页（320）低 →
   在单人页点「看大图」什么都看不到（主策划：点了没反应）。抬到最上面。 */
body.st-open .card-viewer { z-index: 700; }

/* 坚定卡 / 崩溃卡提示同理：主界面是 z-index 140，爬塔页 320 →
   以前单人模式抽到坚定/崩溃卡，弹窗被爬塔页盖住，玩家完全看不到（2026-11-23 报）。
   抬到爬塔页之上，但仍在卡图查看器（700）之下。 */
body.st-open .stress-pop { z-index: 680; }

/* 左边的角色卡 / 手牌要更大，优先看卡图 */
.st-body { grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.02fr); }
.st-char-art { width: 66px; height: 92px; }
.st-team { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
.st-hcard { width: 138px; }

/* 卡牌详情：难度做成角标，效果文字走主界面那套"重点强调"（数字/关键词/卡名上色） */
.st-carddetail-meta .st-diff {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #241a08; background: linear-gradient(180deg, #f2d79c, #e0b463);
}
.st-carddetail-meta .st-req { color: #9ad7c8; }
.st-carddetail-txt p .em-n { color: #ffd28a; font-weight: 800; }
.st-carddetail-txt p .em-r { color: #ffd28a; background: rgba(232, 196, 122, .14); border-radius: 4px; padding: 0 2px; }
.st-carddetail-txt p .em-c { color: #fff; font-weight: 700; }
.st-carddetail-txt p .em-k { color: #b9a6ff; font-weight: 700; }
.st-carddetail-txt p .em-limit { color: #ff9fc0; background: rgba(255, 143, 176, .12); border-radius: 4px; padding: 0 2px; }
.st-carddetail-txt p .em-band { color: #7fd8c4; text-decoration: underline; }
.st-carddetail-txt p .em-char { color: #7fd8c4; text-decoration: underline dotted; }

/* 商店里没卡图时给个能看的占位（以前是一块纯黑） */
.st-buy-art .st-noart {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: 11px; color: #6f6479; letter-spacing: .1em;
}

/* 开局面板：追加 / SP 角色 */
.st-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.st-extra {
  position: relative; padding: 6px; border-radius: 10px; cursor: pointer; font: inherit;
  color: #e9e2f3; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12); text-align: center;
}
.st-extra:hover { border-color: rgba(232, 196, 122, .6); }
.st-extra.on { border-color: #e8c47a; box-shadow: 0 0 0 2px rgba(232, 196, 122, .3); }
.st-extra img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px; display: block; }
.st-extra b { display: block; font-size: 11.5px; margin-top: 4px; color: #ffe6b8; }
.st-extra small { display: block; font-size: 10px; color: #a99fc0; }

/* 挑战 Live 结果（过关 +5 钱 / 没过扣决心） */
.st-challenge-result {
  margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.7;
  display: flex; align-items: center; gap: 10px;
}
.st-challenge-result.ok { color: #c8f5d6; background: rgba(155, 230, 176, .12); border: 1px solid rgba(155, 230, 176, .45); }
.st-challenge-result.bad { color: #ffc9d4; background: rgba(255, 143, 176, .12); border: 1px solid rgba(255, 143, 176, .45); }
.st-challenge-result b { font-size: 13.5px; }

/* ================================================================
   隐藏挑战 Live（2026-11-23）：告示牌 + 主界面专属美术（纯 CSS，无新图）
   三种场：hx_quiet 无人的剧场 / hx_meteor 流星雨下的屋顶 / hx_last 最后一晚
   ================================================================ */
.st-hx {
  position: relative; overflow: hidden; margin: 0 0 12px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(178, 140, 255, .55);
  background: linear-gradient(160deg, rgba(64, 40, 120, .55), rgba(24, 14, 44, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 6px 20px rgba(70, 30, 140, .25);
}
.st-hx-head { display: flex; align-items: baseline; gap: 10px; }
.st-hx-head b { font-size: 14px; color: #ead9ff; letter-spacing: .04em; }
.st-hx-head em { margin-left: auto; font-style: normal; font-size: 11.5px; color: #c3b0e4; }
.st-hx-desc { margin-top: 5px; font-size: 12.5px; color: #ddcdf5; line-height: 1.7; }
.st-hx-mods { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.st-hx-mods span {
  padding: 4px 9px; border-radius: 999px; font-size: 11.5px; color: #f0e0ff;
  background: rgba(160, 120, 240, .20); border: 1px solid rgba(190, 150, 255, .45);
}
.st-hx-hint {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  background: rgba(120, 90, 200, .16); border-color: rgba(170, 130, 240, .42);
}
.st-hx-hint b { font-size: 12.5px; color: #e0cdff; }
.st-hx-hint span { font-size: 11.5px; color: #c3b0e4; }
.st-hx-note { margin-top: 7px; font-size: 11px; color: #b9a3e0; }
.st-hx-pass {
  border-color: rgba(155, 230, 176, .65);
  background: linear-gradient(150deg, rgba(60, 120, 90, .35), rgba(20, 50, 40, .55));
}
.st-hx-pass b { color: #d6ffe6; }
.st-hx-fail {
  border-color: rgba(200, 160, 220, .45);
  background: rgba(60, 40, 80, .35);
}
.st-hx-fail b { color: #e6d4ff; }
.st-hx-pass span, .st-hx-fail span { font-size: 11.5px; color: #d6c9e6; }
/* 告示牌自己的氛围特效 */
.st-hx-fx { position: absolute; inset: 0; pointer-events: none; }
.st-hx.hx_quiet .st-hx-fx {
  background: radial-gradient(40% 60% at 70% 0%, rgba(160, 170, 255, .30), transparent 70%);
}
.st-hx.hx_meteor .st-hx-fx {
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, .9), transparent 60%),
    radial-gradient(2px 2px at 68% 55%, rgba(200, 220, 255, .8), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 22%, rgba(255, 240, 200, .9), transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 75%, rgba(255, 255, 255, .7), transparent 60%);
}
.st-hx.hx_last .st-hx-fx {
  background: repeating-linear-gradient(100deg, rgba(150, 190, 255, .10) 0 1px,
    transparent 1px 9px);
  animation: hxRain 1.6s linear infinite;
}
@keyframes hxRain { from { background-position: 0 0; } to { background-position: -22px 60px; } }

/* 主界面：隐藏 Live 的整屏氛围（body 上的 data-hx-live，由 solo.js 挂） */
body[data-hx-live]::before,
body[data-hx-live]::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
}
body[data-hx-live="hx_quiet"]::before {
  background:
    radial-gradient(55% 45% at 50% 12%, rgba(150, 165, 255, .22), transparent 62%),
    linear-gradient(180deg, rgba(8, 8, 26, .55), rgba(6, 5, 18, .78));
  mix-blend-mode: multiply;
}
body[data-hx-live="hx_quiet"]::after {
  background:
    radial-gradient(1.6px 1.6px at 18% 32%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1.4px 1.4px at 64% 24%, rgba(220, 230, 255, .45), transparent 60%),
    radial-gradient(1.6px 1.6px at 78% 58%, rgba(255, 255, 255, .40), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 72%, rgba(210, 220, 255, .38), transparent 60%);
  animation: hxDust 14s linear infinite;
}
@keyframes hxDust { from { background-position: 0 0; } to { background-position: 12px 48px; } }
body[data-hx-live="hx_meteor"]::before {
  background:
    linear-gradient(200deg, rgba(20, 24, 70, .55) 0%, rgba(10, 10, 32, .72) 60%,
      rgba(20, 8, 30, .70) 100%);
  mix-blend-mode: multiply;
}
body[data-hx-live="hx_meteor"]::after {
  background-image:
    linear-gradient(118deg, transparent 47%, rgba(255, 255, 255, .85) 50%, transparent 53%),
    linear-gradient(118deg, transparent 47%, rgba(200, 220, 255, .70) 50%, transparent 53%),
    linear-gradient(118deg, transparent 47%, rgba(255, 240, 210, .65) 50%, transparent 53%);
  background-size: 240px 240px, 300px 300px, 360px 360px;
  background-position: 10% -30%, 55% -10%, 85% -50%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  animation: hxMeteor 6.5s linear infinite;
  opacity: .9;
}
@keyframes hxMeteor {
  0%   { background-position: 10% -30%, 55% -10%, 85% -50%; }
  100% { background-position: 70% 120%, 95% 120%, 120% 130%; }
}
body[data-hx-live="hx_last"]::before {
  background:
    linear-gradient(180deg, rgba(20, 10, 30, .60), rgba(10, 6, 20, .80)),
    radial-gradient(45% 35% at 20% 15%, rgba(255, 90, 120, .18), transparent 70%),
    radial-gradient(45% 35% at 80% 20%, rgba(90, 140, 255, .18), transparent 70%);
  mix-blend-mode: multiply;
}
body[data-hx-live="hx_last"]::after {
  background: repeating-linear-gradient(100deg, rgba(170, 200, 255, .10) 0 1px,
    transparent 1px 8px);
  animation: hxRain 1.4s linear infinite;
  opacity: .85;
}


/* ===== 2026-11-24 手机竖屏适配（单人模式 / 牌桌） =====
   小屏上以前的问题：顶栏轮次信息 551px、轮抽池 772px、单人页两栏 798px，
   都比 390px 宽 → 内容被裁切/挤成竖排；这里统一收成单列。 */
@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  /* 顶栏：轮次信息独占一行，按钮换行而不是被裁掉 */
  header { flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; }
  header .brand { font-size: 13px; }
  #roundInfo.chips { flex: 1 1 100%; max-width: 100%; font-size: 11.5px; }
  #roundInfo > *, header .chips > * { white-space: normal; }
  header button { font-size: 12px; padding: 6px 9px; }
  header .hint { flex: 1 1 100%; }
  header .force-next { display: none; }
  /* 轮抽：单列、两张一行 */
  .draft-body { display: flex; flex-direction: column; }
  .draft-aside { display: grid; grid-template-columns: 1fr; }
  #draftPool.draft-grid { width: 100%; overflow-x: hidden; }
  #draftPool::before { display: none; }
  .draft-card { width: calc((100vw - 46px) / 2); height: auto; min-height: 0; }
  .draft-art { height: calc((100vw - 46px) / 2 * 1.18); }
  /* 单人爬塔页：两栏 → 单栏（后面那条两栏规则更靠后，必须 !important）
     手机上把"这一季做什么/打工进度"放到最上面，日历和手牌往下排。 */
  .st-body { display: flex !important; flex-direction: column; }
  .st-body > .st-col { width: 100% !important; min-width: 0 !important; }
  .st-col.main { order: 1; }
  .st-col.side { order: 2; }
  .st-panel { padding: 10px 12px 16px; }
  .st-enc, .st-enc-card, .st-enc-body { flex-direction: column; align-items: stretch; }
  .st-enc-art { width: 100%; height: 150px; }
  .st-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-hcard { width: calc((100vw - 54px) / 2); }
  .st-char-art { width: 52px; height: 74px; }
  .st-progress { gap: 8px; }
  /* 右下角"正在播放"别盖住牌堆 */
  #nowPlaying { max-width: 60vw; font-size: 11px; opacity: .92; }
  /* 底部页签留出安全区 */
  #mtabs { padding-bottom: env(safe-area-inset-bottom, 0px); }
  /* 轮次 chips 允许换行（原本 header .chip 是 nowrap + 不收缩） */
  #roundInfo { min-width: 0; overflow: hidden; }
  #roundInfo .chip { flex: 0 1 auto; white-space: normal; }
  .st-deco-banner { display: none; }
}

/* ---------------- 制卡器（我的收藏 → 制卡器） ---------------- */
.forge-screen{position:fixed;inset:0;z-index:960;background:#0e0c14;display:flex;flex-direction:column}
.forge-screen.hidden{display:none}
.fs-bar{height:46px;flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:0 12px;
  border-bottom:1px solid rgba(255,255,255,.1);background:#171322}
.fs-bar b{font-size:14px;letter-spacing:.5px}
.fs-hint{font-size:11px;color:#6f6479;margin-right:auto}
.forge-screen iframe{flex:1;width:100%;border:0;background:#0e0c14}
