/* ============================================================
   blockcraft.css — 风格B：马赛克 + 我的世界
   白昼方块大陆 / 斜面按钮 / 像素纹理
   ============================================================ */
html[data-hl-style="blockcraft"] {
  --bg: #8ec4ee;
  --fg: #26261f;
  --fg-dim: #565648;
  --brand-accent: #5aaa3c;        /* 草地绿 */
  --accent-warm: #f7b32b;         /* 红石灯金 */
  --accent-cool: #3fa9d6;
  --line: rgba(38, 38, 31, .28);
  --line-strong: rgba(38, 38, 31, .55);
  --link: #2f7a1e;
  --link-hover: #48a52e;
  --header-bg: rgba(244, 240, 224, .92);
  --card-bg: #efe9d6;             /* 羊皮纸/木牌色 */
  --card-shadow: 0 6px 0 rgba(38, 38, 31, .18), 0 18px 40px rgba(38, 38, 31, .14);
  --btn-bg: linear-gradient(180deg, #f2f2f2 0%, #d4d4d4 100%);
  --btn-fg: #26261f;
  --ghost-bg: #e3ddc9;
  --radius: 2px;                  /* 方块世界：近直角 */
  --radius-sm: 2px;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sel-bg: rgba(90, 170, 60, .35);
  --footer-bg: #d8d2bc;
  --switch-bg: rgba(244, 240, 224, .92);
  --input-bg: #fbf8ec;
  --art-bg: #dcd5bd;
  --hover-bg: rgba(90, 170, 60, .12);
  --active-bg: rgba(90, 170, 60, .18);
  --band-bg: linear-gradient(180deg, rgba(216, 210, 188, .85), rgba(216, 210, 188, .35));
  --cta-bg: linear-gradient(180deg, #e8e2cc, #dcd6bd);
  --switch-active-fg: #fbf8ec;
  color-scheme: light;
}

/* ---- 天空底 ---- */
html[data-hl-style="blockcraft"] body {
  background: linear-gradient(180deg, #79b6ef 0%, #a8d0f2 34%, #d9ecfa 55%, #8ec4ee 100%);
  background-attachment: fixed;
}
/* 夜晚（引擎切换 body.bc-night） */
html[data-hl-style="blockcraft"] body.bc-night {
  background: linear-gradient(180deg, #0b1026 0%, #141b3d 40%, #273058 70%, #3a4470 100%);
}
html[data-hl-style="blockcraft"] body.bc-night { --fg: #e8e9f2; --fg-dim: #a9adc4; --header-bg: rgba(20, 24, 48, .9); --card-bg: #232947; --line: rgba(200, 210, 255, .2); --line-strong: rgba(200, 210, 255, .45); --input-bg: #1a1f3c; --art-bg: #2b3158; --footer-bg: #191d38; --band-bg: linear-gradient(180deg, rgba(25,29,56,.85), rgba(25,29,56,.4)); --cta-bg: linear-gradient(180deg, #232947, #1a1f3c); --ghost-bg: #2b3158; --btn-bg: linear-gradient(180deg, #ececf0, #c8c8d4); --link: #8fd45e; --link-hover: #b5ec8a; --switch-bg: rgba(20, 24, 48, .92); --card-shadow: 0 6px 0 rgba(0,0,0,.3), 0 18px 40px rgba(0,0,0,.4); }

/* ---- 方块化：直角 + 像素描边 + 硬阴影 ---- */
html[data-hl-style="blockcraft"] .hl-card,
html[data-hl-style="blockcraft"] .hl-product,
html[data-hl-style="blockcraft"] .hl-hw-card,
html[data-hl-style="blockcraft"] .hl-flow-step,
html[data-hl-style="blockcraft"] .hl-band-step,
html[data-hl-style="blockcraft"] .hl-note,
html[data-hl-style="blockcraft"] .hl-prompt,
html[data-hl-style="blockcraft"] .hl-download-card,
html[data-hl-style="blockcraft"] .hl-feature-list li,
html[data-hl-style="blockcraft"] .hl-scenario,
html[data-hl-style="blockcraft"] .hl-cta-inner,
html[data-hl-style="blockcraft"] .hl-docs-section a,
html[data-hl-style="blockcraft"] .hl-table-wrap,
html[data-hl-style="blockcraft"] .hl-code,
html[data-hl-style="blockcraft"] .hl-notice {
  border: 2px solid var(--line-strong);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .14), inset 3px 3px 0 rgba(255, 255, 255, .35);
}
html[data-hl-style="blockcraft"] .hl-card:hover,
html[data-hl-style="blockcraft"] .hl-product:hover,
html[data-hl-style="blockcraft"] .hl-hw-card:hover,
html[data-hl-style="blockcraft"] .hl-scenario:hover {
  transform: translateY(-3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .14), inset 3px 3px 0 rgba(255, 255, 255, .35), 0 8px 0 rgba(38,38,31,.22);
}

/* ---- MC 斜面按钮 ---- */
html[data-hl-style="blockcraft"] .hl-btn {
  border: 2px solid #1e1e18;
  border-radius: 2px;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.25), inset 3px 3px 0 rgba(255,255,255,.45), 0 4px 0 rgba(30,30,24,.35);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  font-weight: 700;
}
html[data-hl-style="blockcraft"] .hl-btn:active {
  box-shadow: inset 3px 3px 0 rgba(0,0,0,.25), inset -3px -3px 0 rgba(255,255,255,.3);
  transform: translateY(3px);
}
html[data-hl-style="blockcraft"] .hl-btn-primary {
  background: linear-gradient(180deg, #8fd45e 0%, #5aaa3c 55%, #4a9331 100%);
  color: #101c08; text-shadow: 0 1px 0 rgba(255,255,255,.3);
}
html[data-hl-style="blockcraft"] .hl-btn-ghost { background: var(--ghost-bg); color: var(--fg); }

/* ---- 标题"像素化"阶梯描边 ---- */
html[data-hl-style="blockcraft"] h1, html[data-hl-style="blockcraft"] .hl-brand-word {
  text-shadow: 2px 2px 0 rgba(38, 38, 31, .18);
}
html[data-hl-style="blockcraft"] .hl-em { color: #2f7a1e; }
html[data-hl-style="blockcraft"] body.bc-night .hl-em { color: #8fd45e; }

/* ---- hero：内容卡靠左，方块大陆在右侧可见 ---- */
html[data-hl-style="blockcraft"] .hl-hero { min-height: min(92vh, 900px); }
html[data-hl-style="blockcraft"] .hl-hero-content {
  max-width: 560px; margin-left: 0; margin-right: auto;
  background: rgba(251, 248, 236, .86);
  border: 2px solid var(--line-strong);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.12), inset 3px 3px 0 rgba(255,255,255,.5), 0 10px 0 rgba(38,38,31,.16);
  padding: 34px 36px;
}
html[data-hl-style="blockcraft"] body.bc-night .hl-hero-content { background: rgba(20, 24, 48, .86); }
html[data-hl-style="blockcraft"] .hl-hero::after { content: none; }
@media (max-width: 900px) {
  html[data-hl-style="blockcraft"] .hl-hero { padding-top: 380px; align-items: flex-start; }
  html[data-hl-style="blockcraft"] .hl-hero-content { max-width: none; }
  html[data-hl-style="blockcraft"] .hl-style-switch { bottom: 70px; }
}

/* ---- 品牌标 ---- */
html[data-hl-style="blockcraft"] .hl-brand-mark {
  border: 2px solid #1e1e18; border-radius: 2px;
  background: linear-gradient(180deg, #8fd45e, #5aaa3c);
  color: #101c08;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.2), inset 3px 3px 0 rgba(255,255,255,.4);
  text-shadow: 0 1px 0 rgba(255,255,255,.3);
}
html[data-hl-style="blockcraft"] .hl-brand-tek { color: #2f7a1e; }
html[data-hl-style="blockcraft"] body.bc-night .hl-brand-tek { color: #8fd45e; }

/* ---- 导航 ---- */
html[data-hl-style="blockcraft"] .hl-nav-link { border-radius: 2px; }
html[data-hl-style="blockcraft"] .hl-nav-link.is-active {
  background: #5aaa3c; color: #fbf8ec;
  box-shadow: inset -2px -2px 0 rgba(0,0,0,.2), inset 2px 2px 0 rgba(255,255,255,.3);
}

/* ---- 稀有度（MC 物品色） ---- */
html[data-hl-style="blockcraft"] [data-rarity="green"] .hl-icon { color: #37b24d; }
html[data-hl-style="blockcraft"] [data-rarity="red"] .hl-icon { color: #e03131; }
html[data-hl-style="blockcraft"] [data-rarity="gold"] .hl-icon { color: #f08c00; }
html[data-hl-style="blockcraft"] [data-rarity="cyan"] .hl-icon { color: #1c7ed6; }
html[data-hl-style="blockcraft"] [data-rarity="diamond"] .hl-icon { color: #15aabf; }

/* ---- 快捷栏（引擎注入） ---- */
.bc-hotbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 85; display: flex; gap: 3px; padding: 3px;
  background: rgba(20, 20, 16, .78); border: 2px solid #0e0e0b;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 6px 20px rgba(0,0,0,.35);
}
.bc-slot {
  width: 46px; height: 46px; display: grid; place-items: center; position: relative;
  background: rgba(139, 139, 139, .25); border: 2px solid rgba(20,20,16,.9);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,.35), inset -2px -2px 0 rgba(255,255,255,.08);
  color: #f4f0e0; font-size: 11px; text-align: center; line-height: 1.05;
  transition: transform .12s;
}
.bc-slot small { position: absolute; top: 1px; left: 3px; font-size: 9px; color: #ffd27a; font-family: var(--font-mono); }
.bc-slot:hover { transform: translateY(-4px); }
.bc-slot.is-active { outline: 2px solid #fbf8ec; outline-offset: 1px; }
.bc-slot svg { width: 24px; height: 24px; }

/* ---- 成就 toast（MC 风格） ---- */
.bc-achievement {
  position: fixed; top: 76px; right: 18px; z-index: 95;
  display: flex; gap: 12px; align-items: center; min-width: 260px;
  background: rgba(24, 24, 20, .92); color: #f4f0e0;
  border: 2px solid #0e0e0b; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.4);
  padding: 12px 16px; transform: translateX(120%); transition: transform .45s cubic-bezier(.2,.9,.25,1.2);
}
.bc-achievement.is-show { transform: none; }
.bc-achievement .bc-ach-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: #3b2f1d; border: 2px solid #0e0e0b; }
.bc-achievement .bc-ach-icon svg { width: 22px; height: 22px; color: #ffd27a; }
.bc-achievement strong { display: block; color: #ffd27a; font-size: 12px; letter-spacing: .06em; }
.bc-achievement span { font-size: 13px; }

/* ---- 稀有度标签色 ---- */
html[data-hl-style="blockcraft"] .hl-tags span { border-width: 2px; background: rgba(255,255,255,.35); }
html[data-hl-style="blockcraft"] body.bc-night .hl-tags span { background: rgba(255,255,255,.06); }

/* ---- 页脚 ---- */
html[data-hl-style="blockcraft"] .hl-footer { border-top-width: 2px; }

/* ---- 马赛克揭示动画 ---- */
.bc-mosaic { position: relative; overflow: hidden; }
.bc-mosaic > canvas.bc-mosaic-veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; image-rendering: pixelated; }

@media (max-width: 720px) {
  .bc-hotbar { bottom: 8px; max-width: calc(100vw - 16px); overflow-x: auto; }
  .bc-slot { width: 40px; height: 40px; flex: none; }
  html[data-hl-style="blockcraft"] .hl-hero-content { padding: 24px 22px; }
  .bc-achievement { right: 10px; min-width: 0; max-width: calc(100vw - 20px); }
}

/* ================= v2：马赛克揭示 ================= */
.bc-veil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  image-rendering: pixelated;
}

/* ================= v2：红石电路（平台页） ================= */
html[data-hl-style="photon"] .hl-circuit-section { display: none; }
.bc-circuit-head { margin-bottom: 16px; }
.bc-circuit-head p { color: var(--fg-dim); max-width: 44em; }
.bc-circuit-stage {
  position: relative; border: 2px solid var(--line-strong);
  background: rgba(251, 248, 236, .5);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.1), inset 3px 3px 0 rgba(255,255,255,.4);
  padding: 10px 10px 64px;
}
html[data-hl-style="blockcraft"] body.bc-night .bc-circuit-stage { background: rgba(20, 24, 48, .5); }
.bc-circuit-stage canvas { width: 100%; display: block; image-rendering: pixelated; }
.bc-lever-btn { position: absolute; left: 14px; bottom: 12px; }

/* ================= v2：传送门 CTA ================= */
html[data-hl-style="blockcraft"] .hl-cta-inner {
  position: relative; text-align: left;
  display: flex; align-items: center; gap: 30px;
  padding-left: 190px; min-height: 200px;
}
html[data-hl-style="blockcraft"] .hl-cta-inner h2 { margin-top: 0; }
html[data-hl-style="blockcraft"] .hl-cta-inner .hl-btn-row { justify-content: flex-start; }
.bc-portal-wrap { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); text-align: center; }
.bc-portal {
  width: 110px; height: 165px; image-rendering: pixelated; cursor: pointer;
  border: 2px solid #0e0e0b; box-shadow: 0 0 24px rgba(150, 80, 255, .45), 0 8px 0 rgba(20,10,35,.4);
  transition: transform .2s;
}
.bc-portal:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(150, 80, 255, .7), 0 8px 0 rgba(20,10,35,.4); }
.bc-portal-label { margin-top: 8px; font-size: 11px; color: var(--fg-dim); }
@media (max-width: 720px) {
  html[data-hl-style="blockcraft"] .hl-cta-inner { padding: 24px; padding-top: 190px; display: block; text-align: center; }
  html[data-hl-style="blockcraft"] .hl-cta-inner .hl-btn-row { justify-content: center; }
  .bc-portal-wrap { left: 50%; top: 16px; transform: translateX(-50%); }
  .bc-portal { width: 90px; height: 135px; }
}

/* ================= v2：小鸡彩蛋 ================= */
.bc-chicken {
  position: fixed; z-index: 88; width: 34px; height: 34px;
  image-rendering: pixelated; cursor: pointer; pointer-events: auto;
}

/* ================= v2：F3 调试屏 ================= */
.bc-f3 {
  position: fixed; left: 10px; top: 70px; z-index: 120;
  background: rgba(16, 16, 14, .75); color: #e8e8e0;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
  padding: 10px 12px; white-space: pre; pointer-events: none;
  border: 1px solid rgba(255,255,255,.15);
}

/* ================= v3：页脚草地封边 ================= */
html[data-hl-style="blockcraft"] .hl-footer { border-top: none; }
.bc-footer-strip {
  height: 18px; image-rendering: pixelated;
  background-size: 16px 16px; background-repeat: repeat-x;
  border-top: 2px solid #3d5a26; border-bottom: 2px solid rgba(30,30,24,.4);
}

/* ================= v3：快捷栏 MC 工具提示 ================= */
.bc-slot { position: relative; }
.bc-slot::after {
  content: attr(data-label);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(.9);
  background: rgba(16, 10, 24, .94); color: #f4f0e0;
  border: 2px solid #2a1650; padding: 3px 9px; font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s;
}
.bc-slot:hover::after, .bc-slot:focus-visible::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* ================= v3：动物尺寸微调 ================= */
.bc-chicken[data-kind="pig"], .bc-chicken[data-kind="sheep"] { width: 40px; }

/* ================= v3：产品物品纹理图标 ================= */
.bc-item-icon { image-rendering: pixelated; width: 32px; height: 32px; }
.hl-product-hero-icon .bc-item-icon { width: 88px; height: 88px; }
html[data-hl-style="blockcraft"] .hl-product-icon, html[data-hl-style="blockcraft"] .hl-product-hero-icon {
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.14), inset 3px 3px 0 rgba(255,255,255,.35);
  border: 2px solid var(--line-strong);
}

/* ================= v3：生态域色调 ================= */
html[data-hl-style="blockcraft"] [data-biome="village"]:hover { border-color: #c8860a; }
html[data-hl-style="blockcraft"] [data-biome="frost"]:hover { border-color: #3fa9d6; }
html[data-hl-style="blockcraft"] [data-biome="redstone"]:hover { border-color: #d43a2a; }

/* ============================================================
   v4：工作台合成 / NPC 气泡 / 像素外链 / 品牌徽章
   ============================================================ */
html[data-hl-style="blockcraft"] [data-biome="saturn"]:hover { border-color: #8a63d2; }
html[data-hl-style="blockcraft"] .hl-brand-img { image-rendering: pixelated; border: 2px solid #1e1e18; border-radius: 2px; }
html[data-hl-style="blockcraft"] .hl-icon-btn { border: 2px solid #1e1e18; border-radius: 2px; }
html[data-hl-style="blockcraft"] .hl-status-badge { border-radius: 2px; border-width: 2px; color: #8a5a00; border-color: #b06e00; }
html[data-hl-style="blockcraft"] body.bc-night .hl-status-badge { color: #ffd27a; border-color: #ffd27a; }
html[data-hl-style="blockcraft"] .hl-demo-figure img { image-rendering: pixelated; border: 2px solid #1e1e18; }
html[data-hl-style="blockcraft"] .hl-brand-figure img { image-rendering: auto; border: 2px solid #1e1e18; border-radius: 2px; background: #fbf8ec; padding: 8px; }

/* 像素外链按钮 */
html[data-hl-style="blockcraft"] .hl-ext-btn { border: 2px solid #1e1e18; border-radius: 2px; background: linear-gradient(180deg, #ffe9b0, #f7cf7a); color: #26261f; box-shadow: inset -2px -2px 0 rgba(0,0,0,.18), inset 2px 2px 0 rgba(255,255,255,.5), 0 4px 0 rgba(30,30,24,.3); }
html[data-hl-style="blockcraft"] .hl-ext-btn:hover { color: #26261f; transform: translateY(-2px); }
html[data-hl-style="blockcraft"] .hl-ext-btn:active { transform: translateY(2px); box-shadow: inset 2px 2px 0 rgba(0,0,0,.18); }
html[data-hl-style="blockcraft"] .hl-ext-tag { color: #8a5a00; }
html[data-hl-style="blockcraft"] body.bc-night .hl-ext-btn { background: linear-gradient(180deg, #3a4470, #2b3158); color: #f4f0e0; }
html[data-hl-style="blockcraft"] body.bc-night .hl-ext-tag { color: #ffd27a; }
html[data-hl-style="blockcraft"] .hl-main-link { border: 2px solid #1e1e18; border-radius: 2px; background: linear-gradient(180deg, #ffe9b0, #f7cf7a); color: #26261f; }
html[data-hl-style="blockcraft"] .hl-main-link:hover { color: #26261f; }
html[data-hl-style="blockcraft"] .hl-main-link-arrow { color: #8a5a00; }
html[data-hl-style="blockcraft"] body.bc-night .hl-main-link { background: linear-gradient(180deg, #3a4470, #2b3158); color: #f4f0e0; }

/* 工作台合成 */
.bc-craft { border: 2px solid var(--line-strong); background: var(--card-bg); box-shadow: inset -3px -3px 0 rgba(0,0,0,.14), inset 3px 3px 0 rgba(255,255,255,.35); padding: 22px; }
.bc-craft-materials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bc-mat { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid #1e1e18; border-radius: 2px; background: var(--ghost-bg); color: var(--fg); font-size: 12px; font-weight: 700; box-shadow: inset -2px -2px 0 rgba(0,0,0,.2), inset 2px 2px 0 rgba(255,255,255,.35); transition: transform .12s; }
.bc-mat:hover { transform: translateY(-2px); }
.bc-mat:active { transform: translateY(1px); }
.bc-mat-icon { font-size: 15px; }
.bc-mat-count { font-family: var(--font-mono); color: var(--link); font-size: 11px; }
.bc-craft-bench { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border: 2px solid var(--line-strong); background: var(--art-bg); margin-bottom: 14px; }
.bc-bench-slots { display: flex; gap: 8px; }
.bc-slot-craft { width: 78px; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line-strong); border-radius: 2px; background: var(--input-bg); color: var(--fg-dim); font-size: 11px; font-weight: 700; padding: 4px; text-align: center; }
.bc-slot-craft.is-filled { border-style: solid; border-color: #1e1e18; background: var(--ghost-bg); color: var(--fg); box-shadow: inset -2px -2px 0 rgba(0,0,0,.18), inset 2px 2px 0 rgba(255,255,255,.35); }
.bc-slot-icon { font-size: 22px; }
.bc-slot-name { font-size: 10px; line-height: 1.2; }
.bc-bench-arrow { font-size: 24px; color: var(--fg-dim); }
.bc-bench-result { position: relative; width: 104px; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px solid #1e1e18; border-radius: 2px; background: linear-gradient(180deg, #8fd45e, #5aaa3c); color: #101c08; font-size: 11px; font-weight: 800; }
.bc-result-icon { font-size: 22px; }
.bc-craft-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bc-recipe-btn, .bc-recipe-clear { padding: 7px 12px; border: 2px solid #1e1e18; border-radius: 2px; background: var(--ghost-bg); color: var(--fg); font-size: 12px; font-weight: 700; box-shadow: 0 3px 0 rgba(30,30,24,.3); }
.bc-recipe-btn:active, .bc-recipe-clear:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(30,30,24,.3); }
.bc-recipe-clear { background: #e8c9c0; }
.bc-craft-output { border: 2px solid var(--line-strong); background: var(--input-bg); padding: 18px; }
.bc-craft-output h3 { margin: 0 0 8px; color: var(--link); }
.bc-craft-output p { color: var(--fg-dim); font-size: .92rem; margin: 0 0 14px; }
.bc-sparkle { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; pointer-events: none; animation: bcSpark .7s ease-out forwards; }
@keyframes bcSpark { 0% { transform: translate(-50%, -50%); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bc-sparkle { animation: none; display: none; } }

/* NPC 气泡 */
.bc-npc-bubble { position: absolute; z-index: 6; right: 18px; top: 18px; width: min(320px, calc(100% - 36px)); border: 2px solid #1e1e18; border-radius: 2px; background: rgba(251,248,236,.97); color: #26261f; box-shadow: 0 8px 0 rgba(38,38,31,.2), 0 16px 40px rgba(0,0,0,.25); padding: 16px 18px; opacity: 0; transform: translateY(-8px) scale(.96); pointer-events: none; transition: opacity .22s, transform .22s; }
.bc-npc-bubble.is-open { opacity: 1; transform: none; pointer-events: auto; }
html[data-hl-style="blockcraft"] body.bc-night .bc-npc-bubble { background: rgba(28,32,60,.97); color: #e8e9f2; border-color: #0e0e0b; }
.bc-npc-close { position: absolute; right: 8px; top: 8px; background: none; border: none; color: inherit; opacity: .6; font-size: 14px; }
.bc-npc-close:hover { opacity: 1; }
.bc-npc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-right: 20px; }
.bc-npc-avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.bc-npc-avatar canvas, .bc-npc-avatar img { width: 32px; height: 32px; image-rendering: pixelated; }
.bc-npc-name { font-size: 13px; color: #2f7a1e; }
html[data-hl-style="blockcraft"] body.bc-night .bc-npc-name { color: #8fd45e; }
.bc-npc-quote { font-size: 12.5px; line-height: 1.65; margin: 0 0 12px; }

@media (max-width: 720px) {
  .bc-craft { padding: 16px; }
  .bc-slot-craft { width: 64px; height: 64px; }
  .bc-bench-result { width: 88px; height: 64px; }
  .bc-npc-bubble { top: 12px; right: 12px; }
}
