/* 黑红哥特：28点的谎言 · 样式
 * 全部选择器以 .bjl- 前缀，且只作用于 .bjl-root 内部（唯一例外是夜谈入口
 * .bjl-night-entry —— 它必须挂在 #talk 里，用唯一前缀保证不影响站点样式）。
 * 动效只用 opacity / transform / box-shadow，绝不依赖 JS 加类才有可见性。
 */

.bjl-root {
  position: fixed; inset: 0;
  /* 压过站点状态条(z70)与分类把手(z12002)，低于夜谈(z12500)：打开时是一张干净的牌桌 */
  z-index: 12010;
  display: flex; align-items: flex-start; justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(120, 10, 32, .45), transparent 62%),
    radial-gradient(90% 60% at 50% 100%, rgba(60, 6, 20, .5), transparent 70%),
    rgba(5, 4, 7, .96);
  overflow: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  animation: bjlIn .26s ease-out both;
}
@keyframes bjlIn { from { opacity: 0 } to { opacity: 1 } }
.bjl-root[hidden] { display: none !important; }
/* 注意：这里不写 html/body 之类的全局选择器。背景滚动锁由 game.js 直接设置
 * document.documentElement.style.overflow，关闭时复原（见 openGame / close）。 */

.bjl-root, .bjl-root *, .bjl-root *::before, .bjl-root *::after { box-sizing: border-box; }

.bjl-stage {
  position: relative;
  width: min(640px, 100%); margin: auto; padding: 14px 14px 18px;
  border: 1px solid rgba(166, 25, 50, .42); border-radius: 4px 18px 4px 4px;
  background:
    linear-gradient(170deg, rgba(22, 8, 14, .98), rgba(9, 7, 11, .99)),
    radial-gradient(80% 50% at 100% 0%, rgba(227, 41, 79, .12), transparent 60%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .03);
  color: #EDE2E7; font-family: var(--font-body, Georgia, "Songti SC", serif);
  overflow: hidden;
}

/* ---------- 头部 ---------- */
.bjl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bjl-head small { display: block; font-size: 9px; letter-spacing: .22em; color: rgba(210, 150, 170, .72); }
.bjl-head h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: .1em; color: #F7EAF0; }
.bjl-sub { margin: 4px 0 0; font-size: 11.5px; color: #DC9FB4; }
.bjl-close {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; cursor: pointer; font: inherit; font-size: 17px;
  color: #E2CBD5; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(196, 150, 170, .34); border-radius: 3px;
}
.bjl-close:hover { background: rgba(166, 25, 50, .28); color: #fff; }
.bjl-close:focus-visible { outline: 2px solid #E2B7CD; outline-offset: 2px; }

/* ---------- 选牌组页（9 选 5） ---------- */
.bjl-draft h3 { margin: 12px 0 6px; font-size: 15px; letter-spacing: .1em; color: #F5E4EB; }
.bjl-draft[hidden] { display: none !important; }
.bjl-draftnote { margin: 0 0 10px; font-size: 11.5px; line-height: 1.75; color: #C9A2B2; }
.bjl-draftnote b { color: #FBD6E2; }
.bjl-dgrid { display: grid; grid-template-columns: 1fr; gap: 7px; }
.bjl-dcard {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 52px; padding: 9px 11px; cursor: pointer; text-align: left; font: inherit;
  color: #F2E3E9; background: rgba(255, 255, 255, .045); border: 1px solid rgba(196, 150, 170, .32); border-radius: 3px;
  transition: background .16s ease, border-color .16s ease;
}
.bjl-dcard:hover { background: rgba(166, 25, 50, .2); border-color: #E2B7CD; }
.bjl-dcard:focus-visible { outline: 2px solid #F0B8CC; outline-offset: 2px; }
.bjl-dcard b { font-size: 12px; color: #FFD9E4; }
.bjl-dcard span { font-size: 11.5px; line-height: 1.6; color: rgba(226, 208, 216, .88); }
.bjl-dcard em { font-style: normal; font-size: 10px; letter-spacing: .04em; color: rgba(200, 172, 186, .75); }
.bjl-dcard.is-on { background: linear-gradient(120deg, rgba(116, 16, 38, .6), rgba(166, 25, 50, .34)); border-color: #F3B9CB; }
.bjl-dcard.is-on em { color: #FFC8DA; }
.bjl-dmark {
  position: absolute; top: 7px; right: 8px; font-style: normal; font-size: 9.5px;
  padding: 0 6px; border-radius: 999px; color: #FFF0F5; background: #96182f; border: 1px solid rgba(255, 190, 210, .6);
}
.bjl-draftcount { margin: 9px 0; font-size: 12px; letter-spacing: .06em; color: #E7B7C8; }
.bjl-draftgo { width: 100%; }
.bjl-draftgo[disabled] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }

/* ---------- 双方牌组（公开） ---------- */
.bjl-decks { margin: 0 0 10px; padding: 8px 10px; border-radius: 4px; border: 1px solid rgba(150, 110, 130, .26); background: rgba(255, 255, 255, .025); }
.bjl-decks summary { cursor: pointer; font-size: 10.5px; letter-spacing: .08em; color: #E3B4C4; }
.bjl-deckswrap { margin-top: 6px; }
.bjl-deckrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 5px; font-size: 10.5px; }
.bjl-deckrow b { flex: 0 0 18px; color: #E9A9BE; font-weight: 400; }
.bjl-qchip { padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(196, 150, 170, .3); color: #EBD9E1; }
.bjl-qchip.is-her { border-color: rgba(234, 120, 150, .45); color: #F6D3DF; }
.bjl-qchip.is-used { opacity: .42; text-decoration: line-through; }
.bjl-decksnote { margin: 4px 0 0; font-size: 10px; line-height: 1.65; color: rgba(198, 170, 186, .78); overflow-wrap: anywhere; }

/* ---------- 难度档位（规则页） ---------- */
.bjl-diffpick { margin: 4px 0 12px; padding: 9px 10px; border-radius: 4px; border: 1px solid rgba(196, 150, 170, .3); background: rgba(255, 255, 255, .03); }
.bjl-difflabel { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .14em; color: #E3B4C4; }
.bjl-diffbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.bjl-diffbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 48px; padding: 7px 6px; cursor: pointer; font: inherit;
  color: #EEDCE4; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(196, 150, 170, .34); border-radius: 3px;
}
.bjl-diffbtn:hover { background: rgba(166, 25, 50, .24); border-color: #E2B7CD; }
.bjl-diffbtn:focus-visible { outline: 2px solid #F0B8CC; outline-offset: 2px; }
.bjl-diffbtn b { font-size: 13px; color: #FFD9E4; }
.bjl-diffbtn em { font-style: normal; font-size: 9px; letter-spacing: .1em; color: rgba(210, 180, 195, .75); }
.bjl-diffbtn.is-on { background: linear-gradient(120deg, rgba(116, 16, 38, .65), rgba(166, 25, 50, .35)); border-color: #F3B9CB; }
.bjl-diffbtn.is-on em { color: #FFC8DA; }
.bjl-diffsum { margin: 7px 0 0; font-size: 10.5px; line-height: 1.7; color: rgba(226, 196, 210, .88); overflow-wrap: anywhere; }

/* 题牌用完的提示 / 复盘顶部档位行 */
.bjl-skip {
  margin: 0 0 9px; padding: 6px 9px; border-radius: 3px; font-size: 12px;
  color: #FFE1EA; background: rgba(120, 10, 28, .42); border-left: 3px solid #E3294F;
}
.bjl-tierline { margin: 0 0 8px; font-size: 10.5px; line-height: 1.7; color: #E7B7C8; overflow-wrap: anywhere; }

/* ---------- 通用按钮 ---------- */
.bjl-primary, .bjl-ghost, .bjl-danger {
  min-height: 46px; padding: 11px 16px; cursor: pointer; font: inherit; font-size: 13.5px;
  letter-spacing: .06em; border-radius: 3px 12px 3px 3px;
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}
.bjl-primary {
  color: #FFF2F6; border: 1px solid rgba(240, 180, 200, .55);
  background: linear-gradient(120deg, #5d1226, #96182f 58%, #4c0f1f);
  box-shadow: 0 8px 24px rgba(150, 24, 47, .38);
}
.bjl-ghost {
  color: #EED9E1; border: 1px solid rgba(196, 150, 170, .4);
  background: rgba(255, 255, 255, .045);
}
.bjl-danger {
  color: #FFE6EE; border: 1px solid rgba(234, 90, 130, .62);
  background: linear-gradient(120deg, #741026, #a61932 60%, #5d0c1c);
  box-shadow: 0 8px 22px rgba(166, 25, 50, .34);
}
.bjl-primary:hover, .bjl-ghost:hover, .bjl-danger:hover { transform: translateY(-1px); filter: brightness(1.08); }
.bjl-primary:focus-visible, .bjl-ghost:focus-visible, .bjl-danger:focus-visible {
  outline: 2px solid #F0B8CC; outline-offset: 3px;
}
.bjl-primary[disabled], .bjl-danger[disabled], .bjl-ghost[disabled] {
  opacity: .4; cursor: not-allowed; transform: none; filter: none;
}

/* ---------- 规则页 ---------- */
.bjl-rules h3 { margin: 12px 0 6px; font-size: 15px; letter-spacing: .1em; color: #F5E4EB; }
.bjl-rulelist { margin: 0 0 10px; padding-left: 20px; }
.bjl-rulelist li { margin-bottom: 7px; font-size: 12.5px; line-height: 1.78; color: rgba(230, 214, 221, .94); }
.bjl-rulelist b { color: #FBD6E2; }
.bjl-hint { margin: 0 0 12px; font-size: 11.5px; line-height: 1.7; color: #C9A2B2; }
.bjl-begin { width: 100%; }

/* ---------- 牌桌 ---------- */
.bjl-topline {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
  margin: 12px 0 10px; font-size: 11px; letter-spacing: .06em; color: rgba(216, 196, 206, .88);
}
.bjl-round { color: #F7E7EE; font-size: 12px; }
.bjl-dealer { padding: 1px 8px; border-radius: 999px; background: rgba(166, 25, 50, .26); border: 1px solid rgba(234, 120, 150, .45); color: #FFD9E4; }
.bjl-persona { color: #E7B7C8; }
.bjl-chips { margin-left: auto; color: #E9D5DE; }
.bjl-chips b { color: #FFE1EA; font-size: 13px; }
.bjl-chips.is-up b { color: #8FE7B4; text-shadow: 0 0 12px rgba(143, 231, 180, .55); animation: bjlChipUp .5s ease-out; display: inline-block; }
.bjl-chips.is-down b { color: #FF9FB4; text-shadow: 0 0 12px rgba(255, 159, 180, .55); animation: bjlChipUp .5s ease-out; display: inline-block; }
@keyframes bjlChipUp { 0% { transform: scale(1) } 32% { transform: scale(1.16) } 100% { transform: scale(1) } }

/* 四张牌 */
.bjl-board { margin-bottom: 10px; }
.bjl-cards { display: flex; gap: 8px; justify-content: center; align-items: flex-start; }
.bjl-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; perspective: 800px; }
.bjl-slotno { font-size: 9px; letter-spacing: .08em; color: rgba(200, 170, 185, .72); white-space: nowrap; }
.bjl-card {
  position: relative; width: 66px; height: 94px; border-radius: 7px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transform-origin: 50% 50%; backface-visibility: visible;
}
.bjl-card.is-face {
  color: #1A1114;
  background: linear-gradient(160deg, #F7EEE9, #E7D6D2 62%, #DCC8C6);
  border: 1px solid rgba(255, 220, 230, .55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(120, 40, 60, .18);
}
.bjl-card.is-back {
  color: #F3C9D6;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #4A0A1C, #26060F 60%, #3D0817);
  border: 1px solid rgba(226, 150, 175, .45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.bjl-rank { font-size: 25px; line-height: 1; letter-spacing: -0.02em; font-family: var(--font-display, Georgia, serif); }
.bjl-suit { font-size: 17px; line-height: 1; color: #2A1A20; }
.bjl-card.is-red .bjl-suit { color: #A61932; }
.bjl-backmark { font-size: 26px; line-height: 1; opacity: .8; }
.bjl-hiddenmark {
  position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
  font-size: 8.5px; letter-spacing: .1em; color: rgba(255, 210, 225, .6); white-space: nowrap;
}
.bjl-morphmark, .bjl-voidmark {
  position: absolute; top: 3px; right: 3px; padding: 0 4px; border-radius: 999px;
  font-size: 8px; letter-spacing: .04em; background: #7C1026; color: #FFE4EC;
  border: 1px solid rgba(255, 190, 210, .6);
}
.bjl-voidmark { top: auto; bottom: 3px; right: 3px; background: #241A2E; color: #D9C6F0; border-color: rgba(190, 160, 230, .55); }
.bjl-card.is-virtual { border-style: dashed; box-shadow: 0 0 0 1px rgba(190, 160, 230, .35), 0 6px 16px rgba(0, 0, 0, .45); }
.bjl-card.is-morph { box-shadow: 0 0 0 1px #E3294F, 0 0 20px rgba(227, 41, 79, .45), 0 6px 16px rgba(0, 0, 0, .45); }
.bjl-arrow {
  position: absolute; right: -14px; top: 44px; font-size: 13px; color: #F0698C;
  opacity: 0; pointer-events: none;
}
.bjl-slot:nth-child(4) .bjl-arrow { display: none; }

.bjl-sumline { margin: 8px 0 0; text-align: center; font-size: 11.5px; letter-spacing: .04em; color: rgba(226, 200, 212, .9); }

/* 本步结算提示条（每一步 ±多少注） */
.bjl-delta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px;
  margin: 10px 0 8px; padding: 8px 10px; border-radius: 4px;
  border: 1px solid rgba(196, 160, 175, .34);
  background: rgba(255, 255, 255, .045);
  font-size: 12px; line-height: 1.65; color: #F1E0E8;
}
.bjl-delta[hidden] { display: none !important; }
.bjl-delta-k {
  flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; font-size: 10px; letter-spacing: .1em;
  color: #FFD9E4; background: rgba(166, 25, 50, .32); border: 1px solid rgba(234, 120, 150, .45);
}
.bjl-delta-t { flex: 1 1 170px; min-width: 0; overflow-wrap: anywhere; }
.bjl-delta-n { flex: 0 0 auto; font-style: normal; font-size: 16px; font-weight: 700; letter-spacing: .03em; }
.bjl-delta-n[hidden] { display: none !important; }
.bjl-delta-n.is-up { color: #8FE7B4; text-shadow: 0 0 14px rgba(143, 231, 180, .35); }
.bjl-delta-n.is-down { color: #FF9FB4; text-shadow: 0 0 14px rgba(255, 159, 180, .35); }
.bjl-delta.is-up { border-color: rgba(127, 211, 160, .55); background: rgba(30, 70, 45, .3); }
.bjl-delta.is-down { border-color: rgba(227, 41, 79, .6); background: rgba(120, 10, 28, .32); }
.bjl-delta.is-cat { border-color: rgba(227, 41, 79, .75); background: rgba(120, 10, 28, .34); }
.bjl-delta-act { flex: 0 0 auto; font-style: normal; font-size: 12px; letter-spacing: .03em; padding: 1px 7px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.bjl-delta-act[hidden] { display: none !important; }
.bjl-delta-act.is-up { color: #8FE7B4; border: 1px solid rgba(127, 211, 160, .5); }
.bjl-delta-act.is-down { color: #FF9FB4; border: 1px solid rgba(227, 41, 79, .55); }

/* 本局流水（每一步一行，和回放/日志同一批文本） */
.bjl-feed { margin: 0 0 10px; padding: 0; list-style: none; }
.bjl-feed[hidden] { display: none !important; }
.bjl-feed li {
  display: flex; flex-wrap: wrap; gap: 2px 6px; padding: 2px 0;
  font-size: 10.5px; line-height: 1.65; color: rgba(214, 194, 204, .86);
  border-bottom: 1px dashed rgba(150, 110, 130, .16); overflow-wrap: anywhere;
}
.bjl-feed li:last-child { border-bottom: 0; }
.bjl-feed li b { flex: 0 0 auto; font-weight: 400; color: #E3B4C4; }
.bjl-feed i { font-style: normal; }
.bjl-feed i.is-up { color: #8FE7B4; }
.bjl-feed i.is-down { color: #FF9FB4; }

/* 芙兰反应区 */
.bjl-fx {
  display: flex; align-items: center; gap: 10px; margin: 12px 0;
  padding: 9px 10px; border-radius: 4px;
  border: 1px solid rgba(166, 25, 50, .3); border-left: 3px solid rgba(234, 120, 150, .7);
  background: linear-gradient(100deg, rgba(80, 10, 28, .4), rgba(255, 255, 255, .022));
}
.bjl-face {
  flex: 0 0 auto; width: 58px; height: 58px; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(234, 120, 150, .55); filter: saturate(.95);
}
.bjl-face.is-mood-smug { box-shadow: 0 0 0 2px rgba(234, 120, 150, .5), 0 0 18px rgba(227, 41, 79, .45); }
.bjl-face.is-mood-cold { filter: saturate(.55) brightness(.92); }
.bjl-face.is-mood-wild { box-shadow: 0 0 0 2px #E3294F, 0 0 24px rgba(227, 41, 79, .7); }
.bjl-face.is-mood-sharp { box-shadow: 0 0 0 2px rgba(255, 200, 220, .6); }
.bjl-say { min-width: 0; flex: 1 1 auto; }
.bjl-saywho { display: block; font-size: 10px; letter-spacing: .12em; color: #E9A9BE; margin-bottom: 2px; }
.bjl-saytext { display: block; font-size: 12.5px; line-height: 1.7; color: #F4E7ED; overflow-wrap: anywhere; }

/* 牌堆记忆 */
.bjl-deck { margin-bottom: 12px; padding: 9px 10px; border-radius: 4px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(150, 110, 130, .26); }
.bjl-deckhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; font-size: 10px; letter-spacing: .06em; color: rgba(210, 180, 195, .82); }
.bjl-decknote { color: rgba(190, 160, 175, .62); }
.bjl-deckgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 7px 0 0; padding: 0; list-style: none; }
.bjl-dcell {
  display: flex; flex-direction: column; align-items: center; padding: 3px 0;
  border-radius: 3px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(160, 120, 140, .22);
}
.bjl-dcell b { font-size: 10px; color: rgba(225, 200, 212, .9); font-weight: 400; }
.bjl-dcell i { font-style: normal; font-size: 13px; color: #F6E6ED; }
.bjl-dcell.is-zero { border-color: rgba(227, 41, 79, .6); background: rgba(120, 10, 28, .5); }
.bjl-dcell.is-zero i { color: #FF9FB4; }
.bjl-revbox { margin-top: 8px; border-top: 1px dashed rgba(150, 110, 130, .3); padding-top: 6px; }
.bjl-revbox summary { cursor: pointer; font-size: 10.5px; letter-spacing: .08em; color: #E3B4C4; }
.bjl-revlist { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; }
.bjl-revrow { font-size: 10.5px; color: rgba(220, 200, 210, .86); overflow-wrap: anywhere; }
.bjl-revrow b { color: #E9A9BE; margin-right: 3px; font-weight: 400; }

/* 操作区 */
.bjl-act { padding: 10px; border-radius: 4px; border: 1px solid rgba(160, 120, 140, .26); background: rgba(255, 255, 255, .03); }
.bjl-act:empty { display: none; }
.bjl-acttitle { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; color: #F2D6E0; }
.bjl-qtext { margin: 0 0 9px; font-size: 12.5px; line-height: 1.75; color: rgba(232, 216, 223, .94); }
.bjl-note { margin: 8px 0 0; font-size: 11px; line-height: 1.7; color: rgba(202, 176, 190, .85); }
.bjl-note b { color: #FBD6E2; }
.bjl-note.is-bt { margin: 0 0 9px; padding: 5px 8px; border-radius: 3px; background: rgba(120, 10, 28, .3); border-left: 2px solid #E3294F; color: #FFD3DE; }
.bjl-note.is-ch { margin: 0 0 9px; padding: 5px 8px; border-radius: 3px; background: rgba(255, 255, 255, .05); border-left: 2px solid rgba(196, 160, 175, .7); color: #EBD9E1; }
.bjl-note.is-ch.is-good { background: rgba(30, 70, 45, .34); border-left-color: #7FD3A0; color: #D8F3E2; }
.bjl-note.is-ch.is-bad { background: rgba(120, 10, 28, .34); border-left-color: #E3294F; color: #FFD3DE; }
.bjl-note.is-ch b { color: #FFF1F5; }
.bjl-qgrid { display: grid; grid-template-columns: 1fr; gap: 7px; }
.bjl-qbtn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 52px;
  padding: 8px 11px; cursor: pointer; text-align: left; font: inherit;
  color: #F2E3E9; background: rgba(255, 255, 255, .05); border: 1px solid rgba(196, 150, 170, .34); border-radius: 3px;
}
.bjl-qbtn:hover:not([disabled]) { background: rgba(166, 25, 50, .28); border-color: #E2B7CD; }
.bjl-qbtn:focus-visible { outline: 2px solid #F0B8CC; outline-offset: 2px; }
.bjl-qbtn[disabled] { opacity: .34; cursor: not-allowed; }
.bjl-qbtn b { font-size: 12px; color: #FFD9E4; }
.bjl-qbtn span { font-size: 11.5px; line-height: 1.6; color: rgba(226, 208, 216, .88); }
.bjl-twobtn { display: flex; flex-wrap: wrap; gap: 8px; }
.bjl-twobtn > button { flex: 1 1 140px; }
.bjl-biganswer {
  margin: 4px 0 10px; text-align: center; font-size: 40px; line-height: 1.1;
  font-family: var(--font-display, Georgia, serif); letter-spacing: .1em;
}
.bjl-biganswer.is-yes { color: #B6E7C4; text-shadow: 0 0 22px rgba(150, 230, 180, .35); }
.bjl-biganswer.is-no { color: #F3A0B6; text-shadow: 0 0 22px rgba(240, 120, 155, .4); }
.bjl-truthline { margin: 0 0 9px; font-size: 12px; color: #E7D3DC; }
.bjl-truthline b.is-yes { color: #B6E7C4; }
.bjl-truthline b.is-no { color: #F3A0B6; }
.bjl-amtrow { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 12px; color: #E7D3DC; }
.bjl-amts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; flex: 1 1 auto; }
.bjl-amt {
  min-width: 0; min-height: 44px; cursor: pointer; font: inherit; font-size: 14px;
  color: #EEDCE4; background: rgba(255, 255, 255, .05); border: 1px solid rgba(196, 150, 170, .34); border-radius: 3px;
}
.bjl-amt[aria-pressed="true"] { color: #FFF2F6; background: linear-gradient(120deg, #741026, #A61932); border-color: #F3B9CB; }
.bjl-guesrow { display: flex; gap: 8px; margin-bottom: 9px; }
.bjl-guess {
  flex: 1 1 0; min-height: 46px; cursor: pointer; font: inherit; font-size: 13.5px;
  color: #EEDCE4; background: rgba(255, 255, 255, .05); border: 1px solid rgba(196, 150, 170, .34); border-radius: 3px;
}
.bjl-guess[aria-pressed="true"] { color: #FFF2F6; background: linear-gradient(120deg, #5d1226, #96182f); border-color: #F3B9CB; }
.bjl-guess:focus-visible, .bjl-amt:focus-visible { outline: 2px solid #F0B8CC; outline-offset: 2px; }
.bjl-preview { margin: 0 0 10px; font-size: 12px; line-height: 1.8; color: #E9D6DE; }
.bjl-win { color: #B6E7C4; }
.bjl-lose { color: #FF9FB4; }
.bjl-dbl { display: block; font-size: 10.5px; color: rgba(210, 170, 185, .8); }
.bjl-betgo { width: 100%; }

/* ---------- 每局回放 ---------- */
.bjl-replay { margin-top: 12px; padding: 10px 11px; border-radius: 4px; border: 1px solid rgba(166, 25, 50, .4); background: rgba(60, 8, 22, .28); }
.bjl-replaytitle { margin: 0 0 8px; font-size: 12.5px; letter-spacing: .1em; color: #FFD3E0; }
.bjl-truthlist { margin: 0; padding: 0; list-style: none; }
.bjl-truthlist li { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(150, 110, 130, .16); font-size: 11.5px; line-height: 1.72; color: rgba(228, 212, 219, .94); }
.bjl-truthlist li:last-child { border-bottom: 0; }
.bjl-truthlist li > b { flex: 0 0 40px; color: #E9A9BE; font-weight: 400; }
.bjl-truthlist li > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.bjl-truthlist li b b { color: #FFE1EA; }
.bjl-aibox { margin-top: 8px; border-top: 1px dashed rgba(150, 110, 130, .3); padding-top: 6px; }
.bjl-aibox summary { cursor: pointer; font-size: 11px; letter-spacing: .06em; color: #E3B4C4; }
.bjl-aibox ul { margin: 6px 0 0; padding-left: 16px; }
.bjl-aibox li { font-size: 11px; line-height: 1.72; color: rgba(214, 192, 203, .9); margin-bottom: 4px; overflow-wrap: anywhere; }
.bjl-replayfeed { margin-top: 8px; border-top: 1px dashed rgba(150, 110, 130, .3); padding-top: 6px; }
.bjl-replayfeed summary { cursor: pointer; font-size: 11px; letter-spacing: .06em; color: #E3B4C4; }
.bjl-replayfeed ol { margin: 6px 0 0; padding-left: 18px; }
.bjl-replayfeed li { font-size: 11px; line-height: 1.72; color: rgba(222, 204, 212, .92); margin-bottom: 3px; overflow-wrap: anywhere; }
.bjl-replayfeed li b { color: #E9A9BE; font-weight: 400; margin-right: 4px; }
.bjl-replayfeed i { font-style: normal; }
.bjl-replayfeed i.is-up { color: #8FE7B4; }
.bjl-replayfeed i.is-down { color: #FF9FB4; }

/* ---------- 整场复盘 ---------- */
.bjl-over h3 { margin: 10px 0 8px; font-size: 21px; letter-spacing: .12em; color: #F8E9EF; }
.bjl-overtext { margin: 0 0 13px; font-size: 13px; line-height: 1.9; color: rgba(230, 214, 221, .94); }
.bjl-final { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.bjl-final div { padding: 9px 10px; border-radius: 3px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(160, 120, 140, .26); }
.bjl-final span { display: block; font-size: 10px; color: rgba(210, 180, 195, .78); }
.bjl-final b { font-size: 18px; color: #F8EDF2; }
.bjl-overlabel { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .14em; color: #E3B4C4; }
.bjl-draftlog { margin: 0 0 8px; padding: 6px 8px; border-radius: 3px; font-size: 10.5px; line-height: 1.7; color: #F3D9E4; background: rgba(166, 25, 50, .2); border-left: 2px solid rgba(234, 120, 150, .7); overflow-wrap: anywhere; }
.bjl-loglist { margin: 0 0 14px; padding-left: 18px; }
.bjl-loglist li { margin-bottom: 5px; font-size: 11px; line-height: 1.7; color: rgba(222, 206, 214, .92); overflow-wrap: anywhere; }
.bjl-again { width: 100%; }

/* ---------- 动效 ---------- */
@keyframes bjlShatter {
  0% { transform: translate3d(0, 0, 0) rotate(0) }
  20% { transform: translate3d(-4px, 1px, 0) rotate(-2.4deg) }
  45% { transform: translate3d(4px, -2px, 0) rotate(2.6deg) }
  70% { transform: translate3d(-3px, 1px, 0) rotate(-1.6deg) }
  100% { transform: translate3d(0, 0, 0) rotate(0) }
}
@keyframes bjlInvert {
  0% { transform: rotateY(0deg) scale(1) }
  55% { transform: rotateY(270deg) scale(.9) }
  100% { transform: rotateY(540deg) scale(1) }
}
@keyframes bjlReveal {
  0% { transform: rotateY(90deg) scale(.92); opacity: .35 }
  100% { transform: rotateY(0deg) scale(1); opacity: 1 }
}
@keyframes bjlArrow {
  0% { opacity: 0; transform: translateX(-10px) }
  40% { opacity: 1 }
  100% { opacity: 0; transform: translateX(22px) }
}
@keyframes bjlCrackIn {
  0% { opacity: 0 } 12% { opacity: 1 } 82% { opacity: 1 } 100% { opacity: .82 }
}
.bjl-card.is-shatter { animation: bjlShatter .34s ease-in-out both; }
.bjl-card.is-shatter::after {
  content: ''; position: absolute; inset: -2px; border-radius: 7px; pointer-events: none;
  background:
    linear-gradient(72deg, transparent 46%, rgba(255, 150, 175, .95) 47.4%, transparent 48.6%),
    linear-gradient(-38deg, transparent 62%, rgba(255, 200, 215, .8) 63%, transparent 64.4%),
    linear-gradient(18deg, transparent 30%, rgba(227, 41, 79, .9) 31.4%, transparent 33%);
  mix-blend-mode: screen;
}
.bjl-card.is-invert { animation: bjlInvert .46s ease-in-out both; }
.bjl-slot.is-flipping .bjl-card { animation: bjlReveal .5s ease-out both; }
.bjl-slot.is-source .bjl-arrow { animation: bjlArrow .5s ease-out both; }

.bjl-crack { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 6; }
.bjl-crack::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(74deg, transparent 47.7%, rgba(255, 150, 175, .85) 48.05%, transparent 48.5%),
    linear-gradient(74deg, transparent 48.7%, rgba(255, 90, 130, .45) 49%, transparent 49.4%),
    linear-gradient(-41deg, transparent 61.5%, rgba(255, 170, 195, .6) 61.9%, transparent 62.5%),
    linear-gradient(16deg, transparent 29.7%, rgba(227, 41, 79, .7) 30%, transparent 30.4%),
    linear-gradient(-66deg, transparent 78.7%, rgba(255, 130, 160, .45) 79%, transparent 79.4%),
    radial-gradient(120% 80% at 50% 0%, rgba(227, 41, 79, .2), transparent 58%);
  mix-blend-mode: screen;
}
.bjl-crack.is-on { opacity: 1; animation: bjlCrackIn 2.6s ease-out both; }
.bjl-crack span {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; letter-spacing: .18em; color: #FFE3EB;
  background: rgba(92, 6, 20, .9); border: 1px solid rgba(255, 150, 175, .7);
  box-shadow: 0 0 26px rgba(227, 41, 79, .55);
}

/* ---------- 夜谈入口（#talk 里，唯一前缀） ---------- */
.bjl-night-entry {
  display: block !important; width: auto; min-height: 44px; margin: 10px 14px 0; padding: 10px 12px;
  cursor: pointer; text-align: left; font: inherit; font-size: 13px;
  color: #F6DDE6; border: 1px solid rgba(226, 150, 175, .42); border-left: 3px solid rgba(255, 190, 210, .9);
  border-radius: 3px 10px 3px 3px;
  background: linear-gradient(120deg, rgba(100, 12, 36, .6), rgba(18, 10, 16, .55));
}
.bjl-night-entry:hover { border-color: #E2B7CD; color: #fff; }
.bjl-night-entry:focus-visible { outline: 2px solid #E2B7CD; outline-offset: 3px; }
.bjl-night-entry[hidden] { display: none !important; }

/* ---------- 移动端（390px 无横向溢出） ---------- */
@media (max-width: 560px) {
  .bjl-root { padding-left: 8px; padding-right: 8px; }
  .bjl-stage { padding: 11px 11px 15px; border-radius: 4px 14px 4px 4px; }
  .bjl-head h2 { font-size: 17px; }
  .bjl-sub { font-size: 11px; }
  .bjl-cards { gap: 6px; }
  .bjl-card { width: 58px; height: 84px; }
  .bjl-rank { font-size: 21px; }
  .bjl-suit { font-size: 15px; }
  .bjl-deckgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bjl-final { grid-template-columns: 1fr 1fr; }
  .bjl-face { width: 50px; height: 50px; }
  .bjl-chips { margin-left: 0; }
  .bjl-twobtn > button { flex: 1 1 100%; }
  .bjl-truthlist li { flex-direction: column; gap: 2px; }
  .bjl-truthlist li > b { flex: none; }
}
@media (max-width: 380px) {
  .bjl-card { width: 52px; height: 76px; }
  .bjl-amt { font-size: 13px; }
}

/* ---------- 减少动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  .bjl-root { animation: none !important; opacity: 1 !important; }
  .bjl-card.is-shatter, .bjl-card.is-invert, .bjl-slot.is-flipping .bjl-card,
  .bjl-slot.is-source .bjl-arrow, .bjl-crack.is-on { animation: none !important; }
  .bjl-card.is-invert { transform: none !important; }
  .bjl-primary, .bjl-ghost, .bjl-danger, .bjl-qbtn, .bjl-amt, .bjl-guess { transition: none !important; }
  .bjl-primary:hover, .bjl-ghost:hover, .bjl-danger:hover { transform: none; }
  .bjl-chips.is-up b, .bjl-chips.is-down b { animation: none !important; }
}
