:root {
  --ba-cyan: #128cfa;
  --ba-cyan-light: #38bdf8;
  --ba-cyan-soft: #e6f4ff;
  --ba-yellow: #ffe600;
  --ba-pink: #ff5e8e;
  --ba-navy: #162235;
  --ba-slate: #475569;
  --ba-muted: #94a3b8;
  --ba-glass: rgba(255, 255, 255, 0.91);
  --skew: -11deg;
  --unskew: 11deg;
  --header-h: 78px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Noto Sans SC', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ba-navy);
  background: #0d1829;
}

.mono {
  font-family: 'JetBrains Mono', 'Montserrat', monospace;
}

/* Sleek BA Sky-Blue Thin Scrollbars for Inner Lists */
.char-avatar-list,
.char-horiz-roster,
.news-items,
.gallery-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 140, 250, 0.42) transparent;
}
.char-avatar-list::-webkit-scrollbar,
.char-horiz-roster::-webkit-scrollbar,
.news-items::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.char-avatar-list::-webkit-scrollbar-thumb,
.char-horiz-roster::-webkit-scrollbar-thumb,
.news-items::-webkit-scrollbar-thumb,
.gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(18, 140, 250, 0.42);
  border-radius: 99px;
}

.en-italic {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* =========================================================
   BLUE ARCHIVE DIAGONAL SLASH TRANSITION WIPER
   ========================================================= */
.ba-slash-wipe {
  position: fixed;
  inset: 0;
  z-index: 260;
  pointer-events: none;
  overflow: hidden;
}

.slash-band {
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 55%;
  opacity: 0;
  transform: skewX(-18deg) translateX(-220%);
}

.slash-band.cyan {
  background: linear-gradient(90deg, rgba(18, 140, 250, 0.92), rgba(56, 189, 248, 0.88));
}

.slash-band.yellow {
  width: 18%;
  background: rgba(255, 230, 0, 0.92);
}

.ba-slash-wipe.run .slash-band.cyan {
  animation: slashSweep 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ba-slash-wipe.run .slash-band.yellow {
  animation: slashSweep 0.52s 0.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slashSweep {
  0% { transform: skewX(-18deg) translateX(-180%); opacity: 0.95; }
  55% { opacity: 0.95; }
  100% { transform: skewX(-18deg) translateX(360%); opacity: 0; }
}

/* =========================================================
   TOP FIXED HUD NAVIGATION (BOLDER BA PROPORTIONS)
   ========================================================= */
.ba-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 150;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 2px solid rgba(18, 140, 250, 0.26);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.09);
}

.ba-header-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--ba-cyan) 0%, #00d2ff 45%, var(--ba-yellow) 78%, var(--ba-pink) 100%);
}

.ba-header-inner {
  max-width: 1820px;
  width: 95vw;
  height: calc(var(--header-h) - 4px);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-box {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 39px;
  width: auto;
}

.ba-nav {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-shrink: 0;
}

.ba-nav-item {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ba-navy);
  padding: 0.44rem 1.18rem;
  transform: skewX(var(--skew));
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}

.ba-nav-item > span { transform: skewX(var(--unskew)); }

.ba-nav-item .en-sub {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--ba-cyan);
  line-height: 1;
}

.ba-nav-item .cn-main {
  font-size: 0.98rem;
  font-weight: 900;
  margin-top: 3px;
}

.ba-nav-item:hover,
.ba-nav-item.active {
  background: var(--ba-cyan);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ba-navy);
}

.ba-nav-item:hover .en-sub,
.ba-nav-item.active .en-sub { color: var(--ba-yellow); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.sfx-pill {
  cursor: pointer;
  border: 1.5px solid rgba(18, 140, 250, 0.35);
  background: #f0f8ff;
  color: var(--ba-cyan);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.38rem 0.8rem;
  transform: skewX(var(--skew));
}

.sfx-pill span { display: inline-block; transform: skewX(var(--unskew)); }
.sfx-pill.on { background: var(--ba-cyan-soft); border-color: var(--ba-cyan); }

.lang-bar {
  display: flex;
  background: #eaf3fc;
  padding: 3px;
  transform: skewX(var(--skew));
  border: 1px solid rgba(18, 140, 250, 0.25);
}

.lang-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ba-slate);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
}

.lang-btn span { display: inline-block; transform: skewX(var(--unskew)); }
.lang-btn.active { background: var(--ba-cyan); color: #fff; }

/* LEFT COMPACT PAGER RAIL & RIGHT SNS DOCK */
.ba-stage-rail {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.52rem;
}

.rail-dot {
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.rail-dot em {
  font-style: normal;
  display: none;
  position: absolute;
  left: 48px;
  background: var(--ba-navy);
  color: var(--ba-yellow);
  padding: 0.26rem 0.65rem;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 3px 3px 0 var(--ba-cyan);
}

.rail-dot:hover em { display: block; }

.rail-dot.active {
  background: var(--ba-cyan);
  border-color: var(--ba-yellow);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ba-navy);
  transform: translateX(3px);
}

.sns-floating-dock {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.sns-dock-item {
  width: 42px;
  height: 42px;
  background: rgba(22, 34, 53, 0.84);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.sns-dock-item:hover {
  background: var(--ba-cyan);
  border-color: var(--ba-yellow);
  transform: translateX(-3px);
}

/* =========================================================
   FULL-SCREEN STAGE DECK & EXPANSIVE BA PROPORTIONS
   ========================================================= */
.ba-stage-deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #030c26;
}

.ba-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-top: var(--header-h);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.36s ease, transform 0.42s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.ba-view:not(.active) {
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.ba-view.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  z-index: 10;
}

.view-scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
  z-index: 0;
}

.ba-view.active .view-scene-bg { transform: scale(1.03); }

.view-scene-tint.light {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(rgba(18, 140, 250, 0.13) 1.2px, transparent 1.2px),
    linear-gradient(180deg, rgba(240, 248, 255, 0.78) 0%, rgba(232, 244, 255, 0.88) 100%);
  background-size: 28px 28px, 100% 100%;
  backdrop-filter: blur(3px);
}

.view-scene-tint.char-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(240, 248, 255, 0.76) 0%, rgba(240, 248, 255, 0.28) 46%, rgba(240, 248, 255, 0.78) 100%);
}

/* WIDE FLUID INNER STAGE: Fills 92vw up to 1760px! */
.view-inner {
  position: relative;
  z-index: 3;
  max-width: 1760px;
  width: 92vw;
  height: calc(100vh - var(--header-h));
  margin: 0 auto;
  padding: 1.5rem 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ba-sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.1rem, 2vh, 1.8rem);
  padding-bottom: 0.8rem;
  border-bottom: 2.5px solid rgba(18, 140, 250, 0.28);
}

.sec-code {
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  font-weight: 800;
  color: var(--ba-cyan);
  letter-spacing: 0.12em;
}

.ba-sec-en {
  font-size: clamp(2.8rem, 4.4vw, 4.3rem);
  line-height: 0.98;
  color: var(--ba-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.ba-sec-en::before {
  content: "";
  width: 14px;
  height: 0.78em;
  background: var(--ba-cyan);
  transform: skewX(var(--skew));
  box-shadow: 5px 0 0 var(--ba-yellow);
}

.ba-sec-cn {
  font-size: clamp(1rem, 1.18vw, 1.24rem);
  font-weight: 900;
  color: var(--ba-cyan);
  margin-top: 0.3rem;
}

.ba-btn-yellow {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  background: var(--ba-yellow);
  color: var(--ba-navy);
  font-weight: 900;
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  border: 2px solid var(--ba-navy);
  transform: skewX(var(--skew));
  box-shadow: 5px 5px 0 var(--ba-cyan);
  transition: all 0.18s ease;
}

.ba-btn-yellow span { display: inline-block; transform: skewX(var(--unskew)); }
.ba-btn-yellow:hover { transform: skewX(var(--skew)) translate(-2px, -2px); background: #fff34d; }

/* =========================================================
   VIEW 01: TOP — PURE UNOBSTRUCTED VISUAL CAROUSEL
   ========================================================= */
#view-top { padding-top: 0; }
.kv-slides { position: absolute; top: var(--header-h); right: 0; bottom: 0; left: 0; overflow: hidden; }
.kv-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.95s ease; }
.kv-slide.active { opacity: 1; }

.kv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transform: scale(1.015);
  animation: kvPan 16s ease-in-out infinite alternate;
}

@keyframes kvPan {
  0% { transform: scale(1.015) translate(0, 0); }
  100% { transform: scale(1.065) translate(-0.7%, -0.5%); }
}

.kv-clean-vignette {
  position: absolute;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(ellipse 60% 42% at 14% 92%, rgba(8, 24, 52, 0.52) 0%, rgba(8, 24, 52, 0.22) 52%, transparent 82%),
    linear-gradient(180deg, rgba(10, 18, 32, 0.10) 0%, transparent 20%, transparent 72%, rgba(10, 22, 44, 0.56) 100%);
  pointer-events: none;
}

.kv-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kv-dot-particle { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(56, 189, 248, 0.2)); animation: floatUp linear infinite; }

@keyframes floatUp {
  0% { transform: translateY(105vh) scale(0.6); opacity: 0; }
  20% { opacity: 0.8; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

.kv-arrow {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  z-index: 15;
  cursor: pointer;
  width: 50px;
  height: 76px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.kv-arrow.left { left: 72px; }
.kv-arrow.right { right: 74px; }
.kv-arrow:hover { background: var(--ba-cyan); border-color: var(--ba-yellow); }

.kv-minimal-bar {
  position: absolute;
  left: 74px;
  right: 74px;
  bottom: 30px;
  z-index: 15;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.kv-art-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-left: 5px solid var(--ba-yellow);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  color: #fff;
}

.kv-mini-tag { background: var(--ba-cyan); color: #fff; font-size: 0.76rem; font-weight: 800; padding: 0.2rem 0.65rem; transform: skewX(var(--skew)); }
.kv-mini-caption { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }

.kv-thumbs-dock { display: flex; gap: 0.6rem; }

.kv-thumb-btn {
  cursor: pointer;
  width: 132px;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  transform: skewX(-9deg);
  overflow: hidden;
  position: relative;
  background: #000;
  padding: 0;
  transition: all 0.22s ease;
}

.kv-thumb-btn img { width: 118%; height: 100%; margin-left: -9%; object-fit: cover; transform: skewX(9deg); opacity: 0.65; }
.kv-thumb-btn.active { border-color: var(--ba-yellow); box-shadow: 0 0 0 2px var(--ba-cyan), 5px 5px 0 rgba(0, 0, 0, 0.45); transform: skewX(-9deg) translateY(-5px); }
.kv-thumb-btn.active img { opacity: 1; }

/* =========================================================
   VIEW 02: NEWS (EXPANSIVE 58VH POSTER & TERMINAL)
   ========================================================= */
.news-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.98fr;
  gap: clamp(1.6rem, 2.4vw, 2.6rem);
  align-items: stretch;
}

.news-banner-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2.5px solid rgba(18, 140, 250, 0.32);
  box-shadow: 0 22px 48px rgba(18, 140, 250, 0.16);
  background: var(--ba-navy);
  height: clamp(440px, 58vh, 650px);
  cursor: pointer;
}

.news-banner-img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 0.4s ease; }
.news-banner-card:hover .news-banner-img { transform: scale(1.03); }

.news-banner-portrait {
  position: absolute;
  right: 4%;
  top: 4%;
  width: 46%;
  height: 85%;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 4px 12px #14274799);
  pointer-events: none;
}

.news-banner-card.has-news-portrait .news-banner-img { filter: brightness(.8); }

.news-banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.8rem 1.8rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.93));
  color: #fff;
}

#news-banner-title {
  font-size: clamp(1.22rem, 1.55vw, 1.62rem) !important;
  line-height: 1.38;
}

.news-banner-dots { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
.news-dot { width: 30px; height: 7px; background: rgba(255, 255, 255, 0.38); border: none; cursor: pointer; transform: skewX(var(--skew)); }
.news-dot.active { width: 52px; background: var(--ba-yellow); }

.news-list-panel {
  background: var(--ba-glass);
  backdrop-filter: blur(18px);
  border: 2.5px solid rgba(18, 140, 250, 0.24);
  border-radius: 20px;
  padding: clamp(1.4rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  height: clamp(440px, 58vh, 650px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.news-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(18, 140, 250, 0.16);
}

.news-tab {
  cursor: pointer;
  border: 1.5px solid rgba(18, 140, 250, 0.3);
  background: #fff;
  color: var(--ba-slate);
  font-weight: 900;
  font-size: clamp(0.85rem, 0.98vw, 0.98rem);
  padding: 0.44rem 1.15rem;
  transform: skewX(var(--skew));
}

.news-tab span { display: inline-block; transform: skewX(var(--unskew)); }
.news-tab.active { background: var(--ba-cyan); color: #fff; border-color: var(--ba-navy); box-shadow: 3px 3px 0 var(--ba-navy); }

.news-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; justify-content: space-around; }

.news-row {
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.95rem, 1.5vh, 1.35rem) 0.4rem;
  border: none;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.48);
  background: transparent;
  text-align: left;
  transition: transform 0.18s ease;
}

.news-row-main {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.news-row-portrait {
  width: 34px;
  height: 38px;
  flex: none;
  border-radius: 5px;
  background: #e4f1ff;
  object-fit: cover;
  object-position: center top;
}

.news-row:hover { transform: translateX(6px); }
.news-row:hover .news-row-title { color: var(--ba-cyan); }

.news-cat-badge { font-size: 0.78rem; font-weight: 900; padding: 0.24rem 0.76rem; background: var(--ba-cyan-soft); color: var(--ba-cyan); transform: skewX(var(--skew)); }
.news-cat-badge.pink { background: #ffe4ef; color: #db2777; }
.news-cat-badge.yellow { background: #fef9c3; color: #a16207; }
.news-cat-badge span { display: inline-block; transform: skewX(var(--unskew)); }
.news-row-title { font-size: clamp(0.98rem, 1.15vw, 1.18rem); font-weight: 800; color: var(--ba-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-row-date { font-size: 0.86rem; color: var(--ba-muted); font-weight: 700; }

/* =========================================================
   VIEW 03: WORLD — OVERSIZED XIAO-K CRYSTAL GLOBE & SCENERY
   ========================================================= */
.world-crystal-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 28% 54%, rgba(56, 189, 248, 0.28) 0%, transparent 46%),
    linear-gradient(115deg, rgba(10, 20, 38, 0.9) 0%, rgba(13, 30, 58, 0.8) 52%, rgba(10, 22, 42, 0.76) 100%);
  backdrop-filter: blur(5px);
}

.world-crystal-layout {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(2rem, 3.4vw, 3.8rem);
  align-items: center;
}

.world-sub-lead {
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  font-weight: 800;
  color: #7dd3fc;
  margin-top: 0.3rem;
}

.crystal-stage-col {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.5vh, 1.35rem);
}

.xiaok-globe-stage {
  position: relative;
  height: clamp(410px, 52vh, 570px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-orbit-svg {
  position: absolute;
  width: clamp(420px, 53vh, 575px);
  height: clamp(420px, 53vh, 575px);
  animation: haloSpin 42s linear infinite;
  pointer-events: none;
}

.crystal-ball {
  position: relative;
  width: clamp(330px, 42vh, 455px);
  height: clamp(330px, 42vh, 455px);
  border-radius: 50%;
  box-shadow:
    0 0 64px rgba(56, 189, 248, 0.56),
    inset 0 0 42px rgba(186, 230, 253, 0.68),
    inset -22px -28px 48px rgba(8, 20, 44, 0.86);
  border: 2.5px solid rgba(186, 230, 253, 0.82);
  overflow: hidden;
  z-index: 4;
}

.crystal-earth-svg { width: 100%; height: 100%; display: block; }
.earth-continents { transform-origin: 150px 150px; animation: earthDrift 26s ease-in-out infinite alternate; }

@keyframes earthDrift {
  0% { transform: translateX(-8px) rotate(-3deg); }
  100% { transform: translateX(8px) rotate(3deg); }
}

.crystal-glare {
  position: absolute;
  top: 16px;
  left: 32px;
  width: 38%;
  height: 20%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  transform: rotate(-24deg);
  pointer-events: none;
}

.crystal-pins { position: absolute; inset: 0; z-index: 6; }

.globe-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 8;
}

.pin-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--ba-cyan);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.35), 0 0 16px #fff;
  transition: all 0.2s ease;
}

.globe-pin .pin-label {
  background: rgba(12, 22, 40, 0.9);
  color: #e0f2fe;
  border: 1.5px solid rgba(125, 211, 252, 0.65);
  font-size: clamp(0.78rem, 0.9vw, 0.9rem);
  font-weight: 900;
  padding: 0.2rem 0.68rem;
  border-radius: 99px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.globe-pin:hover .pin-core,
.globe-pin.active .pin-core {
  width: 22px;
  height: 22px;
  background: var(--ba-yellow);
  border-color: #fff;
  box-shadow: 0 0 0 9px rgba(255, 230, 0, 0.38), 0 0 24px var(--ba-yellow);
}

.globe-pin.active .pin-label {
  background: var(--ba-yellow);
  color: var(--ba-navy);
  border-color: var(--ba-navy);
  box-shadow: 3px 3px 0 var(--ba-cyan);
}

.xiaok-guide-wrap {
  position: absolute;
  left: 2%;
  bottom: -6px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.xiaok-avatar {
  height: clamp(205px, 26vh, 290px);
  width: auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.48));
  animation: xiaokBob 4s ease-in-out infinite;
}

@keyframes xiaokBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.xiaok-slot-tag {
  background: var(--ba-cyan);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 99px;
  margin-top: -10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.xiaok-speech-box {
  background: rgba(15, 25, 45, 0.86);
  border: 1.5px solid rgba(56, 189, 248, 0.52);
  border-left: 5px solid var(--ba-yellow);
  border-radius: 8px 14px 14px 8px;
  padding: 0.95rem 1.3rem;
  color: #e0f2fe;
  font-size: clamp(0.9rem, 1.04vw, 1.05rem);
  line-height: 1.66;
}

.region-detail-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border: 2.5px solid rgba(56, 189, 248, 0.48);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.region-scene-frame {
  position: relative;
  height: clamp(280px, 37vh, 430px);
  background: #0f172a;
  overflow: hidden;
}

.region-scene-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.region-scene-frame:hover .region-scene-img { transform: scale(1.03); }

.region-scene-tabs { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.r-scene-tab {
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.34rem 0.9rem;
  transform: skewX(var(--skew));
}

.r-scene-tab span { display: inline-block; transform: skewX(var(--unskew)); }
.r-scene-tab.active { background: var(--ba-yellow); color: var(--ba-navy); border-color: var(--ba-navy); }

.region-zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.8);
  color: var(--ba-yellow);
  border: 1.5px solid rgba(255, 230, 0, 0.65);
  padding: 0.36rem 0.85rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 800;
}

.region-dossier-body {
  padding: clamp(1.3rem, 2vh, 1.8rem) clamp(1.5rem, 2.2vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.region-climate-pill {
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--ba-cyan-soft);
  color: var(--ba-cyan);
  padding: 0.24rem 0.8rem;
  border-radius: 99px;
}

.region-title { font-size: clamp(1.75rem, 2.35vw, 2.35rem); font-weight: 900; color: var(--ba-navy); }
.region-lore { font-size: clamp(0.95rem, 1.08vw, 1.08rem); line-height: 1.76; color: var(--ba-slate); }

.region-footer-bar {
  margin-top: 0.4rem;
  padding-top: 0.95rem;
  border-top: 1.5px dashed rgba(18, 140, 250, 0.26);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.region-clubs-preview { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }

.mini-club-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f1f7fe;
  border: 1.5px solid rgba(18, 140, 250, 0.26);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--ba-navy);
}

.mini-club-chip img { width: 24px; height: 24px; object-fit: contain; }

/* =========================================================
   VIEW 04: CHARACTER — OPEN FULL-HEIGHT BA STAGE (76VH STANDEE!)
   ========================================================= */
.char-bg-watermark {
  position: absolute;
  top: calc(var(--header-h) + 72px);
  left: 6%;
  right: 6%;
  text-align: center;
  font-size: clamp(4.8rem, 8.8vw, 10.5rem);
  color: rgba(18, 140, 250, 0.085);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.char-view-inner {
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.2rem;
  gap: 0.9rem;
}

.char-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(18, 140, 250, 0.25);
  border-radius: 16px;
  padding: 0.72rem 1.15rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.char-region-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.region-filter-btn {
  cursor: pointer;
  border: 1.5px solid rgba(18, 140, 250, 0.32);
  background: #fff;
  color: var(--ba-navy);
  font-weight: 900;
  font-size: clamp(0.88rem, 1vw, 1rem);
  padding: 0.5rem 1.2rem;
  transform: skewX(var(--skew));
  transition: all 0.18s ease;
}

.region-filter-btn span { display: inline-block; transform: skewX(var(--unskew)); }

.region-filter-btn.active {
  background: var(--ba-cyan);
  color: #fff;
  border-color: var(--ba-navy);
  box-shadow: 4px 4px 0 var(--ba-navy);
}

.char-club-pills { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.sub-club-pill {
  cursor: pointer;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  background: #f8fbff;
  color: var(--ba-slate);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.34rem 0.9rem;
  border-radius: 99px;
  transition: all 0.16s ease;
}

.sub-club-pill.active { background: var(--ba-navy); color: var(--ba-yellow); border-color: var(--ba-cyan); }

/* Open Full-Height BA Character Stage (No Cramped Outer Box!) */
.char-stage-wrap {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(235px, 17vw, 290px) 1fr minmax(420px, 35vw);
  gap: clamp(1.2rem, 2vw, 2.2rem);
  align-items: center;
}

.char-avatar-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.4rem 0.5rem 0.4rem 0.1rem;
}

.char-avatar-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.88rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(18, 140, 250, 0.24);
  transform: skewX(-7deg);
  text-align: left;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.18s ease;
}

.char-avatar-btn img {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  object-position: top center;
  background: #eaf4ff;
  transform: skewX(7deg);
  flex-shrink: 0;
}

.char-avatar-btn .c-meta { transform: skewX(7deg); min-width: 0; }
.char-avatar-btn .c-role { font-size: 0.72rem; font-weight: 800; color: var(--ba-cyan); }
.char-avatar-btn .c-name { font-size: 0.98rem; font-weight: 900; color: var(--ba-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.char-avatar-btn.active {
  background: linear-gradient(90deg, var(--ba-cyan) 0%, #38bdf8 100%);
  border-color: var(--ba-navy);
  box-shadow: 4px 4px 0 var(--ba-navy);
}

.char-avatar-btn.active .c-role { color: var(--ba-yellow); }
.char-avatar-btn.active .c-name { color: #fff; }

/* FULL-HEIGHT HEROIC STANDEE */
.char-standee-canvas {
  position: relative;
  height: clamp(480px, 76vh, 840px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-halo-bg {
  position: absolute;
  width: clamp(390px, 56vh, 620px);
  height: clamp(390px, 56vh, 620px);
  animation: haloSpin 32s linear infinite;
  pointer-events: none;
}

@keyframes haloSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.char-standee-img {
  position: relative;
  z-index: 2;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 22px 34px rgba(15, 23, 42, 0.24));
}

/* FLOATING SCHALE CHARACTER DOSSIER PANEL */
.char-dossier-box {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 2.5px solid rgba(18, 140, 250, 0.28);
  border-left: 6px solid var(--ba-cyan);
  border-radius: 10px 22px 22px 10px;
  padding: clamp(1.35rem, 2.2vh, 2rem) clamp(1.5rem, 2.2vw, 2.2rem);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.13);
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.3vh, 1.1rem);
}

.char-dossier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed rgba(18, 140, 250, 0.28);
}

.char-en-code {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ba-cyan);
  letter-spacing: 0.1em;
}

.char-main-name {
  font-size: clamp(2rem, 2.8vw, 2.85rem);
  font-weight: 900;
  color: var(--ba-navy);
  line-height: 1.15;
  margin-top: 0.15rem;
}

.faction-crest-lg {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #f4f9ff;
  padding: 5px;
  flex-shrink: 0;
}

.char-spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.char-spec-item { background: #f3f9ff; border-left: 4px solid var(--ba-cyan); padding: 0.55rem 0.85rem; }
.char-spec-k { font-size: 0.76rem; font-weight: 800; color: var(--ba-muted); }
.char-spec-v { font-size: clamp(0.95rem, 1.08vw, 1.08rem); font-weight: 900; color: var(--ba-navy); margin-top: 2px; }

.char-quote-bubble {
  background: #fff;
  border: 1.5px solid rgba(255, 94, 142, 0.38);
  border-left: 5px solid var(--ba-pink);
  border-radius: 6px 14px 14px 6px;
  padding: 0.88rem 1.1rem;
  font-size: clamp(0.94rem, 1.05vw, 1.06rem);
  font-weight: 700;
  color: var(--ba-navy);
  line-height: 1.64;
}

.voice-mini-btn {
  cursor: pointer;
  border: none;
  background: #ffe4ef;
  color: #db2777;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.24rem 0.75rem;
  border-radius: 99px;
}

.char-bio-txt {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  color: #334155;
  line-height: 1.76;
}

/* =========================================================
   VIEW 05: GALLERY & VIEW 06: FAN KIT (WIDE POSTER CARDS)
   ========================================================= */
#view-gallery .view-inner {
  justify-content: flex-start;
  padding-top: clamp(1.1rem, 2vh, 1.65rem);
  padding-bottom: 1.25rem;
}

.gallery-subtabs { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.gal-tab { cursor: pointer; border: 2px solid var(--ba-cyan); background: #fff; color: var(--ba-navy); font-weight: 900; font-size: 0.92rem; padding: 0.48rem 1.25rem; transform: skewX(var(--skew)); }
.gal-tab span { display: inline-block; transform: skewX(var(--unskew)); }
.gal-tab.active { background: var(--ba-cyan); color: #fff; box-shadow: 4px 4px 0 var(--ba-navy); }
.gal-region-pills { display: none; gap: 0.48rem; flex-wrap: wrap; margin: -0.35rem 0 0.85rem; flex-shrink: 0; }
.gal-region-pills.open { display: flex; }
.gal-reg-pill { cursor: pointer; border: 1.5px solid rgba(18, 140, 250, 0.36); background: rgba(255,255,255,0.92); color: var(--ba-navy); font-weight: 800; font-size: 0.8rem; padding: 0.28rem 0.85rem; border-radius: 999px; transition: all 0.16s ease; }
.gal-reg-pill.active, .gal-reg-pill:hover { background: var(--ba-cyan); color: #fff; border-color: var(--ba-cyan); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: clamp(1.15rem, 1.6vw, 1.65rem);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 10px 18px 2px;
}

.gal-card { cursor: pointer; display: flex; flex-direction: column; background: #fff; border: 2px solid rgba(18, 140, 250, 0.24); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08); transition: transform 0.2s ease, border-color 0.2s ease; }
.gal-card:hover { transform: translateY(-5px); border-color: var(--ba-cyan); }
.gal-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; flex-shrink: 0; overflow: hidden; background: #dceeff; }
.gal-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 0.3s ease; }
.gal-card:hover .gal-thumb-wrap img { transform: scale(1.05); }
.gal-tag-pill { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(22, 34, 53, 0.9); color: var(--ba-yellow); font-size: 0.74rem; font-weight: 900; padding: 0.22rem 0.68rem; transform: skewX(var(--skew)); }
.gal-card-meta { padding: 0.95rem 1.2rem; }
.gal-card-title { font-size: clamp(0.98rem, 1.12vw, 1.14rem); font-weight: 900; color: var(--ba-navy); }
.gal-card-sub { font-size: 0.84rem; color: var(--ba-slate); margin-top: 4px; }

.fankit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 1.8vw, 1.85rem); }

.fankit-card {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(18, 140, 250, 0.25);
  border-radius: 18px;
  padding: clamp(1.15rem, 1.8vh, 1.55rem) 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 14px 32px rgba(18, 140, 250, 0.09);
}

.fankit-preview {
  height: clamp(145px, 20vh, 225px);
  background: linear-gradient(135deg, #e8f4ff 0%, #fdf2f8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  overflow: hidden;
}

.fankit-preview img { max-height: 84%; max-width: 100%; object-fit: contain; }
.fankit-voice-preview {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 65%, #128cfa 100%);
  border-radius: 10px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #fff;
}
.fvp-badge {
  background: rgba(255, 230, 0, 0.16);
  border: 1px solid rgba(255, 230, 0, 0.55);
  color: #ffe600;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}
.fvp-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 44px;
}
.fvp-bars span {
  width: 6px;
  border-radius: 99px;
  background: linear-gradient(180deg, #38bdf8, #ffe600);
}
.fvp-bars span:nth-child(1), .fvp-bars span:nth-child(9) { height: 14px; opacity: 0.65; }
.fvp-bars span:nth-child(2), .fvp-bars span:nth-child(8) { height: 28px; opacity: 0.85; }
.fvp-bars span:nth-child(3), .fvp-bars span:nth-child(7) { height: 40px; }
.fvp-bars span:nth-child(4), .fvp-bars span:nth-child(6) { height: 22px; opacity: 0.9; }
.fvp-bars span:nth-child(5) { height: 44px; }
.fvp-sub { font-size: 0.74rem; font-weight: 700; color: rgba(255,255,255,0.86); }
.fankit-title { font-size: clamp(1.02rem, 1.18vw, 1.18rem); font-weight: 900; color: var(--ba-navy); }
.fankit-desc { font-size: clamp(0.84rem, 0.95vw, 0.95rem); color: var(--ba-slate); line-height: 1.62; flex: 1; }

.fankit-dl-btn {
  cursor: pointer;
  border: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  background: var(--ba-cyan);
  color: #fff;
  font-weight: 900;
  font-size: 0.88rem;
  text-decoration: none;
  transform: skewX(var(--skew));
  box-shadow: 4px 4px 0 var(--ba-navy);
}

.fankit-dl-btn span { display: inline-block; transform: skewX(var(--unskew)); }
.fankit-dl-btn:hover { background: var(--ba-navy); color: var(--ba-yellow); }

.mail-banner {
  margin-top: clamp(1.15rem, 2.2vh, 1.8rem);
  background: var(--ba-navy);
  color: #fff;
  border-radius: 18px;
  padding: clamp(1.35rem, 2.2vh, 1.9rem) 2.2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 5px solid var(--ba-yellow);
}

.mail-form { display: flex; gap: 0.65rem; }
.mail-input { flex: 1; padding: 0.82rem 1.1rem; border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.28); font-size: 0.95rem; outline: none; }
.fankit-footer-line { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; font-weight: 700; color: var(--ba-slate); }

/* MODAL */
.ba-modal-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(12, 21, 38, 0.82); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.ba-modal-backdrop.open { display: flex; }
.ba-modal { background: #fff; border: 2px solid var(--ba-cyan); box-shadow: 10px 10px 0 var(--ba-navy); max-width: 1040px; width: 100%; max-height: 90vh; overflow-y: auto; border-radius: 14px; }
.ba-modal-head { background: var(--ba-navy); color: #fff; padding: 0.9rem 1.4rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--ba-yellow); }
.ba-modal-close { cursor: pointer; background: var(--ba-pink); color: #fff; border: none; font-weight: 900; padding: 0.32rem 0.85rem; transform: skewX(var(--skew)); }
.ba-modal-body { padding: 1.6rem; }
.ba-modal-body img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: 8px; }

@media (max-width: 1120px) {
  .ba-stage-rail, .sns-floating-dock, .kv-arrow, .char-bg-watermark { display: none; }
  .view-inner { width: 100%; padding: 1rem 1.25rem; overflow-y: auto; justify-content: flex-start; }
  .world-crystal-layout, .char-stage-wrap, .news-layout, .mail-banner { grid-template-columns: 1fr; max-height: none; }
  .char-avatar-list { flex-direction: row; overflow-x: auto; }
  .char-avatar-btn { min-width: 170px; }
  .fankit-grid { grid-template-columns: repeat(2, 1fr); }
  .kv-thumbs-dock { display: none; }
}


/* =========================================================
   BA-CN (国服蔚蓝档案) CLEAN FRAMELESS CHARACTER ARCHIVE OVERRIDES
   ========================================================= */
.char-clean-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(rgba(18, 140, 250, 0.11) 1.2px, transparent 1.2px),
    linear-gradient(120deg, #dff0ff 0%, #f4faff 48%, #ffffff 48.2%, #f8fbff 100%);
  background-size: 28px 28px, 100% 100%;
  overflow: hidden;
}

.char-diag-sky {
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: 44%;
  width: 6px;
  background: var(--ba-cyan);
  transform: skewX(-16deg);
  box-shadow: 10px 0 0 var(--ba-yellow);
  opacity: 0.55;
}

/* Giant Semi-Transparent Club Logo Watermark in Right Background */
.char-giant-crest-bg {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(360px, 31vw, 500px);
  height: clamp(360px, 31vw, 500px);
  object-fit: contain;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.char-clean-backdrop .char-bg-watermark {
  top: auto;
  bottom: 110px;
  left: 3%;
  right: auto;
  font-size: clamp(4.2rem, 7.5vw, 9rem);
  color: rgba(18, 140, 250, 0.075);
}

.char-cn-inner {
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.15rem;
  gap: 0.6rem;
}

/* Minimal Clean Top Bar (No Heavy Box!) */
.char-cn-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(18, 140, 250, 0.18);
  z-index: 10;
}

.char-cn-region-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cn-reg-tab {
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ba-slate);
  font-size: clamp(0.95rem, 1.08vw, 1.1rem);
  font-weight: 900;
  padding: 0.46rem 1.18rem;
  transform: skewX(var(--skew));
  transition: all 0.18s ease;
  position: relative;
}

.cn-reg-tab span { display: inline-block; transform: skewX(var(--unskew)); }

.cn-reg-tab:hover { color: var(--ba-cyan); }

.cn-reg-tab.active {
  background: var(--ba-cyan);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ba-yellow);
}

.char-roster-count {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ba-cyan);
  background: rgba(255, 255, 255, 0.86);
  border: 1.5px solid rgba(18, 140, 250, 0.24);
  padding: 0.34rem 0.9rem;
  border-radius: 99px;
  letter-spacing: 0.06em;
}

/* =========================================================
   SCHEME A: FRAMELESS 2-COLUMN EDITORIAL + PROMINENT CLUB LOGO
   ========================================================= */
.char-editorial-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.char-cn-main-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
}

.char-cn-standee-col {
  position: relative;
  height: clamp(430px, 68vh, 740px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed-height top-anchored info column so switching characters NEVER jumps vertically! */
.char-cn-info-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.05rem;
  min-height: clamp(390px, 46vh, 450px);
  max-width: 680px;
  width: 100%;
  padding-right: 1rem;
  z-index: 5;
}

/* 1. UNIFIED BA-CN BLACK CIRCULAR CLUB LOGO HEADER (FIXED 64x64 BADGE + FIXED HEIGHT) */
.char-club-hero-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 76px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.char-club-logo-big {
  width: 66px;
  height: 66px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.08));
}

.char-region-pill {
  display: inline-block;
  background: var(--ba-cyan-soft);
  color: var(--ba-cyan);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0.16rem 0.65rem;
  border-radius: 99px;
}

.char-club-big-name {
  font-size: clamp(1.22rem, 1.5vw, 1.52rem);
  font-weight: 900;
  color: var(--ba-navy);
  margin-top: 3px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* 2. GIANT EDITORIAL CHARACTER NAME + CV CIRCLE (LOCKED BASELINE) */
.char-name-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 82px;
}

.char-cn-huge-name {
  font-size: clamp(2.55rem, 3.8vw, 3.85rem);
  font-weight: 900;
  color: var(--ba-navy);
  line-height: 1.08;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.char-cn-en-sub {
  font-size: clamp(0.92rem, 1.1vw, 1.12rem);
  font-weight: 800;
  color: var(--ba-cyan);
  letter-spacing: 0.14em;
  margin-top: 0.28rem;
  white-space: nowrap;
}

.char-cv-circle-btn {
  cursor: pointer;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid var(--ba-cyan);
  background: #fff;
  color: var(--ba-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(18, 140, 250, 0.2);
  transition: all 0.2s ease;
}

.char-cv-circle-btn:hover,
.char-cv-circle-btn.playing {
  background: var(--ba-cyan);
  color: #fff;
  transform: scale(1.06);
}
.char-cv-circle-btn.has-voice::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}
.char-cv-circle-btn { position: relative; }
.char-cv-circle-btn.playing {
  box-shadow: 0 0 0 6px rgba(18, 140, 250, 0.25), 0 10px 24px rgba(18, 140, 250, 0.35);
}

.char-voice-caption {
  display: none;
  margin: 0.45rem 0 0.55rem;
  padding: 0.52rem 0.85rem;
  border-radius: 10px;
  background: rgba(18, 140, 250, 0.08);
  border-left: 3.5px solid var(--ba-cyan);
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--ba-navy);
}
.char-voice-caption.open { display: block; }
.char-voice-caption .cv-cap-jp { font-weight: 800; color: #0369a1; display: block; }
.char-voice-caption .cv-cap-sub { color: #334155; display: block; margin-top: 2px; font-size: 0.8rem; }

.cv-icon { font-size: 1.2rem; line-height: 1; }
.cv-txt { font-size: 0.6rem; font-weight: 900; letter-spacing: 0.06em; }

/* 3. CLEAN SINGLE-LINE SPECS: HEIGHT / BIRTHDAY / HOBBY */
.char-cn-spec-strip {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  flex-wrap: nowrap;
  min-height: 50px;
  padding: 0.68rem 0;
  border-top: 2px solid rgba(18, 140, 250, 0.22);
  border-bottom: 1.5px dashed rgba(148, 163, 184, 0.38);
}

.spec-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.48rem;
  white-space: nowrap;
}

.spec-inline .sk {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ba-cyan);
}

.spec-inline .sv {
  font-size: clamp(1.02rem, 1.15vw, 1.18rem);
  font-weight: 900;
  color: var(--ba-navy);
}

.spec-sep {
  color: rgba(18, 140, 250, 0.35);
  font-weight: 900;
}

/* 4. BOLD QUOTE & BIO (LOCKED MIN-HEIGHT FOR ZERO SHIFT) */
.char-cn-quote {
  position: relative;
  padding-left: 2.1rem;
  min-height: 3.35em;
  display: flex;
  align-items: center;
}

.quote-mark {
  position: absolute;
  left: -2px;
  top: -10px;
  font-family: Georgia, serif;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--ba-cyan);
  opacity: 0.45;
}

.char-cn-quote p {
  font-size: clamp(1.04rem, 1.2vw, 1.22rem);
  font-weight: 900;
  color: var(--ba-navy);
  line-height: 1.58;
}

.char-cn-bio {
  font-size: clamp(0.95rem, 1.04vw, 1.06rem);
  color: var(--ba-slate);
  line-height: 1.78;
  max-width: 640px;
  min-height: 3.55em;
}

/* 5. BOTTOM HORIZONTAL AVATAR STRIP */
.char-club-pills:empty { display: none; }

.char-cn-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
  padding-top: 0.65rem;
  border-top: 1.5px solid rgba(18, 140, 250, 0.16);
  z-index: 8;
}

.char-horiz-roster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 4px 6px;
  scrollbar-width: thin;
}

.horiz-char-card {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(148, 163, 184, 0.35);
  padding: 0.36rem 0.85rem 0.36rem 0.42rem;
  transform: skewX(-9deg);
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.horiz-char-card img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  background: #eaf4ff;
  transform: skewX(9deg);
}

.horiz-char-card .hc-name {
  transform: skewX(9deg);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--ba-navy);
  white-space: nowrap;
}

.horiz-char-card.active {
  background: var(--ba-cyan);
  border-color: var(--ba-navy);
  box-shadow: 3px 3px 0 var(--ba-yellow);
  transform: skewX(-9deg) translateY(-3px);
}

.horiz-char-card.active .hc-name { color: #fff; }


/* =========================================================
   V7 UPGRADES: DYNAMIC KV + SLOGAN C + DUAL-TRACK SNS +
   BA-CN NEWS CENTER + 2-STAGE CRYSTAL ORB DIVE + STANDEE SCALE
   ========================================================= */

/* 1. TOP KV BREATHING MOTION + VIDEO LOOP + SLOGAN LOCKUP */
.kv-slide .kv-media-img,
.kv-slide .kv-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kv-slide.active .kv-media-img {
  animation: kvBreathZoom 13s ease-in-out infinite alternate;
  transform-origin: center 42%;
}

@keyframes kvBreathZoom {
  0%   { transform: scale(1.005); }
  100% { transform: scale(1.055) translate3d(-0.6%, -0.4%, 0); }
}

.kv-hero-lockup {
  position: absolute;
  left: clamp(3.2rem, 6vw, 6.4rem);
  bottom: clamp(3.4rem, 7vh, 5.2rem);
  z-index: 12;
  max-width: min(740px, 86vw);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.52rem;
}

.kv-welcome-en {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-size: clamp(0.95rem, 1.35vw, 1.28rem);
  letter-spacing: 0.24em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(10, 20, 40, 0.72);
}

.kv-welcome-en::before {
  content: "";
  width: 10px;
  height: 1.05em;
  background: var(--ba-cyan);
  transform: skewX(var(--skew));
  box-shadow: 4px 0 0 var(--ba-yellow);
}

.kv-slogan-main {
  margin: 0;
  font-size: clamp(1.52rem, 2.55vw, 2.38rem);
  font-weight: 900;
  line-height: 1.26;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(8, 16, 34, 0.82), 0 1px 4px rgba(8, 16, 34, 0.9);
}

/* Right Floating SNS Dock Upgraded for SVG + Hover Tooltip */
.sns-dock-item {
  position: relative;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.sns-dock-item svg {
  display: block;
}

.sns-dock-tip {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.16s ease;
}

.sns-dock-item:hover .sns-dock-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sns-pop-card {
  display: grid;
  gap: 1.1rem;
  color: #334155;
  line-height: 1.72;
}

.sns-pop-single {
  max-width: 360px;
  margin-inline: auto;
}

.sns-qq-section h3 {
  margin-bottom: .6rem;
  font-size: 1rem;
  color: var(--ba-navy);
}

.sns-qq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sns-qq-box {
  background: #f1f7fe;
  border: 2px solid rgba(18, 140, 250, 0.25);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
}

.sns-qq-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ba-cyan);
}

.sns-qq-name {
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--ba-navy);
}

.sns-qr-slot {
  display: grid;
  place-items: center;
  width: 124px;
  max-width: 100%;
  aspect-ratio: 1;
  margin-block: .25rem;
  background: #fff;
  border: 1px dashed #7793ae;
  border-radius: 8px;
  color: #405b77;
  font-size: .79rem;
  line-height: 1.4;
}

.sns-qr-slot > span { padding: .5rem; }
.sns-qr-slot > img { width: 100%; height: 100%; object-fit: contain; }
.sns-qr-status { font-size: .82rem; }

.sns-qq-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.04em;
}

.sns-copy-btn {
  margin-top: 0.3rem;
  padding: 0.48rem 1.15rem;
  font-size: 0.82rem;
}

/* 2. BA-CN MORE+ BUTTON & FULL NEWS INTELLIGENCE CENTER */
.ba-more-news-btn {
  cursor: pointer;
  background: var(--ba-navy);
  color: #fff;
  border: 2px solid var(--ba-cyan);
  padding: 0.54rem 1.28rem;
  font-size: 0.86rem;
  font-weight: 900;
  transform: skewX(var(--skew));
  box-shadow: 4px 4px 0 var(--ba-cyan);
  transition: all 0.18s ease;
}

.ba-more-news-btn span {
  display: inline-block;
  transform: skewX(var(--unskew));
  letter-spacing: 0.04em;
}

.ba-more-news-btn:hover {
  background: var(--ba-cyan);
  border-color: var(--ba-navy);
  box-shadow: 4px 4px 0 var(--ba-yellow);
  transform: skewX(var(--skew)) translateY(-2px);
}

.ba-news-modal-wide {
  width: min(960px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.ba-nc-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

.nc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid rgba(18, 140, 250, 0.18);
  margin-bottom: 1rem;
}

.nc-cat-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nc-cat-btn {
  cursor: pointer;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  background: #f8fafc;
  color: var(--ba-slate);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.38rem 0.92rem;
  transform: skewX(var(--skew));
  transition: all 0.16s ease;
}

.nc-cat-btn span {
  display: inline-block;
  transform: skewX(var(--unskew));
}

.nc-cat-btn.active,
.nc-cat-btn:hover {
  background: var(--ba-cyan);
  border-color: var(--ba-cyan);
  color: #fff;
}

.nc-search-input {
  min-width: 230px;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid rgba(18, 140, 250, 0.32);
  border-radius: 8px;
  font-size: 0.84rem;
  outline: none;
}

.nc-search-input:focus {
  border-color: var(--ba-cyan);
  box-shadow: 0 0 0 3px rgba(18, 140, 250, 0.14);
}

.nc-card-list {
  display: grid;
  gap: 0.72rem;
}

.nc-list-card {
  cursor: pointer;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 1rem;
  align-items: center;
  background: #f8fbff;
  border: 1.5px solid rgba(18, 140, 250, 0.16);
  border-radius: 10px;
  padding: 0.62rem;
  transition: all 0.18s ease;
}

.nc-list-card:hover {
  background: #eef6ff;
  border-color: var(--ba-cyan);
  transform: translateX(4px);
}

.nc-card-visual,
.nc-art-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e4f1ff;
}

.nc-card-visual { aspect-ratio: 16 / 9; }

.nc-card-visual .nc-card-thumb,
.nc-art-hero .nc-art-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nc-card-visual .news-portrait,
.nc-art-hero .news-portrait {
  position: absolute;
  right: 3%;
  top: 3%;
  width: 43%;
  height: 97%;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 2px 7px #14274788);
}

.nc-card-visual .news-portrait { width: 45%; }

.nc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.nc-card-date {
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748b;
}

.nc-card-title {
  margin: 0 0 0.28rem;
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--ba-navy);
  line-height: 1.38;
}

.nc-card-sum {
  margin: 0;
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.5;
}

.nc-empty {
  padding: 2.4rem;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.nc-pagination {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.nc-page-btn {
  cursor: pointer;
  width: 36px;
  height: 34px;
  border: 1.5px solid rgba(18, 140, 250, 0.3);
  background: #fff;
  color: var(--ba-navy);
  font-weight: 900;
  border-radius: 6px;
}

.nc-page-btn.active {
  background: var(--ba-cyan);
  border-color: var(--ba-cyan);
  color: #fff;
}

.nc-article-wrap {
  display: grid;
  gap: 0.9rem;
}

.nc-art-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nc-back-btn,
.nc-pn-btn {
  cursor: pointer;
  background: #f1f7fe;
  border: 1.5px solid rgba(18, 140, 250, 0.28);
  color: var(--ba-navy);
  font-weight: 900;
  font-size: 0.82rem;
  padding: 0.42rem 0.95rem;
  border-radius: 7px;
  transition: all 0.16s ease;
}

.nc-back-btn:hover,
.nc-pn-btn:not(:disabled):hover {
  background: var(--ba-cyan);
  color: #fff;
}

.nc-pn-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.nc-art-date {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ba-cyan);
}

.nc-art-hero {
  height: clamp(170px, 32vw, 320px);
}


.nc-art-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.05rem;
}

.nc-art-actions .ba-btn-yellow { padding: .62rem 1.2rem; font-size: .86rem; }

.nc-source-link {
  color: #075ca5;
  font-size: .9rem;
  font-weight: 800;
  padding-block: .6rem;
  text-underline-offset: .2em;
}

.nc-art-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nc-art-title {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 900;
  color: var(--ba-navy);
  line-height: 1.4;
  flex: 1;
}

.nc-art-content {
  display: grid;
  gap: 0.75rem;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.82;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.nc-art-content p { margin: 0; }

.nc-art-PN-bar {
  display: flex;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

/* 3. WORLD — B2 Sakura-Cosmos opening and continuous regional atlas dive */
#view-world {
  background: #030c26;
  overflow: clip;
}

.world-oneshot-stage {
  --world-camera: 820ms cubic-bezier(.22, 1, .36, 1);
  --atlas-diameter: clamp(230px, min(32vw, 39vh), 455px);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: clip;
}

.world-camera-frame {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

#world-parallax-stage {
  --px: 0;
  --py: 0;
  position: absolute;
  inset: -3.5%;
  container-type: size;
  overflow: clip;
  transform-origin: 50% 78%;
  pointer-events: none;
  user-select: none;
}

/* Shared projection keeps the three plates, the flare and the orbital paths registered.
   Limit vertical cropping at the horns. Extra-wide screens extend the empty scenery. */
.wp-layer,
.wp-layer-fx {
  --plate-width: clamp(177.7778cqh, 100cqw, 212cqh);
  position: absolute;
  top: 0;
  left: calc((100cqw - var(--plate-width)) * var(--world-frame-x, .5));
  width: var(--plate-width);
  height: max(100cqh, calc(var(--plate-width) * .5625 - 14px));
  transform-origin: 50% 78%;
}

.wp-layer {
  translate: calc(var(--px) * var(--depth)) calc(var(--py) * var(--depth));
  transition: transform var(--world-camera), opacity 700ms ease, filter var(--world-camera);
}

.wp-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.wp-layer-sky {
  --depth: 6px;
  --edge-art: url("assets/world-b2-sky.jpg");
  animation: wp-sky-breath 18s ease-in-out infinite alternate;
}

.wp-layer-xiaok { --depth: 14px; }
.wp-layer-xiaok img { animation: wp-zero-g 7.5s ease-in-out infinite; }

.wp-layer-earth {
  --depth: 22px;
  --edge-art: url("assets/world-b2-earth.png");
}

.wp-layer-earth img,
.wp-layer-earth::before,
.wp-layer-earth::after { animation: wp-limb-breath 10s ease-in-out infinite; }

@keyframes wp-sky-breath { from { scale: 1; } to { scale: 1.025; } }
@keyframes wp-zero-g { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes wp-limb-breath { 0%, 100% { opacity: 1; } 50% { opacity: .95; } }

/* Shallow windows have less headroom and less overscan for vertical travel. */
@container (max-height: 460px) {
  .wp-layer, .wp-layer-fx {
    top: max(0px, calc(3.2cqh - 6px));
    height: max(100cqh, calc(var(--plate-width) * .5625));
  }

  .wp-layer {
    translate: calc(var(--px) * var(--depth)) calc(var(--py) * min(var(--depth), 2.5cqh));
  }
}

@container (min-aspect-ratio: 212/100) {
  :is(.wp-layer-sky, .wp-layer-earth)::before,
  :is(.wp-layer-sky, .wp-layer-earth)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--edge-art) 50% 42% / cover no-repeat;
    transform: translateX(-100%) scaleX(-1);
  }

  :is(.wp-layer-sky, .wp-layer-earth)::after { transform: translateX(100%) scaleX(-1); }
}

.wp-layer-fx {
  pointer-events: none;
  transition: opacity 520ms ease;
}

.wp-sunrise-flare {
  position: absolute;
  left: 29%;
  top: 66%;
  width: 16%;
  aspect-ratio: 2;
  translate: -50% -50%;
  background: radial-gradient(ellipse, #fff9d2 0%, #ffd7ab99 7%, #adf8ff4d 31%, transparent 69%);
  mix-blend-mode: screen;
  animation: wp-sunrise 6s ease-in-out infinite alternate;
}

@keyframes wp-sunrise {
  from { opacity: .35; transform: scale(.87); }
  to { opacity: .8; transform: scale(1.12); }
}

.wp-orbital-arcs,
.wp-petals { position: absolute; inset: 0; width: 100%; height: 100%; }

.wp-orbital-arcs {
  fill: none;
  mix-blend-mode: screen;
  opacity: .62;
}

.wp-orbit-sweeps use {
  stroke-width: 1px;
  stroke-dasharray: 2 16 5 77;
  animation: wp-orbit-flow 26s linear infinite;
}

.wp-orbit-sweeps use:nth-child(2) {
  opacity: .7;
  animation-duration: 34s;
  animation-direction: reverse;
}

@keyframes wp-orbit-flow { to { stroke-dashoffset: -100; } }

.wp-petal {
  --petal-size: 8px;
  --drift-x: 13cqw;
  --drift-y: 48cqh;
  position: absolute;
  left: var(--start-x);
  top: var(--start-y);
  width: var(--petal-size);
  aspect-ratio: 1.55;
  border-radius: 80% 18% 76% 26%;
  background: linear-gradient(155deg, #fff4ff 8%, #ffc7ec 43%, #c585d8a1 85%);
  box-shadow: 0 0 4px #edacff85;
  animation: wp-petal-drift var(--flight) var(--phase) ease-in-out infinite;
}

.wp-petal:nth-child(1) { --start-x: 3%;  --start-y: 18%; --flight: 18s; --phase: -13s; }
.wp-petal:nth-child(2) { --start-x: 12%; --start-y: 1%;  --flight: 24s; --phase: -5s; }
.wp-petal:nth-child(3) { --start-x: 21%; --start-y: 45%; --flight: 19s; --phase: -9s; }
.wp-petal:nth-child(4) { --start-x: 34%; --start-y: 9%;  --flight: 22s; --phase: -16s; }
.wp-petal:nth-child(5) { --start-x: 44%; --start-y: 56%; --flight: 21s; --phase: -4s; }
.wp-petal:nth-child(6) { --start-x: 58%; --start-y: 42%; --flight: 17s; --phase: -12s; }
.wp-petal:nth-child(7) { --start-x: 71%; --start-y: 6%;  --flight: 23s; --phase: -18s; }
.wp-petal:nth-child(8) { --start-x: 80%; --start-y: 51%; --flight: 20s; --phase: -15s; }
.wp-petal:nth-child(9) { --start-x: 89%; --start-y: 16%; --flight: 25s; --phase: -7s; }
.wp-petal:nth-child(3n) { --petal-size: 13px; filter: blur(.85px); }
.wp-petal:nth-child(3n + 1) { --petal-size: 5px; filter: blur(.4px); }

@keyframes wp-petal-drift {
  0% { transform: translate3d(0, 0, 0) rotate(-32deg); opacity: 0; }
  18%, 78% { opacity: .68; }
  50% { transform: translate3d(calc(var(--drift-x) * .62), calc(var(--drift-y) * .47), 0) rotate(64deg) scaleY(.65); }
  100% { transform: translate3d(var(--drift-x), var(--drift-y), 0) rotate(153deg); opacity: 0; }
}

#world-ambient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #02102688, #14274f44 62%, #050d2866);
  opacity: 0;
  transition: opacity var(--world-camera);
}

#view-world.is-zoomed #world-ambient-bg { opacity: 1; }
#view-world.is-zoomed .wp-layer {
  translate: 0 0;
  transition: translate 650ms ease-out, transform var(--world-camera), opacity 700ms ease, filter var(--world-camera);
}
#view-world.is-zoomed .wp-layer-xiaok { transform: scale(1.85); filter: blur(3px); opacity: 0; }
#view-world.is-zoomed .wp-layer-earth { transform: scale(2.2); filter: blur(4px); opacity: 0; }
#view-world.is-zoomed .wp-layer-fx { opacity: 0; }

.world-overview-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 2.2vh, 30px) clamp(70px, 6vw, 120px) clamp(22px, 4vh, 48px);
  z-index: 1;
  pointer-events: none;
  transition: opacity 400ms ease, visibility 0s;
}

#view-world.is-zoomed .world-overview-layer {
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 0s 400ms;
}

.world-cosmic-header,
.wo-cosmic-speech,
.world-zoomed-left-hud {
  color: #fff;
  border: 1px solid rgba(144, 221, 255, .58);
  background: linear-gradient(120deg, rgba(8, 27, 73, .85), rgba(19, 62, 112, .63));
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #dbf7ff1f, 0 8px 30px #0210273d;
}

.world-cosmic-header {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  text-align: left;
  width: 43%;
  max-width: 520px;
  margin-top: .6rem;
  border-radius: 3px 16px 16px 16px;
  padding: clamp(.85rem, 1.5vw, 1.45rem);
}

.world-cosmic-header .sec-code {
  color: #a8eaff;
  font-size: clamp(.73rem, .81vw, .84rem);
}

.wo-cosmic-title {
  margin: .45rem 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.85vw, 2rem);
  line-height: 1.25;
  font-weight: 900;
  text-wrap: balance;
}

.wo-cosmic-desc {
  color: #e5f3ff;
  font-size: clamp(.875rem, .96vw, 1rem);
  line-height: 1.65;
}

#world-earth-hotspot {
  position: absolute;
  inset: 61% 4% 0;
  border: 0;
  border-radius: 50% 50% 0 0;
  background: transparent;
  cursor: zoom-in;
  pointer-events: auto;
}

#world-earth-hotspot:is(:hover, :focus-visible) {
  background: radial-gradient(ellipse at 29% 12%, #beedff1c, transparent 53%);
}

#view-world :focus-visible { outline: 3px solid #fff274; outline-offset: 3px; }

.world-cosmic-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  max-width: 640px;
  text-align: center;
}

.wo-cosmic-speech {
  font-size: .9rem;
  font-weight: 650;
  border-radius: 99px;
  padding: .42rem 1.15rem;
}

.world-enter-btn {
  pointer-events: auto;
  min-height: 44px;
  padding: .72rem 1.55rem;
  font-size: .95rem;
}

#view-world.is-zoomed :is(#world-enter-map-btn, #world-earth-hotspot) { pointer-events: none; }

.world-atlas-panels { display: contents; }

.oneshot-earth-anchor {
  position: absolute;
  left: 50%;
  top: 77%;
  width: min(38%, 490px);
  transform: translate(-50%, 10%) scale(.72);
  transform-origin: 50% 0;
  z-index: 2;
  display: grid;
  grid-template-rows: 0 auto;
  align-items: center;
  justify-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: left var(--world-camera), top var(--world-camera), transform var(--world-camera), opacity 600ms ease, visibility 0s 820ms;
}

#view-world.is-zoomed .oneshot-earth-anchor {
  left: 24.5%;
  top: 50%;
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.oneshot-globe {
  width: var(--atlas-diameter);
  height: auto;
  aspect-ratio: 1;
}

.oneshot-globe .crystal-ball {
  width: 100%;
  height: 100%;
  border: 0;
  overflow: visible;
  box-shadow: none;
}

.painted-earth-globe-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.oneshot-globe .crystal-ball::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  box-shadow: 0 0 26px 2px #57dfff99;
  z-index: -1;
  animation: wp-globe-glow 9s ease-in-out infinite alternate;
}

@keyframes wp-globe-glow { from { opacity: .45; } to { opacity: .9; } }

.oneshot-globe .globe-orbit-svg { width: 116%; height: 116%; }
.oneshot-globe .crystal-glare { opacity: .28; }
.oneshot-globe .globe-pin { width: 2.75rem; }
#orb-click-shield, #world-orb-float-tip { display: none; }

.world-zoomed-left-hud {
  width: 100%;
  margin-top: calc(var(--atlas-diameter) * .5 + 1rem);
  padding: .7rem 1rem;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 560ms ease;
}

#view-world.is-zoomed .world-zoomed-left-hud {
  opacity: 1;
  transform: none;
  transition-delay: 140ms;
}

.world-xiaok-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem;
  align-items: center;
  padding-top: .5rem;
  border-top: 1px solid rgba(142, 220, 255, .48);
}

.xiaok-hud-avatar {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: 50% top;
  border-radius: 50%;
  border: 1px solid #8cddff;
  background: #142e60;
}

.world-zoomed-left-hud .xiaok-speech-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff;
}

.world-zoomed-dossier {
  position: absolute;
  right: clamp(66px, 5vw, 100px);
  top: 50%;
  width: min(46%, 850px);
  max-height: calc(100% - 2rem);
  overflow-y: auto;
  transform: translateY(-50%) translateX(42px) scale(.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 3;
  transition: opacity 500ms ease, transform var(--world-camera), visibility 0s 820ms;
}

#view-world.is-zoomed .world-zoomed-dossier {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
  transition-delay: 100ms, 0s, 0s;
}

.world-back-intro-btn {
  cursor: pointer;
  background: #0a1b37;
  color: #a8eaff;
  border: 1px solid #62cfff;
  border-radius: 99px;
  padding: .42rem .85rem;
  font-size: .82rem;
  font-weight: 800;
}

.world-back-intro-btn:hover { background: #8cddff; color: #0c1a30; }

@media (max-height: 700px) {
  .world-zoomed-dossier .region-scene-frame { height: 27vh; min-height: 130px; }
  .world-zoomed-left-hud .xiaok-speech-box { font-size: .875rem; line-height: 1.42; }
}

@media (max-width: 1120px) {
  .world-overview-layer { padding-inline: clamp(14px, 3.5vw, 36px); }
  .world-zoomed-dossier { right: 2%; width: 49%; }
}

@media (max-width: 800px), (max-aspect-ratio: 1/1), (max-height: 490px) {
  .world-oneshot-stage { --atlas-diameter: min(76vw, 350px); }

  .world-atlas-panels {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1rem 1.5rem;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    z-index: 2;
    transition: visibility 0s 820ms;
  }

  #view-world.is-zoomed .world-atlas-panels {
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition-delay: 0s;
  }

  .world-atlas-panels .oneshot-earth-anchor {
    position: relative;
    inset: auto;
    flex: none;
    width: min(100%, 490px);
    grid-template-rows: auto auto;
    transform: translateY(48vh) scale(.72);
  }

  #view-world.is-zoomed .world-atlas-panels .oneshot-earth-anchor { inset: auto; transform: none; }
  .world-zoomed-left-hud { margin-top: 1.35rem; }
  .world-atlas-panels .world-zoomed-dossier {
    position: relative;
    inset: auto;
    flex: none;
    width: min(100%, 720px);
    max-height: none;
    overflow: hidden;
    transform: translateY(28px);
  }

  #view-world.is-zoomed .world-atlas-panels .world-zoomed-dossier { transform: none; }
  .world-zoomed-dossier .region-scene-frame { height: clamp(185px, 54vw, 330px); }
  .world-zoomed-dossier .region-dossier-body { padding: 1rem; }
}

@media (max-aspect-ratio: 1/1) {
  /* The text occupies its own intrinsic row. At any language or font size the
     painted frame begins below it, keeping both horns and eyes clear. */
  .world-oneshot-stage {
    display: grid;
    grid-template: auto minmax(19rem, 1fr) / minmax(0, 1fr);
    overflow: hidden auto;
    background: #051334 url("assets/world-b2-sky.jpg") center top / cover;
  }

  .world-camera-frame { grid-area: 2 / 1; }
  #world-parallax-stage { --world-frame-x: .67; }
  .world-overview-layer {
    position: relative;
    inset: auto;
    grid-area: 1 / 1 / 3;
    display: grid;
    grid-template-rows: subgrid;
    align-items: start;
    justify-content: normal;
    padding: 0;
  }

  .world-cosmic-header {
    grid-row: 1;
    width: min(calc(100% - 2rem), 520px);
    margin: .6rem 1rem 1rem;
    padding: .8rem 1rem;
  }

  .wo-cosmic-title { font-size: clamp(1.16rem, 3.4vw, 1.6rem); }
  .wo-cosmic-desc { font-size: .875rem; line-height: 1.45; }
  #world-earth-hotspot { grid-row: 2; inset: 60% 0 0; }
  .world-cosmic-cta {
    grid-row: 2;
    align-self: end;
    justify-self: center;
    max-width: min(90%, 590px);
    margin-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .wo-cosmic-speech { border-radius: 14px; }
  #view-world.is-zoomed .world-oneshot-stage { overflow: clip; }
}

@media (max-aspect-ratio: 1/1) and (max-height: 690px) {
  .world-oneshot-stage { grid-template-rows: auto minmax(16rem, 1fr); }
}

@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .world-cosmic-header {
    width: 42%;
    max-height: 72%;
    overflow: auto;
    pointer-events: auto;
    margin-top: 0;
    padding: .65rem .85rem;
  }
  .wo-cosmic-title { font-size: 1.08rem; }
  .wo-cosmic-desc { font-size: .83rem; line-height: 1.4; }
  .world-overview-layer { padding-block: .6rem; }
  .world-cosmic-cta { gap: .3rem; }
  .wo-cosmic-speech { padding: .26rem .8rem; }
}

#view-world:not(.active) :is(.wp-layer, .wp-layer img, .wp-sunrise-flare, .wp-orbit-sweeps use, .wp-petal, .globe-orbit-svg),
#view-world:not(.active) .wp-layer-earth::before,
#view-world:not(.active) .wp-layer-earth::after,
#view-world:not(.active) .crystal-ball::before,
#view-world:not(.is-zoomed) .globe-orbit-svg,
#view-world:not(.is-zoomed) .crystal-ball::before,
#view-world.is-zoomed :is(.wp-layer-xiaok img, .wp-layer-earth img, .wp-sunrise-flare, .wp-orbit-sweeps use, .wp-petal),
#view-world.is-zoomed .wp-layer-earth::before,
#view-world.is-zoomed .wp-layer-earth::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ba-view { transition: none; }
  .ba-slash-wipe { display: none; }
  #view-world, #view-world *, #view-world *::before, #view-world *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 4. CHARACTER — NO-LOGO CLEAN FACTION HEADER + MULTI-FORM SWITCHER + CALIBRATED STANDEE */
.char-club-hero-row.no-logo {
  height: 66px;
}

.char-club-hero-row.no-logo .char-club-big-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(1.32rem, 1.68vw, 1.68rem);
  margin-top: 5px;
}

.char-club-hero-row.no-logo .char-club-big-name::before {
  content: "";
  width: 8px;
  height: 0.95em;
  background: var(--ba-cyan);
  transform: skewX(var(--skew));
  box-shadow: 3px 0 0 var(--ba-yellow);
}

.char-form-tabs {
  position: absolute;
  top: 14px;
  left: 6px;
  z-index: 16;
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
}

.char-form-tabs:empty {
  display: none;
}

.char-form-tab {
  cursor: pointer;
  border: 2px solid rgba(18, 140, 250, 0.42);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ba-navy);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.42rem 0.98rem;
  transform: skewX(var(--skew));
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: all 0.18s ease;
}

.char-form-tab span {
  display: inline-block;
  transform: skewX(var(--unskew));
}

.char-form-tab:hover {
  border-color: var(--ba-cyan);
  color: var(--ba-cyan);
}

.char-form-tab.active {
  background: var(--ba-navy);
  border-color: var(--ba-cyan);
  color: var(--ba-yellow);
  box-shadow: 4px 4px 0 var(--ba-cyan);
  transform: skewX(var(--skew)) translateX(4px);
}

.hc-form-tag {
  transform: skewX(9deg);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 900;
  background: #fef9c3;
  color: #a16207;
  border: 1px solid rgba(202, 138, 4, 0.45);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

.horiz-char-card.active .hc-form-tag {
  background: var(--ba-yellow);
  color: var(--ba-navy);
  border-color: var(--ba-navy);
}

.char-cn-standee-col {
  align-items: flex-end !important;
  padding-bottom: 0.35rem;
  overflow: visible;
}

.char-cn-standee-col .char-halo-bg {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: none;
}

.char-cn-standee-col .char-standee-img {
  height: calc(clamp(410px, 64vh, 690px) * var(--standee-scale, 1));
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform-origin: bottom center;
  transition: height 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1120px) {
  .nc-list-card { grid-template-columns: 1fr; }
  .nc-card-visual { max-height: 150px; }
  .char-cn-standee-col .char-standee-img {
    max-width: 90vw;
    height: calc(52vh * var(--standee-scale, 1));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 106px;
    --dock-clearance: max(72px, calc(60px + env(safe-area-inset-bottom)));
    --view-gutter: clamp(14px, 3.5vw, 30px);
  }

  .ba-stage-deck { width: 100%; height: 100dvh; }
  .ba-header-inner {
    width: 100%;
    padding-inline: var(--view-gutter);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 51px minmax(0, 1fr);
    gap: 0 .55rem;
  }
  .brand-logo { display: block; width: auto; max-width: 100%; height: 30px; object-fit: contain; }
  .header-tools { grid-column: 2; grid-row: 1; gap: .45rem; }
  .ba-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    gap: .3rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 5px 6px;
    scrollbar-width: thin;
  }
  .ba-nav-item {
    flex: 1 0 auto;
    min-height: 36px;
    justify-content: center;
    padding: .25rem .65rem;
  }
  .ba-nav-item .en-sub { font-size: .6rem; }
  .ba-nav-item .cn-main { font-size: .84rem; }

  .ba-stage-rail { display: none; }
  .sns-floating-dock {
    display: flex;
    flex-direction: row;
    gap: .32rem;
    top: auto;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 16px);
    padding: .3rem;
    border: 1px solid #ffffff45;
    border-radius: 12px;
    background: #14243ee8;
    box-shadow: 0 4px 22px #0712294d;
  }
  .sns-dock-item { width: 40px; height: 39px; flex: 0 1 auto; }
  .sns-dock-item:hover { transform: none; }
  .sns-dock-tip { display: none; }

  .ba-view {
    height: 100dvh;
    padding-top: var(--header-h);
    padding-bottom: var(--dock-clearance);
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .view-inner {
    width: 100%;
    height: auto;
    flex: none;
    padding: 1rem var(--view-gutter);
    overflow: visible;
    justify-content: flex-start;
  }
  .ba-sec-header { gap: .75rem; }
  .ba-sec-en { font-size: clamp(2.1rem, 5vw, 3.65rem); }

  .kv-hero-lockup {
    left: var(--view-gutter);
    right: var(--view-gutter);
    bottom: calc(var(--dock-clearance) + .8rem);
    max-width: 640px;
  }
  .kv-welcome-en { font-size: clamp(.8rem, 2.1vw, 1.13rem); letter-spacing: .16em; }
  .kv-slogan-main { font-size: clamp(1.3rem, 3.8vw, 2rem); text-wrap: balance; }

  .news-layout { gap: 1rem; }
  .news-banner-card { height: auto; min-height: 220px; aspect-ratio: 16 / 9; }
  .news-list-panel { height: auto; padding: 1rem; }
  .news-items { overflow: visible; }
  .news-row { gap: .55rem; }
  .news-row-title { white-space: normal; overflow-wrap: anywhere; }
  .news-row:hover { transform: none; }

  #view-world { overflow: hidden auto; }
  .world-oneshot-stage {
    --atlas-diameter: min(66vw, 350px);
    display: grid;
    grid-template: auto minmax(clamp(15rem, 67vw, 29rem), 1fr) auto / minmax(0, 1fr);
    height: auto;
    min-height: max(100%, calc(100dvh - var(--header-h) - var(--dock-clearance)));
    background: #051334 url("assets/world-b2-sky.jpg") center / cover;
    padding: 0;
    overflow: visible;
  }
  .world-camera-frame { grid-area: 2 / 1 / 4; }
  #world-parallax-stage { inset: 0; }
  #world-parallax-stage .wp-layer-sky { inset: 0; width: 100%; height: 100%; }
  #world-parallax-stage :is(.wp-layer-xiaok, .wp-layer-earth, .wp-layer-fx) {
    --plate-width: min(134cqw, 177.778cqh, 900px);
    left: calc(50% - var(--plate-width) * .63);
    top: calc((100cqh - var(--plate-width) * .5625) * .32);
    height: calc(var(--plate-width) * .5625);
  }
  .world-overview-layer {
    grid-area: 1 / 1 / 4;
    display: grid;
    position: relative;
    inset: auto;
    grid-template-rows: subgrid;
    padding: 0;
    align-items: start;
  }
  .world-cosmic-header {
    grid-row: 1;
    width: min(calc(100% - 2 * var(--view-gutter)), 580px);
    max-width: none;
    max-height: none;
    justify-self: center;
    margin: .75rem 0 .4rem;
    padding: .75rem .9rem;
    pointer-events: none;
  }
  .wo-cosmic-title { font-size: clamp(1.16rem, 3.5vw, 1.6rem); }
  .wo-cosmic-desc { font-size: .875rem; line-height: 1.48; }
  #world-earth-hotspot { grid-row: 2 / 4; inset: 56% 0 0; }
  .world-cosmic-cta {
    grid-row: 3;
    justify-self: center;
    align-self: end;
    width: min(calc(100% - 2 * var(--view-gutter)), 560px);
    margin: 0 0 .7rem;
    gap: .45rem;
  }
  .wo-cosmic-speech { font-size: .84rem; border-radius: 14px; }
  .world-atlas-panels { display: none; }
  #view-world.is-zoomed .world-oneshot-stage { display: block; overflow: visible; }
  #view-world.is-zoomed .world-overview-layer { display: none; }
  #view-world.is-zoomed .world-atlas-panels {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.55rem var(--view-gutter) 1rem;
    overflow: visible;
  }
  #view-world.is-zoomed .world-atlas-panels .oneshot-earth-anchor {
    position: relative;
    inset: auto;
    width: min(100%, 520px);
    grid-template-rows: auto auto;
    transform: none;
  }
  .world-zoomed-left-hud { margin-top: .85rem; }
  #view-world.is-zoomed .world-atlas-panels .world-zoomed-dossier {
    position: relative;
    inset: auto;
    width: min(100%, 650px);
    max-height: none;
    overflow: hidden;
    transform: none;
  }
  .world-zoomed-dossier .region-scene-frame { height: clamp(185px, 51vw, 330px); }
  .world-zoomed-dossier .region-dossier-body { padding: 1rem; }

  #view-character { background: linear-gradient(155deg, #f4faff 0%, #ffffff 60%, #eef7ff 100%); }
  .char-clean-backdrop { position: fixed; inset: 0; pointer-events: none; }
  .char-cn-topbar { gap: .55rem; }
  .char-cn-region-tabs { gap: .3rem; }
  .cn-reg-tab { font-size: .9rem; padding: .38rem .7rem; }
  .char-editorial-stage,
  .char-cn-main-grid { flex: none; }
  .char-cn-main-grid { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .char-cn-standee-col {
    height: min(42dvh, 390px);
    max-height: 44vh;
    min-width: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
  .char-cn-standee-col .char-halo-bg { width: min(85%, 420px); height: auto; }
  .char-cn-standee-col .char-standee-img {
    height: calc(100% * var(--standee-scale, 1));
    width: auto;
    max-width: 100%;
    max-height: 100%;
  }
  .char-form-tabs { top: .4rem; left: .55rem; }
  .char-cn-info-col { gap: .75rem; min-height: 0; max-width: none; padding-right: 0; }
  .char-club-hero-row { height: auto; }
  .char-name-hero-row { min-height: 0; gap: .7rem; }
  .char-name-hero-row > div { min-width: 0; }
  .char-cn-huge-name { font-size: clamp(1.85rem, 5.2vw, 3rem); overflow-wrap: anywhere; }
  .char-cn-en-sub { overflow-wrap: anywhere; }
  .char-cv-circle-btn { flex: none; }
  .char-cn-spec-strip { flex-wrap: wrap; gap: .4rem .8rem; }
  .spec-inline { white-space: normal; }
  .spec-inline .sv { font-size: .95rem; }
  .spec-sep { display: none; }
  .char-cn-quote, .char-cn-bio { min-height: 0; }
  .char-cn-bottom-bar { flex-direction: column; align-items: stretch; gap: .6rem; margin-top: .85rem; }
  .char-horiz-roster { width: 100%; min-width: 0; overscroll-behavior-x: contain; }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: none;
    overflow: visible;
    padding-inline: 0;
  }
  .fankit-grid { grid-template-columns: minmax(0, 1fr); }
  .mail-form, .mail-input { min-width: 0; }

  .ba-modal-backdrop { padding: 0; }
  .ba-modal {
    display: flex;
    flex-direction: column;
    width: min(94vw, 960px);
    max-width: 94vw;
    max-height: 86dvh;
    overflow: hidden;
    box-shadow: 5px 5px 0 var(--ba-navy);
  }
  .ba-modal-head { flex: 0 0 auto; gap: .6rem; padding: .65rem .85rem; }
  .ba-modal-close { flex: none; white-space: nowrap; }
  .ba-modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
  }
  .nc-list-card { grid-template-columns: minmax(110px, 28%) minmax(0, 1fr); gap: .65rem; }
}

@media (max-width: 600px) {
  :root { --header-h: 100px; }
  .ba-header-inner { grid-template-rows: 47px minmax(0, 1fr); padding-inline: 10px; }
  .brand-logo { height: 25px; }
  .sfx-pill { font-size: .66rem; padding: .4rem .43rem; white-space: nowrap; }
  .lang-btn { padding: .37rem .38rem; font-size: .71rem; }
  .ba-nav-item { padding-inline: .5rem; }
  .ba-nav-item .en-sub { font-size: .56rem; }
  .ba-nav-item .cn-main { font-size: .75rem; }
  .sns-dock-item { width: 37px; height: 37px; }

  .ba-sec-header { align-items: flex-start; flex-direction: column; }
  .news-banner-card { min-height: 190px; }
  .news-banner-overlay { padding: 1.6rem .8rem .7rem; }
  #news-banner-title { font-size: 1rem !important; }
  .news-banner-dots { margin-top: .5rem; }
  .news-dot { width: 23px; height: 9px; }
  .news-dot.active { width: 35px; }
  .news-list-panel { padding: .7rem; }
  .news-tabs { gap: .4rem; padding-bottom: .65rem; }
  .news-tab { padding: .38rem .52rem; }
  .news-row { gap: .32rem .52rem; padding: .58rem .1rem; grid-template-columns: auto 1fr; }
  .news-row-main { grid-column: 1 / -1; grid-row: 2; }
  .news-row-title { font-size: .92rem; }
  .news-row-date { justify-self: end; font-size: .76rem; }
  .news-cat-badge { padding-inline: .5rem; white-space: nowrap; }

  .world-oneshot-stage { --atlas-diameter: min(75vw, 290px); }
  .world-zoomed-left-hud { padding: .65rem; }
  .world-zoomed-left-hud .xiaok-speech-box { font-size: .87rem; }
  .world-back-intro-btn { min-height: 39px; }
  .xiaok-hud-avatar { width: 44px; height: 44px; }

  .char-cn-inner { gap: .6rem; }
  .char-cn-region-tabs { width: 100%; }
  .char-cn-topbar { padding-bottom: .5rem; }
  .char-cn-standee-col { height: min(37dvh, 330px); }
  .char-form-tab { font-size: .7rem; padding-inline: .55rem; }
  .char-cv-circle-btn { width: 55px; height: 55px; }
  .char-cn-spec-strip { column-gap: .7rem; padding-block: .55rem; }

  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .mail-banner { padding: 1rem; }
  .mail-form { flex-wrap: wrap; }
  .mail-input { flex: 1 1 100%; }
  .sns-qq-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .sns-qq-box { padding: .75rem; }
  .nc-list-card { grid-template-columns: minmax(86px, 34%) minmax(0, 1fr); padding: .5rem; }
  .nc-card-top { flex-wrap: wrap; gap: .2rem .4rem; }
  .nc-card-sum { font-size: .8rem; }
  .nc-search-input { width: 100%; min-width: 0; }
  .nc-art-title { flex-basis: 100%; font-size: 1.1rem; }
}
