/* ============================================================
   重置
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  color-scheme: dark;
  --red:      #ff2d55;
  --red-d:    #cc0e30;
  --red-l:    #ff6b85;
  --gold:     #ffb700;
  --gold-d:   #cc8f00;
  --gold-l:   #ffd966;
  --cyan:     #00e5ff;
  --bg-page:        #040204;
  --bg-grid-1:      rgba(255, 45, 85, .04);
  --bg-grid-2:      rgba(255, 183, 0, .015);
  --bg-glow-top:    rgba(255, 45, 85, .18);
  --bg-glow-left:   rgba(255, 183, 0, .10);
  --bg-glow-right:  rgba(0, 229, 255, .06);
  --scanline:       rgba(255, 255, 255, .012);
  --vignette-1:     rgba(4, 2, 4, .6);
  --vignette-2:     rgba(0, 0, 0, .35);
  --text:      #f0e6d2;
  --text-dim:  #a58c6f;
  --text-mute: #8a7460;
  --panel-bg:       rgba(24, 10, 15, .72);
  --panel-bg-2:     rgba(14, 6, 10, .7);
  --panel-bg-deep:  rgba(6, 3, 5, .99);
  --panel-inner:    rgba(255, 183, 0, .06);
  --border:       rgba(255, 45, 85, .22);
  --border-hi:    rgba(255, 45, 85, .55);
  --border-gold:  rgba(255, 183, 0, .35);
  --glow-strength: 1;
  --hud-blink: 2s;
  --hud-dot:   #00e5ff;
  --gold-glow:  255, 183, 0;
  --red-glow:   255, 45, 85;
  --cyan-glow:  0, 229, 255;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body{
  background-color: var(--bg-page);
  background-image:
    linear-gradient(var(--bg-grid-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid-1) 1px, transparent 1px),
    linear-gradient(var(--bg-grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid-2) 1px, transparent 1px),
    radial-gradient(ellipse 90% 55% at 50% 0%,   var(--bg-glow-top),   transparent 60%),
    radial-gradient(ellipse 60% 40% at 8% 6%,    var(--bg-glow-left),  transparent 55%),
    radial-gradient(ellipse 70% 50% at 94% 90%,  var(--bg-glow-right), transparent 55%);
  background-size: 44px 44px, 44px 44px, 220px 220px, 220px 220px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC',
               'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  padding: 0 12px 60px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  position: relative;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
    transparent 0, transparent 2px,
    var(--scanline) 2px, var(--scanline) 3px);
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: overlay;
}
body::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, var(--vignette-1) 0%, transparent 12%, transparent 88%, var(--vignette-1) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 60%, var(--vignette-2) 100%);
  pointer-events: none;
  z-index: 9997;
}

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.gate-active .hud,
body.gate-active #perfToggle {
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

/* ============ HUD ============ */
.hud{
  position: fixed;
  z-index: 9996;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: .66rem;
  letter-spacing: 1.2px;
  color: var(--gold);
  text-transform: uppercase;
  pointer-events: none;
  padding: 6px 10px;
  border: 1px solid var(--border-gold);
  background: var(--panel-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .35s ease;
  opacity: .85;
}
.hud i{ font-size: .62rem; color: var(--gold); }
.hud::before{
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--hud-dot);
  box-shadow: 0 0 6px var(--hud-dot);
  animation: hudBlink var(--hud-blink) ease-in-out infinite;
}
@keyframes hudBlink{
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}
.hud-tl { top: 14px; left: 14px; }
.hud-tr { top: 14px; right: 14px; }
.hud-bl { bottom: 14px; left: 50%; transform: translateX(-50%); }

.hud-tr::after{
  content: "";
  margin-left: 2px;
  font-size: .58rem;
  letter-spacing: 1.4px;
  color: var(--text-mute);
  opacity: .75;
}
html[data-perf="high"]   .hud-tr::after { content: "· HIGH"; }
html[data-perf="medium"] .hud-tr::after { content: "· MED";  }
html[data-perf="low"]    .hud-tr::after { content: "· LOW";  }

@media (max-width: 720px){
  .hud{ font-size: .58rem; padding: 5px 8px; }
  .hud-tl { top: 10px; left: 10px; }
  .hud-tr { top: 10px; right: 10px; }
  .hud-bl { display: none; }
}

/* ============ 性能切换 ============ */
#perfToggle{
  position: fixed;
  top: 52px; right: 14px;
  z-index: 9997;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-bg);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .25s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: 'JetBrains Mono', monospace;
  padding: 0;
}
#perfToggle:hover{
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 183, 0, .35);
  transform: translateY(-1px);
}
#perfToggle:active{ transform: scale(.94); }
#perfToggle .perf-icon{ font-size: .78rem; line-height: 1; }
#perfToggle .perf-label{ font-size: .56rem; margin-top: 2px; letter-spacing: 1px; opacity: .85; }
#perfToggle[data-tier="high"]   { color: #26ff8f; border-color: rgba(38, 255, 143, .55); }
#perfToggle[data-tier="medium"] { color: var(--gold); }
#perfToggle[data-tier="low"]    { color: var(--red-l); border-color: rgba(255, 45, 85, .5); }

@media (max-width: 720px){
  #perfToggle{ top: 44px; right: 10px; width: 34px; height: 34px; border-radius: 5px; }
  #perfToggle .perf-icon{ font-size: .72rem; }
  #perfToggle .perf-label{ font-size: .5rem; }
}

/* ============ 进度条 ============ */
#progress{
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--cyan) 100%);
  z-index: 9999;
  transition: width .1s linear;
  box-shadow:
    0 0 calc(12px * var(--glow-strength)) rgba(255, 45, 85, .8),
    0 0 calc(24px * var(--glow-strength)) rgba(255, 183, 0, .4);
}

/* ============ 粒子层 ============ */
#smoke-canvas{
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1500;
}

/* ============================================================
   赛博庙门
   ============================================================ */
#gate{
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, #1a0409 0%, #0a0203 55%, #000 100%);
  transition: opacity 1.1s ease, background 1.8s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color-scheme: dark;
  perspective: 1600px;
  perspective-origin: 50% 50%;
}
#gate.open{ cursor: default; }
#gate.gone{ opacity: 0; pointer-events: none; }
#gate.hidden{ display: none; }
#gate.open{
  background: radial-gradient(ellipse 70% 60% at 50% 50%, #3a070c 0%, #180304 55%, #000 100%);
}

.gate-inner{
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0307 0%, #080103 100%);
}
.gate-inner-glow{
  position: absolute;
  left: 50%; top: 45%;
  width: 90%; height: 90%;
  margin-left: -45%; margin-top: -45%;
  background: radial-gradient(ellipse 45% 55% at center,
    rgba(255, 245, 220, .95) 0%,
    rgba(255, 200, 100, .55) 25%,
    rgba(255, 45, 85, .18) 55%,
    transparent 78%);
  filter: blur(24px);
  animation: gateInnerPulse 4s ease-in-out infinite;
}
@keyframes gateInnerPulse{
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
.gate-inner-rays{
  position: absolute;
  left: 50%; top: 45%;
  width: 180vmax; height: 180vmax;
  margin-left: -90vmax; margin-top: -90vmax;
  background: conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,   rgba(255, 233, 184, .10) 12deg, transparent 24deg,
      transparent 45deg,  rgba(255, 233, 184, .10) 57deg, transparent 69deg,
      transparent 90deg,  rgba(255, 233, 184, .10) 102deg, transparent 114deg,
      transparent 135deg, rgba(255, 233, 184, .10) 147deg, transparent 159deg,
      transparent 180deg, rgba(255, 233, 184, .10) 192deg, transparent 204deg,
      transparent 225deg, rgba(255, 233, 184, .10) 237deg, transparent 249deg,
      transparent 270deg, rgba(255, 233, 184, .10) 282deg, transparent 294deg,
      transparent 315deg, rgba(255, 233, 184, .10) 327deg, transparent 339deg,
      transparent 360deg);
  animation: gateRaysSpin 90s linear infinite;
  mix-blend-mode: screen;
  opacity: .9;
  pointer-events: none;
}
@keyframes gateRaysSpin{ to{ transform: rotate(360deg); } }
.gate-inner-hall{
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 45%;
  background: radial-gradient(ellipse at center bottom,
    rgba(255, 183, 0, .20) 0%,
    rgba(255, 45, 85, .08) 45%,
    transparent 80%);
  filter: blur(28px);
  pointer-events: none;
}

.gate-lintel{
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 62%;
  max-width: 520px;
  pointer-events: none;
  opacity: 0;
  animation: gateLintelIn 1.3s cubic-bezier(.22, 1, .36, 1) .5s forwards;
}
@keyframes gateLintelIn{
  0%   { opacity: 0; transform: translateX(-50%) translateY(-24px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
#gate.open .gate-lintel,
#gate.gone .gate-lintel{
  opacity: 0;
  transform: translateX(-50%) translateY(-30px);
  transition: all .9s ease;
}
.lintel-bar{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold) 20%, var(--gold-l) 50%, var(--gold) 80%, transparent 100%);
  box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(255, 183, 0, .5);
}
.lintel-frame{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 30px 10px;
  background: linear-gradient(180deg, rgba(70, 18, 10, .95), rgba(30, 6, 4, .98));
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  box-shadow:
    0 0 26px rgba(255, 183, 0, .5),
    0 0 60px rgba(255, 45, 85, .25),
    inset 0 0 24px rgba(255, 183, 0, .12),
    inset 0 -3px 6px rgba(0, 0, 0, .6);
}
.lintel-frame::before,
.lintel-frame::after{
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 183, 0, .4);
  border-radius: 3px;
  pointer-events: none;
}
.lintel-frame::before{ inset: 3px; }
.lintel-frame::after { inset: 6px; border-color: rgba(255, 183, 0, .15); }
.lintel-text{
  position: relative;
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 12px;
  padding-left: 12px;
  color: var(--gold-l);
  text-shadow:
    0 0 12px var(--gold),
    0 0 24px rgba(255, 183, 0, .65),
    0 0 48px rgba(255, 45, 85, .35),
    0 1px 0 rgba(255, 245, 205, .55);
}

.gate-door{
  position: absolute;
  top: 0; bottom: 0;
  width: 50.1%;
  transition:
    transform 1.8s cubic-bezier(.66, 0, .34, 1),
    box-shadow .9s ease;
  z-index: 3;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background-color: #2a0805;
}
.gate-door-left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(0, 0, 0, .9);
  box-shadow:
    inset -22px 0 34px rgba(0, 0, 0, .82),
    inset   0  0 120px rgba(0, 0, 0, .7);
}
.gate-door-right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(0, 0, 0, .9);
  box-shadow:
    inset  22px 0 34px rgba(0, 0, 0, .82),
    inset   0  0 120px rgba(0, 0, 0, .7);
}
.gate-door .door-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: saturate(1.05) contrast(1.02);
}
.gate-door::before{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  pointer-events: none;
  z-index: 8;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 200, 120, .28) 14%,
    rgba(255, 226, 160, .55) 50%,
    rgba(255, 200, 120, .28) 86%,
    transparent 100%);
  box-shadow:
    0 0 6px rgba(255, 200, 120, .45),
    0 0 14px rgba(255, 183, 0, .22);
}
.gate-door-left::before  { right: 0; }
.gate-door-right::before { left: 0; }

#gate.open .gate-door-right {
  transition:
    transform 1.8s cubic-bezier(.66, 0, .34, 1) .08s,
    box-shadow .9s ease .08s;
}

.gate-seam{
  position: absolute;
  top: 0; bottom: 22px;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  z-index: 5;
  opacity: .45;
  transition: opacity 1.8s ease;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(255, 255, 255, .7) 14%,
      rgba(255, 255, 255, .95) 42%,
      rgba(255, 255, 255, .95) 58%,
      rgba(255, 255, 255, .7) 86%,
      transparent 100%);
  box-shadow:
    0 0 5px 1px rgba(255, 255, 255, .75),
    0 0 16px 4px rgba(255, 183, 0, .7),
    0 0 40px 8px rgba(255, 45, 85, .35);
}
#gate.open .gate-seam{ opacity: 0; }
#gate.gone .gate-seam{ opacity: 0; }

.gate-sill{
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 26px;
  background:
    linear-gradient(180deg,
      rgba(255, 220, 140, .55) 0%,
      rgba(255, 183, 0, .22)   4%,
      transparent              10%),
    linear-gradient(180deg,
      rgba(170, 52, 24, .95) 0%,
      rgba(126, 32, 15, .96) 24%,
      rgba(70, 14, 7, .98)   58%,
      rgba(24, 5, 3, 1)      82%,
      rgba(10, 2, 1, 1)     100%),
    linear-gradient(90deg,
      rgba(0, 0, 0, .58) 0%,
      transparent 14%,
      transparent 86%,
      rgba(0, 0, 0, .58) 100%),
    radial-gradient(ellipse 60% 70% at 50% 100%,
      rgba(255, 183, 0, .16) 0%,
      transparent 72%);
  box-shadow:
    inset 0  2px 0 rgba(255, 226, 150, .7),
    inset 0  7px 16px rgba(255, 183, 0, .22),
    inset 0 -5px 10px rgba(0, 0, 0, .95),
    inset 0 12px 28px rgba(0, 0, 0, .48),
    0 -3px 18px rgba(0, 0, 0, .9),
    0 -1px 0 rgba(212, 160, 23, .6);
  z-index: 7;
}
.gate-sill::before,
.gate-sill::after{
  content: "";
  position: absolute;
  top: 6px;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 8px var(--gold);
}
.gate-sill::before{ left: 6%; }
.gate-sill::after { right: 6%; }

.gate-carpet{
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 110%;
  max-width: 1200px;
  height: 55vh;
  transform: translateX(-50%) scaleY(0) scaleX(.35);
  transform-origin: bottom center;
  background:
    radial-gradient(ellipse 48% 100% at 50% 100%,
      rgba(255, 250, 230, .95) 0%,
      rgba(255, 220, 140, .75) 10%,
      rgba(255, 183, 0, .5) 30%,
      rgba(255, 100, 120, .3) 52%,
      rgba(255, 45, 85, .12) 72%,
      transparent 92%);
  filter: blur(26px);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition:
    opacity 1.2s cubic-bezier(.22, 1, .36, 1) .55s,
    transform 2.1s cubic-bezier(.22, 1, .36, 1) .55s;
}
#gate.open .gate-carpet{
  opacity: 1;
  transform: translateX(-50%) scaleY(1) scaleX(1);
}
.gate-carpet::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42%;
  height: 70%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 100% at 50% 100%,
      rgba(255, 255, 240, 1) 0%,
      rgba(255, 233, 184, .7) 25%,
      rgba(255, 183, 0, .35) 55%,
      transparent 85%);
  filter: blur(18px);
  pointer-events: none;
}

#gate.open .gate-door-left {
  transform: rotateY(-82deg) translateZ(-10px);
  box-shadow:
    inset -22px 0 34px rgba(0, 0, 0, .82),
    inset 0 0 200px rgba(0, 0, 0, .95),
    40px 0 80px rgba(0, 0, 0, .75);
}
#gate.open .gate-door-right {
  transform: rotateY(82deg) translateZ(-10px);
  box-shadow:
    inset 22px 0 34px rgba(0, 0, 0, .82),
    inset 0 0 200px rgba(0, 0, 0, .95),
    -40px 0 80px rgba(0, 0, 0, .75);
}

.gate-hint{
  position: absolute;
  left: 50%;
  top: 78%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffe9b8;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-shadow:
    0 0 14px rgba(255, 183, 0, .9),
    0 0 32px rgba(255, 45, 85, .5),
    0 2px 14px rgba(0, 0, 0, .9);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
  white-space: nowrap;
  font-family: 'Noto Serif SC', 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, .42);
  padding: 12px 26px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 183, 0, .25);
  animation: hintFloat 3s ease-in-out infinite;
}
@keyframes hintFloat{
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
#gate.open .gate-hint,
#gate.gone .gate-hint{
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}
.gate-hint i{
  font-size: 1.75rem;
  color: #ffd966;
  animation: knobPulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255, 183, 0, .95));
}
@keyframes knobPulse{
  0%, 100% { transform: scale(1);    opacity: .7; }
  50%      { transform: scale(1.16); opacity: 1;  }
}

/* ============================================================
   ✦ 财神锦囊
   ============================================================ */
.fortune-stage{
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease .2s;
}
.fortune-stage.show{ opacity: 1; pointer-events: auto; }

.bag{
  position: relative;
  width: 256px;
  height: 256px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: bagFloat 3.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes bagFloat{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.bag-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 14px 22px rgba(0, 0, 0, .85))
    drop-shadow(0 0 18px rgba(255, 183, 0, .35));
  z-index: 2;
}
.bag-fallback-inner{ display: none; position: absolute; inset: 0; z-index: 1; }
.bag.bag-noimg .bag-img{ display: none; }
.bag.bag-noimg .bag-fallback-inner{ display: block; }
.fb-body{
  position: absolute;
  left: 8px; right: 8px; bottom: 0;
  height: 150px;
  border-radius: 40% 40% 46% 46% / 18% 18% 55% 55%;
  background:
    radial-gradient(ellipse 60% 40% at 50% 20%, #ff5c72 0%, transparent 60%),
    linear-gradient(180deg, #c81633 0%, #9b0e26 45%, #5a0616 100%);
  box-shadow:
    inset 0 -18px 24px rgba(0, 0, 0, .55),
    inset 0 6px 14px rgba(255, 200, 200, .28),
    0 12px 26px rgba(0, 0, 0, .75);
  overflow: hidden;
}
.fb-char{
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  font-size: 52px;
  font-weight: 900;
  color: var(--gold-l);
  text-shadow:
    0 0 12px var(--gold),
    0 0 24px rgba(255, 183, 0, .55),
    0 2px 6px rgba(0, 0, 0, .9);
}
.fb-top{
  position: absolute;
  left: 50%; top: 30px;
  width: 84px; height: 28px;
  margin-left: -42px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #c81633 0%, #6b0a1c 100%);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, .7),
    inset 0 2px 4px rgba(255, 200, 200, .25);
}
.fb-tie{
  position: absolute;
  left: 50%; top: 46px;
  width: 82px; height: 14px;
  margin-left: -41px;
  border-radius: 50% / 60%;
  background: linear-gradient(180deg, #ffe9a8 0%, #d4a017 45%, #6b4a04 100%);
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, .55),
    inset 0 2px 3px rgba(255, 245, 220, .65),
    0 0 10px rgba(255, 183, 0, .55);
}

.bag-halo{
  position: absolute;
  left: 50%; top: 55%;
  width: 260px; height: 260px;
  margin-left: -130px; margin-top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 183, 0, .22) 0%,
    rgba(255, 45, 85, .10) 40%,
    transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: haloPulse 3.6s ease-in-out infinite;
}
@keyframes haloPulse{
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

.bag-hint{
  position: absolute;
  left: 50%; bottom: -46px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--gold-l);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(255, 183, 0, .8);
  animation: hintFade 2.6s ease-in-out infinite;
  font-family: 'JetBrains Mono', monospace;
}
@keyframes hintFade{
  0%, 100% { opacity: .55; }
  50%      { opacity: 1;   }
}

.bag.opening{ animation: bagOpen .55s ease-out forwards; }
@keyframes bagOpen{
  0%   { transform: translateY(-8px) scale(1); opacity: 1; }
  35%  { transform: translateY(-14px) scale(1.06) rotate(-3deg); opacity: 1; }
  60%  { transform: translateY(-10px) scale(.92) rotate(2deg); opacity: .9; }
  100% { transform: translateY(6px) scale(.55); opacity: 0; }
}

.flash{
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 20px;
  margin-left: -10px; margin-top: -10px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 245, 220, .9) 0%,
    rgba(255, 183, 0, .5) 40%,
    transparent 70%);
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}
.flash.on{ animation: flashBurst .55s ease-out forwards; }
@keyframes flashBurst{
  0%   { opacity: .9; transform: scale(1); }
  100% { opacity: 0;  transform: scale(18); }
}

.scroll-card{
  position: absolute;
  left: 50%; top: 50%;
  width: min(380px, 92vw);
  padding: 26px 24px 22px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 200, 100, .18) 0%, transparent 62%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 45, 85, .10) 0%, transparent 62%),
    linear-gradient(160deg, #1c0a12 0%, #0c0408 100%);
  border: 1.5px solid var(--gold);
  box-shadow:
    0 0 46px rgba(255, 183, 0, .35),
    0 28px 70px rgba(0, 0, 0, .88),
    inset 0 0 46px rgba(255, 183, 0, .05);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.88);
  transition: opacity .45s ease, transform .45s cubic-bezier(.34, 1.4, .64, 1);
  z-index: 10;
  overflow: hidden;
}
.scroll-card.show{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.scroll-card::before{
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(255, 183, 0, .32);
  border-radius: 10px;
  pointer-events: none;
}
.scroll-card::after{
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--gold-l), var(--gold-l)) 0 0 / 14px 1.5px no-repeat,
    linear-gradient(var(--gold-l), var(--gold-l)) 0 0 / 1.5px 14px no-repeat,
    linear-gradient(var(--gold-l), var(--gold-l)) 100% 0 / 14px 1.5px no-repeat,
    linear-gradient(var(--gold-l), var(--gold-l)) 100% 0 / 1.5px 14px no-repeat,
    linear-gradient(var(--gold-l), var(--gold-l)) 0 100% / 14px 1.5px no-repeat,
    linear-gradient(var(--gold-l), var(--gold-l)) 0 100% / 1.5px 14px no-repeat,
    linear-gradient(var(--gold-l), var(--gold-l)) 100% 100% / 14px 1.5px no-repeat,
    linear-gradient(var(--gold-l), var(--gold-l)) 100% 100% / 1.5px 14px no-repeat;
  opacity: .85;
}
.sc-deity{
  position: relative;
  width: 88px; height: 88px;
  margin: -58px auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2a0a10, #0a0205);
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 4px rgba(10, 6, 8, .92),
    0 0 0 5px rgba(255, 183, 0, .35),
    0 0 24px rgba(255, 183, 0, .7),
    0 0 48px rgba(255, 45, 85, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}
.sc-deity img{
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.08);
  transform-origin: center 30%;
}
.sc-title{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--gold-l);
  text-shadow:
    0 0 10px var(--gold),
    0 0 22px rgba(255, 183, 0, .55),
    0 0 44px rgba(255, 45, 85, .25);
  margin-bottom: 4px;
  padding-left: 6px;
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}
.sc-title::before,
.sc-title::after{
  content: "✦";
  font-size: .58rem;
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold);
  opacity: .85;
}
.sc-subtitle{
  font-family: 'JetBrains Mono', monospace;
  font-size: .56rem;
  letter-spacing: 3.2px;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sc-divider{ display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.sc-divider span{ flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.sc-divider i{ font-size: .55rem; color: var(--gold); text-shadow: 0 0 6px var(--gold); }
.sc-bless{
  display: inline-flex;
  align-items: center;
  padding: 6px 26px 7px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2e0a14 0%, #180406 100%);
  border: 1px solid var(--gold);
  box-shadow:
    inset 0 0 0 1px rgba(255, 183, 0, .18),
    inset 0 2px 6px rgba(255, 220, 140, .18),
    inset 0 -3px 6px rgba(0, 0, 0, .65),
    0 0 16px rgba(255, 183, 0, .35);
  color: var(--gold-l);
  font-size: .96rem;
  font-weight: 900;
  letter-spacing: 8px;
  padding-left: 34px;
  text-shadow:
    0 0 10px var(--gold),
    0 0 20px rgba(255, 183, 0, .55),
    0 1px 0 rgba(255, 245, 205, .35);
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  margin-bottom: 14px;
  position: relative;
}
.sc-text{
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75;
  color: #ffe9b8;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(255, 183, 0, .35);
  padding: 0 6px;
}
.sc-grid{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  margin-bottom: 10px;
}
.sc-cell{
  position: relative;
  padding: 9px 12px 9px 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 183, 0, .07) 0%, rgba(255, 183, 0, .02) 100%);
  border: 1px solid rgba(255, 183, 0, .22);
  text-align: left;
}
.sc-cell::before{
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--gold), transparent 90%);
  opacity: .75;
}
.sc-cell-label{
  font-size: .56rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.sc-cell-value{
  font-size: .86rem;
  font-weight: 800;
  color: var(--gold-l);
  letter-spacing: 1.2px;
  text-shadow: 0 0 8px rgba(255, 183, 0, .4);
}
.sc-line{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.sc-line::before{
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 1px;
}
.sc-line.good{
  background: linear-gradient(90deg, rgba(38, 255, 143, .10) 0%, rgba(38, 255, 143, .03) 100%);
  border: 1px solid rgba(38, 255, 143, .24);
}
.sc-line.good::before{
  background: linear-gradient(180deg, #26ff8f, transparent 95%);
  box-shadow: 0 0 6px #26ff8f;
}
.sc-line.bad{
  background: linear-gradient(90deg, rgba(255, 45, 85, .10) 0%, rgba(255, 45, 85, .03) 100%);
  border: 1px solid rgba(255, 45, 85, .24);
}
.sc-line.bad::before{
  background: linear-gradient(180deg, var(--red), transparent 95%);
  box-shadow: 0 0 6px var(--red);
}
.sc-line-label{
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .84rem;
  font-weight: 900;
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  position: relative;
}
.sc-line.good .sc-line-label{
  background: radial-gradient(circle at 35% 30%, rgba(38, 255, 143, .3), rgba(38, 255, 143, .08));
  border: 1px solid rgba(38, 255, 143, .55);
  color: #c6ffe2;
  text-shadow: 0 0 8px rgba(38, 255, 143, .8);
  box-shadow: 0 0 8px rgba(38, 255, 143, .35);
}
.sc-line.bad .sc-line-label{
  background: radial-gradient(circle at 35% 30%, rgba(255, 45, 85, .3), rgba(255, 45, 85, .08));
  border: 1px solid rgba(255, 45, 85, .55);
  color: #ffd0d6;
  text-shadow: 0 0 8px rgba(255, 45, 85, .8);
  box-shadow: 0 0 8px rgba(255, 45, 85, .35);
}
.sc-line-value{
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-l);
  letter-spacing: .5px;
  line-height: 1.5;
}
.sc-line.good .sc-line-value{ color: #c6ffe2; text-shadow: 0 0 6px rgba(38, 255, 143, .3); }
.sc-line.bad .sc-line-value{ color: #ffc8d0; text-shadow: 0 0 6px rgba(255, 45, 85, .3); }
.sc-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  margin-top: 8px;
  border-radius: 6px;
  border: 1px solid var(--red);
  background: linear-gradient(135deg, rgba(255, 45, 85, .35), rgba(100, 5, 20, .8));
  color: var(--gold-l);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow:
    0 0 20px rgba(255, 45, 85, .5),
    inset 0 0 16px rgba(255, 45, 85, .12),
    inset 0 1px 0 rgba(255, 200, 200, .25);
  transition: transform .18s ease, box-shadow .18s ease;
  text-shadow: 0 0 8px rgba(255, 183, 0, .6);
  -webkit-tap-highlight-color: transparent;
  font-family: 'JetBrains Mono', 'Noto Serif SC', monospace;
  text-transform: uppercase;
}
.sc-btn:active{ transform: scale(.96); }
@media (hover: hover){
  .sc-btn:hover{
    transform: translateY(-2px);
    box-shadow:
      0 0 32px rgba(255, 45, 85, .85),
      inset 0 0 24px rgba(255, 45, 85, .22),
      inset 0 1px 0 rgba(255, 200, 200, .3);
  }
}

@media (max-width: 480px){
  .gate-hint{ font-size: .78rem; letter-spacing: 2.5px; top: 76%; padding: 10px 18px; }
  .gate-hint i{ font-size: 1.5rem; }
  .gate-lintel{ width: 80%; }
  .lintel-text{ letter-spacing: 8px; }
  .bag{ width: 200px; height: 200px; }
  .fb-body{ height: 128px; }
  .fb-char{ font-size: 44px; }
  .fb-top{ top: 26px; width: 72px; margin-left: -36px; height: 24px; }
  .fb-tie{ top: 40px; width: 72px; margin-left: -36px; }
  .scroll-card{ padding: 22px 16px 18px; }
  .sc-deity{ width: 64px; height: 64px; margin-top: -44px; }
  .sc-title{ letter-spacing: 4px; font-size: .92rem; }
  .sc-subtitle{ font-size: .52rem; letter-spacing: 2.4px; margin-bottom: 12px; }
  .sc-bless{ font-size: .86rem; letter-spacing: 6px; padding: 5px 20px 6px 26px; margin-bottom: 12px; }
  .sc-text{ font-size: .94rem; margin-bottom: 14px; }
  .sc-grid{ gap: 6px; margin-bottom: 8px; }
  .sc-cell{ padding: 8px 9px 8px 11px; }
  .sc-cell-value{ font-size: .78rem; }
  .sc-line{ padding: 9px 10px; margin-bottom: 6px; }
  .sc-line-label{ width: 24px; height: 24px; font-size: .78rem; }
  .sc-line-value{ font-size: .74rem; }
  .sc-btn{ padding: 10px 22px; font-size: .78rem; }
}

/* ============ 主容器 ============ */
.wrap{ max-width: 820px; margin: 0 auto; padding-top: 18px; }

/* ============ HERO ============ */
.hero{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(28px, 6vw, 46px) clamp(18px, 5vw, 40px) clamp(24px, 6vw, 40px);
  text-align: center;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%,   rgba(255, 45, 85, calc(.28 * var(--glow-strength))), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 183, 0, calc(.15 * var(--glow-strength))), transparent 65%),
    linear-gradient(145deg, var(--panel-bg) 0%, var(--panel-bg-deep) 100%);
  border: 1px solid var(--border-hi);
  box-shadow:
    0 0 calc(60px * var(--glow-strength)) rgba(255, 45, 85, .28),
    0 0 calc(120px * var(--glow-strength)) rgba(255, 45, 85, .12),
    inset 0 0 80px rgba(255, 45, 85, .06);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--bg-grid-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid-1) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
}
.hero::after{
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 18px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 0 / 18px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 0 / 1px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 18px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 1px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 18px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 1px 18px no-repeat;
  opacity: calc(.35 + var(--glow-strength) * .4);
}
.hero > *{ position: relative; z-index: 1; }
.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  padding: 6px 16px;
  border-radius: 4px;
  background: rgba(255, 45, 85, .1);
  border: 1px solid rgba(255, 45, 85, .45);
  color: var(--red-l);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 calc(10px * var(--glow-strength)) rgba(255, 45, 85, .7);
}
.hero-badge i{ color: var(--red); }
.hero-deity{
  position: relative;
  display: block;
  width: clamp(180px, 42vw, 245px);
  aspect-ratio: 1;
  margin: 12px auto 8px;
  z-index: 1;
}
.hero-deity::before{
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 183, 0, calc(.35 * var(--glow-strength))) 0%,
    rgba(255, 45, 85, calc(.18 * var(--glow-strength))) 38%,
    rgba(255, 45, 85, .06) 60%,
    transparent 76%);
  filter: blur(12px);
  animation: deityGlow 4.5s ease-in-out infinite;
  pointer-events: none;
}
.hero-deity::after{
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px dashed var(--border-gold);
  animation: spin 60s linear infinite;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(255, 183, 0, .1);
}
.hero-deity img{
  position: relative;
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 calc(24px * var(--glow-strength)) rgba(255, 183, 0, .7))
    drop-shadow(0 0 calc(56px * var(--glow-strength)) rgba(255, 45, 85, .55))
    drop-shadow(0 16px 34px rgba(0,0,0,.75))
    saturate(1.2) contrast(1.05);
  animation: deityFloat 5.5s ease-in-out infinite;
  z-index: 1;
}
@keyframes deityFloat{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes deityGlow{
  0%, 100% { opacity: .78; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1{
  font-size: clamp(1.85rem, 8vw, 2.9rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 2px;
  color: var(--gold-l);
  text-shadow:
    0 0 calc(12px * var(--glow-strength)) rgba(255, 183, 0, .9),
    0 0 calc(32px * var(--glow-strength)) rgba(255, 183, 0, .5),
    0 0 calc(64px * var(--glow-strength)) rgba(255, 45, 85, .35),
    0 4px 12px rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-family: 'JetBrains Mono', 'Noto Serif SC', monospace;
}
.hero h1 i{
  font-size: .78em;
  color: var(--gold);
  filter: drop-shadow(0 0 calc(12px * var(--glow-strength)) rgba(255, 183, 0, .9));
}
.glitch{
  position: relative;
  display: inline-block;
  color: var(--gold-l);
  letter-spacing: 2px;
  text-shadow:
    0 0 calc(12px * var(--glow-strength)) rgba(255, 183, 0, .9),
    0 0 calc(24px * var(--glow-strength)) rgba(255, 183, 0, .4);
  z-index: 1;
  isolation: isolate;
  animation: glitchShake 7s infinite steps(1, end);
}
.glitch::before,
.glitch::after{
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  color: inherit;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
  letter-spacing: inherit;
  font: inherit;
  font-family: inherit;
}
.glitch::before{
  color: var(--red);
  text-shadow:
    0 0 calc(8px * var(--glow-strength)) var(--red),
    0 0 calc(20px * var(--glow-strength)) var(--red);
  animation: glitchRed 7s infinite steps(1, end);
}
.glitch::after{
  color: var(--cyan);
  text-shadow:
    0 0 calc(8px * var(--glow-strength)) var(--cyan),
    0 0 calc(20px * var(--glow-strength)) var(--cyan);
  animation: glitchCyan 7.5s infinite steps(1, end);
}
@keyframes glitchRed{
  0%, 92%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  92.5% { opacity: 1; transform: translate(-6px, -2px); clip-path: inset(15% 0 55% 0); }
  93%   { opacity: 1; transform: translate(4px,  1px);  clip-path: inset(40% 0 30% 0); }
  93.5% { opacity: 1; transform: translate(-3px, 2px);  clip-path: inset(65% 0 15% 0); }
  94%   { opacity: 1; transform: translate(5px, -1px);  clip-path: inset(10% 0 75% 0); }
  94.5% { opacity: 1; transform: translate(-4px, 1px);  clip-path: inset(50% 0 35% 0); }
  95%   { opacity: 0; transform: translate(0, 0);       clip-path: inset(0 0 0 0); }
}
@keyframes glitchCyan{
  0%, 88%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  88.5% { opacity: 1; transform: translate(5px, 1px);   clip-path: inset(25% 0 55% 0); }
  89%   { opacity: 1; transform: translate(-4px, -2px); clip-path: inset(55% 0 25% 0); }
  89.5% { opacity: 1; transform: translate(3px, 2px);   clip-path: inset(15% 0 60% 0); }
  90%   { opacity: 1; transform: translate(-5px, -1px); clip-path: inset(70% 0 10% 0); }
  90.5% { opacity: 1; transform: translate(4px, 2px);   clip-path: inset(35% 0 45% 0); }
  91%   { opacity: 0; transform: translate(0, 0);       clip-path: inset(0 0 0 0); }
}
@keyframes glitchShake{
  0%, 92%, 100% { transform: translate(0, 0); }
  92.5% { transform: translate(1px, -1px); }
  93%   { transform: translate(-1px, 1px); }
  93.5% { transform: translate(1px, 1px); }
  94%   { transform: translate(-1px, -1px); }
  94.5% { transform: translate(0, 0); }
}
.hero h1:hover .glitch::before,
.hero h1:hover .glitch::after{ opacity: 1; animation-duration: 1.8s; }
.hero-sub{
  margin-top: 14px;
  font-size: clamp(.9rem, 3.5vw, 1.02rem);
  color: var(--text-dim);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .3px;
}
.hero-divider{
  width: 140px; height: 1px;
  margin: 20px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--red), var(--gold), transparent);
  box-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .6);
  position: relative;
}
.hero-divider::before{
  content: "◆";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: .55rem;
  background: var(--bg-page);
  padding: 0 6px;
  text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .9);
}
/* ============================================================
   Hero Chips · 胶囊按钮
   ============================================================ */
.hero-chips{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.hero-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(.7rem, 2.8vw, .78rem);
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 4px;
  background: rgba(255, 183, 0, .06);
  border: 1px solid var(--border-gold);
  color: var(--gold-l);
  font-family: 'JetBrains Mono', 'Noto Serif SC', monospace;
  letter-spacing: .5px;
  text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .4);
  transition: all .25s ease;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.hero-chip:hover,
.hero-chip:focus-visible{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 calc(18px * var(--glow-strength)) rgba(255, 183, 0, .35);
  transform: translateY(-1px);
}

.hero-chip:active{
  transform: translateY(0) scale(.97);
}

.hero-chip i{
  color: var(--gold);
  font-size: .85em;
  flex-shrink: 0;
  transition: all .25s ease;
}

.hero-chip-label{
  white-space: nowrap;
  transition: color .25s ease;
}

.hero-chip.is-copied{
  border-color: #26ff8f;
  background: rgba(38, 255, 143, .1);
  box-shadow:
    0 0 calc(18px * var(--glow-strength)) rgba(38, 255, 143, .5),
    inset 0 0 calc(12px * var(--glow-strength)) rgba(38, 255, 143, .12);
}
.hero-chip.is-copied i,
.hero-chip.is-copied .hero-chip-label{
  color: #26ff8f;
  text-shadow: 0 0 10px rgba(38, 255, 143, .7);
}

@media (max-width: 480px){
  .hero-chip{
    font-size: .7rem;
    padding: 5px 11px;
    gap: 5px;
  }
}

.notice{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 45, 85, .05);
  border: 1px dashed var(--border-hi);
  font-size: .78rem;
  line-height: 1.65;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  transition: all .35s ease;
}
.notice i{ color: var(--red); font-size: 1rem; margin-top: 2px; flex-shrink: 0; text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 45, 85, .8); }
.notice strong{ color: var(--red-l); }

/* ============================================================
   目录
   ============================================================ */
.toc{
  margin-top: 26px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 0 calc(40px * var(--glow-strength)) rgba(255, 45, 85, .08),
    inset 0 0 60px rgba(255, 45, 85, .02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.toc::after{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 20%, var(--gold) 50%, var(--red) 80%, transparent);
  opacity: .7;
  animation: tocScan 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tocScan{
  0%, 100% { opacity: .3; transform: translateX(-12%); }
  50%      { opacity: 1;  transform: translateX(12%);  }
}
.toc-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px dashed var(--border-gold);
  background: linear-gradient(90deg, rgba(255, 45, 85, .06), transparent 60%);
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.toc-head-title{
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  text-shadow: 0 0 calc(10px * var(--glow-strength)) rgba(255, 183, 0, .6);
  font-weight: 700;
}
.toc-head-title i{ color: var(--gold); font-size: .9em; animation: tocDotPulse 2.4s ease-in-out infinite; }
@keyframes tocDotPulse{ 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.toc-head-title .mono-mini{ color: var(--text-mute); letter-spacing: 1.4px; font-weight: 500; margin-left: 4px; }
.toc-head-meta{ display: inline-flex; align-items: baseline; gap: 6px; color: var(--text-mute); letter-spacing: 1.6px; }
.toc-head-meta b{
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 calc(8px * var(--glow-strength)) var(--cyan), 0 0 calc(20px * var(--glow-strength)) rgba(0, 229, 255, .35);
  transition: color .3s ease;
}
.toc-head-meta .slash{ color: var(--text-mute); font-size: .82rem; }
.toc-list{ list-style: none; margin: 0; padding: 6px 0 10px; }
.toc-item{
  display: grid;
  grid-template-columns: 34px 40px minmax(0, 1fr) auto 84px;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  text-decoration: none;
  color: var(--text);
  font-family: inherit;
  position: relative;
  border-left: 2px solid transparent;
  transition: padding .3s cubic-bezier(.34, 1.2, .64, 1), background .3s ease, border-color .3s ease;
}
.toc-item::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 45, 85, .10) 0%, rgba(255, 45, 85, .02) 40%, transparent 80%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.toc-item:hover::before, .toc-item:focus-visible::before{ opacity: 1; }
.toc-item:hover, .toc-item:focus-visible{ border-left-color: var(--red); padding-left: 26px; outline: none; }
.toc-idx{
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 1px;
  transition: all .3s ease;
  position: relative;
  z-index: 1;
}
.toc-idx::before{ content: "#"; color: var(--red); opacity: .55; margin-right: 1px; font-weight: 900; transition: all .3s ease; }
.toc-item:hover .toc-idx{ color: var(--gold-l); }
.toc-item:hover .toc-idx::before{ opacity: 1; text-shadow: 0 0 calc(8px * var(--glow-strength)) var(--red); }
.toc-sym{
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  color: var(--text-mute);
  filter: none;
  transition: all .4s cubic-bezier(.34, 1.2, .64, 1);
  user-select: none;
  position: relative;
  z-index: 1;
  transform-origin: center;
}
.toc-item:hover .toc-sym{
  color: var(--gold);
  transform: scale(1.2) rotate(-4deg);
  filter: drop-shadow(0 0 calc(8px * var(--glow-strength)) var(--gold)) drop-shadow(0 0 calc(20px * var(--glow-strength)) var(--gold));
}
.toc-body{ display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; z-index: 1; }
.toc-zh{
  font-size: .98rem;
  font-weight: 800;
  color: var(--gold-l);
  letter-spacing: .8px;
  line-height: 1.35;
  text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .25);
  transition: text-shadow .3s ease, color .3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-item:hover .toc-zh{
  color: var(--gold);
  text-shadow: 0 0 calc(14px * var(--glow-strength)) var(--gold), 0 0 calc(28px * var(--glow-strength)) rgba(255, 183, 0, .35);
}
.toc-sub{
  font-size: .7rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .6px;
  color: var(--text-mute);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .3s ease;
}
.toc-item:hover .toc-sub{ color: var(--text-dim); }
.toc-en{
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: all .3s ease;
}
.toc-item:hover .toc-en{ color: var(--red-l); text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 45, 85, .55); }
.toc-state{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-mute);
  position: relative;
  z-index: 1;
  transition: color .3s ease;
}
.toc-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-mute);
  opacity: .5;
  transition: all .4s cubic-bezier(.34, 1.4, .64, 1);
  position: relative;
  flex-shrink: 0;
}
.toc-item:hover .toc-dot{ background: var(--gold); opacity: 1; box-shadow: 0 0 calc(8px * var(--glow-strength)) var(--gold); }
.toc-arrow{ font-size: .62rem; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: all .35s cubic-bezier(.34, 1.4, .64, 1); flex-shrink: 0; }
.toc-item:hover .toc-arrow{ opacity: 1; transform: translateX(0); filter: drop-shadow(0 0 calc(6px * var(--glow-strength)) var(--gold)); }
.toc-item.done{ border-left-color: rgba(38, 255, 143, .55); }
.toc-item.done .toc-dot{ background: #26ff8f; opacity: 1; box-shadow: 0 0 8px #26ff8f, 0 0 calc(16px * var(--glow-strength)) rgba(38, 255, 143, .55); }
.toc-item.done .toc-state{ color: #26ff8f; }
.toc-item.done .toc-sym{ color: var(--gold); filter: drop-shadow(0 0 calc(6px * var(--glow-strength)) var(--gold)); }
.toc-item.done .toc-idx{ color: var(--gold-d); }
.toc-item.done .toc-zh{ color: var(--gold); text-shadow: 0 0 calc(10px * var(--glow-strength)) rgba(255, 183, 0, .55); }
.toc-item.done::before{ background: linear-gradient(90deg, rgba(38, 255, 143, .10) 0%, rgba(38, 255, 143, .02) 40%, transparent 80%); }
.toc-item.done:hover::before{ opacity: 1; }
@keyframes signShake{
  0%   { transform: translateY(0)    scale(1)    rotate(0);    }
  12%  { transform: translateY(-9px) scale(1.10) rotate(-6deg); }
  30%  { transform: translateY(4px)  scale(1.02) rotate(3deg);  }
  50%  { transform: translateY(-6px) scale(1.07) rotate(-3deg); }
  70%  { transform: translateY(2px)  scale(1.02) rotate(2deg);  }
  88%  { transform: translateY(-2px) scale(1.03) rotate(-1deg); }
  100% { transform: translateY(0)    scale(1)    rotate(0);    }
}
.toc-sym.shake{
  animation: signShake .32s cubic-bezier(.34, 1.4, .64, 1) both;
  color: var(--gold);
  filter: drop-shadow(0 0 calc(12px * var(--glow-strength)) var(--gold)) drop-shadow(0 0 calc(28px * var(--glow-strength)) var(--gold));
}
@keyframes tocItemFlash{ 0% { background: rgba(38, 255, 143, .22); } 100% { background: transparent; } }
.toc-item.flash{ animation: tocItemFlash .9s cubic-bezier(.22, 1, .36, 1) both; }
@media (max-width: 720px){
  .toc-head{ padding: 13px 16px; font-size: .66rem; letter-spacing: 2px; }
  .toc-head-title .mono-mini{ display: none; }
  .toc-item{ grid-template-columns: 32px 34px minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px; }
  .toc-item:hover{ padding-left: 20px; }
  .toc-en{ display: none; }
  .toc-sym{ font-size: 1.3rem; }
  .toc-zh{ font-size: .92rem; }
  .toc-sub{ font-size: .66rem; }
}
@media (max-width: 480px){
  .toc-head{ padding: 12px 14px; font-size: .62rem; }
  .toc-head-meta b{ font-size: .92rem; }
  .toc-item{ grid-template-columns: 26px 28px minmax(0, 1fr) auto; gap: 8px; padding: 11px 14px; }
  .toc-item:hover{ padding-left: 18px; }
  .toc-sym{ font-size: 1.15rem; }
  .toc-zh{ font-size: .88rem; letter-spacing: .4px; }
  .toc-sub{ font-size: .62rem; }
  .toc-state{ font-size: .62rem; gap: 5px; }
  .toc-arrow{ display: none; }
}

/* ============ 章节通用 ============ */
section{ margin-top: 38px; position: relative; }
h2{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.05rem, 4.2vw, 1.32rem);
  font-weight: 800;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 45, 85, .12), rgba(255, 45, 85, .02) 80%, transparent);
  border-left: 3px solid var(--red);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow:
    0 0 calc(24px * var(--glow-strength)) rgba(255, 45, 85, .2),
    inset 0 0 40px rgba(255, 45, 85, .04);
  letter-spacing: 1px;
  line-height: 1.4;
  margin-bottom: 20px;
  width: fit-content;
  max-width: 100%;
  position: relative;
  transition: background .35s ease, border-color .35s ease;
}
h2::before{
  content: "";
  position: absolute;
  left: -3px; top: 12px; bottom: 12px;
  width: 3px;
  background: var(--red);
  box-shadow: 0 0 calc(12px * var(--glow-strength)) var(--red), 0 0 calc(24px * var(--glow-strength)) var(--red);
}
h2 i{
  color: var(--gold);
  font-size: 1em;
  flex-shrink: 0;
  filter: drop-shadow(0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .8));
}
h3{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(.98rem, 3.7vw, 1.12rem);
  font-weight: 800;
  color: var(--gold-l);
  margin: 28px 0 14px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  line-height: 1.5;
  text-shadow: 0 0 calc(12px * var(--glow-strength)) rgba(255, 183, 0, .4);
  letter-spacing: .8px;
}
h3 i{
  color: var(--gold);
  font-size: .9em;
  flex-shrink: 0;
  filter: drop-shadow(0 0 calc(6px * var(--glow-strength)) rgba(255, 183, 0, .7));
}
p{ margin-bottom: 13px; color: var(--text); }
p strong, li strong{
  color: var(--gold-l);
  font-weight: 700;
  text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .35);
}
.card{
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(18px, 4.5vw, 26px);
  box-shadow:
    0 0 calc(40px * var(--glow-strength)) rgba(255, 45, 85, .08),
    inset 0 0 60px rgba(255, 45, 85, .02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card::before{
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--panel-inner);
  border-radius: 8px;
  pointer-events: none;
}
.card + .card{ margin-top: 14px; }
ul{ margin: 10px 0 16px; padding-left: 4px; list-style: none; }
ul li{ position: relative; padding-left: 26px; margin-bottom: 10px; font-size: .94rem; color: var(--text); }
ul li::before{
  content: "";
  position: absolute;
  left: 4px; top: .7em;
  width: 10px; height: 10px;
  background:
    linear-gradient(45deg, transparent 40%, var(--red) 40%, var(--red) 60%, transparent 60%),
    linear-gradient(45deg, transparent 40%, var(--red) 40%, var(--red) 60%, transparent 60%);
  background-size: 6px 6px, 6px 6px;
  background-position: 0 0, 0 3px;
  filter: drop-shadow(0 0 calc(4px * var(--glow-strength)) var(--red));
}
.grid-3{ display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; margin: 18px 0; }
.feat{
  background: linear-gradient(150deg, rgba(255, 45, 85, .05) 0%, rgba(255, 183, 0, .02) 100%), var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 18px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.feat::before{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--red);
  box-shadow: 0 0 calc(12px * var(--glow-strength)) var(--red);
  transition: width .35s ease;
}
.feat:hover{
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 0 calc(30px * var(--glow-strength)) rgba(255, 45, 85, .3), inset 0 0 40px rgba(255, 45, 85, .05);
}
.feat:hover::before{ width: 100%; }
.feat .num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255, 45, 85, .1);
  border: 1px solid var(--red);
  color: var(--red-l);
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 0 calc(16px * var(--glow-strength)) rgba(255, 45, 85, .5), inset 0 0 12px rgba(255, 45, 85, .1);
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 45, 85, .9);
}
.feat .num i{ font-size: .95rem; }
.feat h4{
  font-size: .98rem;
  font-weight: 800;
  color: var(--gold-l);
  margin-bottom: 8px;
  border: none;
  padding: 0;
  letter-spacing: .5px;
  text-shadow: 0 0 calc(10px * var(--glow-strength)) rgba(255, 183, 0, .4);
}
.feat p{ font-size: .86rem; line-height: 1.7; color: var(--text-dim); margin: 0; }
.quote{
  position: relative;
  margin: 18px 0;
  padding: 20px 20px 20px 26px;
  border-radius: 8px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(255, 183, 0, .05), rgba(255, 45, 85, .02));
  box-shadow: inset 0 0 40px rgba(255, 183, 0, .03);
  font-size: .94rem;
  color: var(--text);
  line-height: 1.85;
}
.quote::before{
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -9px; left: 14px;
  font-size: 1rem;
  color: var(--gold);
  background: var(--bg-page);
  padding: 0 8px;
  border-radius: 4px;
  text-shadow: 0 0 calc(12px * var(--glow-strength)) rgba(255, 183, 0, .8);
}
.quote p{ margin-bottom: 10px; }
.quote p:last-child{ margin-bottom: 0; }
.creed{
  margin: 22px 0;
  padding: clamp(28px, 6vw, 42px) clamp(18px, 5vw, 32px);
  border-radius: 14px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 45, 85, .2), transparent 60%), linear-gradient(145deg, #1a0810, #0a0406);
  border: 1px solid #ff2d55;
  box-shadow: 0 0 calc(60px * var(--glow-strength)) rgba(255, 45, 85, .35), inset 0 0 80px rgba(255, 45, 85, .08);
  color: #f0e6d2;
  position: relative;
  overflow: hidden;
  color-scheme: dark;
}
.creed::before{
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 45, 85, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 45, 85, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.creed::after{
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    linear-gradient(#ffb700, #ffb700) 0 0 / 20px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 0 0 / 2px 20px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 0 / 20px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 0 / 2px 20px no-repeat,
    linear-gradient(#ffb700, #ffb700) 0 100% / 20px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 0 100% / 2px 20px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 100% / 20px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 100% / 2px 20px no-repeat;
}
.creed > *{ position: relative; z-index: 1; }
.creed i.big{
  display: block;
  font-size: 2.2rem;
  color: #ff2d55;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(255, 45, 85, .9)) drop-shadow(0 0 32px rgba(255, 45, 85, .5));
  animation: deityGlow 3s ease-in-out infinite;
}
.creed p{
  font-size: clamp(1.02rem, 4.3vw, 1.3rem);
  font-weight: 800;
  line-height: 1.9;
  color: #ffd966;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(255, 183, 0, .6), 0 0 32px rgba(255, 45, 85, .35), 0 2px 8px rgba(0,0,0,.8);
}
.creed p:last-child{ margin-bottom: 0; }
.chant{
  margin: 26px 0;
  padding: clamp(28px, 6vw, 42px) clamp(18px, 5vw, 32px);
  border-radius: 14px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 183, 0, .12), transparent 60%), linear-gradient(145deg, #1a0a06, #0a0503);
  border: 1px solid #ffb700;
  box-shadow: 0 0 calc(60px * var(--glow-strength)) rgba(255, 183, 0, .2), inset 0 0 80px rgba(255, 183, 0, .05);
  position: relative;
  overflow: hidden;
  color-scheme: dark;
}
.chant::before{
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 183, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 183, 0, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.chant > *{ position: relative; z-index: 1; }
.chant .chant-icon{
  font-size: 1.8rem;
  color: #ffb700;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(255, 183, 0, .9));
  animation: deityGlow 3s ease-in-out infinite;
}
.chant p{
  font-size: clamp(.96rem, 4vw, 1.14rem);
  font-weight: 700;
  line-height: 2;
  color: #f0e6d2;
  margin-bottom: 4px;
  letter-spacing: .5px;
}
.chant .final{
  margin-top: 22px !important;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 183, 0, .35);
  font-size: clamp(1.1rem, 4.8vw, 1.38rem) !important;
  font-weight: 900 !important;
  color: #ffd966 !important;
  letter-spacing: 1px;
  text-shadow: 0 0 16px rgba(255, 183, 0, .8), 0 0 40px rgba(255, 45, 85, .5);
}
.road{ display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 20px 0; }
.road-item{
  background: linear-gradient(180deg, rgba(255, 45, 85, .06) 0%, rgba(255, 45, 85, .02) 100%), var(--panel-bg-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 8px;
  padding: 24px 20px 20px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.road-item::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 calc(12px * var(--glow-strength)) var(--red);
  animation: roadScan 3s linear infinite;
}
@keyframes roadScan{ 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.road-item:hover{
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 0 calc(40px * var(--glow-strength)) rgba(255, 45, 85, .25), inset 0 0 60px rgba(255, 45, 85, .05);
}
.road-num{
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 45, 85, .08);
  border: 1px solid var(--red);
  color: var(--red-l);
  font-weight: 800;
  font-size: .82rem;
  margin-bottom: 14px;
  box-shadow: 0 0 calc(16px * var(--glow-strength)) rgba(255, 45, 85, .5);
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 45, 85, .9);
}
.road-item h5{ font-size: 1rem; color: var(--gold-l); margin-bottom: 10px; font-weight: 800; line-height: 1.4; letter-spacing: .5px; text-shadow: 0 0 calc(10px * var(--glow-strength)) rgba(255, 183, 0, .4); }
.road-item h5 small{ display: block; font-size: .66rem; font-weight: 600; color: var(--red-l); letter-spacing: 2px; margin-bottom: 4px; font-family: 'JetBrains Mono', monospace; text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 45, 85, .6); text-transform: uppercase; }
.road-item p{ font-size: .88rem; color: var(--text-dim); line-height: 1.7; margin: 0; }
.join-list{ display: grid; gap: 12px; margin: 20px 0; }
.join-item{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.join-item::before{ content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; transition: all .3s ease; }
.join-item:hover{ border-color: var(--red); transform: translateX(4px); box-shadow: 0 0 calc(30px * var(--glow-strength)) rgba(255, 45, 85, .22), inset 0 0 40px rgba(255, 45, 85, .04); }
.join-item:hover::before{ background: var(--red); box-shadow: 0 0 12px var(--red); }
.join-icon{
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(255, 183, 0, .08);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 0 calc(18px * var(--glow-strength)) rgba(255, 183, 0, .35), inset 0 0 12px rgba(255, 183, 0, .1);
  text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .8);
}
.join-body h5{ font-size: .98rem; color: var(--gold-l); margin-bottom: 4px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .4); }
.join-body p{ font-size: .86rem; color: var(--text-dim); margin: 0; line-height: 1.65; }
.community-links{ display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.community-links a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 6px;
  background: rgba(255, 45, 85, .06);
  color: var(--gold-l);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--red);
  box-shadow: 0 0 calc(20px * var(--glow-strength)) rgba(255, 45, 85, .28), inset 0 0 16px rgba(255, 45, 85, .05);
  transition: all .25s ease;
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  letter-spacing: 1px;
  text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .5);
  text-transform: uppercase;
  font-size: .74rem;
}
.community-links a:hover{
  transform: translateY(-2px);
  background: rgba(255, 45, 85, .12);
  box-shadow: 0 0 calc(32px * var(--glow-strength)) rgba(255, 45, 85, .55), 0 0 calc(64px * var(--glow-strength)) rgba(255, 45, 85, .25), inset 0 0 24px rgba(255, 45, 85, .1);
  color: var(--gold);
}
.community-links a i{ color: var(--gold); filter: drop-shadow(0 0 calc(6px * var(--glow-strength)) rgba(255, 183, 0, .8)); }

/* ============================================================
   ✦ 财神符 CTA
   ============================================================ */
.charm-cta {
  position: relative;
  margin-top: 34px;
  padding: 46px 28px 40px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 45, 85, .18), transparent 65%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 183, 0, .12), transparent 65%),
    linear-gradient(180deg, #0d0409 0%, #16070e 50%, #080204 100%);
  border: 1px solid rgba(255, 183, 0, .35);
  box-shadow:
    0 0 70px rgba(255, 45, 85, .22),
    0 0 140px rgba(255, 45, 85, .08),
    inset 0 0 60px rgba(255, 45, 85, .05),
    inset 0 1px 0 rgba(255, 183, 0, .35);
  overflow: hidden;
  color-scheme: dark;
  isolation: isolate;
}
.charm-cta::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(255, 183, 0, .12);
  border-radius: 14px;
  pointer-events: none;
  z-index: 3;
}
.charm-cta::after {
  content: "";
  position: absolute; inset: 16px;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(#ffb700, #ffb700) 0 0 / 22px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 0 0 / 2px 22px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 0 / 22px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 0 / 2px 22px no-repeat,
    linear-gradient(#ffb700, #ffb700) 0 100% / 22px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 0 100% / 2px 22px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 100% / 22px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 100% / 2px 22px no-repeat;
  opacity: .5;
}

.charm-cta-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cta-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 183, 0, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 183, 0, .05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 78%);
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  animation: ctaOrbFloat 9s ease-in-out infinite;
}
.cta-orb.orb-1 { top: -35%; left: -12%; width: 58%; height: 75%; background: radial-gradient(circle, rgba(255, 45, 85, .38), transparent 70%); }
.cta-orb.orb-2 { bottom: -35%; right: -12%; width: 58%; height: 75%; background: radial-gradient(circle, rgba(255, 183, 0, .32), transparent 70%); animation-delay: -4.5s; }
@keyframes ctaOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .8; }
  50%      { transform: translate(4%, -4%) scale(1.12); opacity: 1; }
}

.charm-cta-deity {
  position: absolute;
  right: -14px; bottom: -16px;
  width: 156px; height: 156px;
  pointer-events: none;
  z-index: 1;
  opacity: .95;
  filter:
    drop-shadow(0 0 22px rgba(255, 183, 0, .55))
    drop-shadow(0 12px 28px rgba(0, 0, 0, .85));
  animation: deityFloat 6s ease-in-out infinite;
}
.charm-cta-deity img { width: 100%; height: 100%; object-fit: contain; display: block; filter: saturate(1.15); }
.charm-cta-deity::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 28%, rgba(8, 2, 4, .95) 82%); pointer-events: none; }

.charm-cta-inner { position: relative; z-index: 2; max-width: 82%; margin: 0 auto; text-align: center; }

.charm-cta-seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px; height: 66px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(150deg, #e6a815 0%, #b32818 55%, #7a1410 100%);
  box-shadow:
    inset 0 2px 4px rgba(255, 240, 200, .6),
    inset 0 -5px 10px rgba(20, 4, 2, .7),
    0 0 26px rgba(255, 183, 0, .55),
    0 0 52px rgba(255, 45, 85, .3);
  transform: rotate(-6deg);
  animation: ctaSealFloat 4s ease-in-out infinite;
}
.charm-cta-seal span {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-weight: 900;
  font-size: 2rem;
  color: #fff3d0;
  text-shadow: 0 1px 0 rgba(255, 220, 130, .8), 0 -1px 0 rgba(20, 4, 2, .8);
  position: relative;
  z-index: 2;
}
.cta-seal-ring { position: absolute; inset: -9px; border-radius: 14px; border: 1px solid rgba(255, 183, 0, .55); animation: ctaSealRing 2.6s ease-out infinite; }
@keyframes ctaSealFloat { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-5px); } }
@keyframes ctaSealRing { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }

.charm-cta-icon { font-size: 1.4rem; color: #ffb700; margin-bottom: 10px; display: block; filter: drop-shadow(0 0 14px rgba(255, 183, 0, .85)); animation: deityGlow 3.5s ease-in-out infinite; }
.charm-cta h4 {
  font-size: 1.1rem;
  color: #ffd966;
  font-weight: 800;
  margin-bottom: 12px;
  border: none; padding: 0;
  letter-spacing: 2px;
  text-shadow: 0 0 16px rgba(255, 183, 0, .6);
  font-family: 'Noto Serif SC', 'Songti SC', serif;
}
.charm-cta p { font-size: .82rem; color: var(--text-mute); margin-bottom: 20px; line-height: 1.7; }
.charm-cta button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border: 1px solid #ffb700;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 183, 0, .22), rgba(255, 45, 85, .12));
  color: #ffd966;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(255, 183, 0, .45), inset 0 0 22px rgba(255, 183, 0, .1);
  transition: all .25s ease;
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  text-shadow: 0 0 8px rgba(255, 183, 0, .7);
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.charm-cta button:hover { transform: translateY(-2px); box-shadow: 0 0 46px rgba(255, 183, 0, .8), 0 0 90px rgba(255, 45, 85, .35), inset 0 0 34px rgba(255, 183, 0, .18); }
.charm-cta button:active { transform: translateY(0) scale(.97); }
.charm-cta button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; border-color: rgba(255, 183, 0, .25); color: #6b5744; text-shadow: none; }

@media (max-width: 480px) {
  .charm-cta { padding: 34px 18px 28px; border-radius: 16px; }
  .charm-cta-inner { max-width: 92%; }
  .charm-cta-deity { width: 110px; height: 110px; right: -8px; bottom: -10px; }
  .charm-cta-seal { width: 56px; height: 56px; }
  .charm-cta-seal span { font-size: 1.7rem; }
  .charm-cta h4 { font-size: 1rem; letter-spacing: 1px; }
  .charm-cta button { padding: 11px 24px; font-size: .76rem; }
}

/* ============================================================
   ✦ 财神符弹窗
   ============================================================ */
#charmModal .charm-box {
  width: min(440px, 94vw);
  padding: 30px 22px 24px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 45, 85, .22), transparent 65%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 183, 0, .12), transparent 65%),
    linear-gradient(160deg, #16070e 0%, #0a0308 100%);
  border: 1px solid #ffb700;
  box-shadow: 0 0 70px rgba(255, 45, 85, .45), 0 0 140px rgba(255, 45, 85, .18), 0 30px 90px rgba(0, 0, 0, .8), inset 0 0 70px rgba(255, 183, 0, .05);
}
.charm-box::after {
  content: "";
  position: absolute; inset: 14px;
  border-radius: 12px;
  pointer-events: none;
  background:
    linear-gradient(#ffb700, #ffb700) 0 0 / 18px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 0 0 / 2px 18px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 0 / 18px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 0 / 2px 18px no-repeat,
    linear-gradient(#ffb700, #ffb700) 0 100% / 18px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 0 100% / 2px 18px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 100% / 18px 2px no-repeat,
    linear-gradient(#ffb700, #ffb700) 100% 100% / 2px 18px no-repeat;
  opacity: .55;
}
.charm-box-title { font-size: 1rem; letter-spacing: 4px; background: linear-gradient(180deg, #fff3d0 0%, #ffd966 50%, #cc8f00 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 14px rgba(255, 183, 0, .6)); }
.charm-box-sub { font-family: 'JetBrains Mono', 'Noto Sans SC', monospace; font-size: .62rem; letter-spacing: 2px; color: var(--text-mute); margin-bottom: 14px; text-transform: uppercase; }

.charm-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 183, 0, 0.4);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 183, 0, 0.2),
    0 0 50px rgba(255, 45, 85, 0.3),
    0 0 100px rgba(255, 183, 0, 0.12);
  margin-bottom: 16px;
  background: #0a0408;
  aspect-ratio: 3 / 4;
}
.charm-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 183, 0, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 183, 0, .05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
}
.charm-preview img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
.charm-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.charm-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .22s ease;
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.charm-actions .btn-primary {
  background: linear-gradient(135deg, rgba(255, 45, 85, .18), rgba(204, 14, 48, .25));
  color: #ffd966;
  border: 1px solid #ff2d55;
  box-shadow: 0 0 22px rgba(255, 45, 85, .45), inset 0 0 18px rgba(255, 45, 85, .08);
  text-shadow: 0 0 8px rgba(255, 183, 0, .5);
}
.charm-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255, 45, 85, .8), 0 0 64px rgba(255, 45, 85, .3), inset 0 0 24px rgba(255, 45, 85, .15); }
.charm-actions .btn-secondary {
  background: rgba(255, 183, 0, .04);
  color: #ffb700;
  border: 1px solid rgba(255, 183, 0, .45);
}
.charm-actions .btn-secondary:hover { background: rgba(255, 183, 0, .1); border-color: #ffb700; box-shadow: 0 0 22px rgba(255, 183, 0, .5); }
.charm-actions button:active { transform: scale(.96); }

/* ============ Toast ============ */
#toast {
  position: fixed;
  left: 50%; bottom: 100px;
  transform: translateX(-50%) translateY(20px);
  z-index: 2100;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--panel-bg-deep);
  color: var(--gold-l);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 0 calc(24px * var(--glow-strength)) rgba(255, 45, 85, .5), 0 0 calc(48px * var(--glow-strength)) rgba(255, 45, 85, .2), 0 10px 26px rgba(0,0,0,.6);
  border: 1px solid var(--red);
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  text-transform: uppercase;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast i { color: var(--gold); margin-right: 6px; filter: drop-shadow(0 0 calc(6px * var(--glow-strength)) rgba(255, 183, 0, .9)); }

hr {
  border: none;
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--red), transparent);
  opacity: .5;
  box-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 45, 85, .5);
}

/* ============ 页脚（旧版兜底） ============ */
footer {
  margin-top: 46px;
  padding: clamp(28px, 6vw, 44px) clamp(18px, 5vw, 32px);
  border-radius: 16px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 45, 85, .18), transparent 65%), linear-gradient(145deg, #14060c, #060305);
  border: 1px solid var(--gold);
  box-shadow: 0 0 calc(60px * var(--glow-strength)) rgba(255, 45, 85, .28), 0 0 calc(120px * var(--glow-strength)) rgba(255, 45, 85, .1), inset 0 0 80px rgba(255, 45, 85, .04);
  color: #a58c6f;
  position: relative;
  overflow: hidden;
  color-scheme: dark;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 183, 0, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 183, 0, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
footer > * { position: relative; z-index: 1; }
footer .f-icon { font-size: 2rem; color: #ffb700; margin-bottom: 16px; display: block; filter: drop-shadow(0 0 16px rgba(255, 183, 0, .9)); animation: deityGlow 3s ease-in-out infinite; }
footer .f-main { font-size: clamp(1rem, 4vw, 1.18rem); font-weight: 800; color: #ffd966; line-height: 1.9; margin-bottom: 14px; letter-spacing: 1px; text-shadow: 0 0 14px rgba(255, 183, 0, .5), 0 0 32px rgba(255, 45, 85, .3); }
footer .f-sub { font-size: .84rem; color: #a58c6f; line-height: 1.8; max-width: 560px; margin: 0 auto; }
footer .f-line { width: 100px; height: 1px; margin: 22px auto; background: linear-gradient(90deg, transparent, #ffb700, #ff2d55, #ffb700, transparent); box-shadow: 0 0 8px rgba(255, 183, 0, .6); position: relative; }
footer .f-line::before { content: "◆"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #ffb700; font-size: .5rem; background: #0a0508; padding: 0 6px; text-shadow: 0 0 8px #ffb700; }
footer .f-warn { font-size: .72rem; color: #6b5744; line-height: 1.7; max-width: 620px; margin: 0 auto; font-family: 'JetBrains Mono', 'Noto Sans SC', monospace; letter-spacing: .5px; }
footer .f-warn i { color: #ff2d55; margin-right: 4px; text-shadow: 0 0 6px rgba(255, 45, 85, .8); }

/* ============ 回到顶部 ============ */
#toTop {
  position: fixed;
  right: 16px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 8px;
  border: 1px solid var(--red);
  background: var(--panel-bg);
  color: var(--gold-l);
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 calc(22px * var(--glow-strength)) rgba(255, 45, 85, .4), inset 0 0 16px rgba(255, 45, 85, .05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s ease;
  z-index: 900;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { border-color: var(--gold); box-shadow: 0 0 calc(32px * var(--glow-strength)) rgba(255, 183, 0, .6), 0 0 calc(64px * var(--glow-strength)) rgba(255, 45, 85, .3); }
#toTop:active { transform: scale(.92); }

/* ============================================================
   ✦ 阅读进度 · 香炉
   ============================================================ */
#censer {
  position: fixed;
  left: 16px; bottom: 22px;
  width: 64px;
  padding: 4px;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 900;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform .3s ease, filter .3s ease;
  backdrop-filter: none;
}
#censer:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255, 183, 0, 0.6));
}
#censer:active { transform: scale(.95); }

.censer-deity {
  position: relative;
  width: 52px; height: 52px;
  margin: 0 auto 2px;
  pointer-events: none;
  filter:
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 calc(10px * var(--glow-strength)) rgba(255, 183, 0, 0.6));
  animation: deityFloat 4s ease-in-out infinite;
}
.censer-deity img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(1.2);
}
.censer-count {
  font-size: .64rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.8);
}
.censer-count b {
  color: var(--gold-l);
  font-size: .72rem;
  text-shadow:
    0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, 0.8),
    0 1px 4px rgba(0, 0, 0, 0.9);
}
#censer.full { animation: fullPulse 2s ease-in-out infinite alternate; }
@keyframes fullPulse {
  0% { filter: drop-shadow(0 0 6px rgba(255, 183, 0, 0.4)); }
  100% { filter: drop-shadow(0 0 20px rgba(255, 183, 0, 1)); }
}

/* ============ 财神符弹窗 ============ */
#charmModal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 1, 3, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color-scheme: dark;
}
#charmModal.show { display: flex; opacity: 1; }
#charmModal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 45, 85, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 45, 85, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.charm-box {
  position: relative;
  width: min(420px, 92vw);
  max-height: 92vh;
  padding: 24px 20px 20px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 45, 85, .15), transparent 60%), linear-gradient(160deg, #14060c, #060305);
  border: 1px solid #ffb700;
  box-shadow: 0 0 60px rgba(255, 45, 85, .4), 0 0 120px rgba(255, 45, 85, .15), 0 30px 80px rgba(0,0,0,.7), inset 0 0 60px rgba(255, 183, 0, .04);
  text-align: center;
  transform: scale(.92) translateY(20px);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
#charmModal.show .charm-box { transform: scale(1) translateY(0); }
.charm-box::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 183, 0, .12);
  border-radius: 8px;
  pointer-events: none;
}
.charm-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 45, 85, .4);
  background: rgba(255, 45, 85, .06);
  color: #ff6b85;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
.charm-close:hover {
  background: rgba(255, 45, 85, .15);
  border-color: #ff2d55;
  transform: rotate(90deg);
  box-shadow: 0 0 16px rgba(255, 45, 85, .6);
}

@media (max-width: 480px) {
  .charm-preview {
    aspect-ratio: 3 / 4.2;
    margin-bottom: 20px;
  }
  .charm-actions button {
    padding: 14px 28px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   ✦ 智能性能模式
   ============================================================ */
[data-perf="medium"] .gate-inner-glow, [data-perf="medium"] .gate-inner-hall, [data-perf="medium"] .gate-carpet { filter: blur(16px); }
[data-perf="medium"] .hero-deity img { filter: drop-shadow(0 0 calc(16px * var(--glow-strength)) rgba(255, 183, 0, .7)) drop-shadow(0 0 calc(32px * var(--glow-strength)) rgba(255, 45, 85, .55)) drop-shadow(0 10px 22px rgba(0, 0, 0, .7)) saturate(1.15) contrast(1.03); }
[data-perf="medium"] .cyber-footer, [data-perf="medium"] .sacred-law, [data-perf="medium"] .hero { box-shadow: 0 0 calc(40px * var(--glow-strength)) rgba(255, 45, 85, .2), inset 0 0 60px rgba(255, 45, 85, .04); }

html[data-perf="low"] body::before, html[data-perf="low"] body::after { display: none; }
html[data-perf="low"] #smoke-canvas { opacity: .7; }
html[data-perf="low"] .gate-inner-rays, html[data-perf="low"] .gate-inner-glow, html[data-perf="low"] .gate-inner-hall, html[data-perf="low"] .gate-carpet, html[data-perf="low"] .gate-seam { display: none; }
html[data-perf="low"] #gate { background: #0a0203; }
html[data-perf="low"] #gate.open { background: #1a0409; }
html[data-perf="low"] .gate-door { transition: transform 1.1s cubic-bezier(.66, 0, .34, 1); }
html[data-perf="low"] #gate.open .gate-door-left, html[data-perf="low"] #gate.open .gate-door-right { transition: transform 1.1s cubic-bezier(.66, 0, .34, 1); }
html[data-perf="low"] .hero-deity::before, html[data-perf="low"] .hero-deity::after, html[data-perf="low"] .hero-deity img, html[data-perf="low"] .censer-deity, html[data-perf="low"] .footer-ambient-glow, html[data-perf="low"] .law-ambient-glow, html[data-perf="low"] .cta-orb, html[data-perf="low"] .bag, html[data-perf="low"] .bag-halo, html[data-perf="low"] .gate-inner-glow, html[data-perf="low"] .scanner-dot, html[data-perf="low"] .mb-bar-dot, html[data-perf="low"] .fs-bar-dot, html[data-perf="low"] .hud::before { animation: none !important; }
html[data-perf="low"] .glitch::before, html[data-perf="low"] .glitch::after { display: none !important; }
html[data-perf="low"] #progress { box-shadow: none; }
html[data-perf="low"] #toast, html[data-perf="low"] .charm-box, html[data-perf="low"] .scroll-card { box-shadow: 0 0 18px rgba(255, 45, 85, .35), 0 12px 28px rgba(0, 0, 0, .65); }
html[data-perf="low"] .censer-deity { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .7)); }
html[data-perf="low"] #censer.full { animation: none; }
html[data-perf="low"] .cta-orb { display: none; }
html[data-perf="low"] .charm-cta-deity { animation: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .8)); }
html[data-perf="low"] .hud, html[data-perf="low"] #perfToggle, html[data-perf="low"] .gate-hint, html[data-perf="low"] .toc, html[data-perf="low"] .card, html[data-perf="low"] #censer, html[data-perf="low"] #charmModal, html[data-perf="low"] .law-body, html[data-perf="low"] .matrix-node, html[data-perf="low"] .odyssey-card, html[data-perf="low"] .gateway-card, html[data-perf="low"] .footer-warn { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
@media (prefers-reduced-motion: reduce) { html[data-perf="low"] #smoke-canvas { display: none; } }
body.gate-active .sr-only[href="#main"] { display: none; }
.social-img-fallback { display: none; }

/* ============================================================
   ✦ 精修 · 深色暗部减负
   ============================================================ */
html[data-theme="dark"] .hero { box-shadow: 0 0 calc(48px * var(--glow-strength)) rgba(255, 45, 85, .22), inset 0 0 60px rgba(255, 45, 85, .05); }
html[data-theme="dark"] .cyber-temple, html[data-theme="dark"] .mapping-bridge, html[data-theme="dark"] .faith-shrine, html[data-theme="dark"] .scanner { box-shadow: 0 0 calc(36px * var(--glow-strength)) rgba(255, 45, 85, .14), inset 0 0 50px rgba(255, 45, 85, .03); }
html[data-theme="dark"] .charm-cta { box-shadow: 0 0 50px rgba(255, 45, 85, .18), inset 0 0 50px rgba(255, 45, 85, .04), inset 0 1px 0 rgba(255, 183, 0, .3); }
html[data-theme="dark"] .cyber-footer, html[data-theme="dark"] .sacred-law { box-shadow: 0 0 56px rgba(255, 45, 85, .12), inset 0 0 50px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .card, html[data-theme="dark"] .toc, html[data-theme="dark"] .invitation, html[data-theme="dark"] .asset-matrix, html[data-theme="dark"] .matrix-node, html[data-theme="dark"] .odyssey-card, html[data-theme="dark"] .gateway-card { box-shadow: 0 0 calc(28px * var(--glow-strength)) rgba(255, 45, 85, .07), inset 0 0 40px rgba(255, 45, 85, .02); }

/* ============================================================
   ✦ 精修 · 未激活态底线
   ============================================================ */
.scan-row { opacity: .52; }
.mb-row { opacity: .48; }
@media (max-width: 720px) { .scan-row { opacity: .58; } .mb-row { opacity: .54; } }

/* ============================================================
   ✦ 精修 · 冷色锚点
   ============================================================ */
.scanner-live { color: var(--cyan); }
.scanner-live i { filter: drop-shadow(0 0 calc(6px * var(--glow-strength)) var(--cyan)); }

/* ============================================================
   ✦ 精修 · 死选择器清理
   ============================================================ */
html[data-perf="low"] .law-body { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ============================================================
   ✦ 移动端专项优化 (修复滑动阴影与卡片卡住)
   ============================================================ */
@media (max-width: 720px) {
  #censer {
    filter: none !important;
    will-change: transform;
    transform: translateZ(0);
  }
  #censer:hover {
    filter: none !important;
    transform: translateZ(0) translateY(-3px) scale(1.05);
  }
  .censer-deity {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) !important;
    will-change: transform;
    transform: translateZ(0);
  }
}

@media (max-width: 480px) {
  #censer {
    filter: none !important;
    transform: translateZ(0);
  }
  .censer-deity {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)) !important;
    transform: translateZ(0);
  }
  #censer.full {
    animation: none !important;
  }

  .faith-card {
    min-height: 220px;
    padding: 22px 16px;
    grid-template-columns: 85px 1fr;
    gap: 16px;
  }
  .incense {
    height: 190px;
  }
  .incense-emblem {
    width: 38px;
    height: 38px;
    font-size: .95rem;
    top: 4px;
  }
  .faith-card.lit .incense-stick {
    height: calc(100% - 72px);
  }
  .incense-tip {
    top: 54px;
    width: 9px;
    height: 9px;
  }
  .incense-smoke {
    top: 56px;
  }
  .incense-burner {
    width: 52px;
    height: 20px;
  }
}

/* ============================================================
   ✦ 社交链接 · 链上节点徽章
   ============================================================ */
.social-gateways {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.social-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 8px;
  background: rgba(20, 8, 14, 0.8);
  border: 1px solid rgba(255, 45, 85, 0.25);
  text-decoration: none;
  color: var(--gold-l);
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.4),
    inset 0 0 15px rgba(255, 45, 85, 0.05);
  -webkit-tap-highlight-color: transparent;
}
.social-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 2;
}
.social-icon-wrap i {
  font-size: 1rem;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(255, 183, 0, 0.5));
  transition: all 0.4s ease;
}
.social-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 0 6px rgba(255, 183, 0, 0.5));
  transition: all 0.4s ease;
}
.social-label {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}
.social-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(0.5);
  background: radial-gradient(circle at center, rgba(255, 45, 85, 0.4), transparent 70%);
  opacity: 0;
  transition: all 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.social-node:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(255, 45, 85, 0.1);
  box-shadow:
    0 8px 25px rgba(255, 45, 85, 0.3),
    0 0 40px rgba(255, 183, 0, 0.15),
    inset 0 0 20px rgba(255, 45, 85, 0.1);
}
.social-node:hover .social-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.social-node:hover .social-icon-wrap i,
.social-node:hover .social-img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px var(--gold));
  color: #fff3d0;
}
.social-node:hover .social-label {
  color: #fff3d0;
  text-shadow: 0 0 8px var(--gold);
}

@media (max-width: 720px) {
  .social-gateways {
    gap: 8px;
  }
  .social-node {
    padding: 10px 16px;
    font-size: 0.65rem;
  }
}

/* ============================================================
   ✦ 页脚 · 赛博圣殿
   ============================================================ */
.cyber-footer {
  position: relative;
  margin-top: 50px;
  padding: 60px 24px 50px;
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 45, 85, 0.2), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 183, 0, 0.1), transparent 70%),
    linear-gradient(180deg, #0a0407 0%, #12050b 50%, #060204 100%);
  border: 1px solid rgba(255, 183, 0, 0.25);
  box-shadow:
    0 0 80px rgba(255, 45, 85, 0.15),
    inset 0 0 60px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  color: #a58c6f;
  z-index: 1;
}
.footer-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 183, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 183, 0, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.footer-ambient-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 45, 85, 0.08), transparent 60%);
  filter: blur(50px);
  animation: footerAmbient 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes footerAmbient {
  0%   { transform: scale(1) rotate(0deg);    opacity: 0.5; }
  100% { transform: scale(1.1) rotate(10deg); opacity: 1;   }
}
.footer-dome {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: 400px;
  z-index: 2;
  pointer-events: none;
}
.dome-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 0, 0.6), transparent);
}
.dome-node {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--gold), 0 0 24px var(--gold);
  margin: 0 10px;
  animation: domePulse 2s ease-in-out infinite;
}
@keyframes domePulse {
  0%, 100% { opacity: 0.5; transform: rotate(45deg) scale(1); }
  50%      { opacity: 1;   transform: rotate(45deg) scale(1.3); }
}
.footer-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  z-index: 2;
}
.footer-icon-svg {
  width: 40px;
  height: 40px;
  color: var(--gold-l);
  filter: drop-shadow(0 0 16px rgba(255, 183, 0, 0.8));
  animation: footerIconFloat 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes footerIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.footer-icon-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 183, 0, 0.4);
  animation: footerSpin 12s linear infinite;
}
.footer-icon-ring.outer { inset: 0; }
.footer-icon-ring.inner {
  inset: 12px;
  border-color: rgba(255, 45, 85, 0.5);
  animation-direction: reverse;
  animation-duration: 8s;
}
@keyframes footerSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.footer-main {
  position: relative;
  z-index: 2;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  font-weight: 900;
  line-height: 1.8;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  background: linear-gradient(180deg, #fff3d0 0%, var(--gold-l) 45%, var(--gold-d) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 183, 0, 0.4));
}
.footer-sub {
  position: relative;
  z-index: 2;
  font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.footer-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 300px;
  margin: 0 auto 30px;
  z-index: 2;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
  box-shadow: 0 0 8px rgba(255, 183, 0, 0.5);
}
.divider-symbol {
  font-size: 0.6rem;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold);
  animation: symbolPulse 3s ease-in-out infinite;
}
@keyframes symbolPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
.footer-warn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 24px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 45, 85, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
}
.warn-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 0.9rem;
  filter: drop-shadow(0 0 6px rgba(255, 45, 85, 0.8));
  margin-top: 2px;
}
.warn-text {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .cyber-footer {
    padding: 40px 16px 30px;
    border-radius: 14px;
  }
  .footer-main {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  .footer-sub {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }
  .footer-divider {
    margin-bottom: 20px;
  }
  .footer-warn {
    padding: 12px 16px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .warn-icon {
    margin: 0 auto;
  }
  .warn-text {
    font-size: 0.65rem;
  }
}

/* ============================================================
   ✦ 等宽字体工具类
   ============================================================ */
.mono {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* ============================================================
   ✦ 缘起 · 财神请柬
   ============================================================ */
.invitation{
  position: relative;
  margin: 20px 0;
  padding: 34px clamp(20px, 5vw, 42px) 30px;
  border-radius: 6px;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%,   rgba(255, 45, 85, .12), transparent 65%),
    radial-gradient(ellipse 80% 50% at 50% 100%,  rgba(255, 183, 0, .08), transparent 65%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .015) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, var(--panel-bg) 0%, var(--panel-bg-deep) 100%);
  border: 1px solid var(--border-hi);
  box-shadow:
    0 0 calc(50px * var(--glow-strength)) rgba(255, 45, 85, .15),
    0 0 calc(120px * var(--glow-strength)) rgba(255, 45, 85, .08),
    inset 0 0 80px rgba(255, 45, 85, .04),
    inset 0 0 0 1px var(--panel-inner);
  overflow: hidden;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.inv-corner{ position: absolute; width: 22px; height: 22px; pointer-events: none; opacity: .55; }
.inv-corner::before, .inv-corner::after{ content: ""; position: absolute; background: var(--gold); box-shadow: 0 0 calc(6px * var(--glow-strength)) var(--gold); }
.inv-corner::before{ width: 100%; height: 1px; }
.inv-corner::after { width: 1px; height: 100%; }
.inv-corner-tl{ top: 12px; left: 12px; }
.inv-corner-tr{ top: 12px; right: 12px; }
.inv-corner-bl{ bottom: 12px; left: 12px; }
.inv-corner-br{ bottom: 12px; right: 12px; }
.inv-corner-tl::before, .inv-corner-tl::after{ top: 0; left: 0; }
.inv-corner-tr::before, .inv-corner-tr::after{ top: 0; right: 0; }
.inv-corner-bl::before, .inv-corner-bl::after{ bottom: 0; left: 0; }
.inv-corner-br::before, .inv-corner-br::after{ bottom: 0; right: 0; }
.inv-stamp{
  position: absolute;
  top: 26px;
  right: clamp(22px, 4vw, 36px);
  width: 62px; height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg) scale(.6);
  opacity: 0;
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(.34, 1.56, .64, 1), opacity .6s ease;
  pointer-events: none;
  z-index: 2;
}
.invitation.stamped .inv-stamp{ opacity: 1; transform: rotate(-8deg) scale(1); }
.inv-stamp-frame{
  position: absolute;
  inset: 0;
  border: 2px solid var(--red);
  border-radius: 4px;
  box-shadow:
    0 0 calc(12px * var(--glow-strength)) var(--red),
    inset 0 0 calc(12px * var(--glow-strength)) rgba(255, 45, 85, .35);
  background: radial-gradient(circle at 50% 50%, rgba(255, 45, 85, .10), transparent 70%), rgba(255, 45, 85, .04);
}
.inv-stamp-frame::after{ content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255, 45, 85, .35); border-radius: 2px; }
.inv-stamp-text{
  position: relative;
  color: var(--red);
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 0 calc(6px * var(--glow-strength)) var(--red), 0 0 calc(16px * var(--glow-strength)) rgba(255, 45, 85, .45);
}
.inv-head{ margin-bottom: 16px; padding-right: 80px; }
.inv-title{
  font-size: clamp(1.05rem, 4vw, 1.28rem);
  font-weight: 800;
  color: var(--gold-l);
  letter-spacing: 3px;
  line-height: 1.3;
  text-shadow: 0 0 calc(10px * var(--glow-strength)) rgba(255, 183, 0, .5), 0 0 calc(24px * var(--glow-strength)) rgba(255, 45, 85, .25);
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}
.inv-subtitle{
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 2.6px;
  color: var(--text-mute);
  text-transform: uppercase;
}
.inv-sep{ display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.inv-sep-line{ flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-gold), transparent); }
.inv-sep-dot{ width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 calc(8px * var(--glow-strength)) var(--gold); }
.inv-body{ position: relative; }
.inv-line{
  position: relative;
  margin: 0 0 15px;
  padding-left: 18px;
  font-size: .94rem;
  line-height: 1.85;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
.inv-line::before{ content: ""; position: absolute; left: 2px; top: .85em; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 calc(6px * var(--glow-strength)) var(--red); }
.inv-line-em{ font-size: 1rem; font-weight: 700; color: var(--gold-l); letter-spacing: .5px; text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .35); }
.inv-line-em::before{ background: var(--gold); box-shadow: 0 0 calc(6px * var(--glow-strength)) var(--gold); }
.inv-dual{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin: 20px 0 22px;
  opacity: 0;
  transform: scale(.94);
  transition: opacity 1s ease .1s, transform 1s cubic-bezier(.34, 1.4, .64, 1) .1s;
}
.inv-side{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all .35s ease;
}
.inv-side::before{ content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7; }
.inv-side-west{ background: linear-gradient(180deg, rgba(110, 130, 160, .10), rgba(110, 130, 160, .03)); border: 1px solid rgba(140, 160, 190, .3); color: #a8b8cf; }
.inv-side-west::before{ background: radial-gradient(circle at 50% 0%, rgba(140, 170, 210, .18), transparent 65%); }
.inv-side-west .inv-side-icon{ border-color: rgba(140, 160, 190, .5); color: #a8b8cf; box-shadow: 0 0 12px rgba(140, 160, 190, .35); }
.inv-side-east{
  background: linear-gradient(180deg, rgba(255, 45, 85, .10), rgba(255, 183, 0, .04));
  border: 1px solid var(--border-hi);
  color: var(--gold-l);
  box-shadow: 0 0 calc(20px * var(--glow-strength)) rgba(255, 45, 85, .22), inset 0 0 30px rgba(255, 45, 85, .04);
}
.inv-side-east::before{ background: radial-gradient(circle at 50% 0%, rgba(255, 183, 0, .18), transparent 65%); }
.inv-side-east .inv-side-icon{ border-color: var(--gold); color: var(--gold); box-shadow: 0 0 calc(12px * var(--glow-strength)) rgba(255, 183, 0, .55), inset 0 0 calc(10px * var(--glow-strength)) rgba(255, 183, 0, .12); }
.inv-side-icon{ width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 4px; }
.inv-doge{ font-family: 'Times New Roman', serif; font-weight: 900; font-size: 1.5rem; line-height: 1; }
.inv-side-name{ font-size: 1.06rem; font-weight: 900; letter-spacing: 1px; line-height: 1.2; }
.inv-side-west .inv-side-name{ color: #cdd9e8; text-shadow: 0 0 8px rgba(140, 160, 190, .5); }
.inv-side-east .inv-side-name{ color: var(--gold-l); text-shadow: 0 0 calc(10px * var(--glow-strength)) var(--gold), 0 0 calc(20px * var(--glow-strength)) rgba(255, 183, 0, .35); }
.inv-side-year{ font-family: 'JetBrains Mono', monospace; font-size: .6rem; font-weight: 700; letter-spacing: 1.6px; opacity: .7; }
.inv-side-desc{ font-size: .76rem; font-weight: 600; letter-spacing: .5px; margin-top: 2px; opacity: .9; }
.inv-vs{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; }
.inv-vs-line{ flex: 1; width: 1px; background: linear-gradient(180deg, transparent, var(--red), transparent); min-height: 20px; box-shadow: 0 0 calc(6px * var(--glow-strength)) var(--red); }
.inv-vs-mark{ font-size: 1rem; color: var(--red); font-weight: 900; text-shadow: 0 0 calc(10px * var(--glow-strength)) var(--red), 0 0 calc(20px * var(--glow-strength)) rgba(255, 45, 85, .55); animation: invVsPulse 2.4s ease-in-out infinite; }
@keyframes invVsPulse{ 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
.inv-sign{ margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--border-gold); text-align: center; position: relative; }
.inv-sign-row{ display: inline-flex; align-items: baseline; gap: 8px; font-size: .9rem; color: var(--text-dim); margin-bottom: 6px; font-family: 'JetBrains Mono', 'Noto Serif SC', monospace; }
.inv-sign-label{ font-size: .74rem; color: var(--text-mute); letter-spacing: 2px; }
.inv-sign-text{ color: var(--text-dim); font-weight: 700; }
.inv-sign-final{ display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-family: 'Noto Serif SC', 'Songti SC', serif; }
.inv-sign-eq{ color: var(--text-mute); font-weight: 700; font-size: .9rem; }
.inv-final-gold{ font-size: clamp(1.15rem, 4.6vw, 1.42rem); font-weight: 900; letter-spacing: 1px; color: var(--gold-l); text-shadow: 0 0 calc(14px * var(--glow-strength)) var(--gold), 0 0 calc(32px * var(--glow-strength)) rgba(255, 183, 0, .45), 0 0 calc(60px * var(--glow-strength)) rgba(255, 45, 85, .25); }
.inv-final-fire{ font-size: clamp(1.05rem, 4.2vw, 1.32rem); font-weight: 900; letter-spacing: 2px; color: var(--red-l); text-shadow: 0 0 calc(12px * var(--glow-strength)) var(--red), 0 0 calc(28px * var(--glow-strength)) rgba(255, 45, 85, .45); position: relative; }
.inv-final-fire::after{ content: ""; position: absolute; left: 50%; bottom: -8px; width: 60%; height: 6px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255, 183, 0, .8) 0%, rgba(255, 45, 85, .5) 40%, transparent 80%); filter: blur(3px); animation: invFireGlow 1.8s ease-in-out infinite; }
@keyframes invFireGlow{ 0%, 100% { opacity: .55; transform: translateX(-50%) scaleX(.85); } 50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); } }
.inv-sign-seal{ display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; padding: 5px 12px; border: 1px dashed var(--red); border-radius: 3px; font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 700; letter-spacing: 2.2px; color: var(--red-l); text-shadow: 0 0 calc(6px * var(--glow-strength)) var(--red); background: rgba(255, 45, 85, .05); transform: rotate(-1.2deg); }
.inv-sign-seal i{ color: var(--red); filter: drop-shadow(0 0 calc(4px * var(--glow-strength)) var(--red)); }
.invitation.seen .inv-line{ opacity: 1; transform: translateY(0); }
.invitation.seen .inv-dual{ opacity: 1; transform: scale(1); }
@media (max-width: 480px){
  .invitation{ padding: 26px 18px 24px; }
  .inv-stamp{ width: 54px; height: 54px; top: 20px; right: 18px; }
  .inv-stamp-text{ font-size: .92rem; }
  .inv-head{ padding-right: 68px; }
  .inv-title{ letter-spacing: 2px; }
  .inv-subtitle{ font-size: .56rem; letter-spacing: 1.8px; }
  .inv-line{ font-size: .88rem; padding-left: 16px; }
  .inv-line-em{ font-size: .94rem; }
  .inv-dual{ grid-template-columns: 1fr; gap: 8px; }
  .inv-vs{ flex-direction: row; padding: 6px 0; gap: 10px; }
  .inv-vs-line{ height: 1px; width: auto; min-height: 0; background: linear-gradient(90deg, transparent, var(--red), transparent); }
  .inv-side{ padding: 14px 12px; }
  .inv-side-icon{ width: 36px; height: 36px; font-size: 1rem; }
  .inv-doge{ font-size: 1.28rem; }
  .inv-side-name{ font-size: .98rem; }
  .inv-side-desc{ font-size: .72rem; }
  .inv-sign-final{ gap: 8px; }
  .inv-sign-seal{ font-size: .56rem; letter-spacing: 1.6px; }
}

/* ============================================================
   ✦ 文化基因组扫描仪
   ============================================================ */
.scanner{
  margin: 22px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(255, 45, 85, .035) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(255, 45, 85, .035) 1px, transparent 1px) 0 0 / 22px 100%,
    linear-gradient(180deg, var(--panel-bg) 0%, var(--panel-bg-deep) 100%);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 calc(40px * var(--glow-strength)) rgba(255, 45, 85, .10), inset 0 0 60px rgba(255, 45, 85, .03);
}
.scanner::after{ content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red) 20%, var(--gold) 50%, var(--red) 80%, transparent); opacity: .6; animation: scannerTop 5s ease-in-out infinite; pointer-events: none; }
@keyframes scannerTop{ 0%, 100% { opacity: .25; transform: translateX(-14%); } 50% { opacity: .95; transform: translateX(14%); } }
.scanner-bar{ display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(255, 45, 85, .10), transparent 65%); font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; position: relative; }
.scanner-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 calc(8px * var(--glow-strength)) var(--gold), 0 0 calc(16px * var(--glow-strength)) rgba(255, 183, 0, .6); animation: scanPulse 1.8s ease-in-out infinite; flex-shrink: 0; }
@keyframes scanPulse{ 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
.scanner-title{ color: var(--gold-l); text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .6); }
.scanner-live{ margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--red-l); font-size: .62rem; font-weight: 700; letter-spacing: 2.5px; }
.scanner-live i{ font-size: .48rem; animation: scanPulse 1.4s ease-in-out infinite; filter: drop-shadow(0 0 calc(6px * var(--glow-strength)) var(--red)); }
.scanner-rows{ list-style: none; margin: 0; padding: 8px 0; }
.scan-row{ padding: 14px 18px; position: relative; border-bottom: 1px dashed var(--border); opacity: .38; transition: opacity .6s ease; }
.scan-row:last-child{ border-bottom: none; }
.scan-row.active{ opacity: 1; }
.scan-head{ display: flex; align-items: baseline; gap: 12px; margin-bottom: 9px; flex-wrap: wrap; }
.scan-idx{ font-family: 'JetBrains Mono', monospace; font-size: .68rem; font-weight: 800; color: var(--red); letter-spacing: 1px; text-shadow: 0 0 calc(8px * var(--glow-strength)) var(--red); flex-shrink: 0; }
.scan-name{ font-size: .94rem; font-weight: 800; color: var(--gold-l); letter-spacing: .5px; flex: 1; min-width: 0; text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .25); transition: text-shadow .4s ease; }
.scan-row.active .scan-name{ text-shadow: 0 0 calc(12px * var(--glow-strength)) var(--gold), 0 0 calc(28px * var(--glow-strength)) rgba(255, 183, 0, .35); }
.scan-pct{ font-family: 'JetBrains Mono', monospace; font-size: .82rem; font-weight: 800; color: var(--text-mute); letter-spacing: .5px; flex-shrink: 0; transition: color .4s ease, text-shadow .4s ease; }
.scan-row.active .scan-pct{ color: var(--gold); text-shadow: 0 0 calc(10px * var(--glow-strength)) var(--gold), 0 0 calc(22px * var(--glow-strength)) rgba(255, 183, 0, .45); }
.scan-pct i{ font-style: normal; opacity: .55; font-size: .72rem; margin-left: 1px; }
.scan-track{ position: relative; height: 6px; border-radius: 3px; background: rgba(255, 45, 85, .08); border: 1px solid var(--border); margin-bottom: 11px; overflow: visible; }
.scan-fill{ height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold-d) 0%, var(--gold) 55%, var(--red) 100%); box-shadow: 0 0 calc(10px * var(--glow-strength)) var(--gold), 0 0 calc(20px * var(--glow-strength)) rgba(255, 45, 85, .45); transition: width 1.15s cubic-bezier(.22, 1, .36, 1); position: relative; }
.scan-fill::after{ content: ""; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55) 50%, transparent); background-size: 22px 100%; background-repeat: no-repeat; animation: scanFlow 1.4s linear infinite; opacity: 0; transition: opacity .3s ease; }
.scan-row.active .scan-fill::after{ opacity: 1; }
@keyframes scanFlow{ from { background-position: -22px 0; } to { background-position: calc(100% + 22px) 0; } }
.scan-fill::before{ content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--gold-l); box-shadow: 0 0 calc(10px * var(--glow-strength)) var(--gold), 0 0 calc(20px * var(--glow-strength)) var(--gold), 0 0 calc(32px * var(--glow-strength)) rgba(255, 45, 85, .5); opacity: 0; transition: opacity .3s ease; }
.scan-row.active .scan-fill::before{ opacity: 1; }
.scan-desc{ font-size: .82rem; line-height: 1.7; color: var(--text-dim); margin: 0; transition: color .4s ease; }
.scan-row.active .scan-desc{ color: var(--text); }
.scanner-result{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; padding: 20px 18px 22px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(255, 45, 85, .07)); position: relative; overflow: hidden; opacity: 0; transform: translateY(10px); transition: all .8s cubic-bezier(.22, 1, .36, 1); }
.scanner-result.show{ opacity: 1; transform: translateY(0); }
.scanner-result::before{ content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(255, 45, 85, .25), transparent 70%); pointer-events: none; animation: resultGlow 3s ease-in-out infinite; }
@keyframes resultGlow{ 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.scanner-result > *{ position: relative; z-index: 1; }
.result-label{ font-family: 'JetBrains Mono', monospace; font-size: .64rem; font-weight: 700; letter-spacing: 2.4px; color: var(--text-mute); padding: 4px 10px; border: 1px solid var(--border-gold); border-radius: 3px; text-transform: uppercase; }
.result-verdict{ font-size: clamp(.95rem, 3.6vw, 1.12rem); font-weight: 900; letter-spacing: 1.5px; color: var(--gold-l); text-shadow: 0 0 calc(14px * var(--glow-strength)) var(--gold), 0 0 calc(32px * var(--glow-strength)) rgba(255, 45, 85, .45); }
.result-stamp{ font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 700; letter-spacing: 1.8px; color: var(--red-l); text-shadow: 0 0 calc(8px * var(--glow-strength)) var(--red); padding: 5px 12px; border: 1px dashed var(--red); border-radius: 3px; transform: rotate(-2deg); background: rgba(255, 45, 85, .05); }
@media (max-width: 480px){
  .scanner-bar{ padding: 10px 14px; font-size: .62rem; letter-spacing: 1.6px; }
  .scanner-live{ font-size: .56rem; letter-spacing: 2px; }
  .scan-row{ padding: 12px 14px; }
  .scan-idx{ font-size: .62rem; }
  .scan-name{ font-size: .88rem; }
  .scan-pct{ font-size: .76rem; }
  .scan-desc{ font-size: .78rem; }
  .scanner-result{ padding: 16px 14px 18px; gap: 10px 14px; }
  .result-verdict{ font-size: .92rem; letter-spacing: 1px; }
  .result-stamp{ font-size: .64rem; letter-spacing: 1.4px; padding: 4px 9px; }
}

/* ============================================================
   ✦ 赛博财神庙
   ============================================================ */
.cyber-temple{
  position: relative;
  margin: 20px 0;
  padding: 26px clamp(18px, 4.5vw, 34px) 22px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%,   rgba(255, 45, 85, .16), transparent 65%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 183, 0, .10), transparent 65%),
    linear-gradient(180deg, rgba(255, 183, 0, .05) 0%, transparent 30%),
    linear-gradient(180deg, var(--panel-bg) 0%, var(--panel-bg-deep) 100%);
  border: 1px solid var(--border-hi);
  box-shadow: 0 0 calc(50px * var(--glow-strength)) rgba(255, 45, 85, .18), 0 0 calc(110px * var(--glow-strength)) rgba(255, 45, 85, .10), inset 0 0 80px rgba(255, 45, 85, .04);
  overflow: hidden;
}
.cyber-temple::before, .cyber-temple::after{ content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; opacity: .55; background: linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 100% no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 0 / 100% 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 0 / 1px 100% no-repeat; }
.cyber-temple::before{ top: 14px; left: 14px; }
.cyber-temple::after { bottom: 14px; right: 14px; }
.ct-roof{ text-align: center; margin-bottom: 22px; padding-top: 6px; position: relative; }
.ct-roof-arch{ display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.ct-arch-line{ flex: 1; max-width: 110px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-gold), transparent); }
.ct-arch-seal{ display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--border-gold); border-radius: 3px; color: var(--gold); font-family: 'Noto Serif SC', 'Songti SC', serif; font-size: .82rem; font-weight: 900; background: rgba(255, 183, 0, .06); text-shadow: 0 0 calc(8px * var(--glow-strength)) var(--gold); box-shadow: 0 0 calc(10px * var(--glow-strength)) rgba(255, 183, 0, .35), inset 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .1); }
.ct-roof-eyebrow{ font-family: 'JetBrains Mono', monospace; font-size: .58rem; font-weight: 700; letter-spacing: 3.2px; color: var(--text-mute); text-transform: uppercase; margin-bottom: 6px; }
.ct-roof-title{ font-size: clamp(1.15rem, 4.6vw, 1.42rem); font-weight: 900; letter-spacing: 4px; color: var(--gold-l); line-height: 1.2; font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif; text-shadow: 0 0 calc(14px * var(--glow-strength)) var(--gold), 0 0 calc(32px * var(--glow-strength)) rgba(255, 45, 85, .35), 0 4px 12px rgba(0, 0, 0, .5); margin-bottom: 6px; border: none; padding: 0; }
.ct-roof-sub{ font-family: 'JetBrains Mono', monospace; font-size: .6rem; font-weight: 600; letter-spacing: 2.4px; color: var(--text-mute); text-transform: uppercase; }
.ct-intro{ font-size: clamp(.92rem, 3.7vw, 1rem); line-height: 1.85; color: var(--text); text-align: center; margin: 0 0 12px; padding: 0 6px; }
.ct-intro strong{ color: var(--gold-l); font-weight: 800; letter-spacing: .5px; text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .45); }
.ct-bridge{ font-size: .88rem; line-height: 1.85; color: var(--text-dim); text-align: center; margin: 0 0 26px; padding: 0 6px; }
.ct-bridge em{ font-style: normal; font-weight: 700; color: var(--gold-l); letter-spacing: .5px; padding: 1px 6px; border-radius: 3px; background: rgba(255, 183, 0, .08); border: 1px solid rgba(255, 183, 0, .22); text-shadow: 0 0 calc(6px * var(--glow-strength)) rgba(255, 183, 0, .4); }
.ct-bridge strong{ color: var(--red-l); font-weight: 800; text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 45, 85, .5); }
.ct-pillars{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; position: relative; }
.ct-pillars::after{ content: ""; position: absolute; left: -6px; right: -6px; bottom: -10px; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%); box-shadow: 0 0 calc(10px * var(--glow-strength)) var(--gold); border-radius: 2px; opacity: .8; }
.ct-pillar{ position: relative; padding: 18px 8px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: linear-gradient(180deg, rgba(255, 45, 85, .06) 0%, rgba(255, 45, 85, .02) 40%, rgba(255, 183, 0, .02) 60%, rgba(255, 183, 0, .06) 100%); border: 1px solid var(--border); border-top: 2px solid var(--border-gold); border-bottom: 2px solid var(--border-gold); border-radius: 3px; cursor: pointer; font-family: inherit; text-align: center; -webkit-tap-highlight-color: transparent; overflow: hidden; transition: transform .35s cubic-bezier(.34, 1.4, .64, 1), border-color .35s ease, box-shadow .35s ease, background .35s ease, opacity .35s ease; }
.ct-pillar::before{ content: ""; position: absolute; inset: 6px 14px; background-image: linear-gradient(90deg, transparent 0, transparent 30%, rgba(255, 183, 0, .06) 30%, rgba(255, 183, 0, .06) 31%, transparent 31%, transparent 69%, rgba(255, 183, 0, .06) 69%, rgba(255, 183, 0, .06) 70%, transparent 70%, transparent 100%); pointer-events: none; opacity: .8; }
.ct-pillar-cap, .ct-pillar-foot{ position: absolute; left: -4px; right: -4px; height: 4px; background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold) 75%, transparent 100%); border-radius: 2px; box-shadow: 0 0 calc(6px * var(--glow-strength)) var(--gold); opacity: .75; transition: all .35s ease; }
.ct-pillar-cap{ top: -2px; }
.ct-pillar-foot{ bottom: -2px; }
.ct-pillar-inner{ position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.ct-pillar-icon{ font-size: 1.4rem; color: var(--text-dim); line-height: 1; transition: all .4s cubic-bezier(.34, 1.4, .64, 1); }
.ct-pillar-action{ font-size: .84rem; font-weight: 800; color: var(--text); letter-spacing: 1.2px; transition: all .35s ease; }
.ct-pillar-rule{ width: 20px; height: 1px; background: var(--border-gold); transition: all .35s ease; }
.ct-pillar-result{ font-size: .98rem; font-weight: 900; color: var(--text-mute); letter-spacing: 2px; font-family: 'Noto Serif SC', 'Songti SC', serif; opacity: .55; transform: translateY(2px); transition: all .4s cubic-bezier(.34, 1.4, .64, 1); }
.ct-pillar:not([data-kind="dump"]):hover, .ct-pillar:not([data-kind="dump"]):focus-visible{ outline: none; transform: translateY(-4px); border-color: var(--gold); border-top-color: var(--gold-l); border-bottom-color: var(--gold-l); background: linear-gradient(180deg, rgba(255, 45, 85, .14) 0%, rgba(255, 45, 85, .06) 40%, rgba(255, 183, 0, .08) 60%, rgba(255, 183, 0, .16) 100%); box-shadow: 0 0 calc(28px * var(--glow-strength)) rgba(255, 183, 0, .5), 0 0 calc(56px * var(--glow-strength)) rgba(255, 45, 85, .3), inset 0 0 30px rgba(255, 183, 0, .12); }
.ct-pillar:not([data-kind="dump"]):hover .ct-pillar-icon, .ct-pillar:not([data-kind="dump"]):focus-visible .ct-pillar-icon{ color: var(--gold-l); transform: scale(1.15) translateY(-2px); filter: drop-shadow(0 0 calc(10px * var(--glow-strength)) var(--gold)); }
.ct-pillar:not([data-kind="dump"]):hover .ct-pillar-action, .ct-pillar:not([data-kind="dump"]):focus-visible .ct-pillar-action{ color: var(--gold-l); text-shadow: 0 0 calc(10px * var(--glow-strength)) var(--gold); }
.ct-pillar:not([data-kind="dump"]):hover .ct-pillar-rule, .ct-pillar:not([data-kind="dump"]):focus-visible .ct-pillar-rule{ width: 42px; background: var(--gold); box-shadow: 0 0 calc(6px * var(--glow-strength)) var(--gold); }
.ct-pillar:not([data-kind="dump"]):hover .ct-pillar-result, .ct-pillar:not([data-kind="dump"]):focus-visible .ct-pillar-result{ color: var(--gold-l); opacity: 1; transform: translateY(0) scale(1.08); text-shadow: 0 0 calc(12px * var(--glow-strength)) var(--gold), 0 0 calc(24px * var(--glow-strength)) rgba(255, 183, 0, .45); }
.ct-pillar[data-kind="dump"]:hover, .ct-pillar[data-kind="dump"]:focus-visible{ outline: none; animation: ctDumpShake .42s cubic-bezier(.36, .07, .19, .97); border-color: rgba(120, 120, 130, .5); background: linear-gradient(180deg, rgba(80, 80, 90, .12), rgba(40, 40, 50, .06)); opacity: .55; }
@keyframes ctDumpShake{ 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px) rotate(-1deg); } 40% { transform: translateX(4px) rotate(1deg); } 60% { transform: translateX(-3px) rotate(-.5deg); } 80% { transform: translateX(2px); } }
.ct-pillar[data-kind="dump"]:hover .ct-pillar-icon, .ct-pillar[data-kind="dump"]:focus-visible .ct-pillar-icon{ color: var(--text-mute); }
.ct-pillar[data-kind="dump"]:hover .ct-pillar-action, .ct-pillar[data-kind="dump"]:focus-visible .ct-pillar-action{ color: var(--text-mute); text-decoration: line-through; text-decoration-color: rgba(255, 45, 85, .7); text-decoration-thickness: 2px; }
.ct-pillar[data-kind="dump"]:hover .ct-pillar-rule, .ct-pillar[data-kind="dump"]:focus-visible .ct-pillar-rule{ background: rgba(120, 120, 130, .5); }
.ct-pillar[data-kind="dump"]:hover .ct-pillar-result, .ct-pillar[data-kind="dump"]:focus-visible .ct-pillar-result{ color: var(--text-mute); opacity: 1; transform: translateY(0); text-shadow: none; }
.ct-base{ position: relative; margin-top: 20px; padding-top: 16px; text-align: center; }
.ct-base-beam{ position: absolute; top: 0; left: -6px; right: -6px; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold-l) 50%, var(--gold) 75%, transparent 100%); border-radius: 2px; box-shadow: 0 0 calc(12px * var(--glow-strength)) var(--gold), 0 0 calc(24px * var(--glow-strength)) rgba(255, 183, 0, .45); animation: ctBeamFlow 4s ease-in-out infinite; }
@keyframes ctBeamFlow{ 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.ct-base-nodes{ display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ct-node{ display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 10px; border-radius: 20px; border: 1px solid var(--border-gold); background: rgba(255, 183, 0, .04); font-family: 'JetBrains Mono', 'Noto Sans SC', monospace; font-size: .74rem; font-weight: 700; color: var(--gold-l); letter-spacing: 1.2px; text-shadow: 0 0 calc(6px * var(--glow-strength)) rgba(255, 183, 0, .4); transition: all .3s ease; }
.ct-node:hover{ border-color: var(--gold); background: rgba(255, 183, 0, .10); box-shadow: 0 0 calc(16px * var(--glow-strength)) rgba(255, 183, 0, .35); transform: translateY(-1px); }
.ct-node-dot{ width: 6px; height: 6px; border-radius: 50%; background: #26ff8f; box-shadow: 0 0 6px #26ff8f, 0 0 calc(12px * var(--glow-strength)) rgba(38, 255, 143, .55); animation: ctNodePulse 2s ease-in-out infinite; flex-shrink: 0; }
.ct-node:nth-child(2) .ct-node-dot{ animation-delay: .4s; }
.ct-node:nth-child(3) .ct-node-dot{ animation-delay: .8s; }
@keyframes ctNodePulse{ 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
.ct-base-eq{ display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ct-eq-op{ font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; font-weight: 900; color: var(--red); text-shadow: 0 0 calc(10px * var(--glow-strength)) var(--red), 0 0 calc(20px * var(--glow-strength)) rgba(255, 45, 85, .5); }
.ct-eq-word{ font-size: clamp(1.05rem, 4vw, 1.22rem); font-weight: 900; letter-spacing: 2px; color: var(--gold-l); font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif; text-shadow: 0 0 calc(14px * var(--glow-strength)) var(--gold), 0 0 calc(32px * var(--glow-strength)) rgba(255, 45, 85, .35); }
.ct-eq-tag{ font-family: 'JetBrains Mono', monospace; font-size: .58rem; font-weight: 600; letter-spacing: 2.2px; color: var(--text-mute); text-transform: uppercase; padding: 3px 8px; border: 1px dashed var(--border-gold); border-radius: 3px; }
.ct-roof, .ct-intro, .ct-bridge, .ct-pillar, .ct-base-nodes, .ct-base-eq{ opacity: 0; transform: translateY(10px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.cyber-temple.seen .ct-roof{ opacity: 1; transform: translateY(0); transition-delay: .05s; }
.cyber-temple.seen .ct-intro{ opacity: 1; transform: translateY(0); transition-delay: .30s; }
.cyber-temple.seen .ct-bridge{ opacity: 1; transform: translateY(0); transition-delay: .50s; }
.cyber-temple.seen .ct-pillar:nth-child(1){ opacity: 1; transform: translateY(0); transition-delay: .70s; }
.cyber-temple.seen .ct-pillar:nth-child(2){ opacity: 1; transform: translateY(0); transition-delay: .90s; }
.cyber-temple.seen .ct-pillar:nth-child(3){ opacity: 1; transform: translateY(0); transition-delay: 1.10s; }
.cyber-temple.seen .ct-base-nodes{ opacity: 1; transform: translateY(0); transition-delay: 1.35s; }
.cyber-temple.seen .ct-base-eq{ opacity: 1; transform: translateY(0); transition-delay: 1.55s; }
@media (max-width: 480px){
  .cyber-temple{ padding: 22px 14px 18px; }
  .ct-roof-title{ letter-spacing: 2.5px; }
  .ct-roof-eyebrow{ font-size: .52rem; letter-spacing: 2.4px; }
  .ct-intro{ font-size: .88rem; }
  .ct-bridge{ font-size: .82rem; }
  .ct-pillars{ gap: 8px; }
  .ct-pillar{ padding: 14px 6px 12px; }
  .ct-pillar::before{ inset: 5px 8px; }
  .ct-pillar-icon{ font-size: 1.15rem; }
  .ct-pillar-action{ font-size: .76rem; letter-spacing: .8px; }
  .ct-pillar-result{ font-size: .84rem; letter-spacing: 1.2px; }
  .ct-pillar-rule{ width: 14px; }
  .ct-node{ padding: 4px 10px 4px 8px; font-size: .66rem; letter-spacing: .8px; }
  .ct-eq-tag{ font-size: .52rem; letter-spacing: 1.6px; }
}

/* ============================================================
   ✦ 链上映射桥
   ============================================================ */
.mapping-bridge{
  position: relative;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%,   rgba(255, 45, 85, .10), transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 183, 0, .08), transparent 60%),
    linear-gradient(180deg, var(--panel-bg) 0%, var(--panel-bg-deep) 100%);
  overflow: hidden;
  box-shadow: 0 0 calc(40px * var(--glow-strength)) rgba(255, 45, 85, .10), inset 0 0 60px rgba(255, 45, 85, .03);
}
.mapping-bridge::after{ content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red) 20%, var(--gold) 50%, var(--red) 80%, transparent); opacity: .55; animation: mbTopScan 5s ease-in-out infinite; pointer-events: none; }
@keyframes mbTopScan{ 0%, 100% { opacity: .25; transform: translateX(-12%); } 50% { opacity: .9; transform: translateX(12%); } }
.mb-bar{ display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(255, 45, 85, .10), transparent 65%); font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; }
.mb-bar-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 calc(8px * var(--glow-strength)) var(--gold), 0 0 calc(16px * var(--glow-strength)) rgba(255, 183, 0, .55); animation: mbBarDot 1.6s ease-in-out infinite; flex-shrink: 0; }
@keyframes mbBarDot{ 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
.mb-bar-title{ color: var(--gold-l); text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .55); }
.mb-bar-count{ margin-left: auto; display: inline-flex; align-items: baseline; gap: 4px; color: var(--text-mute); font-size: .62rem; letter-spacing: 1.8px; }
.mb-bar-count b{ font-size: .88rem; font-weight: 900; color: var(--gold); text-shadow: 0 0 calc(8px * var(--glow-strength)) var(--gold), 0 0 calc(16px * var(--glow-strength)) rgba(255, 183, 0, .45); transition: all .3s ease; }
.mb-bar-count b.bump{ animation: mbCountBump .5s cubic-bezier(.34, 1.6, .64, 1); }
@keyframes mbCountBump{ 0% { transform: scale(1); color: var(--gold); } 40% { transform: scale(1.35); color: #26ff8f; text-shadow: 0 0 12px #26ff8f, 0 0 24px rgba(38, 255, 143, .55); } 100% { transform: scale(1); color: var(--gold); } }
.mb-labels{ display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; gap: 0; padding: 12px 14px 4px; font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: 2.2px; text-transform: uppercase; color: var(--text-mute); }
.mb-label-real { justify-self: center; }
.mb-label-chain{ justify-self: center; }
.mb-list{ list-style: none; margin: 0; padding: 0 14px 14px; }
.mb-row{ display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; gap: 0; padding: 14px 14px; position: relative; opacity: .32; transition: opacity .7s ease; }
.mb-row + .mb-row{ border-top: 1px dashed var(--border); }
.mb-row.lit{ opacity: 1; }
.mb-side{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; position: relative; min-height: 68px; }
.mb-side-real{ padding-right: 4px; }
.mb-side-chain{ padding-left: 4px; }
.mb-icon{ width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.32rem; position: relative; flex-shrink: 0; transition: all .55s cubic-bezier(.34, 1.4, .64, 1); overflow: hidden; transform-origin: center; }
.mb-side-real .mb-icon{ background: linear-gradient(145deg, rgba(120, 80, 20, .28), rgba(60, 40, 10, .35)); border: 1.5px solid rgba(180, 130, 40, .45); color: #c9a860; box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .5), inset 0  2px 6px rgba(255, 220, 130, .18); }
.mb-row.lit .mb-side-real .mb-icon{ background: linear-gradient(145deg, rgba(255, 200, 90, .22), rgba(160, 90, 10, .28)); border-color: var(--gold); color: var(--gold-l); box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .45), inset 0  2px 6px rgba(255, 220, 130, .28), 0 0 calc(16px * var(--glow-strength)) rgba(255, 183, 0, .45), 0 0 calc(32px * var(--glow-strength)) rgba(255, 183, 0, .2); transform: scale(1.08); }
.mb-side-chain .mb-icon{ background: linear-gradient(145deg, rgba(255, 45, 85, .12), rgba(60, 10, 20, .4)); border: 1.5px solid rgba(255, 45, 85, .3); color: #a86688; box-shadow: inset 0 0 14px rgba(255, 45, 85, .15), inset 0 -3px 8px rgba(0, 0, 0, .4); }
.mb-row.lit .mb-side-chain .mb-icon{ background: linear-gradient(145deg, rgba(255, 45, 85, .22), rgba(255, 183, 0, .14)); border-color: var(--red); color: var(--gold-l); box-shadow: inset 0 0 20px rgba(255, 45, 85, .28), inset 0 -3px 8px rgba(0, 0, 0, .3), 0 0 calc(18px * var(--glow-strength)) rgba(255, 45, 85, .55), 0 0 calc(36px * var(--glow-strength)) rgba(255, 45, 85, .25); transform: scale(1.08); }
.mb-side-chain .mb-icon::before{ content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 233, 184, .75) 50%, transparent); transition: left .7s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.mb-row.lit .mb-side-chain .mb-icon::before{ left: 140%; }
.mb-name{ font-size: .84rem; font-weight: 800; letter-spacing: 1.2px; line-height: 1; transition: all .5s ease; white-space: nowrap; }
.mb-side-real .mb-name{ color: var(--text-dim); font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif; }
.mb-row.lit .mb-side-real .mb-name{ color: var(--gold-l); text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .5); }
.mb-side-chain .mb-name{ color: var(--text-mute); font-family: 'JetBrains Mono', 'Noto Serif SC', monospace; }
.mb-row.lit .mb-side-chain .mb-name{ color: var(--gold-l); text-shadow: 0 0 calc(10px * var(--glow-strength)) var(--gold), 0 0 calc(24px * var(--glow-strength)) rgba(255, 45, 85, .45); }
.mb-track{ --mb-flow-speed: 4.2s; --mb-flow-color: rgba(255, 183, 0, .28); --mb-flow-size:  22px; --mb-dash-color: var(--border-gold); --mb-anchor-color: var(--border-gold); position: relative; height: 46px; display: flex; align-items: center; justify-content: center; overflow: visible; padding: 0 10px; background-color: transparent; background-image: radial-gradient(circle 3px at 50% 50%, var(--mb-flow-color) 0, transparent 100%), linear-gradient(90deg, var(--mb-dash-color) 0 5px, transparent 5px 11px); background-size: var(--mb-flow-size) 100%, 11px 1px; background-position: 0 50%, 6px 50%; background-repeat: repeat-x, repeat-x; background-origin: content-box; background-clip: content-box; animation: mbFlow var(--mb-flow-speed) linear infinite; transition: filter .5s ease; }
.mb-track::before, .mb-track::after{ content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--mb-anchor-color); transform: translateY(-.5px); opacity: .55; transition: all .5s ease; }
.mb-track::before{ left: 0; }
.mb-track::after { right: 0; }
@keyframes mbFlow{ from { background-position: 0 50%, 6px 50%; } to { background-position: 22px 50%, 6px 50%; } }
.mb-row.lit .mb-track{ --mb-flow-speed:  1.6s; --mb-flow-color:  var(--gold-l); --mb-dash-color:  var(--gold); --mb-anchor-color: var(--gold); filter: drop-shadow(0 0 calc(4px * var(--glow-strength)) var(--gold)) drop-shadow(0 0 calc(10px * var(--glow-strength)) rgba(255, 45, 85, .35)); }
.mb-row.lit .mb-track::before, .mb-row.lit .mb-track::after{ opacity: 1; box-shadow: 0 0 calc(6px * var(--glow-strength)) var(--gold), 0 0 calc(12px * var(--glow-strength)) rgba(255, 183, 0, .5); }
.mb-track-pulse{ position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: radial-gradient(circle, #fff3d0 0%, var(--gold) 40%, var(--red) 75%, transparent 100%); box-shadow: 0 0 calc(12px * var(--glow-strength)) var(--gold), 0 0 calc(24px * var(--glow-strength)) var(--red); opacity: 0; pointer-events: none; z-index: 2; }
.mb-row.lit .mb-track-pulse{ animation: mbPulseTravel 1.15s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes mbPulseTravel{ 0% { left: 0; opacity: 0; transform: scale(.6); } 8% { opacity: 1; transform: scale(1.15); } 92% { opacity: 1; transform: scale(1.15); } 100% { left: calc(100% - 10px); opacity: 0; transform: scale(.6); } }
.mb-track-arrow{ font-size: .58rem; color: var(--text-mute); opacity: 0; position: relative; z-index: 3; transition: all .4s ease .6s; transform: translateX(-4px); }
.mb-row.lit .mb-track-arrow{ color: var(--gold-l); opacity: 1; text-shadow: 0 0 calc(8px * var(--glow-strength)) var(--gold), 0 0 calc(16px * var(--glow-strength)) rgba(255, 183, 0, .5); transform: translateX(0); }
@media (max-width: 720px){
  .mb-labels{ grid-template-columns: 1fr 100px 1fr; padding: 10px 10px 4px; font-size: .56rem; }
  .mb-row{ grid-template-columns: 1fr 100px 1fr; padding: 12px 10px; }
  .mb-icon{ width: 44px; height: 44px; font-size: 1.1rem; }
  .mb-side{ gap: 5px; min-height: 58px; }
  .mb-name{ font-size: .78rem; letter-spacing: .8px; }
  .mb-track{ height: 40px; }
}
@media (max-width: 480px){
  .mb-labels{ grid-template-columns: 1fr 64px 1fr; font-size: .5rem; letter-spacing: 1.2px; padding: 8px 6px 2px; }
  .mb-row{ grid-template-columns: 1fr 64px 1fr; padding: 10px 6px; }
  .mb-icon{ width: 38px; height: 38px; font-size: .92rem; }
  .mb-side{ gap: 4px; min-height: 50px; }
  .mb-name{ font-size: .72rem; letter-spacing: .4px; }
  .mb-track{ height: 34px; padding: 0 6px; }
  .mb-track-arrow{ display: none; }
  .mb-track-pulse{ width: 8px; height: 8px; margin-top: -4px; }
}

/* ============================================================
   ✦ 三炷香
   ============================================================ */
.faith-shrine{
  position: relative;
  margin: 20px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(255, 45, 85, .10), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 0%,   rgba(255, 183, 0, .06), transparent 60%),
    linear-gradient(180deg, var(--panel-bg) 0%, var(--panel-bg-deep) 100%);
  overflow: hidden;
  box-shadow: 0 0 calc(40px * var(--glow-strength)) rgba(255, 45, 85, .10), inset 0 0 60px rgba(255, 45, 85, .03);
}
.faith-shrine::after{ content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red) 20%, var(--gold) 50%, var(--red) 80%, transparent); opacity: .55; animation: fsTopScan 5s ease-in-out infinite; pointer-events: none; }
@keyframes fsTopScan{ 0%, 100% { opacity: .25; transform: translateX(-12%); } 50% { opacity: .9; transform: translateX(12%); } }
.fs-bar{ display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(255, 45, 85, .10), transparent 65%); font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; }
.fs-bar-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 calc(8px * var(--glow-strength)) var(--red), 0 0 calc(16px * var(--glow-strength)) rgba(255, 45, 85, .55); animation: fsBarDot 1.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes fsBarDot{ 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
.fs-bar-title{ color: var(--gold-l); text-shadow: 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .55); }
.fs-bar-count{ margin-left: auto; display: inline-flex; align-items: baseline; gap: 5px; color: var(--text-mute); font-size: .62rem; letter-spacing: 1.8px; }
.fs-bar-count b{ font-size: .92rem; font-weight: 900; color: var(--gold); text-shadow: 0 0 calc(8px * var(--glow-strength)) var(--gold), 0 0 calc(16px * var(--glow-strength)) rgba(255, 183, 0, .45); transition: all .3s ease; }
.fs-bar-count b.bump{ animation: fsCountBump .55s cubic-bezier(.34, 1.6, .64, 1); }
@keyframes fsCountBump{ 0% { transform: scale(1); color: var(--gold); } 40% { transform: scale(1.4); color: #26ff8f; text-shadow: 0 0 12px #26ff8f, 0 0 24px rgba(38, 255, 143, .55); } 100% { transform: scale(1); color: var(--gold); } }
.fs-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 22px 18px 0; }
.faith-card{
  position: relative;
  padding: 22px 18px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 50% at 30% 0%, rgba(255, 183, 0, .04), transparent 60%), linear-gradient(180deg, rgba(20, 8, 12, .55), rgba(10, 5, 8, .7));
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 240px;
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
  transition: border-color .8s ease, box-shadow .8s ease, background .8s ease, opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
.faith-card.seen{ opacity: 1; transform: translateY(0); }
.faith-card::before{ content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), var(--gold-l), var(--gold), transparent); box-shadow: 0 0 calc(10px * var(--glow-strength)) var(--gold); opacity: 0; transform: scaleX(.2); transition: opacity .8s ease, transform .8s cubic-bezier(.34, 1.4, .64, 1); }
.faith-card.lit::before{ opacity: 1; transform: scaleX(1); }
.faith-card::after{ content: ""; position: absolute; left: 50%; bottom: -14px; width: 1px; height: 14px; background: linear-gradient(180deg, var(--gold) 0%, rgba(255, 183, 0, .3) 60%, transparent 100%); transform: translateX(-50%); opacity: 0; transition: opacity .9s ease .6s; pointer-events: none; }
.faith-card.lit::after{ opacity: 1; box-shadow: 0 0 calc(6px * var(--glow-strength)) var(--gold); }
.faith-card.lit{ border-color: var(--border-hi); background: radial-gradient(ellipse 90% 60% at 30% 0%, rgba(255, 45, 85, .10), transparent 65%), radial-gradient(ellipse 80% 50% at 30% 100%, rgba(255, 183, 0, .06), transparent 65%), linear-gradient(180deg, rgba(28, 10, 15, .7), rgba(14, 6, 9, .85)); box-shadow: 0 0 calc(30px * var(--glow-strength)) rgba(255, 45, 85, .22), inset 0 0 40px rgba(255, 45, 85, .05); }
.fc-code{ position: absolute; top: 10px; right: 12px; font-family: 'JetBrains Mono', monospace; font-size: .56rem; font-weight: 700; letter-spacing: 1.4px; color: var(--text-mute); transition: color .6s ease, text-shadow .6s ease; }
.faith-card.lit .fc-code{ color: var(--gold); text-shadow: 0 0 calc(6px * var(--glow-strength)) rgba(255, 183, 0, .5); }
.incense{ position: relative; width: 100%; height: 190px; display: flex; justify-content: center; align-items: flex-end; flex-shrink: 0; overflow: hidden; }
.incense-emblem{ position: absolute; top: 0; left: 50%; transform: translateX(-50%) scale(.72); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.12rem; color: var(--text-mute); background: radial-gradient(circle at 50% 35%, rgba(255, 183, 0, .10), rgba(20, 8, 12, .85)); border: 1.5px solid var(--border-gold); box-shadow: inset 0 0 12px rgba(0, 0, 0, .45), 0 0 calc(8px * var(--glow-strength)) rgba(255, 183, 0, .15); z-index: 3; opacity: .4; transition: transform .9s cubic-bezier(.34, 1.5, .64, 1), opacity .7s ease, color .7s ease, border-color .7s ease, box-shadow .7s ease; }
.faith-card.lit .incense-emblem{ opacity: 1; transform: translateX(-50%) scale(1); color: #fff3d0; border-color: var(--gold-l); background: radial-gradient(circle at 50% 35%, rgba(255, 245, 220, .28), rgba(80, 25, 15, .9)); box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .45), inset 0  3px 8px rgba(255, 245, 220, .45), 0 0 calc(16px * var(--glow-strength)) var(--gold), 0 0 calc(32px * var(--glow-strength)) rgba(255, 183, 0, .5), 0 0 calc(64px * var(--glow-strength)) rgba(255, 45, 85, .3); animation: fsEmblemFloat 3.4s ease-in-out infinite; }
@keyframes fsEmblemFloat{ 0%, 100% { transform: translateX(-50%) translateY(0) scale(1); } 50% { transform: translateX(-50%) translateY(-3px) scale(1.03); } }
.incense-stick{ position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 4px; height: 0; border-radius: 2px; background: linear-gradient(180deg, var(--gold-l) 0%, var(--gold) 25%, var(--red) 70%, var(--red-d) 100%); box-shadow: 0 0 calc(8px  * var(--glow-strength)) rgba(255, 183, 0, .6), 0 0 calc(16px * var(--glow-strength)) rgba(255, 45, 85, .35), inset 0 0 5px rgba(255, 233, 184, .7); transition: height 1.3s cubic-bezier(.5, 0, .2, 1); z-index: 2; }
.faith-card.lit .incense-stick{ height: calc(100% - 72px); }
.incense-tip{ position: absolute; left: 50%; top: 52px; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #fff3d0 0%, var(--gold) 35%, var(--red) 70%, transparent 100%); box-shadow: 0 0 calc(10px * var(--glow-strength)) var(--gold), 0 0 calc(22px * var(--glow-strength)) var(--red), 0 0 calc(40px * var(--glow-strength)) rgba(255, 45, 85, .45); opacity: 0; transition: opacity .5s ease 1.2s; z-index: 4; }
.faith-card.lit .incense-tip{ opacity: 1; animation: fsTipPulse 1.6s ease-in-out infinite; }
@keyframes fsTipPulse{ 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.3); } }
.incense-smoke{ position: absolute; left: 50%; top: 56px; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 233, 184, .9) 0%, rgba(255, 183, 0, .5) 40%, transparent 75%); filter: blur(1.5px); opacity: 0; pointer-events: none; z-index: 3; }
.faith-card.lit .incense-smoke{ animation: fsSmokeRise 3.2s ease-out infinite; }
.faith-card.lit .incense-smoke.s1{ animation-delay: 0s; }
.faith-card.lit .incense-smoke.s2{ animation-delay: 1.05s; }
.faith-card.lit .incense-smoke.s3{ animation-delay: 2.1s; }
@keyframes fsSmokeRise{ 0% { opacity: 0; transform: translateX(-50%) scale(.5); } 15% { opacity: .85; } 75% { opacity: .35; transform: translate(calc(-50% + 10px), -40px) scale(1.6); } 100% { opacity: 0; transform: translate(calc(-50% + 16px), -56px) scale(2.2); } }
.incense-burner{ position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 58px; height: 22px; border-radius: 42% 42% 26% 26% / 68% 68% 32% 32%; background: linear-gradient(180deg, rgba(200, 140, 40, .75) 0%, rgba(140, 80, 20, .9)  40%, rgba(80, 40, 12, .95)  75%, rgba(40, 18, 6, 1)     100%); border: 1.5px solid rgba(190, 140, 50, .7); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .75), inset 0  3px 8px  rgba(255, 220, 130, .25), 0 2px 8px rgba(0, 0, 0, .6), 0 0 calc(12px * var(--glow-strength)) rgba(255, 183, 0, .25); z-index: 2; opacity: .5; transition: all .9s ease .3s; }
.incense-burner::before{ content: ""; position: absolute; top: -3px; left: 5px; right: 5px; height: 8px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .5) 55%, transparent 100%); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9), inset 0 -1px 2px rgba(255, 220, 130, .2); }
.incense-burner::after{ content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 2px; background: linear-gradient(180deg, rgba(90, 55, 18, .95) 0%, rgba(40, 22, 6, 1) 100%); box-shadow: 0 1px 3px rgba(0, 0, 0, .8), inset 0 1px 1px rgba(255, 200, 100, .2); }
.faith-card.lit .incense-burner{ opacity: 1; border-color: var(--gold-l); background: linear-gradient(180deg, rgba(255, 200, 80, .85) 0%, rgba(200, 120, 30, .9) 40%, rgba(120, 60, 15, .95) 75%, rgba(60, 25, 8, 1) 100%); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .65), inset 0  3px 8px  rgba(255, 245, 200, .4), 0 2px 8px rgba(0, 0, 0, .6), 0 0 calc(16px * var(--glow-strength)) var(--gold), 0 0 calc(32px * var(--glow-strength)) rgba(255, 45, 85, .3); }
.faith-body{ min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.faith-title{ font-size: 1.12rem; font-weight: 800; color: var(--gold-l); letter-spacing: 2.4px; line-height: 1.3; margin: 0; border: none; padding: 0; font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif; transition: all .8s ease; opacity: .55; text-align: left; }
.faith-card.lit .faith-title{ color: var(--gold); opacity: 1; text-shadow: 0 0 calc(14px * var(--glow-strength)) var(--gold), 0 0 calc(32px * var(--glow-strength)) rgba(255, 45, 85, .35); }
.faith-desc{ font-size: .84rem; line-height: 1.75; color: var(--text-dim); margin: 0; transition: color .8s ease; text-align: left; }
.faith-card.lit .faith-desc{ color: var(--text); }
.fs-base{ position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 22px 22px 24px; }
.fs-base::before{ content: ""; position: absolute; top: 14px; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--border-gold) 12%, var(--gold) 30%, var(--gold-l) 50%, var(--gold) 70%, var(--border-gold) 88%, transparent 100%); opacity: .55; transition: all .9s ease; pointer-events: none; }
.faith-shrine.done .fs-base::before{ opacity: 1; box-shadow: 0 0 calc(12px * var(--glow-strength)) var(--gold), 0 0 calc(28px * var(--glow-strength)) rgba(255, 183, 0, .5), 0 0 calc(48px * var(--glow-strength)) rgba(255, 45, 85, .25); }
.fs-base-line{ flex: 1; max-width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-gold), transparent); transition: all .9s ease; }
.faith-shrine.done .fs-base-line{ background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 calc(6px * var(--glow-strength)) rgba(255, 183, 0, .5); }
.fs-base-seal{ position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 18px 30px 12px; background: radial-gradient(ellipse 70% 90% at 28% 22%, rgba(255, 200, 100, .38) 0%, rgba(200, 100, 40, .16) 40%, transparent 62%), radial-gradient(ellipse 70% 90% at 74% 82%, rgba(30, 5, 3, .55) 0%, transparent 65%), linear-gradient(148deg, #b32818 0%, #8a1c10 45%, #5a0e08 100%); border-radius: 10px 12px 10px 11px / 11px 10px 12px 10px; transform: rotate(-1.5deg); transform-origin: center; box-shadow: inset 0  3px 4px rgba(255, 220, 130, .38), inset 0 -5px 8px rgba(20, 4, 2, .72), 0 5px 12px rgba(0, 0, 0, .62), 0 2px 4px rgba(0, 0, 0, .48); color: #f5d98a; font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif; font-size: .8rem; font-weight: 900; letter-spacing: 2.6px; white-space: nowrap; text-shadow: 0  1px 0 rgba(255, 200, 100, .4), 0 -1px 0 rgba(20, 4, 2, .7); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; transition: transform .9s cubic-bezier(.34, 1.4, .64, 1), background .9s ease, box-shadow .9s ease, color .9s ease, text-shadow .9s ease; }
.fs-base-seal::before{ content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(138, 28, 16, .38) 0%, rgba(138, 28, 16, .12) 50%, transparent 75%); filter: blur(7px); opacity: .75; z-index: -1; pointer-events: none; transition: all .9s ease; }
.fs-base-seal-plaque{ position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 76%; max-width: 180px; height: 8px; pointer-events: none; z-index: 2; }
.fs-base-seal-plaque::before{ content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1.5px; margin-top: -.75px; background: linear-gradient(90deg, transparent 0%, var(--gold) 18%, var(--gold-l) 50%, var(--gold) 82%, transparent 100%); box-shadow: 0 0 calc(6px  * var(--glow-strength)) rgba(255, 183, 0, .7), 0 0 calc(14px * var(--glow-strength)) rgba(255, 183, 0, .35); border-radius: 2px; }
.fs-base-seal-plaque-mid{ position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg); background: linear-gradient(135deg, #ffe9b8 0%, var(--gold) 100%); border: 1px solid var(--gold-l); box-shadow: 0 0 calc(8px  * var(--glow-strength)) var(--gold), 0 0 calc(16px * var(--glow-strength)) rgba(255, 183, 0, .5), inset 0 0 3px rgba(255, 255, 255, .7); }
.fs-base-seal-dot{ width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 200, 100, .5); opacity: .7; flex-shrink: 0; box-shadow: inset 0 1px 1px rgba(255, 240, 200, .5); transition: all .9s ease; }
.faith-shrine.done .fs-base-seal{ background: radial-gradient(ellipse 70% 90% at 28% 22%, rgba(255, 240, 180, .55) 0%, rgba(255, 183, 0, .3) 40%, transparent 62%), radial-gradient(ellipse 70% 90% at 74% 82%, rgba(60, 8, 4, .6) 0%, transparent 65%), linear-gradient(148deg, #e6a815 0%, #b32818 45%, #7a1410 100%); color: #fff3d0; text-shadow: 0  1px 0 rgba(255, 220, 130, .65), 0  0 calc(10px * var(--glow-strength)) var(--gold), 0 -1px 0 rgba(20, 4, 2, .6); box-shadow: inset 0  3px 5px rgba(255, 245, 220, .7), inset 0 -5px 8px rgba(40, 8, 4, .72), 0 5px 14px rgba(0, 0, 0, .68), 0 0 calc(20px * var(--glow-strength)) var(--gold), 0 0 calc(44px * var(--glow-strength)) rgba(255, 45, 85, .4); }
.faith-shrine.done .fs-base-seal-dot{ background: #ffe9b8; opacity: 1; box-shadow: 0 0 calc(6px * var(--glow-strength)) var(--gold), 0 0 calc(12px * var(--glow-strength)) rgba(255, 183, 0, .65); animation: fsBaseDot 2.4s ease-in-out infinite; }
.faith-shrine.done .fs-base-seal-dot:last-child{ animation-delay: 1.2s; }
@keyframes fsBaseDot{ 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }
.fs-base-seal.stamped{ animation: fsSealPress .45s cubic-bezier(.34, 1.4, .64, 1); }
@keyframes fsSealPress{ 0% { transform: rotate(-1.5deg) scale(1); } 40% { transform: rotate(-1.5deg) scale(.92); } 100% { transform: rotate(-1.5deg) scale(1); } }
.faith-shrine.resetting .faith-card, .faith-shrine.resetting .incense-stick, .faith-shrine.resetting .incense-tip, .faith-shrine.resetting .incense-emblem, .faith-shrine.resetting .incense-burner, .faith-shrine.resetting .faith-title, .faith-shrine.resetting .faith-desc, .faith-shrine.resetting .fs-base-seal, .faith-shrine.resetting .fs-base-seal-dot, .faith-shrine.resetting .fs-base-line{ transition-duration: 0s !important; animation: none !important; }
@media (max-width: 720px){
  .fs-bar{ padding: 10px 14px; font-size: .62rem; letter-spacing: 1.6px; }
  .fs-bar-count{ font-size: .56rem; }
  .fs-bar-count b{ font-size: .82rem; }
  .fs-grid{ padding: 18px 12px 0; gap: 10px; }
  .faith-card{ padding: 18px 14px; grid-template-columns: 92px 1fr; gap: 14px; min-height: 220px; }
  .incense{ height: 170px; }
  .incense-emblem{ width: 40px; height: 40px; font-size: 1rem; }
  .incense-stick{ width: 3.5px; }
  .faith-card.lit .incense-stick{ height: calc(100% - 66px); }
  .incense-tip{ top: 48px; width: 9px; height: 9px; }
  .incense-smoke{ top: 50px; }
  .incense-burner{ width: 52px; height: 20px; }
  .faith-title{ font-size: 1rem; letter-spacing: 1.8px; }
  .faith-desc{ font-size: .78rem; }
  .fc-code{ font-size: .52rem; }
  .fs-base{ padding: 20px 14px 18px; gap: 10px; }
  .fs-base-line{ max-width: 50px; }
  .fs-base-seal{ font-size: .72rem; letter-spacing: 2.2px; padding: 16px 22px 11px; }
}
@media (max-width: 480px){
  .fs-grid{ grid-template-columns: 1fr; padding: 14px 10px 0; gap: 10px; }
  .faith-card{ min-height: 220px; padding: 22px 16px; grid-template-columns: 85px 1fr; gap: 16px; }
  .incense{ height: 190px; }
  .incense-emblem{ width: 38px; height: 38px; font-size: .95rem; top: 4px; }
  .faith-card.lit .incense-stick{ height: calc(100% - 72px); }
  .incense-tip{ top: 54px; width: 9px; height: 9px; }
  .incense-smoke{ top: 56px; }
  .incense-burner{ width: 52px; height: 20px; }
  .faith-title{ font-size: .92rem; letter-spacing: 1.4px; }
  .faith-desc{ font-size: .74rem; line-height: 1.7; }
  .fc-code{ font-size: .5rem; }
  .fs-base{ gap: 8px; padding: 20px 12px 16px; }
  .fs-base-line{ max-width: 32px; }
  .fs-base-seal{ font-size: .66rem; letter-spacing: 1.6px; padding: 15px 16px 10px; gap: 8px; }
  .fs-base-seal-dot{ width: 5px; height: 5px; }
}

/* ============================================================
   ✦ 铁律 · 神圣金印
   ============================================================ */
.sacred-law {
  position: relative;
  margin: 24px 0;
  padding: 42px 28px 34px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 45, 85, 0.15), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 183, 0, 0.1), transparent 70%),
    linear-gradient(180deg, #0a0407 0%, #14060c 50%, #060204 100%);
  border: 1px solid rgba(255, 183, 0, 0.25);
  box-shadow: 0 0 80px rgba(255, 45, 85, 0.15), inset 0 0 60px rgba(255, 45, 85, 0.05), inset 0 1px 0 rgba(255, 183, 0, 0.4);
  overflow: hidden;
  transition: all 0.4s ease;
}
.law-ambient-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 30%, rgba(255, 45, 85, 0.12) 0%, transparent 40%), radial-gradient(circle at 70% 70%, rgba(255, 183, 0, 0.08) 0%, transparent 40%); filter: blur(50px); animation: lawAmbient 10s ease-in-out infinite alternate; pointer-events: none; z-index: 0; }
@keyframes lawAmbient { 0% { transform: scale(1) rotate(0deg); opacity: 0.7; } 100% { transform: scale(1.1) rotate(5deg); opacity: 1; } }
.law-shimmer { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), var(--red), var(--gold), transparent); animation: lawShimmer 4s ease-in-out infinite; opacity: 0.8; z-index: 1; }
@keyframes lawShimmer { 0%, 100% { opacity: 0.3; transform: translateX(-30%); } 50% { opacity: 1; transform: translateX(30%); } }
.law-core { position: relative; z-index: 2; text-align: center; margin-bottom: 36px; }
.law-icon-halo { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 22px; }
.law-icon-halo i { font-size: 2rem; color: var(--red-l); filter: drop-shadow(0 0 16px rgba(255, 45, 85, 0.9)); animation: lawIconPulse 2.5s ease-in-out infinite; position: relative; z-index: 2; }
.halo-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 45, 85, 0.6); animation: haloSpin 8s linear infinite; }
.halo-ring.delay { inset: -8px; border-color: rgba(255, 183, 0, 0.4); animation-duration: 12s; animation-direction: reverse; }
@keyframes lawIconPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes haloSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.law-title { font-size: clamp(1.4rem, 5.5vw, 1.8rem); font-weight: 900; letter-spacing: 3px; margin-bottom: 12px; border: none; padding: 0; display: block; background: linear-gradient(180deg, #fff3d0 0%, var(--gold-l) 40%, var(--gold-d) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 20px rgba(255, 183, 0, 0.5)); font-family: 'Noto Serif SC', 'Songti SC', serif; line-height: 1.3; }
.law-subtitle { font-size: clamp(1rem, 4vw, 1.15rem); color: var(--text-dim); letter-spacing: 1px; margin-bottom: 24px; }
.law-divider { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 200px; margin: 0 auto; }
.law-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.5; }
.law-divider i { font-size: 0.4rem; color: var(--gold); filter: drop-shadow(0 0 8px var(--gold)); animation: lawDotPulse 2s ease-in-out infinite; }
@keyframes lawDotPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }
.law-body { position: relative; z-index: 2; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 183, 0, 0.15); border-radius: 14px; padding: 28px 24px; margin-bottom: 28px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 183, 0, 0.05); }
.law-intro { font-size: 0.95rem; line-height: 1.8; color: var(--text); margin-bottom: 24px; text-align: center; }
.law-intro strong { color: var(--gold-l); font-weight: 800; text-shadow: 0 0 12px rgba(255, 183, 0, 0.6); padding: 0 4px; }
.law-list { list-style: none; padding: 0; margin: 0; }
.law-list li { position: relative; display: flex; align-items: center; padding: 16px 18px; border-radius: 10px; margin-bottom: 8px; background: rgba(255, 45, 85, 0.02); border: 1px solid transparent; transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1); cursor: default; }
.law-list li:last-child { margin-bottom: 0; }
.law-node { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red), 0 0 24px var(--red); margin-right: 16px; opacity: 0.5; transition: all 0.4s ease; position: relative; }
.law-node::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--red); opacity: 0; transition: all 0.4s ease; }
.law-text { font-size: 0.95rem; color: var(--text-dim); letter-spacing: 0.5px; transition: all 0.4s ease; }
.law-list li:hover { background: rgba(255, 45, 85, 0.08); border-color: rgba(255, 45, 85, 0.3); transform: translateX(6px); box-shadow: 0 0 24px rgba(255, 45, 85, 0.2), inset 0 0 20px rgba(255, 45, 85, 0.05); }
.law-list li:hover .law-node { opacity: 1; transform: scale(1.3); box-shadow: 0 0 20px var(--red), 0 0 40px var(--red); }
.law-list li:hover .law-node::after { opacity: 1; transform: scale(1.5); }
.law-list li:hover .law-text { color: #fff3d0; text-shadow: 0 0 12px rgba(255, 183, 0, 0.6); }
.law-oath { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding: 28px 24px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 183, 0, 0.08), rgba(255, 45, 85, 0.04)); border: 1px dashed rgba(255, 183, 0, 0.4); box-shadow: 0 0 40px rgba(255, 183, 0, 0.1), inset 0 0 40px rgba(255, 183, 0, 0.05); transition: all 0.4s ease; }
.law-oath:hover { border-color: var(--gold); box-shadow: 0 0 60px rgba(255, 183, 0, 0.2), inset 0 0 50px rgba(255, 183, 0, 0.1); }
.oath-seal { position: relative; flex-shrink: 0; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6a815, #8a1c10); box-shadow: 0 0 24px rgba(255, 183, 0, 0.6), inset 0 2px 6px rgba(255, 220, 130, 0.6), inset 0 -6px 12px rgba(20, 4, 2, 0.8); transform: rotate(-8deg); animation: oathFloat 4s ease-in-out infinite; }
.seal-char { font-family: 'Noto Serif SC', 'Songti SC', serif; font-weight: 900; font-size: 1.4rem; color: #fff3d0; text-shadow: 0 1px 0 rgba(255, 220, 130, 0.8), 0 -1px 0 rgba(20, 4, 2, 0.8); position: relative; z-index: 2; }
.seal-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255, 183, 0, 0.6); animation: sealRingPulse 2.5s ease-out infinite; }
@keyframes oathFloat { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-6px); } }
@keyframes sealRingPulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.oath-text { flex: 1; }
.oath-text p { font-size: 0.95rem; line-height: 1.8; color: var(--text); margin: 0 0 8px 0; letter-spacing: 0.5px; }
.oath-text p:last-child { margin-bottom: 0; color: var(--gold-l); font-weight: 700; text-shadow: 0 0 12px rgba(255, 183, 0, 0.5); }
.oath-sign { position: absolute; bottom: 10px; right: 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; color: var(--text-mute); letter-spacing: 1.5px; opacity: 0.6; }
@media (max-width: 480px) {
  .sacred-law { padding: 32px 16px 24px; }
  .law-title { letter-spacing: 2px; }
  .law-body { padding: 20px 16px; }
  .law-list li { padding: 14px 14px; }
  .law-oath { flex-direction: column; text-align: center; padding: 24px 16px; }
  .oath-seal { margin: 0 auto; }
  .oath-sign { position: static; text-align: center; margin-top: 12px; display: block; }
}

/* ============================================================
   ✦ 资产 · IP核心矩阵
   ============================================================ */
.asset-matrix {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
  padding: 24px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 45, 85, 0.08), transparent 70%), linear-gradient(180deg, rgba(10, 4, 7, 0.8) 0%, rgba(6, 2, 4, 0.95) 100%);
  border: 1px solid rgba(255, 183, 0, 0.15);
  box-shadow: 0 0 60px rgba(255, 45, 85, 0.08), inset 0 0 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.matrix-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 183, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 183, 0, 0.03) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%); pointer-events: none; z-index: 0; }
.matrix-node { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 26px 22px; border-radius: 12px; background: rgba(20, 8, 14, 0.5); border: 1px solid rgba(255, 45, 85, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 20px rgba(255, 45, 85, 0.03); transition: all 0.5s cubic-bezier(0.34, 1.2, 0.64, 1); overflow: hidden; cursor: default; }
.node-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 50% 50%, rgba(255, 45, 85, 0.15), transparent 60%); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; z-index: 0; }
.matrix-node:hover .node-glow { opacity: 1; }
.node-corner { position: absolute; width: 12px; height: 12px; border: 2px solid rgba(255, 183, 0, 0.6); pointer-events: none; transition: all 0.4s ease; z-index: 2; }
.node-corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.node-corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.node-corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.node-corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.matrix-node:hover { transform: translateY(-6px); border-color: rgba(255, 45, 85, 0.6); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 45, 85, 0.3), inset 0 0 30px rgba(255, 45, 85, 0.1); }
.matrix-node:hover .node-corner { border-color: var(--gold); width: 16px; height: 16px; box-shadow: 0 0 8px var(--gold); }
.node-index { position: absolute; top: 14px; right: 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; font-weight: 700; letter-spacing: 1.5px; color: rgba(255, 183, 0, 0.4); transition: color 0.4s ease; z-index: 2; }
.matrix-node:hover .node-index { color: var(--gold); text-shadow: 0 0 8px rgba(255, 183, 0, 0.8); }
.node-icon-wrap { position: relative; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; z-index: 2; }
.node-icon-wrap i { font-size: 1.4rem; color: var(--gold-l); filter: drop-shadow(0 0 10px rgba(255, 183, 0, 0.6)); transition: all 0.4s ease; position: relative; z-index: 2; }
.matrix-node:hover .node-icon-wrap i { transform: scale(1.15); filter: drop-shadow(0 0 16px var(--gold)); color: #fff3d0; }
.icon-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 45, 85, 0.5); animation: iconRingSpin 10s linear infinite; transition: all 0.4s ease; }
.matrix-node:hover .icon-ring { border-color: var(--gold); animation-duration: 4s; box-shadow: 0 0 15px rgba(255, 183, 0, 0.3); }
@keyframes iconRingSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.node-title { font-size: 1.05rem; font-weight: 800; color: var(--gold-l); margin-bottom: 10px; letter-spacing: 1px; position: relative; z-index: 2; transition: all 0.4s ease; text-shadow: 0 0 10px rgba(255, 183, 0, 0.2); }
.matrix-node:hover .node-title { color: #fff3d0; text-shadow: 0 0 15px rgba(255, 183, 0, 0.6); }
.node-desc { font-size: 0.85rem; line-height: 1.7; color: var(--text-dim); margin: 0; position: relative; z-index: 2; transition: color 0.4s ease; }
.matrix-node:hover .node-desc { color: var(--text); }
.node-scan-line { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red), var(--gold), transparent); transform: scaleX(0); transition: transform 0.4s ease; box-shadow: 0 0 10px var(--red); z-index: 2; }
.matrix-node:hover .node-scan-line { transform: scaleX(1); }
@media (max-width: 720px) {
  .asset-matrix { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .matrix-node { padding: 22px 18px; }
}

/* ============================================================
   ✦ 路线 · 链上星途
   ============================================================ */
.odyssey-path {
  position: relative;
  margin: 30px 0;
  padding-left: 64px;
}
.odyssey-spine {
  position: absolute;
  left: 26px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 45, 85, 0.6) 15%, rgba(255, 183, 0, 0.8) 50%, rgba(255, 45, 85, 0.6) 85%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.5), 0 0 20px rgba(255, 183, 0, 0.3);
  z-index: 0;
}
.spine-pulse {
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 30px;
  background: linear-gradient(180deg, transparent, #fff3d0, transparent);
  filter: blur(2px);
  animation: spineFlow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 15px #fff3d0;
  border-radius: 50%;
}
@keyframes spineFlow {
  0% { top: -10%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.odyssey-item {
  position: relative;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
}
.odyssey-item:last-child {
  margin-bottom: 0;
}
.odyssey-node {
  position: absolute;
  left: -64px;
  top: 16px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0407;
  border: 2px solid rgba(255, 45, 85, 0.6);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px rgba(255, 45, 85, 0.4), inset 0 0 10px rgba(255, 45, 85, 0.2);
  transition: all 0.4s ease;
}
.node-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold-l);
  text-shadow: 0 0 10px var(--gold);
}
.node-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 183, 0, 0.5);
  animation: nodeSpin 8s linear infinite;
}
@keyframes nodeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.odyssey-card {
  position: relative;
  width: 100%;
  padding: 22px 24px;
  border-radius: 12px;
  background: rgba(20, 8, 14, 0.65);
  border: 1px solid rgba(255, 183, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 30px rgba(255, 45, 85, 0.03), 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  z-index: 1;
}
.card-holo-bg {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 45, 85, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.odyssey-card:hover .card-holo-bg { opacity: 1; }
.odyssey-phase {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--red-l);
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}
.odyssey-card h5 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-l);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}
.odyssey-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}
.card-scanline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--red), transparent);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 0 12px var(--gold);
  z-index: 2;
}
.odyssey-item:hover .odyssey-node {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(255, 183, 0, 0.8), inset 0 0 15px rgba(255, 183, 0, 0.4);
  transform: scale(1.1);
}
.odyssey-item:hover .node-ring {
  border-color: var(--gold);
  animation-duration: 3s;
}
.odyssey-item:hover .odyssey-card {
  transform: translateX(10px);
  border-color: rgba(255, 45, 85, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 45, 85, 0.2), inset 0 0 20px rgba(255, 45, 85, 0.05);
}
.odyssey-item:hover .odyssey-phase { color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.odyssey-item:hover h5 { color: #fff3d0; text-shadow: 0 0 15px rgba(255, 183, 0, 0.6); }
.odyssey-item:hover p { color: var(--text); }
.odyssey-item:hover .card-scanline { transform: scaleX(1); }
@media (max-width: 720px) {
  .odyssey-path { padding-left: 48px; }
  .odyssey-spine { left: 18px; }
  .odyssey-node { left: -48px; width: 36px; height: 36px; top: 14px; }
  .node-num { font-size: 0.75rem; }
  .odyssey-card { padding: 18px 16px; }
  .odyssey-card h5 { font-size: 1rem; }
  .odyssey-card p { font-size: 0.84rem; }
}

/* ============================================================
   ✦ 加入 · 共识网关
   ============================================================ */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 30px;
}
.gateway-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: 14px;
  background: rgba(16, 6, 12, 0.6);
  border: 1px solid rgba(255, 45, 85, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 30px rgba(255, 45, 85, 0.03), 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  cursor: default;
}
.gateway-holo-bg {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 183, 0, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}
.gateway-icon-box {
  position: relative;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  z-index: 2;
}
.gateway-icon-box i {
  font-size: 1.35rem;
  color: var(--red-l);
  filter: drop-shadow(0 0 10px rgba(255, 45, 85, 0.6));
  transition: all 0.4s ease;
  z-index: 2;
}
.icon-scan-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 45, 85, 0.4);
  animation: gatewaySpin 10s linear infinite;
  transition: all 0.4s ease;
}
@keyframes gatewaySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.gateway-content {
  position: relative;
  z-index: 2;
}
.gateway-content h5 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--gold-l);
  margin-bottom: 8px;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  text-shadow: 0 0 10px rgba(255, 183, 0, 0.2);
}
.gateway-content p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
  transition: color 0.4s ease;
}
.gateway-scanline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--red), transparent);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 0 10px var(--gold);
  z-index: 2;
}
.gateway-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 183, 0, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 45, 85, 0.2), inset 0 0 20px rgba(255, 45, 85, 0.05);
}
.gateway-card:hover .gateway-holo-bg { opacity: 1; }
.gateway-card:hover .gateway-icon-box i {
  color: var(--gold);
  transform: scale(1.15);
  filter: drop-shadow(0 0 16px var(--gold));
}
.gateway-card:hover .icon-scan-ring {
  border-color: var(--gold);
  animation-duration: 3s;
}
.gateway-card:hover .gateway-content h5 {
  color: #fff3d0;
  text-shadow: 0 0 15px rgba(255, 183, 0, 0.6);
}
.gateway-card:hover .gateway-content p { color: var(--text); }
.gateway-card:hover .gateway-scanline { transform: scaleX(1); }

@media (max-width: 720px) {
  .gateway-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gateway-card {
    padding: 20px 18px;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .gateway-icon-box {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}
