/* 《大锤死神VS火影》—— 经典和纸卷轴 × 漆金街机单视口格斗舞台 */
.bvn-page {
  background: radial-gradient(ellipse at 50% 0%, #2b183a 0%, #140f20 62%, #0a0812 100%);
  min-height: 100dvh;
  overflow-x: hidden;
}
.bvn-page .merge-nav {
  width: min(76rem, 100%);
  margin-inline: auto;
  padding-inline: clamp(.6rem, 2vw, 1.4rem);
  box-sizing: border-box;
}
.bvn-layout {
  width: min(76rem, calc(100% - 1.2rem));
  margin: .35rem auto .75rem;
  display: grid;
  place-items: center;
}
.bvn-viewport {
  position: relative;
  width: 100%;
  max-width: 1120px;
  aspect-ratio: 1120 / 540;
  max-height: calc(100dvh - 76px);
  border-radius: 16px;
  overflow: hidden;
  border: 2.5px solid #c99242;
  background: #0d0a18;
  box-shadow: 0 22px 60px rgba(4, 3, 12, 0.72), inset 0 0 0 1px rgba(254, 240, 138, 0.22);
  user-select: none;
  -webkit-user-select: none;
}
.bvn-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ==================== Layer 2: 经典 BVN 顶栏对战 HUD ==================== */
.bvn-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(6px, 1.2vw, 12px);
}
.bvn-hud[hidden] { display: none; }
.bvn-hud-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(6px, 1.4vw, 16px);
}
.bvn-hud-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bvn-portrait-frame {
  position: relative;
  flex: none;
  width: clamp(40px, 5vw, 54px);
  height: clamp(40px, 5vw, 54px);
  border-radius: 10px;
  border: 2px solid #f4c868;
  background: #141226;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.bvn-portrait-frame canvas { width: 100%; height: 100%; display: block; }
.bvn-assist-tag {
  position: absolute;
  inset: auto 0 0;
  padding: 1px 2px;
  background: rgba(15, 11, 28, 0.85);
  color: #fde68a;
  font: 800 9px/1.15 var(--sans);
  text-align: center;
}
.bvn-assist-tag.is-ready { background: rgba(185, 28, 28, 0.9); color: #fff8dc; }

.bvn-bars { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.bvn-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.bvn-name-row strong {
  color: #fff6df;
  font: 800 clamp(11px, 1.3vw, 14px)/1.1 var(--sans);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bvn-wins { display: inline-flex; gap: 4px; }
.bvn-wins i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #fde68a;
  background: rgba(18, 13, 30, 0.72);
}
.bvn-wins i.is-won { background: linear-gradient(135deg, #fde047, #f59e0b); box-shadow: 0 0 8px #fbbf24; }

.bvn-hp-track {
  position: relative;
  height: clamp(13px, 1.8vw, 19px);
  border-radius: 6px;
  border: 2px solid #f4c868;
  background: rgba(18, 12, 26, 0.86);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}
.bvn-hp-lag, .bvn-hp-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: width 80ms linear;
}
.bvn-hud-side.is-p1 .bvn-hp-lag,
.bvn-hud-side.is-p1 .bvn-hp-fill { left: 0; }
.bvn-hud-side.is-p2 .bvn-hp-lag,
.bvn-hud-side.is-p2 .bvn-hp-fill { right: 0; }
.bvn-hp-lag { background: #dc2626; }
.bvn-hp-fill { background: linear-gradient(180deg, #4ade80, #16a34a); }
.bvn-hp-fill.is-low { background: linear-gradient(180deg, #fbbf24, #ea580c); }
.bvn-hp-fill.is-crit { background: linear-gradient(180deg, #fb7185, #b91c1c); }

.bvn-sub-bars { display: grid; gap: 3px; }
.bvn-stamina-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.75);
  overflow: hidden;
}
.bvn-stamina-track i { display: block; height: 100%; background: #38bdf8; }
.bvn-hud-side.is-p2 .bvn-stamina-track i { margin-left: auto; }

.bvn-meter-row { display: flex; align-items: center; gap: 5px; }
.bvn-meter-track {
  position: relative;
  flex: 1 1 auto;
  height: 9px;
  border-radius: 99px;
  border: 1px solid rgba(245, 200, 104, 0.65);
  background: rgba(12, 10, 24, 0.85);
  overflow: hidden;
}
.bvn-meter-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 70ms linear;
}
.bvn-meter-track i.is-max {
  background: linear-gradient(90deg, #f59e0b, #ef4444, #fde047);
  box-shadow: 0 0 10px #f59e0b;
}
.bvn-hud-side.is-p2 .bvn-meter-track i { margin-left: auto; }
.bvn-meter-div {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(255, 245, 200, 0.6);
}
.bvn-meter-lv {
  flex: none;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(18, 14, 34, 0.88);
  border: 1px solid rgba(245, 200, 104, 0.55);
  color: #fde68a;
  font: 800 10px/1.2 var(--sans);
}
.bvn-meter-lv.is-max { background: #dc2626; border-color: #fde047; color: #fff; }

.bvn-hud-center {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 12px 5px;
  border-radius: 12px;
  border: 2px solid #d9a34a;
  background: linear-gradient(180deg, rgba(36, 20, 26, 0.94), rgba(18, 11, 22, 0.94));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
.bvn-round-label { color: #fde68a; font: 800 10px/1.1 var(--sans); letter-spacing: .06em; }
.bvn-timer { color: #fffaf0; font: 900 clamp(20px, 2.8vw, 30px)/1 var(--sans); font-variant-numeric: tabular-nums; }
.bvn-center-tools { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.bvn-ping {
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(20, 83, 45, 0.85);
  color: #bbf7d0;
  font: 700 10px/1.2 var(--sans);
}
.bvn-mini-btn {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(235, 192, 118, 0.55);
  background: rgba(45, 26, 30, 0.85);
  color: #fef3c7;
  font: 720 11px/1.2 var(--sans);
  cursor: pointer;
}
.bvn-mini-btn:hover { background: #6b2824; border-color: #fde047; }

/* 连击计数 */
.bvn-combo {
  position: absolute;
  top: 96px;
  display: grid;
  justify-items: center;
  padding: 6px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.92), rgba(217, 119, 6, 0.92));
  border: 2px solid #fde047;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.bvn-combo[hidden] { display: none; }
.bvn-combo.is-left { left: 16px; }
.bvn-combo.is-right { right: 16px; }
.bvn-combo b { color: #fffef0; font: 900 30px/1 var(--sans); }
.bvn-combo span { color: #fef08a; font: 800 11px/1.2 var(--sans); }

/* 在线表情条 */
.bvn-emote-bar {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 5px;
  pointer-events: auto;
}
.bvn-emote-bar[hidden] { display: none; }
.bvn-emote-bar button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(253, 224, 71, 0.55);
  background: rgba(20, 15, 34, 0.82);
  font-size: 14px;
  cursor: pointer;
}
.bvn-emote-toast {
  position: absolute;
  top: 124px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 249, 232, 0.96);
  border: 2px solid #b45309;
  color: #3a1f0b;
  font: 800 13px/1.2 var(--sans);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.bvn-emote-toast[hidden] { display: none; }

/* 道场4步引导条 */
.bvn-dojo-bar {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 251, 238, 0.96), rgba(244, 225, 184, 0.96));
  border: 2px solid #b45309;
  color: #3b1e0a;
  font: 760 13px/1.2 var(--sans);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
}
.bvn-dojo-bar[hidden] { display: none; }
.bvn-dojo-step {
  padding: 2px 8px;
  border-radius: 99px;
  background: #b91c1c;
  color: #fff8dc;
  font: 800 11px/1.2 var(--sans);
}
.bvn-dojo-exit {
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid #9a5d27;
  background: #fef3c7;
  color: #6b3410;
  font: 760 11px/1.2 var(--sans);
  cursor: pointer;
}

/* 底部桌面键位条 */
.bvn-key-legend {
  align-self: center;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(14, 11, 24, 0.72);
  border: 1px solid rgba(235, 192, 118, 0.32);
  color: #f6e7c7;
  font: 600 11px/1.2 var(--sans);
}
.bvn-key-legend kbd {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(253, 224, 71, 0.2);
  border: 1px solid rgba(253, 224, 71, 0.45);
  color: #fde68a;
  font: 800 10px/1.1 var(--sans);
}

/* 手机端虚拟摇杆（桌面隐藏，触屏/窄屏显示） */
.bvn-touch-controls {
  display: none;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 6px 4px;
  pointer-events: none;
}
.bvn-touch-dpad {
  display: grid;
  justify-items: center;
  gap: 6px;
  pointer-events: auto;
}
.bvn-tpad-mid { display: flex; gap: 6px; }
.bvn-touch-actions {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 6px;
  pointer-events: auto;
}
.bvn-tbtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(253, 224, 71, 0.72);
  background: rgba(20, 14, 34, 0.72);
  color: #fff6dc;
  font: 800 13px/1 var(--sans);
  touch-action: none;
  cursor: pointer;
}
.bvn-tbtn:active, .bvn-tbtn.is-down { transform: scale(0.92); background: rgba(217, 119, 6, 0.88); }
.bvn-tbtn.is-atk { background: rgba(185, 28, 28, 0.82); border-color: #fca5a5; font-size: 16px; }
.bvn-tbtn.is-ult { background: rgba(217, 119, 6, 0.85); border-color: #fde047; }
.bvn-tbtn.is-skill { background: rgba(37, 99, 235, 0.82); border-color: #93c5fd; }

/* 轻提示胶囊 */
.bvn-toast {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 250, 235, 0.96);
  border: 2px solid #b45309;
  color: #3a1f0b;
  font: 800 13px/1.25 var(--sans);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
  z-index: 30;
}
.bvn-toast[hidden] { display: none; }

/* ==================== Layer 3: 覆盖层（和纸卷轴 & 漆金街机主菜单） ==================== */
.bvn-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  overflow: auto;
}
.bvn-overlay[hidden] { display: none; }

/* 3A. 标题主选单 */
.bvn-title-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.76) saturate(1.08);
}
.bvn-title-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 8, 24, 0.62) 0%, rgba(16, 11, 28, 0.42) 45%, rgba(11, 8, 24, 0.9) 100%);
}
.bvn-title-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 28px));
  display: grid;
  gap: clamp(10px, 1.8vw, 18px);
  justify-items: center;
  padding: 14px 0;
}
.bvn-title-emblem { text-align: center; }
.bvn-seal {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.9);
  border: 1.5px solid #fde68a;
  color: #fff8dc;
  font: 800 12px/1.2 var(--sans);
  letter-spacing: .16em;
}
.bvn-title-emblem h1 {
  margin: 6px 0 4px;
  font: 900 clamp(26px, 4.2vw, 46px)/1.08 "Noto Serif SC", "Songti SC", serif;
  color: #fff9e6;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85), 0 0 24px rgba(245, 158, 11, 0.45);
}
.bvn-title-emblem h1 span { color: #fde047; }
.bvn-title-emblem p {
  margin: 0;
  color: #f3e4c3;
  font: 600 clamp(12px, 1.4vw, 14px)/1.4 var(--sans);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.bvn-mode-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bvn-mode-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 2px solid rgba(235, 192, 118, 0.72);
  background: linear-gradient(180deg, rgba(255, 250, 236, 0.94), rgba(242, 224, 186, 0.94));
  color: #361d0a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 5, 18, 0.5), inset 0 1px 0 #fff;
  transition: transform 120ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.bvn-mode-card:hover { transform: translateY(-2px); border-color: #fde047; box-shadow: 0 14px 28px rgba(8, 5, 18, 0.62); }
.bvn-mode-card b { font-size: 24px; flex: none; }
.bvn-mode-card strong { display: block; font: 900 15px/1.2 var(--sans); }
.bvn-mode-card small { display: block; margin-top: 2px; font: 600 11.5px/1.3 var(--sans); color: #6c431f; }
.bvn-mode-card.is-primary {
  background: linear-gradient(135deg, #c83324, #991b1b);
  border-color: #fde047;
  color: #fff9e6;
}
.bvn-mode-card.is-primary small { color: #fde68a; }
.bvn-mode-card.is-online {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  border-color: #93c5fd;
  color: #f0f9ff;
}
.bvn-mode-card.is-online small { color: #bfdbfe; }
.bvn-mode-card.is-dojo { grid-column: span 2; }

.bvn-title-footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bvn-scroll-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid #d49b4b;
  background: rgba(255, 250, 236, 0.92);
  color: #42220b;
  font: 760 12.5px/1.2 var(--sans);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.bvn-scroll-chip:hover { background: #fef08a; border-color: #b45309; }
.bvn-scroll-chip.is-shop {
  background: linear-gradient(180deg, #fef08a, #f59e0b);
  border-color: #fde68a;
  color: #451a03;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.36);
}
.bvn-select-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bvn-shop-head-right { display: flex; align-items: center; gap: 8px; }
.bvn-coin-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fef08a, #f59e0b);
  border: 2px solid #b45309;
  color: #451a03;
  font: 900 13px/1.1 var(--sans);
}
.bvn-shop-desc { margin: 0 0 10px; font: 600 12.5px/1.45 var(--sans); color: #5b3416; }
.bvn-shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.bvn-shop-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px 9px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 12px;
  border: 2px solid #c39150;
  background: #fffdf6;
}
.bvn-shop-item.is-max { border-color: #16a34a; background: #f0fdf4; }
.bvn-shop-ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fef3c7; border: 1.5px solid #d97706;
  display: grid; place-items: center; font-size: 20px;
}
.bvn-shop-info strong { display: block; font: 880 13.5px/1.2 var(--sans); color: #47240a; }
.bvn-shop-info small { display: block; margin-top: 2px; font: 600 11.5px/1.3 var(--sans); color: #6c431f; }
.bvn-shop-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 5px; border-top: 1px dashed rgba(161, 98, 39, 0.35);
}
.bvn-shop-pips { font: 800 11.5px/1 var(--sans); color: #b45309; letter-spacing: 2px; }
.bvn-shop-buy {
  padding: 5px 12px; border-radius: 999px;
  border: 2px solid #991b1b; background: linear-gradient(180deg, #dc2626, #991b1b);
  color: #fffef2; font: 840 12px/1.1 var(--sans); cursor: pointer;
}
.bvn-shop-buy.is-equip { border-color: #0284c7; background: linear-gradient(180deg, #38bdf8, #0284c7); }
.bvn-shop-buy:disabled { background: #d6c5a3; border-color: #b49a70; color: #6b5230; cursor: not-allowed; }
@media (max-width: 54rem) { .bvn-shop-grid { grid-template-columns: minmax(0, 1fr); } }

/* 和纸卷轴通用弹卡（零暗色 SaaS 丑弹窗！） */
.bvn-scroll-modal { background: rgba(12, 8, 22, 0.72); backdrop-filter: blur(4px); padding: 12px; }
.bvn-washi-card {
  width: min(640px, 100%);
  max-height: calc(100% - 12px);
  overflow: auto;
  padding: 18px 22px;
  border-radius: 16px;
  border: 3px solid #9e6024;
  background: linear-gradient(180deg, #fffdf4, #f4e2bc);
  color: #361d0a;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.6), inset 0 1px 0 #ffffff;
}
.bvn-washi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bvn-washi-head h2 { margin: 0; font: 900 19px/1.2 "Noto Serif SC", serif; color: #54220a; }
.bvn-close-x {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid #a16227;
  background: #fdf2d6;
  color: #54220a;
  font: 760 12px/1.2 var(--sans);
  cursor: pointer;
}
.bvn-washi-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  background: #b91c1c;
  color: #fff8dc;
  font: 800 11.5px/1.3 var(--sans);
}
.bvn-washi-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.bvn-btn-vermilion {
  padding: 9px 20px;
  border-radius: 10px;
  border: 2px solid #fde047;
  background: linear-gradient(180deg, #dc2626, #991b1b);
  color: #fffef2;
  font: 860 14px/1.2 var(--sans);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(153, 27, 27, 0.36);
}
.bvn-btn-vermilion:hover:not(:disabled) { filter: brightness(1.08); }
.bvn-btn-vermilion:disabled { opacity: 0.55; cursor: not-allowed; }
.bvn-btn-wood {
  padding: 8px 16px;
  border-radius: 10px;
  border: 2px solid #9d5f25;
  background: linear-gradient(180deg, #fff6db, #ebd096);
  color: #3d1f09;
  font: 800 13px/1.2 var(--sans);
  cursor: pointer;
}
.bvn-btn-wood:hover { background: #fde68a; }

/* 3B. 序章卡片 */
.bvn-story-card { text-align: center; }
.bvn-story-cast { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 10px; }
.bvn-story-cast img { border-radius: 50%; border: 2.5px solid #9e6024; background: #fff9e8; padding: 2px; }
.bvn-vs-badge {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #d97706);
  color: #fffef0; font: 900 13px/1 var(--sans);
  border: 2px solid #fde047;
}
.bvn-story-card h2 { margin: 8px 0 6px; font: 900 22px/1.25 "Noto Serif SC", serif; color: #54220a; }
.bvn-story-card p { margin: 0; font: 600 13.5px/1.65 var(--sans); color: #5b3416; }

/* 3C. BVN 选人卷轴舞台 */
.bvn-select-screen {
  background:
    radial-gradient(ellipse at 18% 20%, rgba(59, 130, 246, 0.24), transparent 52%),
    radial-gradient(ellipse at 82% 20%, rgba(249, 115, 22, 0.24), transparent 52%),
    linear-gradient(180deg, #1b132b, #110c1c);
  padding: 12px 16px;
}
.bvn-select-wrap { width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
.bvn-select-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff4d6; }
.bvn-select-head strong { font: 900 clamp(14px, 1.8vw, 18px)/1.2 "Noto Serif SC", serif; }
.bvn-ai-pills { display: inline-flex; gap: 4px; }
.bvn-mini-pill {
  padding: 4px 11px;
  border-radius: 99px;
  border: 1.5px solid rgba(235, 192, 118, 0.55);
  background: rgba(30, 22, 48, 0.88);
  color: #f3e4c3;
  font: 760 12px/1.2 var(--sans);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.bvn-mini-pill[aria-pressed="true"] { background: #d97706; border-color: #fde047; color: #fff; }

.bvn-select-body {
  display: grid;
  grid-template-columns: minmax(150px, 215px) minmax(0, 1fr) minmax(150px, 215px);
  gap: 12px;
  align-items: center;
  min-height: 0;
}
.bvn-preview-card {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px;
  border-radius: 14px;
  border: 2px solid #a86c2d;
  background: linear-gradient(180deg, #fffcf2, #f2ddb2);
  color: #381e0a;
  text-align: center;
}
.bvn-slot-badge {
  padding: 2px 10px;
  border-radius: 99px;
  background: #1d4ed8;
  color: #fff;
  font: 800 11px/1.2 var(--sans);
}
.bvn-preview-card.is-p2 .bvn-slot-badge { background: #b91c1c; }
.bvn-preview-portrait { width: 78px; height: 78px; border-radius: 12px; border: 2px solid #9e6024; }
.bvn-preview-card h3 { margin: 2px 0 0; font: 900 15px/1.15 var(--sans); }
.bvn-preview-card small { font: 600 11px/1.2 var(--sans); color: #6e4520; }
.bvn-preview-ult { margin: 2px 0; padding: 3px 7px; border-radius: 6px; background: rgba(185, 28, 28, 0.12); color: #8c1d18; font: 760 11px/1.25 var(--sans); }
.bvn-assist-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 100%; }
.bvn-assist-btn {
  padding: 3px 7px;
  border-radius: 99px;
  border: 1.5px solid #b58044;
  background: #fff9ea;
  color: #4d290e;
  font: 740 11px/1.2 var(--sans);
  cursor: pointer;
}
.bvn-assist-btn[aria-pressed="true"] { background: #b91c1c; border-color: #fde047; color: #fff; }

.bvn-roster-col { display: grid; gap: 8px; justify-items: center; }
.bvn-pick-turn { color: #fde68a; font: 720 12px/1.2 var(--sans); }
.bvn-roster-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.bvn-roster-tile {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 2px solid rgba(235, 192, 118, 0.45);
  background: rgba(24, 18, 42, 0.9);
  color: #fff4d6;
  cursor: pointer;
  transition: transform 100ms ease, border-color 120ms ease;
}
.bvn-roster-tile:hover { transform: translateY(-2px); border-color: #fde047; }
.bvn-roster-tile.is-p1 { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.55); }
.bvn-roster-tile.is-p2 { border-color: #f87171; box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.55); }
.bvn-roster-tile canvas { width: 48px; height: 48px; border-radius: 8px; }
.bvn-roster-tile strong { font: 800 12px/1.1 var(--sans); }
.bvn-roster-tile small { font: 600 10px/1.1 var(--sans); color: #cbd5e1; }

.bvn-stage-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; }
.bvn-stage-pill {
  padding: 5px 11px;
  border-radius: 99px;
  border: 1.5px solid rgba(235, 192, 118, 0.55);
  background: rgba(26, 20, 44, 0.9);
  color: #f6e7c7;
  font: 740 11.5px/1.2 var(--sans);
  cursor: pointer;
}
.bvn-stage-pill[aria-pressed="true"] { background: linear-gradient(135deg, #d97706, #b45309); border-color: #fde047; color: #fff; }
.bvn-select-go-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.bvn-go-btn { padding: 10px 24px; font-size: 15px; white-space: nowrap; }

/* 3D. 在线联机面板 */
.bvn-online-desc { margin: 0 0 10px; font: 600 13px/1.5 var(--sans); color: #5b3416; }
.bvn-online-name-row label { display: flex; align-items: center; gap: 8px; font: 760 13px/1.2 var(--sans); }
.bvn-online-name-row input, .bvn-join-row input {
  flex: 1;
  min-height: 38px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1.5px solid #a16227;
  background: #fffdf8;
  color: #361d0a;
  font: 700 13.5px/1.2 var(--sans);
}
.bvn-online-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.bvn-join-row { display: flex; gap: 8px; }
.bvn-online-msg { margin: 8px 0 0; min-height: 18px; font: 720 12.5px/1.3 var(--sans); color: #9a3412; }

.bvn-room-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #421d13;
  color: #fff6df;
  margin-bottom: 10px;
}
.bvn-room-banner small { display: block; font-size: 10.5px; color: #fde68a; }
.bvn-room-banner strong { font: 900 20px/1.1 var(--sans); letter-spacing: .16em; color: #fde047; }
.bvn-room-seats { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 10px; }
.bvn-room-seat {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px;
  border-radius: 10px;
  border: 1.5px solid #c39150;
  background: #fff9ea;
}
.bvn-ready-pill { font-style: normal; padding: 2px 8px; border-radius: 99px; background: #e2e8f0; color: #475569; font: 760 11px/1.2 var(--sans); }
.bvn-ready-pill.is-ready { background: #16a34a; color: #fff; }
.bvn-online-picker { display: grid; gap: 6px; margin-bottom: 10px; }
.bvn-online-pick-label { font: 800 12px/1.2 var(--sans); color: #6c3812; }
.bvn-online-fighters, .bvn-online-assists, .bvn-online-stages { display: flex; flex-wrap: wrap; gap: 5px; }
.bvn-online-ready-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 3E/F/G. 战果 / 榜单 / 招式 */
.bvn-result-card { text-align: center; }
.bvn-result-card h2 { margin: 8px 0 4px; font: 900 28px/1.2 "Noto Serif SC", serif; color: #7f1d1d; }
.bvn-result-sub { margin: 0; font: 700 14px/1.5 var(--sans); color: #5b3416; }
.bvn-board-mine { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #f8e9c6; font: 720 12.5px/1.4 var(--sans); color: #5b3416; }
.bvn-board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.bvn-board-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d5b27c;
  background: #fffcf4;
  font: 700 12.5px/1.2 var(--sans);
}
.bvn-board-list li.is-self { border-color: #d97706; background: #fef3c7; }
.bvn-moves-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 12.5px; line-height: 1.55; }
.bvn-moves-grid h3 { margin: 0 0 6px; font-size: 14px; color: #7f1d1d; }
.bvn-moves-grid ul { margin: 0; padding-left: 16px; }
.bvn-moves-grid kbd { padding: 1px 5px; border-radius: 4px; background: #ebd29b; border: 1px solid #a87030; font: 800 11px/1 var(--sans); }

/* ==================== 手机端 & 触屏响应式适配（0px 溢出 + 零拉伸街机掌机格局！） ==================== */
@media (pointer: coarse), (max-width: 54rem) {
  .bvn-key-legend { display: none; }
  .bvn-touch-controls { display: flex; }
}
@media (max-width: 54rem) and (orientation: portrait) {
  .bvn-layout { width: calc(100% - .6rem); margin: .25rem auto .5rem; }
  .bvn-viewport {
    aspect-ratio: auto;
    height: min(82dvh, 680px);
    min-height: 500px;
    border-radius: 14px;
  }
  /* 手机对战模式：切换为「顶栏HUD → 原比例1120:540无拉伸画布 → 底部漆金实体摇杆甲板」掌机架构！ */
  .bvn-viewport.is-fighting {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    background: #100b1d;
  }
  .bvn-viewport.is-fighting .bvn-hud:not([hidden]) {
    display: contents;
  }
  .bvn-viewport.is-fighting .bvn-hud-top {
    order: 1;
    padding: 7px 7px 6px;
    background: linear-gradient(180deg, #241736, #130c20);
    border-bottom: 1.5px solid rgba(217, 163, 74, 0.62);
    pointer-events: auto;
    gap: 5px;
  }
  .bvn-viewport.is-fighting .bvn-canvas {
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 1120 / 540;
    flex: none;
  }
  .bvn-viewport.is-fighting .bvn-touch-controls {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px 16px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(217, 163, 74, 0.14), transparent 65%),
      linear-gradient(180deg, #1e142e 0%, #100a1a 100%);
    border-top: 2px solid #c99242;
    pointer-events: auto;
  }
  .bvn-viewport.is-fighting .bvn-dojo-bar {
    position: static;
    transform: none;
    order: 4;
    margin: 0 8px 10px;
    max-width: none;
    justify-content: space-between;
    font-size: 11.5px;
  }
  .bvn-viewport.is-fighting .bvn-emote-bar {
    position: static;
    transform: none;
    order: 4;
    justify-content: center;
    padding: 0 0 10px;
  }
  .bvn-viewport.is-fighting .bvn-combo {
    top: 76px;
    padding: 4px 10px;
  }
  .bvn-viewport.is-fighting .bvn-combo b { font-size: 22px; }
  .bvn-viewport.is-fighting .bvn-emote-toast { top: 82px; }

  .bvn-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .bvn-mode-card { padding: 9px 10px; gap: 7px; }
  .bvn-mode-card b { font-size: 20px; }
  .bvn-mode-card strong { font-size: 13.5px; }
  .bvn-mode-card small { font-size: 10.5px; }
  .bvn-mode-card.is-dojo { grid-column: 1 / -1; }
  .bvn-select-screen { align-items: start; padding: 10px 10px 14px; overflow-y: auto; }
  .bvn-select-wrap { height: auto; }
  .bvn-select-head { flex-wrap: wrap; gap: 6px; }
  .bvn-select-head strong { order: 3; width: 100%; text-align: center; font-size: 13.5px; }
  .bvn-select-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bvn-preview-card { grid-template-columns: auto minmax(0, 1fr); text-align: left; justify-items: start; gap: 4px 10px; padding: 8px; }
  .bvn-preview-portrait { width: 52px; height: 52px; grid-row: span 3; }
  .bvn-preview-card .bvn-slot-badge, .bvn-preview-card .bvn-assist-pills { grid-column: 1 / -1; justify-content: flex-start; }
  .bvn-roster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .bvn-roster-tile canvas { width: 38px; height: 38px; }
  .bvn-moves-grid { grid-template-columns: minmax(0, 1fr); }
  .bvn-online-actions { grid-template-columns: minmax(0, 1fr); }
  .bvn-portrait-frame { width: 36px; height: 36px; }
  .bvn-hud-center { padding: 3px 7px 4px; }
  .bvn-timer { font-size: 18px; }
  .bvn-tbtn { width: 48px; height: 48px; font-size: 13px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  .bvn-touch-actions { grid-template-columns: repeat(3, 48px); gap: 7px; }
}

/* ==================== 手机横屏全视野格斗掌机驾驶舱（844x390 零滚动） ==================== */
@media (orientation: landscape) and (max-height: 540px) {
  .bvn-layout { width: calc(100% - .6rem); max-width: none; margin: .12rem auto .18rem; }
  .bvn-viewport {
    aspect-ratio: auto;
    height: calc(100dvh - 44px);
    max-height: calc(100dvh - 44px);
    min-height: 260px;
    border-radius: 12px;
    border-width: 1.5px;
  }
  .bvn-canvas { width: 100%; height: 100%; object-fit: cover; }
  .bvn-hud-top { padding: 4px 8px; gap: 6px; }
  .bvn-portrait-frame { width: 32px; height: 32px; }
  .bvn-hud-center { padding: 2px 6px; }
  .bvn-timer { font-size: 16px; }
  .bvn-touch-controls {
    display: flex !important;
    position: absolute;
    inset: auto max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    z-index: 9;
    align-items: flex-end;
    justify-content: space-between;
    pointer-events: none;
  }
  .bvn-touch-dpad, .bvn-touch-actions { pointer-events: auto; }
  .bvn-tbtn {
    width: 44px; height: 44px; font-size: 12.5px;
    background: rgba(16, 11, 28, .62);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    border-color: rgba(246, 200, 102, .52);
  }
  .bvn-touch-actions { grid-template-columns: repeat(3, 44px); gap: 6px; }
  .bvn-title-screen { padding: 8px 14px; overflow-y: auto; align-items: center; }
  .bvn-title-emblem { margin-bottom: 6px; }
  .bvn-title-emblem h1 { font-size: 24px; }
  .bvn-mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bvn-mode-card { padding: 7px 9px; gap: 6px; }
  .bvn-mode-card b { font-size: 18px; }
  .bvn-mode-card strong { font-size: 12.5px; }
  .bvn-mode-card small { font-size: 10px; }
  .bvn-select-screen { padding: 6px 10px; overflow-y: auto; }
  .bvn-select-body { gap: 8px; }
  .bvn-roster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .bvn-roster-tile canvas { width: 34px; height: 34px; }
}

/* ==================== 极简全图海报主菜单覆写（与全站 2048 统一极简风） ==================== */
.bvn-title-screen {
  align-items: end;
  justify-items: center;
  background: #151024;
  padding: clamp(12px, 2.2vw, 22px);
}
.bvn-title-bg {
  filter: saturate(1.06) contrast(1.02);
  object-position: center 20%;
}
.bvn-title-scrim {
  background: linear-gradient(
    180deg,
    rgba(21, 16, 36, .03) 0%,
    rgba(21, 16, 36, .06) 44%,
    rgba(21, 16, 36, .8) 68%,
    rgba(21, 16, 36, .96) 86%,
    #151024 100%
  );
}
.bvn-title-content {
  width: min(32rem, 100%);
  gap: 9px;
  padding: 0;
}
.bvn-seal, .bvn-title-emblem p, .bvn-mode-card small {
  display: none !important;
}
.bvn-title-emblem { width: 100%; text-align: left; padding-inline: 2px; }
.bvn-title-emblem h1 {
  margin: 0;
  font: 900 clamp(24px, 4.4vw, 34px)/1.08 var(--sans);
  text-shadow: 0 3px 16px rgba(0, 0, 0, .78);
}
.bvn-mode-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.bvn-mode-card {
  justify-content: center;
  text-align: center;
  padding: 10px 6px;
  gap: 5px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  box-shadow: none;
}
.bvn-mode-card:hover { background: rgba(255, 255, 255, .16); border-color: rgba(253, 224, 71, .6); }
.bvn-mode-card b { font-size: 16px; }
.bvn-mode-card strong { font-size: 13.5px; font-weight: 820; white-space: nowrap; }
.bvn-mode-card.is-primary {
  grid-column: 1 / -1;
  padding: 13px 16px;
  border-radius: 15px;
  border: 1.5px solid #fde047;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fffef5;
  box-shadow: 0 10px 26px rgba(220, 38, 38, .42), inset 0 1px 0 rgba(255, 255, 255, .36);
}
.bvn-mode-card.is-primary strong { font-size: 16px; font-weight: 880; }
.bvn-mode-card.is-online {
  border-color: rgba(147, 197, 253, .4);
  background: rgba(37, 99, 235, .28);
  color: #eff6ff;
}
.bvn-mode-card.is-dojo { grid-column: auto; }
.bvn-title-footer { gap: 6px; }
.bvn-scroll-chip {
  padding: 4px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: rgba(241, 245, 249, .86);
  font-size: 12px;
  font-weight: 660;
}
.bvn-scroll-chip:hover { background: rgba(255, 255, 255, .15); color: #ffffff; border-color: rgba(253, 224, 71, .5); }
.bvn-scroll-chip.is-shop {
  border-color: rgba(251, 191, 36, .42);
  background: rgba(245, 158, 11, .2);
  color: #fef3c7;
  box-shadow: none;
}

@media (max-width: 780px) and (orientation: portrait) {
  .bvn-layout:has([data-bvn-title]:not([hidden])) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 3.6rem);
  }
  .bvn-viewport:has([data-bvn-title]:not([hidden])) {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
  .bvn-viewport:has([data-bvn-title]:not([hidden])) .bvn-canvas {
    display: none;
  }
  .bvn-title-screen {
    position: relative;
    align-items: end;
    padding: calc(min(100vw - 1.4rem, 30rem) * 0.52) 12px 14px;
    background: #151024;
  }
  .bvn-title-bg {
    inset: 0 0 auto 0;
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: center center;
  }
  .bvn-title-scrim {
    inset: 0 0 auto 0;
    height: auto;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, transparent 0%, transparent 54%, rgba(21, 16, 36, .8) 82%, #151024 100%);
  }
  .bvn-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .bvn-mode-card.is-dojo { grid-column: auto; }
}

@media (orientation: landscape) and (max-height: 540px) {
  .bvn-title-screen { align-items: end; padding: 8px 14px 10px; }
  .bvn-title-emblem { margin-bottom: 0; }
  .bvn-title-emblem h1 { font-size: 22px; }
  .bvn-mode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .bvn-mode-card.is-primary { padding: 8px 14px; }
  .bvn-mode-card.is-dojo { grid-column: auto; }
}
