/* ════════════════════════════════════════════════════════════
   《达拉崩吧·史诗：命运重构》资料站 —— 命运之门
   深色西幻 + 金线星盘 + 微量精密科技感
   兼容约束：不使用 :has() / backdrop-filter 依赖 / ES Module
   ════════════════════════════════════════════════════════════ */

:root {
  --night: #0a0c14;
  --night-2: #111527;
  --gold: #d8b65c;
  --gold-bright: #f0d68a;
  --gold-dim: #8a7440;
  --ink: #1a2036;
  --text: #e8e2d0;
  --text-dim: #9a937e;
  --rune-off: #3a4058;
  --danger: #8c3b3b;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--night);
  color: var(--text);
  font-family: var(--serif);
  min-height: 100%;
}

body {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 68% 8%,  rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 30%, rgba(240,214,138,.6), transparent 60%),
    radial-gradient(1px 1px at 30% 42%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 50% 65%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 70%, rgba(240,214,138,.4), transparent 60%),
    radial-gradient(1px 1px at 90% 82%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 42% 90%, rgba(255,255,255,.3), transparent 60%),
    linear-gradient(180deg, #0a0c14 0%, #101427 55%, #0a0c14 100%);
}

button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ═══════════ 入场：穿越云层 ═══════════ */

#intro {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(180deg, #1c2438 0%, #2b3550 40%, #3d4a6b 70%, #232c45 100%);
  overflow: hidden;
  transition: opacity 1.1s ease;
}
#intro.gone { opacity: 0; pointer-events: none; }

.sky { position: absolute; inset: 0; perspective: 420px; transform-style: preserve-3d; }

.cloud {
  position: absolute; left: 50%; top: 50%;
  width: 170vmax; height: 170vmax;
  margin: -85vmax 0 0 -85vmax;
  border-radius: 50%;
  opacity: 0;
  animation: cloudfly 4.8s cubic-bezier(.55,.06,.68,.19) forwards;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
}
.c1 { animation-delay: 0s; }
.c1::before { box-shadow: 0 0 12vmax 10vmax rgba(226,232,244,.55) inset, 0 0 40vmax 18vmax rgba(200,212,235,.28) inset; }
.c2 { animation-delay: .55s; }
.c2::before { box-shadow: 0 0 16vmax 14vmax rgba(214,222,240,.5) inset, 0 0 46vmax 20vmax rgba(176,190,220,.24) inset; }
.c3 { animation-delay: 1.1s; }
.c3::before { box-shadow: 0 0 14vmax 12vmax rgba(236,240,248,.5) inset, 0 0 42vmax 16vmax rgba(198,210,232,.26) inset; }
.c4 { animation-delay: 1.7s; }
.c4::before { box-shadow: 0 0 18vmax 15vmax rgba(206,216,236,.48) inset, 0 0 50vmax 22vmax rgba(168,182,214,.22) inset; }
.c5 { animation-delay: 2.3s; }
.c5::before { box-shadow: 0 0 15vmax 13vmax rgba(230,236,246,.52) inset, 0 0 44vmax 18vmax rgba(190,202,228,.25) inset; }
.c6 { animation-delay: 2.9s; }
.c6::before { box-shadow: 0 0 20vmax 16vmax rgba(240,214,138,.30) inset, 0 0 54vmax 24vmax rgba(216,182,92,.16) inset; }

@keyframes cloudfly {
  0%   { transform: translateZ(-1400px) scale(1); opacity: 0; }
  18%  { opacity: .95; }
  82%  { opacity: .9; }
  100% { transform: translateZ(640px) scale(1.25); opacity: 0; }
}

.intro-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(240,214,138,.9), rgba(240,214,138,0) 42%);
  opacity: 0; animation: flash 4.8s ease forwards 3.4s;
}
@keyframes flash { 0% {opacity:0} 35% {opacity:.8} 100% {opacity:0} }

.intro-logo {
  position: absolute; left: 50%; top: 44%;
  width: min(64vw, 340px);
  transform: translate(-50%, -50%) scale(.82);
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(216,182,92,.45));
  animation: logoIn 4.8s ease forwards;
}
@keyframes logoIn {
  0%, 30% { opacity: 0; transform: translate(-50%,-50%) scale(.82); }
  55%     { opacity: 1; }
  88%     { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100%    { opacity: 0; transform: translate(-50%,-50%) scale(1.06); }
}

#skipIntro {
  position: absolute; left: 50%; bottom: max(7vh, 40px);
  transform: translateX(-50%);
  background: none; border: 1px solid rgba(240,214,138,.55);
  color: var(--gold-bright); letter-spacing: .45em; text-indent: .45em;
  font-size: 14px; padding: 12px 30px; border-radius: 999px;
  opacity: 0; animation: fadeIn 1s ease forwards 2.2s;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ═══════════ 主场景骨架 ═══════════ */

#scene {
  max-width: 520px; margin: 0 auto;
  padding: 18px 18px 42px;
  position: relative;
}

.site-head { text-align: center; padding: 10px 0 4px; }
.head-logo { width: min(52vw, 220px); margin: 0 auto; filter: drop-shadow(0 2px 10px rgba(216,182,92,.25)); }
.head-sub {
  margin-top: 6px; font-size: 9.5px; letter-spacing: .18em; text-indent: .18em;
  color: var(--text-dim);
}

/* ═══════════ 大门 ═══════════ */

.gate { margin-top: 14px; }

.arch {
  position: relative;
  margin: 0 auto;
  width: min(88vw, 420px);
  aspect-ratio: 420 / 480;
  border: 2px solid var(--gold-dim);
  border-bottom-width: 3px;
  border-radius: 210px 210px 10px 10px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216,182,92,.10), transparent 55%),
    linear-gradient(180deg, #141827 0%, #0d1020 60%, #0a0c16 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.8),
    0 0 34px rgba(216,182,92,.10),
    inset 0 0 60px rgba(0,0,0,.65);
  overflow: hidden;
}

/* 门后世界（推门后显现） */
.door-inner {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(240,214,138,.35), rgba(216,182,92,.08) 45%, transparent 70%),
    linear-gradient(180deg, #1c2136, #0d1020);
}
.door-inner-logo {
  width: 52%;
  filter: drop-shadow(0 0 22px rgba(240,214,138,.65));
  animation: innerGlow 3s ease-in-out infinite;
}
@keyframes innerGlow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(240,214,138,.45)); }
  50%      { filter: drop-shadow(0 0 26px rgba(240,214,138,.8)); }
}
.door-inner-text {
  margin-top: 16px;
  font-size: 15px; letter-spacing: .5em; text-indent: .5em;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(240,214,138,.5);
}

/* 门扇（推门后向两侧滑开） */
.door-panel {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    repeating-linear-gradient(90deg, rgba(216,182,92,.05) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #1b2136 0%, #12162a 55%, #0c0f1e 100%);
  border: 1px solid rgba(216,182,92,.22);
  transition: transform 2.4s cubic-bezier(.65,0,.35,1);
  z-index: 1;
}
.door-panel.left  { left: 0;  border-right: 1px solid rgba(240,214,138,.35); }
.door-panel.right { right: 0; border-left: 1px solid rgba(240,214,138,.35); }
body.door-open .door-panel.left  { transform: translateX(-101%); }
body.door-open .door-panel.right { transform: translateX(101%); }

/* 门中央徽记（门开时隐去）—— 下移缩小，避开星盘 */
.seal {
  position: absolute; left: 50%; bottom: 2%;
  width: 28%; transform: translateX(-50%);
  opacity: .9; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(240,214,138,.35));
  transition: opacity 1.2s ease;
}
body.door-open .seal { opacity: 0; }

/* 罗盘整体在门开时隐去，让位给门后世界 */
.astrolabe { transition: opacity 1.4s ease .6s; }
body.door-open .astrolabe { opacity: 0; pointer-events: none; }

/* ═══════════ 星盘时钟 · 黄道十二宫（定稿） ═══════════
   静态宫格 · 符文夹层顺转 · 内刻度逆转
   原则：同一盘面最多一层「密集纹」在动，杜绝双向密纹叠加的眩晕感 */

.astrolabe {
  position: absolute; left: 50%; top: 5.5%;
  width: 82%; aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: 3;
}

.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }

.ring-line { fill: none; stroke: var(--gold-dim); stroke-width: 1; }
.ring-line.thin { stroke-width: .6; opacity: .8; }
.ring-line.faint { stroke-width: .5; opacity: .3; }

/* 全服开启度弧线（JS 驱动） */
.arc {
  fill: none; stroke: var(--gold-bright); stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 609.5; /* 2πr, r=97 */
  stroke-dashoffset: 609.5;
  transform: rotate(-90deg);
  transform-origin: 100px 100px;
  filter: drop-shadow(0 0 4px rgba(240,214,138,.7));
  transition: stroke-dashoffset 1.2s ease;
}

/* 黄道十二宫图层 */
.spokes line { stroke: var(--gold-dim); stroke-width: .8; opacity: .75; }
.house-dots {
  fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: .1 46.76; /* 12 宫点 */
  stroke-dashoffset: 23.4;    /* 居中于宫格 */
  opacity: .8;
}
.frag-ring {
  fill: none; stroke: var(--gold-dim); stroke-width: 7;
  stroke-dasharray: 3 12.2; opacity: .3;
}
.d1-frag { animation: spin 100s linear infinite; }
.ticks-inner {
  fill: none; stroke: var(--gold); stroke-width: 2.2;
  stroke-dasharray: 1.2 6.97; /* 60 内刻度 */
  opacity: .55;
}
.d1-ticks { animation: spinRev 160s linear infinite; }

.clock-face {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 62%; text-align: center; z-index: 5;
  padding: 22px 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,10,18,.92) 0%, rgba(8,10,18,.62) 58%, rgba(8,10,18,0) 74%);
}
.cd-label {
  font-size: 13px; letter-spacing: .5em; text-indent: .5em;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(240,214,138,.4);
}
.cd-digits {
  margin-top: 10px;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(240,214,138,.35);
  white-space: nowrap;
}
.cd-digits span { font-size: clamp(26px, 7.4vw, 38px); font-weight: 700; }
.cd-digits em { font-style: normal; font-size: 11px; color: var(--text-dim); margin: 0 3px 0 1px; }
.cd-open { margin-top: 9px; font-size: 11px; letter-spacing: .2em; color: var(--text-dim); }
.cd-open b { color: var(--gold); font-weight: 700; }

/* 推门按钮（倒计时归零后出现） */
.btn-gate-open {
  margin-top: 14px;
  background: linear-gradient(180deg, #e5c976, #b8933f);
  color: #241c08;
  border: none; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .35em; text-indent: .35em;
  padding: 13px 26px;
  box-shadow: 0 0 24px rgba(240,214,138,.55);
  animation: gateBtnPulse 2s ease-in-out infinite;
}
@keyframes gateBtnPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(240,214,138,.35); }
  50%      { box-shadow: 0 0 30px rgba(240,214,138,.75); }
}

/* ═══════════ 两枚符文 ═══════════ */

.runes {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 16px;
}
.rune {
  flex: 1; max-width: 190px;
  background: linear-gradient(180deg, #171c30, #10142a);
  border: 1px solid var(--rune-off);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 6px 10px;
  text-align: center;
  transition: border-color .3s, box-shadow .3s, transform .15s;
}
.rune:active { transform: scale(.96); }
.rune-icon { display: block; font-size: 20px; color: var(--text-dim); transition: color .3s, text-shadow .3s; }
.rune-name { display: block; margin-top: 5px; font-size: 13px; letter-spacing: .12em; }
.rune-desc { display: block; margin-top: 3px; font-size: 10px; color: var(--text-dim); }

/* 符文状态行：去完成任务 → 待领取（金亮） → 已点亮 */
.rune-status {
  display: block; margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed rgba(58,64,88,.8);
  font-size: 10px; color: var(--text-dim); letter-spacing: .05em;
}
.rune.ready .rune-status { color: var(--gold-bright); }
.rune.lit .rune-status { color: var(--gold); }

.rune.lit {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(216,182,92,.28), inset 0 0 12px rgba(216,182,92,.10);
}
.rune.lit .rune-icon { color: var(--gold-bright); text-shadow: 0 0 10px rgba(240,214,138,.8); }

/* 任务已达成、待领取：呼吸灯提示 */
.rune.ready {
  border-color: var(--gold-bright);
  animation: runePulse 1.6s ease-in-out infinite;
}
.rune.ready .rune-icon { color: var(--gold-bright); }
@keyframes runePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(240,214,138,.15); }
  50%      { box-shadow: 0 0 22px rgba(240,214,138,.5); }
}

/* 手动刷新检测 */
.rune-refresh {
  display: block; margin: 10px auto 0;
  background: none; border: none;
  color: var(--text-dim); font-size: 11px; letter-spacing: .1em;
  padding: 4px 8px;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(138,116,64,.6);
}
.rune-refresh:active { color: var(--gold); }

/* 门钥匙槽：投币 + 关注 共同铸成（老观众自动补发） */
.keyslot {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.key-fig { position: relative; width: 34px; height: 14px; flex-shrink: 0; }
.key-fig::before {  /* 钥匙环 */
  content: ""; position: absolute; left: 0; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border: 2px solid var(--rune-off); border-radius: 50%;
}
.key-fig::after {   /* 钥匙柄 */
  content: ""; position: absolute; left: 13px; top: 50%;
  width: 18px; height: 2px; margin-top: -1px;
  background: var(--rune-off);
}
.key-fig i, .key-fig b {  /* 钥匙齿 */
  position: absolute; top: 50%; width: 2px;
  background: var(--rune-off);
}
.key-fig i { right: 5px; height: 6px; }
.key-fig b { right: 9px; height: 4px; }
.key-text { font-size: 11px; letter-spacing: .12em; color: var(--text-dim); }

.keyslot.owned .key-fig::before { border-color: var(--gold-bright); box-shadow: 0 0 8px rgba(240,214,138,.6); }
.keyslot.owned .key-fig::after,
.keyslot.owned .key-fig i,
.keyslot.owned .key-fig b { background: var(--gold-bright); box-shadow: 0 0 6px rgba(240,214,138,.5); }
.keyslot.owned .key-text { color: var(--gold-bright); }

/* 门下引导语 */
.gate-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 11px; line-height: 2;
  letter-spacing: .12em;
  color: var(--text-dim);
}

/* ═══════════ 封印之间（门扉之后 · 六人密话） ═══════════
   与大门视觉相连（锁链引线），解封度与命运之门同步 */

.sealed { margin-top: 0; }
.sealed-chain {
  width: 1px; height: 22px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(240,214,138,.55), rgba(240,214,138,.12));
}
.sealed-door {
  border: 1px solid rgba(138,116,64,.55);
  border-radius: 12px;
  padding: 18px 14px 16px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216,182,92,.07), transparent 60%),
    linear-gradient(180deg, #141827, #0c0f1c);
  box-shadow: inset 0 0 40px rgba(0,0,0,.5);
}
.sealed-title { font-size: 14px; letter-spacing: .35em; text-indent: .35em; color: var(--gold); }
.sealed-desc {
  margin-top: 9px;
  font-size: 11.5px; line-height: 1.9; letter-spacing: .1em;
  color: var(--text-dim);
}
.sealed-six {
  display: flex; gap: 7px; justify-content: center;
  margin-top: 14px;
}
.seal-slot {
  position: relative;
  width: calc((100% - 35px) / 6);
  aspect-ratio: 600 / 1213;
  border: 1px solid var(--rune-off);
  border-radius: 6px;
  overflow: hidden;
  background: #0b0e1a;
}
.seal-slot img {
  width: 100%; height: 100%; object-fit: cover;
  /* 暗室窥影：压暗 + 微模糊，看得出构图、看不清细节 */
  filter: brightness(.32) saturate(.75) blur(1.5px);
}
.seal-slot::after {
  content: "?";
  position: absolute; left: 50%; bottom: 5%;
  transform: translateX(-50%);
  font-size: 11px; color: var(--gold-dim);
}
.sealed-prog {
  margin-top: 13px;
  font-size: 10.5px; letter-spacing: .18em;
  color: var(--text-dim);
}
.sealed-prog b { color: var(--gold); font-weight: 700; }
.sealed-badge {
  display: inline-block; margin-top: 10px;
  font-size: 10.5px; letter-spacing: .3em; text-indent: .3em;
  color: var(--text-dim);
  border: 1px solid var(--rune-off); border-radius: 999px;
  padding: 4px 13px;
}

/* ═══════════ 窥视之窗（圆形窗抠） ═══════════ */

.peek { text-align: center; margin-top: 30px; }
.peek-window {
  position: relative;
  width: min(58vw, 240px); aspect-ratio: 1;
  border-radius: 50%;
  border: none; background: #000;
  overflow: hidden;
  padding: 0;
  box-shadow:
    0 0 0 2px var(--gold-dim),
    0 0 0 6px rgba(216,182,92,.12),
    0 0 40px rgba(216,182,92,.18);
}
.peek-window video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.peek-caption { margin-top: 12px; font-size: 12px; letter-spacing: .3em; text-indent: .3em; color: var(--text-dim); }

.btn-primary {
  margin-top: 14px;
  background: linear-gradient(180deg, #e5c976, #b8933f);
  color: #241c08;
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: .18em; text-indent: .18em;
  padding: 13px 34px;
  box-shadow: 0 4px 18px rgba(216,182,92,.35);
}
.btn-primary:active { transform: scale(.97); }

/* ═══════════ 行动区（关注 + 赞助） ═══════════ */

.actions {
  margin-top: 30px;
  text-align: center;
}
.actions-hint {
  font-size: 13px; letter-spacing: .25em; text-indent: .25em;
  color: var(--gold);
  line-height: 1.9;
}
.actions-hint small {
  font-size: 10.5px; letter-spacing: .08em; text-indent: 0;
  color: var(--text-dim);
}
.btn-key { margin-top: 12px; }
.btn-ghost {
  margin-top: 12px;
  background: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: 8px;
  font-size: 12.5px; letter-spacing: .1em;
  padding: 10px 18px;
}
.btn-ghost:active { transform: scale(.97); }

/* ═══════════ 史诗溯源 ═══════════ */

.series { margin-top: 34px; }
.series-title {
  text-align: center;
  font-size: 13px; letter-spacing: .5em; text-indent: .5em;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.series-card {
  position: relative;
  display: flex; align-items: center;
  width: 100%;
  text-align: left;
  background: linear-gradient(180deg, rgba(23,28,48,.85), rgba(16,20,42,.85));
  border: 1px solid rgba(58,64,88,.9);
  border-left: 2px solid var(--gold-dim);
  border-radius: 8px;
  padding: 10px 30px 10px 10px;
  margin-bottom: 10px;
  color: var(--text);
  transition: border-color .3s, transform .15s;
}
.series-card:active { transform: scale(.98); border-color: var(--gold); }
.sc-thumb {
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gold-dim);
  flex-shrink: 0;
}
.sc-text { margin-left: 12px; min-width: 0; }
.sc-name { display: block; font-size: 13.5px; letter-spacing: .05em; color: var(--text); }
.sc-meta { display: block; margin-top: 4px; font-size: 10.5px; color: var(--text-dim); letter-spacing: .04em; }
.sc-arrow {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dim); font-size: 18px;
}

/* ═══════════ 页脚 ═══════════ */

.site-foot {
  margin-top: 38px; text-align: center;
  font-size: 10.5px; line-height: 1.9; color: #6d675a;
  letter-spacing: .08em;
}

/* ═══════════ Toast ═══════════ */

#toast {
  position: fixed; left: 50%; bottom: 12vh;
  transform: translateX(-50%) translateY(10px);
  max-width: 84vw;
  background: rgba(13,16,32,.95);
  border: 1px solid var(--gold-dim);
  color: var(--text);
  font-size: 12.5px; line-height: 1.7; letter-spacing: .05em;
  padding: 10px 18px; border-radius: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 99; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════ 盘面定稿：B「门闩·断缝」 ═══════════
   门缝只在门顶/门底露两小段 + 文字下挂锁孔金饰（呼应推门需关注） */

/* 门缝压暗（基础态） */
.door-panel.left  { border-right-color: rgba(240,214,138,.12); }
.door-panel.right { border-left-color: rgba(240,214,138,.12); }

/* 断缝 */
.seam {
  position: absolute; left: 50%; width: 1px; z-index: 2;
  display: none;
  background: linear-gradient(180deg, transparent, rgba(240,214,138,.85), transparent);
}
.seam-top    { top: 0; height: 13%; }
.seam-bottom { bottom: 0; height: 17%; }
body.scheme-b .seam { display: block; }

/* 锁孔吊坠 */
.keyhole {
  display: none;
  margin: 10px auto 0;
  width: 13px; height: 13px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px rgba(240,214,138,.4);
}
.keyhole::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 1.5px; height: 15px; margin-left: -.75px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
body.scheme-b .keyhole { display: block; }

/* ═══════════ 降级与无障碍 ═══════════ */

@media (prefers-reduced-motion: reduce) {
  #intro { display: none; }
  .d1-frag, .d1-ticks { animation: none; }
}

/* 桌面端适配：加宽主列、放大门与星盘（移动端优先，桌面不拉宽成全屏） */
@media (min-width: 900px) {
  #scene { max-width: 640px; padding-top: 34px; }
  .head-logo { width: 250px; }
  .head-sub { font-size: 10.5px; }
  .arch { width: 480px; }
  .cd-label { font-size: 14px; }
  .cd-digits span { font-size: 44px; }
  .cd-digits em { font-size: 12px; }
  .cd-open { font-size: 12px; }
  .rune { max-width: 210px; padding: 14px 8px 12px; }
  .rune-name { font-size: 14px; }
  .rune-desc { font-size: 11px; }
  .gate-hint { font-size: 12px; }
  .sealed-title { font-size: 15px; }
  .sealed-desc { font-size: 12.5px; }
  .peek-window { width: 260px; }
  .btn-primary { font-size: 16px; }
  .sc-thumb { width: 64px; height: 64px; }
  .sc-name { font-size: 14.5px; }
  .sc-meta { font-size: 11.5px; }
}
