body {
  --promo-row-height: 36px;
  --utility-row-height: 88px;
  --sticky-nav-height: 70px;
  background: var(--dy-bg-primary);
  color: var(--dy-text-primary);
  overflow-x: hidden;
}
body[data-lang="ja"] { font-family: "Noto Sans JP", "Hiragino Sans", var(--dy-font-sans); }
body[data-lang="ko"] { font-family: "Noto Sans KR", "Apple SD Gothic Neo", var(--dy-font-sans); }
body[data-lang="en"] .hero-h1, body[data-lang="fr"] .hero-h1 { letter-spacing: 1.5px; font-size: clamp(32px, 3.6vw, 48px); }
body[data-lang="en"] .band-h2, body[data-lang="fr"] .band-h2 { letter-spacing: 2px; font-size: 28px; }
body[data-lang="en"] .wordmark-zh, body[data-lang="fr"] .wordmark-zh { letter-spacing: 7px; font-size: 24px; }
body[data-lang="en"] .pnav-item, body[data-lang="fr"] .pnav-item { letter-spacing: 0.9px; font-size: 11px; }
body[data-lang="en"] .primary-nav, body[data-lang="fr"] .primary-nav { gap: 15px; }
body[data-lang="en"] .nav-row, body[data-lang="fr"] .nav-row { --nav-side-width: 120px; --nav-inline-padding: 28px; }

/* Language Dropdown */
.lang-wrap {
  position: relative;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 132px;
  max-height: calc(100dvh - var(--lang-menu-top-bound) - 8px);
  overflow-y: auto;
  background: #061317;
  border: 1px solid var(--dy-border-gold);
  padding: 6px 0;
  display: none;
  z-index: 120;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.lang-menu.open { display: block; }
.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  color: var(--dy-text-secondary);
  font-size: 12.5px;
  letter-spacing: 0.6px;
  cursor: pointer;
  text-align: left;
}
.lang-opt:hover, .lang-opt.active {
  background: rgba(205, 170, 98, 0.12);
  color: var(--dy-gold-light);
}

/* ==========================================================================
   0. CEREMONIAL PC OPENING SPLASH — 北斗七星阵 (3s)
   ========================================================================== */
.pc-splash {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: radial-gradient(56% 58% at 50% 42%, #133642 0%, #0A2027 52%, #051115 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity .7s ease, visibility .7s ease;
  cursor: pointer;
  overflow: hidden;
}
.pc-splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pc-star-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-star-glow {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 211, 160, 0.18) 0%, rgba(205, 170, 98, 0.06) 52%, transparent 74%);
  animation: dyPcPulse 2.4s ease-in-out infinite;
}
.pc-outer-ring {
  transform-origin: 124px 124px;
  animation: dyPcSpin 20s linear infinite;
}
.pc-inner-ring {
  transform-origin: 124px 124px;
  animation: dyPcSpinRev 26s linear infinite;
}
.pc-dipper-path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: dyPcDraw 1.65s cubic-bezier(.22, .61, .36, 1) forwards;
}
.pc-dipper-star {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: dyPcStarPop .55s ease forwards;
}
.pc-dipper-star.s1 { animation-delay: .12s; }
.pc-dipper-star.s2 { animation-delay: .30s; }
.pc-dipper-star.s3 { animation-delay: .48s; }
.pc-dipper-star.s4 { animation-delay: .66s; }
.pc-dipper-star.s5 { animation-delay: .84s; }
.pc-dipper-star.s6 { animation-delay: 1.02s; }
.pc-dipper-star.s7 { animation-delay: 1.20s; }
@keyframes dyPcSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes dyPcSpinRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes dyPcDraw { to { stroke-dashoffset: 0; } }
@keyframes dyPcStarPop {
  0% { opacity: 0; transform: scale(0.3); }
  65% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes dyPcPulse {
  0%, 100% { transform: scale(0.94); opacity: 0.72; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ==========================================================================
   1. TIFFANY-STYLE 3-TIER HEADER -> COLLAPSES TO 72px SINGLE-ROW STICKY BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition: background .28s ease, box-shadow .28s ease;
  background: linear-gradient(180deg, rgba(6, 19, 23, 0.72) 0%, rgba(6, 19, 23, 0.22) 70%, transparent 100%);
}
.site-header.scrolled,
.site-header.mega-open {
  background: #061317;
  box-shadow: 0 1px 0 rgba(232, 211, 160, 0.12);
}

/* Tier 1: Global Announcement Ribbon (36px) */
.promo-bar {
  height: var(--promo-row-height);
  background: linear-gradient(90deg, #9C7C3E 0%, #CDAA62 50%, #9C7C3E 100%);
  color: #1B1508;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  padding: 0 24px;
  transition: height .25s ease, opacity .25s ease;
  overflow: hidden;
}
.site-header.scrolled .promo-bar {
  height: 0;
  opacity: 0;
  visibility: hidden;
}
.promo-arrow {
  background: none;
  border: none;
  color: rgba(27, 21, 8, 0.72);
  font-size: 14px;
  cursor: pointer;
  padding: 0 6px;
}
.promo-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 8px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: #1B1508;
  font-size: 12px;
}

/* Tier 2: Utility Left + Monumental Centered Wordmark + Utility Right */
.utility-row {
  --lang-menu-top-bound: calc(var(--promo-row-height) + var(--utility-row-height) + 10px);
  max-width: 1400px;
  margin: 0 auto;
  height: var(--utility-row-height);
  padding: 0 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: height .25s ease, opacity .2s ease;
}
.site-header.scrolled .utility-row {
  height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
}
.util-left, .util-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.util-right { justify-content: flex-end; }
.util-btn {
  background: none;
  border: none;
  color: var(--dy-text-primary);
  font-size: 12px;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s ease;
}
.util-btn:hover { color: var(--dy-gold-light); }

.wordmark-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.wordmark-zh {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 11px;
  padding-left: 11px;
  color: var(--dy-gold-light);
  line-height: 1;
}
.wordmark-en {
  font-size: 9.5px;
  letter-spacing: 4.5px;
  padding-left: 4.5px;
  color: rgba(232, 211, 160, 0.62);
}

/* Tier 3: Centered Primary Category Navigation (also acts as the 72px sticky bar) */
.nav-row {
  --nav-side-width: 180px;
  --nav-inline-padding: 44px;
  max-width: 1400px;
  margin: 0 auto;
  height: 50px;
  padding: 0 var(--nav-inline-padding);
  display: grid;
  grid-template-columns: var(--nav-side-width) minmax(0, 1fr) var(--nav-side-width);
  align-items: center;
  transition: height .25s ease;
}
.site-header.scrolled .nav-row {
  height: var(--sticky-nav-height);
}
.sticky-mini-left, .sticky-mini-right {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease;
}
.sticky-mini-right {
  --lang-menu-top-bound: calc(var(--sticky-nav-height) + 10px);
  justify-content: flex-end;
  white-space: nowrap;
}
.site-header.scrolled .sticky-mini-left,
.site-header.scrolled .sticky-mini-right {
  opacity: 1;
  visibility: visible;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pnav-item {
  position: relative;
  background: none;
  border: none;
  color: rgba(237, 230, 214, 0.88);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 14px 0;
  cursor: pointer;
  transition: color .2s ease;
  white-space: nowrap;
}
.pnav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--dy-gold-mid);
  transform: scaleX(0);
  transition: transform .22s ease;
}
.pnav-item:hover, .pnav-item.active {
  color: var(--dy-gold-light);
}
.pnav-item:hover::after, .pnav-item.active::after {
  transform: scaleX(1);
}
.pnav-sep {
  color: rgba(205, 170, 98, 0.45);
  font-size: 14px;
  user-select: none;
}
