/* B 精修 visual direction. Artwork remains independent candidate assets;
   decorative elements never replace the actual controls. */
:root{--b10-red:#d71d38;--b10-dark:#0b080d;--b10-ivory:#fff4ef;--b10-muted:#e4c9c4}
.hero,.red2-scene,.world,.companions,.feature{background-color:var(--b10-dark)}
.hero h2,.red2-stage h2,.red2-origin h2,.red2-ensemble h2,.world-head h2,.companion-head h2,.feature-title h2{
  font-family:'Noto Serif SC','Songti SC','SimSun',serif;
  color:var(--b10-ivory);font-weight:700;letter-spacing:-.035em;
}
.hero h2 span,.red2-origin h2 span{color:var(--b10-ivory)}
/* B's approved artwork uses a prominent title and a smaller second line.
   Keep the existing font family and copy; B2 retains its separate layout. */
html:not([data-b9-composition="b2"]) .hero h2 span{
  display:block;margin-top:.55em;font-size:clamp(17px,2vw,27px);line-height:1.45;
  letter-spacing:.09em;
}
html:not([data-b9-composition="b2"]) .hero h2 br{display:none}
.hero-tag,.red2-overline,.overline{color:#f4b2a7}
.hero-actions .button-solid{background:#9e1228;border-color:#ff5660;color:#fff;box-shadow:0 0 23px #e4233b35}
.hero-actions .button-ghost{background:#100b10c9;border-color:#d6a59d;box-shadow:none}
.hero-actions .button:hover{filter:brightness(1.14)}
.hero-actions .button:focus-visible{outline:3px solid #ffe3cd;outline-offset:4px}
.red2-stage__controls button[aria-pressed="true"],.world-tabs button.active,.feature-tabs button.active{
  border-color:#ef5e61;box-shadow:0 0 18px #d7233b42;
}
.red2-stage__copy,.red2-origin__copy,.red2-ensemble__copy{isolation:isolate}
.world-stage,.companion-stage,.feature-panel{border-color:#d35e5b55}

/* B 精修：从用户选定的群像稿制作无字候选，让真实 HTML 负责导航与按钮。
   B2 仍使用独立人物层，便于对照；此图仅为候选，不确立角色或宠物身份。 */
html.b10-group-ready:not([data-b9-composition="b2"]) .hero-bg::before{
  background-image:url('../../../docs/reborn2k-studio/05-website/b-polished-hero-v10/b-polished-hero-clean-candidate-v1.png');
  background-image:image-set(url('assets/optimized/b-polished-hero.webp') type('image/webp') 1x,url('../../../docs/reborn2k-studio/05-website/b-polished-hero-v10/b-polished-hero-clean-candidate-v1.png') type('image/png') 1x);
  background-size:cover;background-position:66% center;mask-image:none;animation:none!important;
}
html.b10-group-ready:not([data-b9-composition="b2"]) .hero-portrait-v3{display:none}
html.b10-group-ready:not([data-b9-composition="b2"]) .hero-grid::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at var(--b10-x,50%) var(--b10-y,50%),#e935423d 0,transparent 23%);
  opacity:var(--b10-pointer-opacity,0);
}

@media(min-width:801px){
  /* B 精修 uses an open, left-aligned typographic field against the portrait. */
  html:not([data-b9-composition="b2"]) .hero-content{
    width:min(55%,800px);padding-left:7%;
  }
  html:not([data-b9-composition="b2"]) .hero h2{
    font-size:clamp(52px,6.7vw,100px);line-height:1.06;text-shadow:0 5px 28px #000b;
  }
  html:not([data-b9-composition="b2"]) .hero-content::before{
    content:"";position:absolute;z-index:-1;pointer-events:none;
    width:clamp(150px,19vw,280px);aspect-ratio:1;border-radius:50%;
    left:16%;top:18%;border:1px solid #d82a3a66;
    box-shadow:0 0 24px #cc1b3318,inset 0 0 20px #cc1b3312;
  }
}
@media(max-width:800px){
  html.b10-group-ready:not([data-b9-composition="b2"]) .hero-bg::before{background-position:68% center}
  .hero h2{font-size:clamp(31px,8vw,48px);line-height:1.12}
  html:not([data-b9-composition="b2"]) .hero h2 span{font-size:clamp(16px,4.5vw,20px);line-height:1.5}
  .hero-content p{color:#f2ddd7}
  .red2-stage__controls button{min-height:44px}
}

/* If the optimized preloader fails, display the original, even on WebP-capable browsers. */
html.b10-group-ready.b10-original-only:not([data-b9-composition="b2"]) .hero-bg::before { background-image:url("../../../docs/reborn2k-studio/05-website/b-polished-hero-v10/b-polished-hero-clean-candidate-v1.png"); }
