/*
 * Bubble Cannon 版面样式（选择器全是 .bc-*，不覆盖 .gs-* 组件选择器）。
 *
 * 位置不在这里：每个元素的矩形由 ui.mjs 按 art/SCREEN_SPEC.json 的 zones / rect 现算（screen-rects.mjs），
 * 竖屏 / 横屏按画布（.bc-safe 的 getBoundingClientRect）判，不按视口判。
 * 字号按画布的 1%（--sh 高 / --sw 宽，ui.mjs readOrientation 写入）缩放，不写任何按视口宽度放大的规则。
 * 画在画布上的东西（棋盘、炮台、光柱、虚影、色带、禁用环）不接收指针：命中一律落在舞台 [data-role=stage]。
 */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #0B0722;
  color: var(--gs-ink);
  font-family: var(--bc-font);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bc-root { position: absolute; inset: 0; overflow: hidden; }
.bc-root :focus { outline: none; }
.bc-root :focus-visible { outline: 2px solid var(--bc-cyan); outline-offset: 2px; }
.bc-root .bc-round:focus-visible { outline-offset: -4px; }

.bc-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bc-night);
  background-image: linear-gradient(180deg, var(--bc-night) 0%, var(--bc-deck) 100%);
  background-size: cover;
  background-position: var(--gs-bg-focus);
  transition: background-image var(--gs-slow) var(--gs-ease-out);
}

.bc-safe {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
  --sh: 8.44px;
  --sw: 3.9px;
}

.bc-scene, .bc-overlay-host, .bc-title, .bc-play { position: absolute; inset: 0; }
.bc-overlay-host:empty { display: none; }
/* 分区容器（ui.mjs zoned）：只承载坐标，不接指针；子节点照常接，零特异性让各控件自己的 pointer-events: none 照旧生效 */
.bc-zone { position: absolute; pointer-events: none; }
:where(.bc-zone) > :where(*) { pointer-events: auto; }

.bc-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.bc-icon, .bc-btn-icon, .bc-toggle-icon, .bc-chip-icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  filter: var(--gs-icon-tint-ink);
  pointer-events: none;
}
.bc-btn-icon { margin-inline-end: 0.45em; }
.bc-icon--gold { filter: var(--gs-icon-tint-gold); }
.bc-icon--go, .bc-icon--cyan { filter: var(--gs-icon-tint-accent); }
.bc-icon--pink { filter: var(--gs-icon-tint-danger); }

.bc-round {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--bc-panel-hi), var(--bc-panel));
  border: 1.5px solid var(--bc-glass-edge);
  box-shadow: 0 0 14px rgba(163, 92, 255, 0.45);
}
.bc-round .gs-icon, .bc-round .bc-icon { width: 52%; height: 52%; filter: var(--gs-icon-tint-ink); }

/* ── 加载 / 错误 ── */
.bc-logo { object-fit: contain; filter: drop-shadow(0 0 18px rgba(255, 79, 168, 0.55)); pointer-events: none; }
.bc-wordmark {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 900 calc(var(--sh) * 4.4) / 1 var(--bc-font);
  color: var(--bc-cyan);
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: 0 3px 0 #FF4FA8, 0 0 22px rgba(61, 240, 255, 0.6);
  letter-spacing: 0.01em;
}
.bc-tagline, .bc-loading-text {
  margin: 0;
  text-align: center;
  font: 800 calc(var(--sh) * 2) / 1.2 var(--bc-font);
  color: var(--bc-cream);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.bc-loading-meter.gs-meter { height: 100%; min-height: 12px; border-radius: 999px; border: 1.5px solid var(--bc-cyan); box-shadow: 0 0 12px rgba(61, 240, 255, 0.5); }
.bc-loading-meter .gs-meter__fill {
  background: linear-gradient(90deg, #FF4FA8, #FF8A2A, #FFD23A, #3EE07F, #3DF0FF, #B565FF, #3D9BFF);
}

/* 错误页（screen-17）：art / title / body / retry 的矩形由 place() 按分区现算；背景 mode:none = 渐变 */
.bc-screen--error {
  position: absolute;
  inset: 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bc-night), var(--bc-deck));
}
/* Logo 低头、泡泡瘪了一半：同一张 Logo 降饱和 + 下沉 6 px（SPEC art note） */
.bc-error-art { object-fit: contain; filter: saturate(0.25) brightness(0.85); transform: translateY(6px); pointer-events: none; }
.bc-error-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 calc(var(--sh) * 3) / 1.15 var(--bc-font);
}
.bc-error-body {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  color: var(--gs-ink-soft);
  font: 600 calc(var(--sh) * 1.9) / 1.35 var(--bc-font);
}
.bc-screen--error .gs-btn { display: inline-flex; align-items: center; justify-content: center; }
/* 连 ui.mjs 都没拿到时（runtime/en/index.html 静态兜底）分区由 screen-rects.mjs 现算；
   那份也拿不到时才退回这条居中排版 */
.bc-screen--error.is-static:not([data-placed]) {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
}
.bc-screen--error.is-static:not([data-placed]) .bc-error-art { width: min(60%, 260px); }
.bc-screen--error.is-static:not([data-placed]) .gs-btn { min-width: 70%; }

/* ── 标题 ── */
.bc-chip {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0 1em;
  border-radius: 999px;
  background: var(--bc-glass);
  border: 1.5px solid var(--bc-glass-edge);
  font: 800 calc(var(--sh) * 1.8) / 1 var(--bc-font-num);
  box-sizing: border-box;
  padding: 0 0.7em;
  justify-content: center;
}
.bc-chip-star { width: 1.5em; height: 1.5em; object-fit: contain; pointer-events: none; }
.bc-chip-trophy { width: 1.3em; height: 1.3em; }
.bc-chip-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bc-title .gs-btn--primary, .bc-overlay .gs-btn--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 calc(var(--sh) * 3) / 1 var(--bc-font);
  color: var(--bc-ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 #2B8A22, 0 0 24px rgba(124, 255, 107, 0.45);
}
.bc-title .gs-btn--primary .bc-btn-icon, .bc-overlay .gs-btn--primary .bc-btn-icon { filter: brightness(0); opacity: 0.8; }
.bc-overlay .gs-btn--primary { font-size: calc(var(--sh) * 2.6); }

.bc-mode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) max-content;
  align-items: center;
  gap: 0.7em;
  padding: 0 0.9em 0 0;
  border-radius: 18px;
  border: 1.5px solid var(--bc-glass-edge);
  background: var(--bc-glass);
  color: var(--gs-ink);
  text-align: start;
  font: 700 calc(var(--sh) * 1.55) / 1.2 var(--bc-font);
  overflow: hidden;
  box-shadow: inset 6px 0 0 var(--bc-cyan);
  cursor: pointer;
}
.bc-mode-card--daily { box-shadow: inset 6px 0 0 var(--bc-zone-pink); }
.bc-mode-card--rush { box-shadow: inset 6px 0 0 #FF8A2A; }
.bc-mode-card.is-locked { filter: saturate(0.35); opacity: 0.86; }
.bc-mode-art { width: calc(var(--sh) * 6); height: calc(var(--sh) * 6); max-height: 100%; object-fit: contain; margin-inline-start: 0.5em; pointer-events: none; }
.bc-mode-main { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.bc-mode-name { font: 900 calc(var(--sh) * 2.1) / 1.05 var(--bc-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-mode-desc { color: var(--gs-ink-soft); font-weight: 600; font-size: calc(var(--sh) * 1.35); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-mode-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3em; font: 800 calc(var(--sh) * 1.3) / 1.1 var(--bc-font-num); text-align: end; }
.bc-mode-side > span { white-space: nowrap; }
.bc-card-next { color: var(--bc-cyan); }
.bc-card-lock { display: flex; align-items: center; gap: 0.35em; color: var(--gs-ink-soft); }
.bc-lock { width: 1.6em; height: 1.6em; object-fit: contain; pointer-events: none; }
.is-nudge { animation: bc-nudge 240ms ease-out; }
@keyframes bc-nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.bc-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  border-radius: 999px;
  border: 1.5px solid var(--bc-muted);
  background: var(--bc-panel-hi);
  font: 800 calc(var(--sh) * 2) / 1 var(--bc-font);
  position: relative;
}
.bc-badge-count {
  position: absolute;
  top: -6px;
  right: 10px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--bc-danger);
  font: 900 13px/22px var(--bc-font-num);
  text-align: center;
}
.bc-save-notice.gs-inline-bar {
  box-sizing: border-box;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(120, 72, 10, 0.92);
  border: 1.5px solid #FF8A2A;
  font: 700 calc(var(--sh) * 1.35) / 1.25 var(--bc-font);
}
.bc-save-notice .gs-inline-bar__text { flex: 1; margin: 0; }
.bc-save-notice .gs-inline-bar__icon { filter: var(--gs-icon-tint-gold); }
.bc-save-notice .gs-btn { min-width: 44px; min-height: 44px; }
/* 共用 InlineBar 在视口 ≤ 380 px 时换行、把「关闭」挤到第二行（ui.css「窄屏放不下就换行」）。
   这里的条是按 SCREEN_SPEC 的矩形定高摆的，第二行会掉出条外、压在「开始」键底下——
   2026-10-07 L3_screens 实测 375×812 关闭键整颗被盖住、342×403 压住 Classic 卡 42 px。
   所以本作这条永远单行：图标缩小、关闭键贴右、正文字号随条高收（不低于 10 px，三行放得下）。 */
.bc-save-notice.gs-inline-bar { flex-wrap: nowrap; overflow: hidden; gap: 8px; padding: 1px 6px 1px 10px; border-radius: 14px; container-type: size; }
.bc-save-notice .gs-inline-bar__icon { width: 22px; height: 22px; }
.bc-save-notice .gs-inline-bar__actions { width: auto; flex: 0 0 auto; }
.bc-save-notice .gs-inline-bar__text { min-width: 0; font-size: clamp(10px, calc(var(--sh) * 1.25), 14px); font-size: clamp(9px, 28cqh, 12.5px); line-height: 1.12; }
/* ↑ 第二个 font-size 按条高（cqh）收：三行 × 1.12 × 0.28 h ≈ 0.94 h，site-box 342×403 那条只有 31 px 高也放得下三行 */
.bc-save-notice .gs-btn { padding: 0 10px; }

/* ── 游玩 ── */
.bc-hud { background: linear-gradient(180deg, rgba(11, 7, 34, 0.75), rgba(11, 7, 34, 0)); }
.bc-stage { touch-action: none; overflow: visible; outline: none; }
.bc-board, .bc-hand, .bc-callout, .bc-pod-label, .bc-toast, .bc-legend, .bc-score, .bc-best, .bc-mult, .bc-mode-chip { pointer-events: none; }
.bc-board-frame { position: absolute; pointer-events: none; }
.bc-board { position: absolute; display: block; left: 0; top: 0; width: 100%; height: 100%; }
.bc-hand { position: absolute; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.bc-hand[hidden], .bc-legend[hidden], .bc-pod-label[hidden] { display: none; }

.bc-score {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 calc(var(--sh) * 4) / 1 var(--bc-font-num);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 197, 49, 0.45);
}
.bc-score.is-bump { animation: bc-bump 180ms ease-out; }
@keyframes bc-bump { 40% { transform: scale(1.12); } }
.bc-best {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 calc(var(--sh) * 1.6) / 1 var(--bc-font-num);
  color: var(--gs-ink-soft);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 2;
}
.bc-best.is-steady::after { content: ''; width: 0.5em; height: 0.5em; margin-inline-start: 0.35em; border-radius: 50%; background: var(--bc-cyan); }
.bc-mult {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: 900 calc(var(--sh) * 2.8) / 1 var(--bc-font-num);
  color: var(--bc-ink);
  background: var(--bc-zone-blue);
  box-shadow: 0 0 16px rgba(58, 160, 255, 0.6);
}
.bc-mult[data-band='yellow'] { background: var(--bc-zone-yellow); box-shadow: 0 0 16px rgba(255, 200, 61, 0.65); }
.bc-mult[data-band='pink'] { background: var(--bc-zone-pink); color: #fff; box-shadow: 0 0 18px rgba(255, 79, 168, 0.75); }
.bc-mult.is-flip { animation: bc-flip 320ms ease-out; }
@keyframes bc-flip { 0% { transform: rotateX(90deg) scale(0.9); } 60% { transform: rotateX(0) scale(1.15); } }
.bc-mode-chip {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  border-radius: 999px;
  border: 1.5px solid var(--bc-zone-pink);
  background: rgba(11, 7, 34, 0.7);
  font: 900 calc(var(--sh) * 1.6) / 1 var(--bc-font);
}
.bc-mode-chip--daily { border-color: var(--bc-cyan); }
.bc-mode-chip .bc-chip-icon { filter: var(--gs-icon-tint-gold); }
.bc-pause .gs-icon { width: 46%; height: 46%; }

/* 泡泡舱：不写 :hover / :active 选择器——Chromium 触控校准把「样式受 :active 影响」的元素也当点按目标，
   会把舱外 8 px 间隙里的触点吸到舱上。按下态由 ui.mjs 加 .is-pressed（SCREEN_SPEC swap_pressed_fallback）。 */
.bc-bay {
  touch-action: none;
  z-index: 3;
  border-radius: 50%;
}
.bc-bay-pod, .bc-bay-bubble, .bc-bay-mark, .bc-bay-press-icon { position: absolute; pointer-events: none; object-fit: contain; }
.bc-bay-pod { inset: 0; width: 100%; height: 100%; transform-origin: 50% 100%; }
.bc-bay-bubble { left: 34%; top: 31%; width: 32%; height: 32%; }
.bc-bay-mark { left: 40%; top: 37%; width: 20%; height: 20%; }
.bc-bay-mark[hidden] { display: none; }
.bc-bay-press-icon { display: none; left: 38%; top: 66%; width: 24%; height: 24%; filter: var(--gs-icon-tint-danger); }
.bc-bay.is-pressed .bc-bay-pod { transform: translateY(2px) scaleY(0.94); }
.bc-bay.is-pressed .bc-bay-press-icon { display: block; }
.bc-bay.is-hint::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid var(--bc-zone-pink);
  animation: bc-pulse 600ms ease-out 2;
  pointer-events: none;
}
@keyframes bc-pulse { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.bc-pod-label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 calc(var(--sh) * 1.7) / 1 var(--bc-font);
  color: var(--bc-cream);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.bc-callout {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  margin: 0;
  text-align: center;
  font: 900 calc(var(--sh) * 5) / 1 var(--bc-font-num);
  color: var(--bc-gold);
  -webkit-text-stroke: 2px var(--bc-zone-pink);
  text-shadow: 0 0 22px rgba(255, 197, 49, 0.7);
  opacity: 0;
}
.bc-callout.is-on { animation: bc-callout 900ms ease-out forwards; }
@keyframes bc-callout { 0% { opacity: 0; transform: scale(0.6); } 15% { opacity: 1; transform: scale(1.1); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-12px); } }
:root[data-reduced-motion='on'] .bc-callout.is-on { animation: bc-fade 900ms linear forwards; }
@keyframes bc-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

.bc-toast {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border-radius: 999px;
  border: 1.5px solid var(--bc-gold);
  background: rgba(11, 7, 34, 0.86);
  font: 800 calc(var(--sh) * 1.6) / 1 var(--bc-font);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--gs-normal), transform var(--gs-normal) var(--gs-ease-out);
}
.bc-toast.is-on { opacity: 1; transform: none; }
.bc-toast-star { width: 1.4em; height: 1.4em; object-fit: contain; }

.bc-legend {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 16px;
  background: var(--bc-glass);
  border: 1.5px solid var(--bc-glass-edge);
}
.bc-legend-row { margin: 0; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 12px; font: 900 18px/1 var(--bc-font-num); opacity: 0.55; }
.bc-legend-row--blue { border-left: 4px solid var(--bc-zone-blue); }
.bc-legend-row--yellow { border-left: 4px solid var(--bc-zone-yellow); }
.bc-legend-row--pink { border-left: 4px solid var(--bc-zone-pink); }
.bc-legend-row.is-on { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.bc-legend-bubble { width: 22px; height: 22px; }

/* ── 浮层 ── */
.bc-overlay { position: absolute; inset: 0; z-index: 10; }
.bc-scrim { position: absolute; inset: 0; background: rgba(11, 7, 34, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bc-panel {
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(42, 31, 110, 0.94), rgba(21, 13, 58, 0.96));
  border: 1.5px solid var(--bc-glass-edge);
  box-shadow: 0 0 0 1px rgba(61, 240, 255, 0.18), 0 0 30px rgba(163, 92, 255, 0.45), var(--gs-shadow-card);
}
.bc-overlay-title {
  margin: 0;
  display: flex;
  align-items: center;
  font: 900 calc(var(--sh) * 3.6) / 1 var(--bc-font);
  color: var(--bc-cream);
  text-shadow: 0 2px 0 rgba(163, 92, 255, 0.9), 0 0 18px rgba(163, 92, 255, 0.6);
}
.bc-overlay--pause .bc-overlay-title, .bc-overlay--result .bc-overlay-title { justify-content: center; }
.bc-overlay .gs-btn--secondary, .bc-row-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid var(--bc-muted);
  background: var(--bc-panel-hi);
  font: 800 calc(var(--sh) * 2) / 1 var(--bc-font);
}
.bc-row-btn { justify-content: flex-start; padding: 0 1em; border-radius: 18px; gap: 0.5em; }
.bc-row-btn span { flex: 1; text-align: start; }
.bc-chevron { transform: scaleX(-1); opacity: 0.7; }
.bc-pause-score { margin: 0; display: flex; align-items: center; justify-content: center; gap: 0.6em; font: 800 calc(var(--sh) * 2) / 1 var(--bc-font-num); }
.bc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bc-muted); }

.bc-toggle {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0 1em;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1.5px solid var(--bc-glass-edge);
  background: rgba(11, 7, 34, 0.55);
  color: var(--gs-ink);
  font: 800 calc(var(--sh) * 1.9) / 1.15 var(--bc-font);
  text-align: start;
  cursor: pointer;
}
.bc-toggle-label { flex: 1; min-width: 0; }
.bc-toggle-icon { filter: var(--gs-icon-tint-accent); width: 1.4em; height: 1.4em; }
.bc-switch { position: relative; width: 2.6em; height: 1.4em; flex: none; border-radius: 999px; background: #3A3270; transition: background var(--gs-fast); }
.bc-switch-knob { position: absolute; top: 0.15em; left: 0.15em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--bc-muted); transition: transform var(--gs-fast); }
.bc-toggle.is-on .bc-switch { background: var(--bc-go); }
.bc-toggle.is-on .bc-switch-knob { transform: translateX(1.2em); background: #fff; }
.bc-toggle-state { min-width: 2.2em; text-align: end; color: var(--gs-ink-soft); font-size: 0.85em; }
.bc-toggle--tile {
  flex-direction: column;
  justify-content: center;
  gap: 0.2em;
  padding: 0.25em;
  text-align: center;
  font-size: calc(var(--sh) * 1.15);
  line-height: 1.05;
}
.bc-toggle--tile .bc-toggle-icon { width: 2em; height: 2em; }
.bc-toggle--tile .bc-toggle-label { flex: none; min-height: 2.1em; display: flex; align-items: center; }
.bc-toggle--tile .bc-toggle-state { min-width: 0; text-align: center; }
.bc-toggle--tile .bc-switch { display: none; }
.bc-toggle--tile.is-on { border-color: var(--bc-cyan); box-shadow: 0 0 12px rgba(61, 240, 255, 0.4); }
.bc-toggle--tile:not(.is-on) { opacity: 0.75; }
.bc-shape-sample { display: none; }
.bc-overlay--settings .bc-toggle[data-setting='symbols'] { flex-wrap: wrap; align-content: center; }
.bc-overlay--settings .bc-toggle[data-setting='symbols'] .bc-shape-sample { display: flex; width: 100%; gap: 6px; justify-content: center; }
.bc-sample { position: relative; width: 22px; height: 22px; }
.bc-sample img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bc-sample .bc-sample-mark { inset: 22%; width: 56%; height: 56%; }

.bc-missions-mini, .bc-mission {
  box-sizing: border-box;
  border-radius: 18px;
  background: rgba(11, 7, 34, 0.55);
  border: 1.5px solid var(--bc-glass-edge);
}
.bc-missions-mini { display: flex; flex-direction: column; justify-content: space-evenly; padding: 6px 12px; overflow: hidden; }
.bc-mission--mini .bc-mission-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-mini-title { margin: 0; font: 900 calc(var(--sh) * 1.7) / 1 var(--bc-font); color: var(--bc-cyan); }
.bc-mission { display: flex; align-items: center; gap: 0.7em; padding: 0 0.9em; font: 700 calc(var(--sh) * 1.7) / 1.2 var(--bc-font); }
.bc-mission.is-done { border-color: var(--bc-gold); box-shadow: 0 0 14px rgba(255, 197, 49, 0.4); }
.bc-mission--mini { border: 0; background: none; padding: 0; font-size: calc(var(--sh) * 1.35); gap: 0.5em; }
.bc-mission-star { width: 2em; height: 2em; object-fit: contain; flex: none; }
.bc-mission--mini .bc-mission-star { width: 1.4em; height: 1.4em; }
.bc-mission-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35em; }
.bc-mission-text { margin: 0; }
.bc-mission .gs-meter { height: 8px; }
.bc-mission .gs-meter__fill { background: var(--bc-cyan); }
.bc-mission-count, .bc-mission-done { margin: 0; display: flex; align-items: center; gap: 0.3em; font: 900 1em/1 var(--bc-font-num); white-space: nowrap; }
.bc-mission-done { color: var(--bc-go); }
.bc-refresh { margin: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(11, 7, 34, 0.6); color: var(--bc-cyan); font: 800 calc(var(--sh) * 1.6) / 1 var(--bc-font); }
.bc-stars-summary { display: flex; align-items: center; gap: 0.6em; padding: 0 1em; box-sizing: border-box; font: 800 calc(var(--sh) * 1.8) / 1 var(--bc-font-num); }
.bc-stars-next { color: var(--gs-ink-soft); }
.bc-stars-what { color: var(--bc-cyan); }

.bc-looks-note { margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--gs-ink-soft); font: 700 calc(var(--sh) * 1.6) / 1.2 var(--bc-font); }
.bc-look {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35em;
  padding: 0.5em;
  box-sizing: border-box;
  border-radius: 20px;
  border: 1.5px solid var(--bc-glass-edge);
  background: rgba(11, 7, 34, 0.55);
  color: var(--gs-ink);
  font: 800 calc(var(--sh) * 1.7) / 1.1 var(--bc-font);
  cursor: pointer;
}
.bc-look.is-equipped { border-color: var(--bc-cyan); box-shadow: 0 0 16px rgba(61, 240, 255, 0.5); }
.bc-look.is-locked .bc-look-art { filter: saturate(0.15) brightness(0.7); }
.bc-look-art { flex: 1; min-height: 0; width: 100%; object-fit: contain; pointer-events: none; }
.bc-look-lock { position: absolute; top: 8px; right: 8px; }
.bc-look-pill { display: flex; align-items: center; gap: 0.3em; padding: 0.35em 0.9em; border-radius: 999px; background: var(--bc-go); color: var(--bc-ink); font-size: 0.9em; }
.bc-look-pill .bc-icon { filter: brightness(0); width: 1em; height: 1em; }
.bc-look.is-equipped .bc-look-pill { background: transparent; color: var(--bc-cyan); border: 1.5px solid var(--bc-cyan); }
.bc-look.is-locked .bc-look-pill { background: #2A2460; color: var(--gs-ink-soft); }

.bc-help-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(11, 7, 34, 0.55);
  user-select: text;
  -webkit-user-select: text;
  /* 下沿渐隐：一眼看出这一块能往下滚 */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
  padding-bottom: 28px;
}
.bc-help-section + .bc-help-section { margin-top: 14px; }
.bc-help-h { margin: 0 0 6px; font: 900 calc(var(--sh) * 2) / 1.1 var(--bc-font); color: var(--bc-cyan); }
.bc-help-p { margin: 0 0 8px; font: 600 calc(var(--sh) * 1.65) / 1.4 var(--bc-font); color: var(--gs-ink-soft); }
.bc-faq-q { margin: 8px 0 4px; font: 800 calc(var(--sh) * 1.7) / 1.3 var(--bc-font); }
.bc-help-bands { display: flex; gap: 6px; margin: 4px 0 10px; }
.bc-help-band { flex: 1; padding: 6px 0; border-radius: 10px; text-align: center; font: 900 16px/1 var(--bc-font-num); color: var(--bc-ink); }
.bc-help-band--blue { background: var(--bc-zone-blue); }
.bc-help-band--yellow { background: var(--bc-zone-yellow); }
.bc-help-band--pink { background: var(--bc-zone-pink); color: #fff; }

/* ── 结算 ── */
.bc-panel--result { background: linear-gradient(180deg, rgba(42, 31, 110, 0.95), rgba(21, 13, 58, 0.96)); }
.bc-hero {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 900 calc(var(--sh) * 5.2) / 1 var(--bc-font-num);
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 0 20px rgba(61, 240, 255, 0.5);
}
.bc-hero.is-best { color: var(--bc-gold); text-shadow: 0 3px 0 #B0306E, 0 0 26px rgba(255, 197, 49, 0.75); }
.bc-best-line { display: flex; align-items: center; justify-content: center; gap: 0.5em; font: 800 calc(var(--sh) * 1.8) / 1 var(--bc-font-num); }
.bc-new-best { padding: 0.3em 0.9em; border-radius: 999px; background: var(--bc-zone-pink); color: #fff; }
.bc-to-best { color: var(--bc-cream); }
.bc-steady-mark { color: var(--bc-cyan); font-size: 0.85em; }
.bc-stat {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border-radius: 999px;
  background: rgba(11, 7, 34, 0.55);
  border: 1.5px solid var(--bc-glass-edge);
  font: 800 calc(var(--sh) * 1.45) / 1.1 var(--bc-font-num);
  padding: 0 0.6em;
  box-sizing: border-box;
  text-align: center;
}
.bc-stat .bc-icon { width: 1.3em; height: 1.3em; }
.bc-cause {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1em;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1.5px solid var(--bc-danger);
  background: rgba(11, 7, 34, 0.8);
  font: 800 calc(var(--sh) * 1.35) / 1.15 var(--bc-font);
  text-align: center;
}
.bc-unlocks { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.bc-unlock { margin: 0; display: flex; align-items: center; gap: 0.6em; padding: 0.3em 0.8em; border-radius: 14px; background: rgba(11, 7, 34, 0.55); font: 800 calc(var(--sh) * 1.7) / 1.1 var(--bc-font); }
.bc-unlock-art { width: 2em; height: 2em; object-fit: contain; }
.bc-unlock-icon { width: 1.6em; height: 1.6em; filter: var(--gs-icon-tint-gold); }
.bc-steady { font-size: calc(var(--sh) * 1.5); border-color: var(--bc-cyan); }
.bc-hit-board { display: block; pointer-events: none; }
.bc-icon-pill { flex-direction: column; gap: 2px; padding: 0; border-radius: 22px !important; }
.bc-icon-pill .bc-btn-icon { margin: 0; width: 1.4em; height: 1.4em; }
.bc-icon-pill-text { font-size: 0.6em; }
.bc-confetti { pointer-events: none; object-fit: contain; opacity: 0.9; }

/* 手机横屏（画布是横的）：分区已经由 ui.mjs 换成 SCREEN_SPEC 的 landscape 那一套；
   --sh 取的是画布长边，字号不用另调，只把纵向最挤的几处收一点。 */
.bc-safe[data-orientation='landscape'] .bc-mode-desc { display: none; }
/* 横屏标题：字标矩形只有画布宽的 20%（紧挨 logo 右侧），左对齐、字号收到放得下，不压到 logo */
.bc-safe[data-orientation='landscape'] .bc-wordmark { white-space: nowrap; justify-content: flex-start; font-size: calc(var(--sh) * 2.4); }
.bc-safe[data-orientation='landscape'] .bc-tagline { white-space: nowrap; text-align: start; font-size: calc(var(--sh) * 1.4); }
.bc-safe[data-orientation='landscape'] .bc-mode-name { font-size: calc(var(--sh) * 1.8); }
.bc-safe[data-orientation='landscape'] .bc-mode-art { width: calc(var(--sh) * 4.5); height: calc(var(--sh) * 4.5); }
.bc-safe[data-orientation='landscape'] .bc-hero { font-size: calc(var(--sh) * 4.4); }

@media (orientation: landscape) and (max-height: 560px) {
  .bc-help-p { line-height: 1.3; }
  .bc-overlay-title { letter-spacing: 0.01em; }
}
