/* 自托管展示体：拉丁字母/数字用 Cinzel（OFL），中文回落到系统现代无衬线 */
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05030f;
  --bg2: #0b0820;
  --ink: #f7f1e3;
  --ink-dim: #d3cbdf;
  --ink-faint: #a9a1c0;
  --gold: #ebcd8e;
  --gold-hi: #fff2cc;
  --gold-lo: #a87b34;
  --violet: #8b6cff;
  --rose: #ff7eb9;
  --teal: #5ee0d1;
  --line: rgba(235, 205, 142, .26);
  --glass: rgba(22, 16, 52, .66);
  --glass-hi: rgba(38, 28, 84, .74);
  --radius: 18px;
  /* 现代展示字体：Cinzel 负责拉丁字母/数字，中文用系统现代无衬线 */
  --display: "Cinzel", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  /* 卡面专用古典衬线：只用于 AI 生成的卡面牌名，和塔罗画风一致 */
  --serif-card: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  /* 神谕体：楷书的笔意最接近手写签文，用于解读正文、提问框与仪式性提示语（全部走系统字体，零加载） */
  --oracle: "LXGW WenKai Screen", "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", "楷体", var(--serif-card);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --card-ratio: 1.7;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 16px/1.75 var(--sans); overflow-x: clip;
  padding-top: env(safe-area-inset-top);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(139, 108, 255, .45); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

#cosmos, #fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#fx { z-index: 90; }
/* 星云照片背景（全站固定，压一层暗色蒙版保证文字对比度） */
.bg-photo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: #05030f url("/bg/nebula-main.webp") center 44% / cover no-repeat;
  filter: brightness(1.08) saturate(1.05);
}
.bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(5, 3, 15, .04) 0%, rgba(5, 3, 15, .34) 46%, rgba(5, 3, 15, .78) 100%),
    linear-gradient(180deg, rgba(5, 3, 15, .5), rgba(5, 3, 15, .08) 20%, rgba(5, 3, 15, .26) 68%, rgba(5, 3, 15, .72));
}
@media (max-width: 860px) {
  .bg-photo { background-image: url("/bg/nebula-mobile.webp"); background-position: center 40%; }
}
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(2, 1, 8, .55) 100%); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 68px;
  display: flex; align-items: center; gap: 18px; padding: 0 clamp(14px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(5, 3, 15, .92), rgba(5, 3, 15, .42) 80%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { font-size: 26px; color: var(--gold); text-shadow: 0 0 18px rgba(235, 205, 142, .8); animation: twinkle 3.2s ease-in-out infinite; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--display); font-size: 20px; letter-spacing: .06em; color: var(--gold-hi); font-weight: 700; white-space: nowrap; }
.brand-text i { font-family: var(--display); font-style: normal; font-size: 9.5px; letter-spacing: .3em; color: var(--ink-faint); margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: 26px; }
.nav a { padding: 9px 17px; border-radius: 99px; color: var(--ink-dim); font-size: 14.5px; letter-spacing: .04em; transition: .25s; position: relative; }
.nav a:hover { color: var(--gold-hi); }
/* 悬停时一道从中心向两侧展开的金色细线 */
.nav a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); transition: width .45s var(--ease); }
.nav a:hover::after { width: 54%; }
.nav a.on::after { display: none; }
.nav a.on { color: var(--gold-hi); background: rgba(235, 205, 142, .1); box-shadow: inset 0 0 0 1px var(--line); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  color: var(--ink-dim); box-shadow: inset 0 0 0 1px var(--line); transition: .25s;
}
.icon-btn:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.icon-btn.off { opacity: .55; }
.icon-btn.off:hover { opacity: .9; }
/* 声音开启时喇叭外圈随音乐极轻地呼吸 */
.icon-btn[data-act="sound"]:not(.off) { animation: soundWave 4s ease-in-out infinite; }

.energy {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px 8px 12px; border-radius: 99px;
  background: linear-gradient(135deg, rgba(139, 108, 255, .22), rgba(235, 205, 142, .16));
  box-shadow: inset 0 0 0 1px var(--line), 0 0 22px rgba(139, 108, 255, .18); font-size: 14px; transition: .25s;
}
.energy:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 0 28px rgba(235, 205, 142, .3); transform: translateY(-1px); }
.energy .orb { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--gold) 55%, var(--gold-lo)); box-shadow: 0 0 10px var(--gold); animation: pulse 2.4s ease-in-out infinite; }
.energy b { color: var(--gold-hi); font-family: var(--display); font-size: 17px; }
.avatar-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.avatar-btn:hover { background: rgba(255, 255, 255, .05); }
.user-email { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #1a1030;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, var(--rose)); }

/* ---------- 按钮 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 99px; font-size: 15.5px; letter-spacing: .06em; transition: transform .35s var(--ease), box-shadow .35s, filter .25s, background .35s, color .25s;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-gold {
  color: #2a1a05; font-weight: 700; background: linear-gradient(135deg, #fff2cc, #ebcd8e 45%, #b98a3e);
  box-shadow: 0 6px 30px rgba(235, 205, 142, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(235, 205, 142, .55), inset 0 1px 0 rgba(255, 255, 255, .6); filter: brightness(1.05); }
.btn-gold::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s; pointer-events: none; }
.btn-gold { overflow: hidden; }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line); color: var(--gold-hi); background: rgba(255, 255, 255, .05); }
.btn-ghost:hover { background: rgba(235, 205, 142, .1); box-shadow: inset 0 0 0 1px var(--gold), 0 8px 26px rgba(0, 0, 0, .35), 0 0 22px rgba(235, 205, 142, .16); transform: translateY(-1px); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }
.btn-lg { padding: 17px 46px; font-size: 17.5px; }
/* 引导购买：持续呼吸光晕，确保极其显眼 */
.btn-buy { font-size: 16.5px; padding: 15px 30px; animation: breathe 2.4s ease-in-out infinite; }
.btn-buy:hover { animation-play-state: paused; }
.link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- 版式 ---------- */
main { position: relative; z-index: 5; padding-top: 68px; min-height: calc(100vh - 140px); outline: 0; }
.page { max-width: 1120px; margin: 0 auto; padding: 46px clamp(18px, 4vw, 46px) 96px; animation: pageIn .7s var(--ease) both; }
.wide { max-width: 1240px; }
.eyebrow { font-family: var(--display); font-size: 12.5px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; font-weight: 500; }
.h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.6vw, 66px); line-height: 1.15; letter-spacing: .02em;
  background: linear-gradient(180deg, #fffdf5, var(--gold-hi) 42%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 60px rgba(235, 205, 142, .25); }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3; letter-spacing: .03em; color: var(--gold-hi); }
.lead { color: var(--ink-dim); font-size: clamp(16px, 1.45vw, 18px); line-height: 1.85; max-width: 660px; letter-spacing: .03em; text-wrap: pretty; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.section-head { margin-bottom: 38px; }
.section-head .eyebrow { margin-bottom: 12px; }

.glass {
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.2); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, .4);
}
.glass.pad { padding: clamp(22px, 3vw, 36px); }
.divider { height: 1px; margin: 34px 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); opacity: .9; margin: 6px 0 18px; }
.ornament span { font-size: 15px; line-height: 1; text-shadow: 0 0 16px rgba(235, 205, 142, .5); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 110px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }

/* ---------- 首页 ---------- */
.hero { position: relative; min-height: calc(100vh - 68px); display: grid; place-items: center; text-align: center; padding: 30px 16px 70px; }
.hero-inner { max-width: 880px; position: relative; z-index: 2; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.hero .eyebrow::before, .hero .eyebrow::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero .eyebrow::after { transform: scaleX(-1); }
.hero .lead { margin: 24px auto 18px; }
.hero-deck { position: relative; width: min(520px, 88vw); height: clamp(210px, 24vw, 300px); margin: 4px auto 0; z-index: 2; }
.hd-card {
  position: absolute; left: 50%; top: 0; display: block;
  width: clamp(120px, 15vw, 176px); aspect-ratio: 200 / 340;
  transform: translateX(-50%) rotate(var(--r, 0deg)); transform-origin: 50% 88%;
  border-radius: 11px; overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .62), 0 0 0 1px rgba(235, 205, 142, .4);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.hd-card svg { width: 100%; height: 100%; display: block; }
.hd-card.hd-1 { left: calc(50% - 26%); }
.hd-card.hd-2 { left: calc(50% + 26%); }
.hd-card:hover { transform: translateX(-50%) rotate(var(--r, 0deg)) translateY(-10px) scale(1.03); box-shadow: 0 30px 70px rgba(0, 0, 0, .72), 0 0 0 1px var(--gold), 0 0 40px rgba(235, 205, 142, .3); }
.hero-deck-tip { text-align: center; color: var(--ink-dim); font-size: 13.5px; letter-spacing: .1em; margin: 10px 0 26px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 44px; color: var(--ink-dim); font-size: 14.5px; }
.hero-badges span::before { content: "✦"; color: var(--gold); margin-right: 8px; }
.halo { position: absolute; left: 50%; top: 46%; width: min(1040px, 132vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; opacity: .32; }
.halo svg { width: 100%; height: 100%; animation: spin 240s linear infinite; }
.halo svg.rev { position: absolute; inset: 9%; width: 82%; height: 82%; animation-duration: 180s; animation-direction: reverse; }
.hero-cards { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-cards .floaty { position: absolute; width: clamp(84px, 12vw, 168px); filter: drop-shadow(0 20px 46px rgba(0, 0, 0, .75)); animation: floaty 7s ease-in-out infinite; opacity: .95; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 3, 15, .35) 60%, rgba(5, 3, 15, .55)); }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { padding: 30px 26px; transition: transform .4s var(--ease), box-shadow .4s; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; background: radial-gradient(circle, rgba(139, 108, 255, .28), transparent 70%); transition: .5s; }
.feature:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--gold), 0 24px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(230, 200, 135, .12); }
.feature:hover::before { transform: scale(1.4); }
.feature .ico { font-size: 34px; color: var(--gold); text-shadow: 0 0 22px rgba(230, 200, 135, .6); margin-bottom: 14px; position: relative; }
.feature h3 { font-family: var(--display); font-size: 22px; color: var(--gold-hi); letter-spacing: .03em; margin-bottom: 10px; position: relative; }
.feature p { color: var(--ink-dim); font-size: 15px; line-height: 1.8; position: relative; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: s; }
.step { padding: 24px 20px; text-align: center; position: relative; }
.step .num { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 20px; color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 24px rgba(230, 200, 135, .25); background: radial-gradient(circle at 30% 25%, rgba(255, 240, 196, .25), rgba(139, 108, 255, .1)); }
.step h4 { font-family: var(--display); color: var(--gold-hi); font-size: 18px; letter-spacing: .02em; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.75; }

.price {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--gold), 0 30px 90px rgba(0, 0, 0, .55), 0 0 80px rgba(139, 108, 255, .15);
  background: linear-gradient(135deg, rgba(40, 24, 90, .8), rgba(14, 9, 38, .85));
}
.price-l { padding: clamp(24px, 4vw, 44px); }
.price-r { padding: clamp(24px, 4vw, 44px); display: grid; place-content: center; text-align: center; gap: 10px; background: radial-gradient(circle at 50% 30%, rgba(230, 200, 135, .22), transparent 70%); border-left: 1px solid var(--line); }
.price-num { font-family: var(--display); font-size: clamp(54px, 8vw, 84px); line-height: 1; color: var(--gold-hi); text-shadow: 0 0 40px rgba(230, 200, 135, .5); }
.price-num small { font-size: .38em; margin-right: 4px; }
.price ul { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.price li { color: var(--ink-dim); padding-left: 24px; position: relative; font-size: 15px; line-height: 1.7; }
.price li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } .price-r { border-left: 0; border-top: 1px solid var(--line); } }

.faq details { padding: 18px 22px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .18); margin-bottom: 12px; transition: .3s; }
.faq details[open] { background: rgba(139, 108, 255, .08); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 17px; color: var(--gold-hi); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "＋"; color: var(--gold); transition: .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--ink-dim); font-size: 15px; line-height: 1.85; }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; color: var(--ink-dim); letter-spacing: .04em; }
.input, .select, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(8, 5, 24, .7); border: 0;
  box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .26); transition: .25s; outline: 0; color: var(--ink); font-size: 16px;
}
.textarea { resize: vertical; min-height: 104px; line-height: 1.75; }
.input:focus, .select:focus, .textarea:focus { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(235, 205, 142, .14); background: rgba(14, 9, 40, .85); }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.select option { background: #120b2e; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.hint { font-size: 13.5px; line-height: 1.75; color: var(--ink-faint); }
.err { color: #ff9aa8; font-size: 14px; min-height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 9px 18px; border-radius: 99px; font-size: 14px; color: var(--ink-dim); box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .24); transition: .25s; }
.chip:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .6), 0 0 16px rgba(235, 205, 142, .12); }
.chip.on { color: #2a1a05; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 20px rgba(235, 205, 142, .4); font-weight: 600; }

/* ---------- 牌阵选择 ---------- */
.spreads { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
/* 牌阵卡片：只留元素符号、阵型、名字、一句真言——大量留白，让人自己停下来 */
.spread-card { --el: var(--gold); padding: 30px 24px 26px; cursor: pointer; text-align: center; transition: transform .5s var(--ease), box-shadow .5s; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 0; color: inherit; font: inherit; border: 0; }
.spread-card.el-air { --el: #cfd8ff; }
.spread-card.el-water { --el: #8fd3ff; }
.spread-card.el-earth { --el: #c9e3a4; }
.spread-card.el-aether { --el: #cbb8ff; }
.spread-card:hover, .spread-card.on, .spread-card:focus-visible { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--gold), 0 24px 60px rgba(0, 0, 0, .5), 0 0 44px rgba(235, 205, 142, .16); outline: none; }
.spread-card.on { background: var(--glass-hi); }
/* 悬停：一道柔光斜扫过卡面，阵型里的牌位依次亮起 */
.spread-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 242, 204, .1) 48%, rgba(255, 242, 204, .16) 50%, transparent 64%);
  transform: translateX(-110%); transition: transform 1.1s var(--ease); }
.spread-card:hover::after { transform: translateX(110%); }
.sc-el { width: 22px; height: 22px; color: var(--el); opacity: .62; margin-bottom: 18px; transition: opacity .5s, filter .5s; }
.spread-card:hover .sc-el { opacity: 1; filter: drop-shadow(0 0 6px var(--el)); }
.mini { height: 78px; width: 72%; position: relative; margin-bottom: 22px; }
.mini i { position: absolute; width: 16px; height: 26px; border-radius: 3px; transform: translate(-50%, -50%); background: linear-gradient(160deg, #2b1c63, #120a33); box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .55); transition: box-shadow .5s, background .5s; transition-delay: calc(var(--k, 0) * 60ms); }
.mini i.x { transform: translate(-50%, -50%) rotate(90deg); z-index: 1; }
.spread-card:hover .mini i { background: linear-gradient(160deg, #3a2a7a, #1a1045); box-shadow: inset 0 0 0 1px var(--gold-hi), 0 0 12px rgba(235, 205, 142, .5); }
.sc-en { font-family: "Cinzel", Georgia, serif; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); opacity: .78; margin-bottom: 8px; }
.spread-card h3 { font-family: var(--serif-card); font-weight: 600; font-size: 22px; letter-spacing: .24em; text-indent: .24em; color: var(--gold-hi); }
.sc-mantra { position: relative; margin-top: 18px; padding-top: 18px; max-width: 18em;
  font-family: var(--oracle); font-size: 14.5px; line-height: 1.9; letter-spacing: .06em; color: rgba(247, 241, 227, .72); text-wrap: balance; word-break: keep-all; transition: color .5s; }
.sc-mantra::before { content: ""; position: absolute; top: 0; left: 50%; width: 36px; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.spread-card:hover .sc-mantra { color: var(--gold-hi); }
.sc-cost { margin-top: auto; padding-top: 22px; font-family: "Cinzel", var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--ink-faint); }

/* 提问页：牌阵名 + 真言 + 牌位图例（大师在这里才把每个位置讲清楚） */
.ask-en { margin: 6px 0 10px; }
.ask-mantra { margin: 16px auto 0; font-size: 16px; }
.pos-legend { margin-top: 26px; padding: 22px 26px; display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; }
.pos-legend .mini { width: 100%; height: 110px; margin: 0; }
.pos-legend .mini i { width: 18px; height: 30px; }
.pl-head { font-family: var(--display); font-size: 12px; letter-spacing: .3em; color: var(--gold); margin-bottom: 10px; }
.pos-legend ol { list-style: none; display: grid; gap: 6px; }
.pos-legend li { display: grid; grid-template-columns: 26px auto 1fr; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.6; }
.pos-legend li i { font-style: normal; font-family: "Cinzel", Georgia, serif; color: var(--gold); opacity: .8; font-size: 13px; }
.pos-legend li b { color: var(--gold-hi); font-weight: 500; white-space: nowrap; }
.pos-legend li span { color: var(--ink-faint); }
@media (max-width: 560px) {
  .pos-legend { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .pos-legend .mini { width: 70%; margin: 0 auto; height: 90px; }
}
.tag { position: absolute; top: 14px; right: 14px; font-size: 11.5px; padding: 3px 11px; border-radius: 99px; letter-spacing: .08em; background: rgba(139, 108, 255, .25); color: #cfc2ff; box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .5); }
.tag.free { background: rgba(94, 224, 209, .15); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(94, 224, 209, .4); }
.ask { max-width: 720px; margin: 0 auto; }
.ask .textarea { font-family: var(--oracle); font-size: 17px; letter-spacing: .04em; line-height: 1.9; }
.cost-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cost-line .cost { color: var(--ink-dim); font-size: 14px; } .cost b { color: var(--gold-hi); }

/* ---------- 抽牌桌面 ---------- */
.stage { position: relative; margin: 10px auto 0; max-width: 980px; }
.stage-title { text-align: center; margin-bottom: 16px; }
.stage-title .h2 { margin-bottom: 4px; }
.stage-tip { text-align: center; color: var(--ink-dim); min-height: 28px; font-family: var(--oracle); font-size: 17px; letter-spacing: .12em; }
.table { position: relative; margin: 18px auto 0; width: 100%; max-width: 860px; transition: opacity .6s; }
.table[data-spread="daily"] { aspect-ratio: 1 / 1; max-width: 360px; --cw: 56%; }
.table[data-spread="three"] { aspect-ratio: 1.55 / 1; --cw: 24%; }
.table[data-spread="career"] { aspect-ratio: 1.75 / 1; --cw: 19%; }
.table[data-spread="love"] { aspect-ratio: 1.05 / 1; --cw: 20%; max-width: 640px; }
.table[data-spread="celtic"] { aspect-ratio: 1.12 / 1; --cw: 15%; max-width: 760px; }
.slot { position: absolute; width: var(--cw); aspect-ratio: 200 / 340; transform: translate(-50%, -50%); }
.slot-ghost { position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(230, 200, 135, .35); background: repeating-linear-gradient(135deg, rgba(230, 200, 135, .05) 0 6px, transparent 6px 12px); }
.slot .lab { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font-size: clamp(11px, 1.5vw, 14px); color: var(--gold); letter-spacing: .06em; font-family: var(--display); text-shadow: 0 2px 8px #000; }
.slot.cross { z-index: 3; }
.slot.cross .flipper { transform: rotate(90deg); }
.slot.cross .lab { display: none; }
.flipper { position: absolute; inset: 0; perspective: 900px; transition: transform .7s var(--ease), opacity .4s; }
.tcard { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease), translate .5s var(--ease), scale .3s var(--ease); cursor: pointer; border-radius: 10px; }
.tcard.flipped { transform: rotateY(180deg); }
.tcard .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .65), 0 0 0 1px rgba(230, 200, 135, .5); }
.tcard .front { transform: rotateY(180deg); }
.tcard .face svg { width: 100%; height: 100%; display: block; }
.tcard .front.rev svg { transform: rotate(180deg); }
/* AI 卡背图片：在首页扇形、洗牌、牌扇、翻牌、每日一牌里统一铺满 */
.card-back-img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; background: #0b0820; }
.tcard.ready:not(.flipped) { animation: cardBreathe 3s ease-in-out infinite; }
.tcard.ready:not(.flipped):hover { transform: translateY(-6px) scale(1.04); }
/* 注意不能给 .tcard 加 filter：会把 preserve-3d 压平，翻牌时露出背面 */
.tcard.ready:not(.flipped):hover .face { box-shadow: 0 18px 46px rgba(0, 0, 0, .7), 0 0 0 1px var(--gold-hi), 0 0 30px rgba(235, 205, 142, .5); }
.tcard .face { transition: box-shadow .4s; }
/* 翻开瞬间的白光 + 金环：只动 opacity / transform，交给 GPU 合成。
   以前直接动画 filter 和 box-shadow，3D 翻转的每一帧都要重绘整张卡面，手机上明显掉帧 */
.tcard.ready { will-change: transform; }
.tcard.glow-in .face.front::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 250, 232, .95), rgba(255, 236, 190, .55) 55%, rgba(255, 236, 190, .2));
  opacity: 0; animation: faceFlash 1.5s ease-out; }
.flipper::after { content: ""; position: absolute; inset: 0; border-radius: 10px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px var(--gold-hi), 0 0 46px 10px rgba(235, 205, 142, .4); }
.flipper:has(> .tcard.glow-in)::after { animation: ringPulse 2.4s var(--ease) .2s; }
.tcard .shine { position: absolute; inset: 0; pointer-events: none; border-radius: 10px; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 66%); mix-blend-mode: overlay; }
/* 翻开后的牌：悬停时轻轻浮起、金边亮起、一道微光流过卡面，提示「可以点开细看」 */
.tcard.flipped { cursor: zoom-in; }
.tcard .shine::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: -70%; width: 50%; opacity: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 246, 220, .55) 50%, transparent 100%); transform: skewX(-14deg); }
.card-art .ca-name { transition: text-shadow .5s; }
@media (hover: hover) {
  .tcard.flipped:hover { translate: 0 -7px; }
  .tcard.flipped:hover .face.front { box-shadow: 0 24px 52px rgba(0, 0, 0, .72), 0 0 0 1px var(--gold-hi), 0 0 36px rgba(235, 205, 142, .42), 0 0 70px rgba(139, 108, 255, .16); }
  .tcard.flipped:hover .shine::after { animation: shineSweep 1.5s var(--ease) both; }
  .tcard.flipped:hover .ca-name { text-shadow: 0 2px 10px rgba(0, 0, 0, .85), 0 0 16px rgba(255, 228, 168, .55); }
}
/* 触屏：按下时轻轻一沉，松手即放大 */
.tcard.flipped:active { scale: .975; }

/* ---------- AI 生成的真实卡面 ---------- */
.card-art {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  border-radius: 10px; background: #0b0820; container-type: inline-size;
}
.card-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* 左上角轻压暗：盖掉原图左上角残留的水印修补痕迹，同时给卡面一点内阴影 */
.card-art::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(5, 3, 15, .92) 0%, rgba(5, 3, 15, .68) 6%, rgba(5, 3, 15, .25) 15%, transparent 27%);
}
.card-art .ca-num {
  position: absolute; top: 3cqw; left: 4cqw; z-index: 2;
  font-family: var(--serif-card); font-size: 4.6cqw; font-weight: 700; letter-spacing: .08em;
  color: var(--gold-hi); text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}
.card-art .ca-name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .7cqw;
  padding: 11cqw 3cqw 3cqw; line-height: 1.15;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 3, 15, .5) 26%, rgba(5, 3, 15, .92) 62%, rgba(5, 3, 15, .98) 100%);
  font-family: var(--serif-card); font-size: 6cqw; font-weight: 700; letter-spacing: .1em;
  color: var(--gold-hi); text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
}
.card-art .ca-name i {
  font-style: normal; font-family: var(--display); font-weight: 400; font-size: 2.8cqw; letter-spacing: .24em;
  color: var(--gold); opacity: .85;
}
.card-art::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .5), inset 0 0 0 3px rgba(5, 3, 15, .3), inset 0 0 0 4px rgba(235, 205, 142, .24);
}
.tcard .front.rev .card-art { transform: rotate(180deg); }
@container (max-width: 120px) {
  .card-art .ca-num, .card-art .ca-name { display: none; }
}

.fan { position: relative; height: clamp(190px, 38vw, 300px); margin-top: 18px; }
.fan .fc { position: absolute; left: 50%; bottom: 0; width: clamp(54px, 9vw, 92px); aspect-ratio: 200 / 340; transform-origin: 50% 160%; cursor: pointer; transition: transform .5s var(--ease), opacity .4s, filter .35s, box-shadow .35s; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(230, 200, 135, .45); overflow: hidden;
  animation: fanIn .8s var(--ease) var(--d, 0ms) backwards; }
.fan .fc svg { width: 100%; height: 100%; display: block; }
/* 悬停：沿牌自身朝向抽出一截，金边亮起 */
.fan .fc:hover { --lift: -18px; filter: brightness(1.18); box-shadow: 0 18px 40px rgba(0, 0, 0, .7), 0 0 0 1px var(--gold-hi), 0 0 26px rgba(235, 205, 142, .55); z-index: 2; }
/* 选中：继续向外飞出并化作光消散 */
.fan .fc.picked { --lift: -110px; opacity: 0; filter: brightness(2.2) blur(1px); pointer-events: none; transition: transform .7s var(--ease), opacity .6s ease .1s, filter .5s; }
.deck-shuffle { position: relative; height: 240px; display: grid; place-items: center; }
.deck-shuffle .sc { position: absolute; width: 96px; aspect-ratio: 200 / 340; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(230, 200, 135, .5); }
.deck-shuffle .sc svg { width: 100%; height: 100%; display: block; }
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- 每日一牌：今日神谕封印（折叠 / 展开） ---------- */
.daily-seal { display: flex; align-items: center; gap: 18px; max-width: 560px; margin: 30px auto 0; padding: 16px 20px; animation: fade .6s both; }
.ds-thumb { flex: none; width: 46px; aspect-ratio: 200 / 340; border-radius: 5px; overflow: hidden; display: block;
  box-shadow: 0 0 0 1px rgba(230, 200, 135, .6), 0 0 18px rgba(235, 205, 142, .22); }
.ds-thumb .card-art { border-radius: 0; }
.ds-thumb .ca-num, .ds-thumb .ca-name { display: none; }
.ds-thumb.rev .card-art { transform: rotate(180deg); }
.ds-meta { flex: 1; min-width: 0; text-align: left; }
.ds-meta .sc-en { margin-bottom: 4px; font-size: 10.5px; }
.ds-meta h3 { font-family: var(--serif-card); font-weight: 600; font-size: 18px; letter-spacing: .08em; color: var(--gold-hi); line-height: 1.4; }
.ds-kw { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--ink-faint); }
.ds-kw span + span::before { content: "·"; margin-right: 12px; color: var(--gold); opacity: .6; }
.daily-seal .btn { flex: none; }
/* 折叠用 grid 0fr → 1fr：高度自适应内容，不用写死 max-height */
.daily-fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--ease), opacity .45s; }
.daily-fold.open { grid-template-rows: 1fr; opacity: 1; }
.daily-fold-in { min-height: 0; overflow: hidden; }
@media (max-width: 480px) {
  .daily-seal { flex-wrap: wrap; gap: 14px; }
  .daily-seal .btn { width: 100%; }
}

/* ---------- 解读 ---------- */
.read-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
.card-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.note { padding: 20px 20px 18px; animation: pageIn .7s var(--ease) both; transition: translate .45s var(--ease), box-shadow .45s; }
/* pageIn 以 fill both 锁住了 transform，悬停上浮改用独立的 translate 属性 */
.note:hover { translate: 0 -3px; box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .55), 0 22px 54px rgba(0, 0, 0, .45), 0 0 34px rgba(235, 205, 142, .08); }
.note .pos { font-size: 12.5px; letter-spacing: .16em; color: var(--gold); }
.note h4 { font-family: var(--display); font-size: 20px; color: var(--gold-hi); margin: 6px 0 9px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note h4 em { font-style: normal; font-size: 11.5px; padding: 2px 10px; border-radius: 99px; background: rgba(139, 108, 255, .22); color: #cfc2ff; letter-spacing: .06em; }
.note h4 em.rev { background: rgba(255, 126, 185, .18); color: #ffb3d6; }
.note .kw { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.note .kw span { font-size: 12.5px; padding: 2px 10px; border-radius: 99px; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .3); }
.note p { color: var(--ink-dim); font-size: 15px; line-height: 1.85; letter-spacing: .02em; text-wrap: pretty; }
/* ---------- 神谕框：毛玻璃 + 流光金边 + 四角星钉 ---------- */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.oracle {
  padding: clamp(24px, 3.6vw, 46px); position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% -12%, rgba(139, 108, 255, .2), transparent 62%),
    radial-gradient(80% 50% at 50% 112%, rgba(235, 205, 142, .09), transparent 70%),
    linear-gradient(180deg, rgba(24, 16, 58, .7), rgba(9, 6, 28, .8));
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .2), inset 0 1px 0 rgba(255, 242, 204, .14),
    0 30px 80px rgba(0, 0, 0, .5), 0 0 70px rgba(139, 108, 255, .12);
  animation: oracleDescend 1.1s var(--ease) both;
}
.oracle::before { content: "✦"; position: absolute; right: 22px; top: 8px; font-size: 90px; color: rgba(235, 205, 142, .06); z-index: -1; }
/* 一束金光沿 1px 边框缓缓环行；召唤神谕时转得更快 */
.oracle::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 60%, rgba(255, 242, 204, .05) 64%, rgba(255, 242, 204, .85) 73%, rgba(235, 205, 142, .3) 79%, transparent 86%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: spinBorder 10s linear infinite;
}
.oracle.summoning::after { animation-duration: 3.4s; }
.oracle .oc { position: absolute; width: 20px; height: 20px; pointer-events: none; border: 0 solid rgba(235, 205, 142, .7); }
.oracle .oc::after { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 8px 1px var(--gold); }
.oracle .oc.tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; border-top-left-radius: 5px; }
.oracle .oc.tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; border-top-right-radius: 5px; }
.oracle .oc.bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; border-bottom-left-radius: 5px; }
.oracle .oc.br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 5px; }
.oracle .oc.tl::after { top: -2px; left: -2px; } .oracle .oc.tr::after { top: -2px; right: -2px; }
.oracle .oc.bl::after { bottom: -2px; left: -2px; } .oracle .oc.br::after { bottom: -2px; right: -2px; }
.oracle-rule { display: flex; align-items: center; gap: 14px; margin: -2px 0 24px; color: var(--gold); font-size: 12px; line-height: 1; opacity: .85; }
.oracle-rule::before, .oracle-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(235, 205, 142, .5)); }
.oracle-rule::after { transform: scaleX(-1); }
.oracle-body { position: relative; min-height: 120px; }
.oracle-actions { margin-top: 34px; animation: pageIn .8s var(--ease) both; }

/* 召唤中：星尘向光核汇聚，三重星环反向缓转，光核呼吸 */
.summon { display: grid; justify-items: center; gap: 4px; padding: 14px 0 8px; text-align: center; transition: opacity .55s, filter .55s, transform .55s var(--ease); }
.summon.gone { opacity: 0; filter: blur(10px); transform: scale(1.12); }
.summon-orb { position: relative; width: 120px; height: 120px; margin-bottom: 18px; }
.summon-orb .core { position: absolute; inset: 41px; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff 0, var(--gold-hi) 20%, rgba(235, 205, 142, .6) 44%, rgba(139, 108, 255, .3) 68%, transparent 72%);
  box-shadow: 0 0 30px 8px rgba(235, 205, 142, .32), 0 0 80px 24px rgba(139, 108, 255, .22); animation: coreBreathe 3.2s ease-in-out infinite; }
.summon-orb .ring { position: absolute; inset: 0; border-radius: 50%; }
.summon-orb .r1 { border: 1px solid rgba(235, 205, 142, .22); border-top-color: var(--gold-hi); animation: spin 6s linear infinite; }
.summon-orb .r2 { inset: 15px; border: 1px dashed rgba(235, 205, 142, .26); animation: spin 16s linear infinite reverse; }
.summon-orb .r3 { inset: -12px; border: 1px solid transparent; border-left-color: rgba(139, 108, 255, .65); border-right-color: rgba(139, 108, 255, .18); animation: spin 10s linear infinite; }
.summon-orb b { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; opacity: 0;
  background: var(--gold-hi); box-shadow: 0 0 6px 1px rgba(255, 242, 204, .9); animation: stardust var(--t) ease-in var(--w) infinite; }
.summon-orb b:nth-of-type(3n) { background: #d9ceff; box-shadow: 0 0 6px 1px rgba(139, 108, 255, .9); }
.summon-text { font-family: var(--oracle); font-size: 19px; letter-spacing: .22em; color: var(--gold-hi); text-shadow: 0 0 22px rgba(235, 205, 142, .45); }
.summon-text .whisper { display: inline-block; transition: opacity .5s, filter .5s, transform .5s var(--ease); }
.summon-text .whisper.out { opacity: 0; filter: blur(6px); transform: translateY(-5px); }
.summon-text .ell i { font-style: normal; animation: blink 1.6s ease-in-out infinite; }
.summon-text .ell i:nth-child(2) { animation-delay: .25s; } .summon-text .ell i:nth-child(3) { animation-delay: .5s; }
.summon-sub { font-size: 12.5px; letter-spacing: .18em; color: var(--ink-faint); }
.oracle-fail { display: grid; justify-items: center; gap: 14px; padding: 18px 0 6px; text-align: center; }
.oracle-fail p { font-family: var(--oracle); font-size: 18px; letter-spacing: .1em; color: #ffd3e3; }
.oracle-fail small { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .08em; }

/* 神谕正文：楷体、宽行距、首行缩进；开场一句居中如签文，末段「星辰的低语」收在一方微光里 */
/* 解读正文：字号为原来的 1.5 倍，行距放宽到 2.2，段距加大，长文读起来不累 */
.md.oracle-text { font-family: var(--oracle); font-size: clamp(22px, 2.1vw, 26px); line-height: 2.2; letter-spacing: .04em; color: #f3ecdc; }
.md.oracle-text p { margin: 20px 0; text-indent: 2em; text-wrap: pretty; }
.md.oracle-text blockquote { margin: 0 auto 26px; max-width: 30em; text-align: center; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.8; letter-spacing: .16em;
  color: var(--gold-hi); text-shadow: 0 0 26px rgba(235, 205, 142, .38); }
.md.oracle-text strong { color: var(--gold-hi); font-weight: 700; text-shadow: 0 0 14px rgba(235, 205, 142, .3); }
.md.oracle-text > p:last-child:not(:first-child) { text-indent: 0; margin-top: 26px; padding: 16px 20px; border-radius: 14px;
  background: linear-gradient(100deg, rgba(235, 205, 142, .08), rgba(139, 108, 255, .07));
  box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .22), 0 0 30px rgba(235, 205, 142, .05); transition: background .8s, box-shadow .8s; }
/* 逐字浮现时，末段的光框等第一个字亮起才出现 */
.md.oracle-text.typing > p:last-child:not(:first-child):not(:has(.ch.on)) { background: transparent; box-shadow: none; }
.md.oracle-text.typing { cursor: pointer; }
.md.oracle-text .ch { opacity: 0; }
.md.oracle-text .ch.on { animation: inkIn 1s var(--ease) both; }
.oracle { scroll-margin-top: 86px; }
/* 三段式小标题：金色细字 + 引导星 */
.md.oracle-text h3 { display: flex; align-items: center; gap: 12px; margin: 40px 0 6px; font-family: var(--oracle); font-size: clamp(18px, 1.6vw, 21px); font-weight: 700;
  letter-spacing: .24em; color: var(--gold); }
.md.oracle-text h3:first-child { margin-top: 0; }
.md.oracle-text h3::before { content: "✦"; font-size: 13px; color: var(--gold-hi); text-shadow: 0 0 10px var(--gold); }
.md.oracle-text h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(235, 205, 142, .35), transparent); }
/* 行动建议：金圈序号 */
.md.oracle-text ol { list-style: none; counter-reset: act; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.md.oracle-text ol li { counter-increment: act; position: relative; margin: 0; padding: 14px 20px 14px 62px; border-radius: 14px; line-height: 1.9;
  background: linear-gradient(100deg, rgba(235, 205, 142, .07), rgba(139, 108, 255, .05)); box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .16);
  transition: background .8s, box-shadow .8s; }
.md.oracle-text ol li::before { content: counter(act); position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 600 15px/1 var(--display); color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 12px rgba(235, 205, 142, .3); transition: opacity .6s; }
/* 逐字浮现时，标题装饰与序号框等文字亮起才出现 */
.md.oracle-text.typing h3:not(:has(.ch.on))::before, .md.oracle-text.typing h3:not(:has(.ch.on))::after,
.md.oracle-text.typing li:not(:has(.ch.on))::before { opacity: 0; }
.md.oracle-text.typing li:not(:has(.ch.on)) { background: transparent; box-shadow: none; }

/* ---------- 大师神谕 · 深度解析 ---------- */
.oracle.master { box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .3), inset 0 1px 0 rgba(255, 242, 204, .18),
  0 30px 80px rgba(0, 0, 0, .55), 0 0 90px rgba(235, 205, 142, .1), 0 0 140px rgba(139, 108, 255, .14); }
.oracle.master::after { background: conic-gradient(from var(--spin), transparent 0 10%, rgba(255, 242, 204, .85) 19%, transparent 30% 60%, rgba(217, 206, 255, .8) 69%, transparent 80%); }
.oracle.master .oracle-head { justify-content: center; text-align: center; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.oracle.master .oracle-head .ico { width: 54px; height: 54px; font-size: 24px; }
.oracle-kicker { font-family: var(--display); font-size: 11px; letter-spacing: .5em; color: var(--gold); opacity: .85; margin-bottom: 4px; }
.oracle.master .oracle-head h3 { font-size: clamp(25px, 3.2vw, 32px); letter-spacing: .14em; line-height: 1.3;
  background: linear-gradient(180deg, #fffdf5, var(--gold-hi) 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(235, 205, 142, .35)); }
.oracle.master .oracle-head small { letter-spacing: .2em; margin-top: 6px; }

/* 解锁按钮区：基础解读框底部 */
.adv-cta { display: grid; justify-items: center; gap: 14px; margin-top: 34px; padding-top: 28px; text-align: center; position: relative;
  transition: opacity .5s, transform .5s var(--ease), filter .5s; }
.adv-cta::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(235, 205, 142, .45), transparent); }
.adv-cta.spent { opacity: 0; transform: translateY(-8px); filter: blur(4px); pointer-events: none; }
.adv-tease { font-family: var(--oracle); font-size: 19px; line-height: 1.8; letter-spacing: .08em; color: var(--ink-dim); max-width: 34em; text-wrap: balance; }
/* 发光主按钮：暗金玻璃 + 环行流光描边 + 呼吸外晕 + 悬停扫光 */
.btn-master {
  position: relative; display: inline-grid; justify-items: center; gap: 4px; padding: 20px 60px 17px; min-width: min(420px, 100%); border-radius: 99px; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 242, 204, .2), transparent 60%), linear-gradient(135deg, rgba(58, 38, 110, .92), rgba(22, 13, 52, .95));
  box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .55), 0 10px 34px rgba(0, 0, 0, .45), 0 0 30px rgba(235, 205, 142, .2);
  animation: masterGlow 3s ease-in-out infinite; transition: transform .4s var(--ease), box-shadow .4s;
}
.btn-master::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 55%, var(--gold-hi) 70%, rgba(139, 108, 255, .9) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: spinBorder 3.6s linear infinite; }
.btn-master::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 242, 204, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-master:hover { transform: translateY(-2px); animation-play-state: paused;
  box-shadow: inset 0 0 0 1px var(--gold-hi), 0 16px 44px rgba(0, 0, 0, .5), 0 0 48px rgba(235, 205, 142, .42); }
.btn-master:hover::after { transform: translateX(120%); }
.btn-master:active { transform: scale(.98); }
.btn-master .bm-label { font-family: var(--oracle); font-size: 22px; font-weight: 700; letter-spacing: .14em; color: var(--gold-hi); text-shadow: 0 0 16px rgba(235, 205, 142, .55); }
.btn-master .bm-cost { font-size: 13px; letter-spacing: .2em; color: var(--ink-dim); }
.btn-master.busy { pointer-events: none; }
.btn-master.busy .bm-label { animation: blink 1.2s ease-in-out infinite; }
.btn-master[disabled] { cursor: progress; }

/* 深度解析在原地由 0 高度平滑展开 */
.adv-unfold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 1s var(--ease), opacity .8s ease .1s, margin-top 1s var(--ease); }
.adv-unfold.open { grid-template-rows: 1fr; opacity: 1; margin-top: 22px; }
.adv-inner { overflow: hidden; min-height: 0; }
.adv-unfold.settled .adv-inner { overflow: visible; }
.oracle-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.oracle-head .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold), 0 0 28px rgba(235, 205, 142, .4); background: radial-gradient(circle, rgba(139, 108, 255, .4), transparent); animation: pulse 2.6s ease-in-out infinite; }
.oracle-head h3 { font-family: var(--display); font-size: 21px; color: var(--gold-hi); letter-spacing: .03em; }
.oracle-head small { display: block; color: var(--ink-dim); font-size: 13px; margin-top: 2px; }
.md { font-size: 16px; line-height: 1.95; color: #f0e9da; }
.md h2 { font-family: var(--display); font-size: 20px; color: var(--gold-hi); letter-spacing: .03em; margin: 28px 0 10px; padding-left: 14px; position: relative; }
.md h2:first-child { margin-top: 0; }
.md h2::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 3px; border-radius: 3px; background: linear-gradient(var(--gold-hi), var(--violet)); }
.md p { margin: 10px 0; } .md strong { color: var(--gold-hi); font-weight: 600; }
.md ol, .md ul { padding-left: 1.6em; margin: 10px 0; } .md li { margin: 8px 0; }
.caret::after { content: "▍"; color: var(--gold); animation: blink 1s steps(2) infinite; margin-left: 2px; }
.thinking { display: flex; align-items: center; gap: 12px; color: var(--ink-dim); letter-spacing: .1em; padding: 6px 0; }
.dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin: 0 3px; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
.notice { padding: 14px 18px; border-radius: 12px; background: rgba(255, 126, 185, .08); box-shadow: inset 0 0 0 1px rgba(255, 126, 185, .3); color: #ffc9e0; font-size: 14px; line-height: 1.7; margin-top: 14px; }

/* ---------- 星盘 ---------- */
.chart-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 920px) { .chart-layout { grid-template-columns: 1fr; } }
.wheel-box { padding: 14px; display: grid; place-items: center; }
.wheel-box svg { width: 100%; max-width: 640px; height: auto; display: block; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.big3 > div { padding: 16px 10px; text-align: center; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.big3 .g { font-size: 28px; color: var(--gold); text-shadow: 0 0 20px rgba(230, 200, 135, .5); }
.big3 b { display: block; font-family: var(--display); color: var(--gold-hi); font-size: 17px; }
.big3 small { color: var(--ink-dim); font-size: 12.5px; letter-spacing: .06em; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; color: var(--gold); font-weight: 500; letter-spacing: .06em; font-size: 12.5px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 10px 8px; border-bottom: 1px solid rgba(235, 205, 142, .1); color: var(--ink-dim); }
.ptable td:first-child { color: var(--gold-hi); white-space: nowrap; }
.retro { color: var(--rose); font-size: 11.5px; margin-left: 4px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 40px 1fr 28px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-dim); }
.bar span.t { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar span.t i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width 1s var(--ease); }

/* ---------- 个人中心 / 记录 ---------- */
.me-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.me-head .avatar { width: 68px; height: 68px; font-size: 28px; }
.me-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.stat { padding: 18px 16px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 32px; color: var(--gold-hi); }
.stat small { color: var(--ink-dim); font-size: 12.5px; letter-spacing: .06em; }
.records { display: grid; gap: 12px; }
.rec { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; cursor: pointer; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .16); transition: .3s; }
.rec:hover { background: rgba(139, 108, 255, .1); box-shadow: inset 0 0 0 1px var(--gold); transform: translateX(4px); }
.rec .mini-cards { display: flex; }
.rec .mini-cards i { width: 26px; aspect-ratio: 200 / 340; border-radius: 4px; overflow: hidden; margin-left: -8px; box-shadow: 0 0 0 1px rgba(230, 200, 135, .5); display: block; background: #120a33; }
.rec .mini-cards i:first-child { margin-left: 0; }
.rec .mini-cards svg { width: 100%; height: 100%; display: block; }
.rec .meta { flex: 1; min-width: 0; }
.rec .meta b { font-family: var(--display); color: var(--gold-hi); letter-spacing: .02em; font-size: 16px; }
.rec .meta p { color: var(--ink-faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.empty { text-align: center; padding: 44px 10px; color: var(--ink-faint); font-size: 15px; }

/* ---------- 充值指南 ---------- */
.guide-steps { display: grid; gap: 14px; counter-reset: g; }
.gs { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 20px; align-items: start; }
.gs .n { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 22px; color: #2a1a05; font-weight: 700; background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); box-shadow: 0 0 30px rgba(230, 200, 135, .35); }
.gs h4 { font-family: var(--display); font-size: 19px; color: var(--gold-hi); letter-spacing: .02em; margin-bottom: 6px; }
.gs p { color: var(--ink-dim); font-size: 15px; line-height: 1.8; }
.gs .btns { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.keybox { display: flex; gap: 10px; flex-wrap: wrap; }
.keybox .input { flex: 1; min-width: 200px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.mock-mail { margin-top: 10px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .18); font-size: 13.5px; line-height: 1.75; color: var(--ink-dim); }
.mock-mail b { color: var(--gold-hi); } .mock-mail code { color: var(--teal); font-family: ui-monospace, Consolas, monospace; letter-spacing: .1em; }

/* ---------- 弹窗 / toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(3, 1, 10, .72); backdrop-filter: blur(6px); animation: fade .3s both; overflow-y: auto; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 28px 26px; border-radius: 22px; position: relative; background: linear-gradient(160deg, rgba(34, 22, 78, .96), rgba(12, 8, 32, .97));
  box-shadow: inset 0 0 0 1px var(--gold), 0 40px 120px rgba(0, 0, 0, .7), 0 0 80px rgba(139, 108, 255, .22); animation: modalIn .5s var(--ease) both; }
.modal.wide { max-width: 560px; }
.modal h3 { font-family: var(--display); font-size: 25px; color: var(--gold-hi); letter-spacing: .04em; text-align: center; }
.modal .sub { text-align: center; color: var(--ink-dim); font-size: 14px; line-height: 1.7; margin: 8px 0 24px; }
.modal .x { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-dim); font-size: 20px; }
.modal .x:hover { background: rgba(255, 255, 255, .08); color: var(--gold-hi); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 99px; background: rgba(0, 0, 0, .35); margin-bottom: 20px; }
.tabs button { padding: 10px; border-radius: 99px; color: var(--ink-dim); font-size: 14.5px; letter-spacing: .06em; transition: .25s; }
.tabs button.on { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #2a1a05; font-weight: 700; }
.modal .btn { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 100; padding: 13px 24px; border-radius: 99px; background: rgba(20, 13, 48, .96); box-shadow: inset 0 0 0 1px var(--gold), 0 14px 40px rgba(0, 0, 0, .6); color: var(--gold-hi); font-size: 14.5px; animation: toast 3.4s var(--ease) both; max-width: 90vw; }
.toast.bad { box-shadow: inset 0 0 0 1px #ff8aa1, 0 14px 40px rgba(0, 0, 0, .6); color: #ffc2cd; }

/* 兑换成功 */
.charged { text-align: center; padding: 8px 0 4px; }
.charged .big { font-family: var(--display); font-size: 76px; line-height: 1; color: var(--gold-hi); text-shadow: 0 0 50px rgba(230, 200, 135, .8), 0 0 100px rgba(139, 108, 255, .6); animation: pop .9s var(--ease) both; }
.charged p { color: var(--ink-dim); margin: 6px 0 20px; letter-spacing: .1em; }
.energy.charging { animation: energyHit 1.4s var(--ease); }

.footer { position: relative; z-index: 5; text-align: center; padding: 34px 16px 44px; color: var(--ink-faint); font-size: 13px; line-height: 1.8; }
.footer-glyphs { color: var(--gold); opacity: .55; letter-spacing: .9em; font-size: 16px; margin-bottom: 12px; }

/* ---------- 动画 ---------- */
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; transform: scale(.9) rotate(12deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 3deg)); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 200, 135, 0); } 50% { box-shadow: 0 0 34px 6px rgba(230, 200, 135, .55); } }
@keyframes faceFlash { 0%, 30% { opacity: .9; } 100% { opacity: 0; } }
@keyframes ringPulse { 0% { opacity: 0; transform: scale(.97); } 30% { opacity: 1; transform: scale(1.03); } 100% { opacity: 0; transform: scale(1.06); } }
/* 待翻的牌：金色内圈 + 紫色外晕错拍呼吸，比单层光晕更有纵深 */
@keyframes cardBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 200, 135, 0), 0 0 0 0 rgba(139, 108, 255, 0); }
  45% { box-shadow: 0 0 26px 3px rgba(230, 200, 135, .5), 0 0 48px 6px rgba(139, 108, 255, .1); }
  60% { box-shadow: 0 0 30px 5px rgba(230, 200, 135, .42), 0 0 64px 12px rgba(139, 108, 255, .2); }
}
@keyframes shineSweep { 0% { opacity: 0; transform: translateX(0) skewX(-14deg); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateX(440%) skewX(-14deg); } }
@keyframes zoomHalo {
  0%, 100% { box-shadow: 0 0 0 1px rgba(235, 205, 142, .55), 0 34px 100px rgba(0, 0, 0, .78), 0 0 60px rgba(235, 205, 142, .14), 0 0 120px rgba(139, 108, 255, .12); }
  50% { box-shadow: 0 0 0 1px rgba(255, 242, 204, .8), 0 34px 100px rgba(0, 0, 0, .78), 0 0 80px rgba(235, 205, 142, .26), 0 0 160px rgba(139, 108, 255, .2); }
}
@keyframes soundWave { 0%, 100% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 0 rgba(235, 205, 142, 0); } 50% { box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .45), 0 0 14px rgba(235, 205, 142, .18); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 20px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes energyHit { 0% { transform: scale(1); } 20% { transform: scale(1.35); box-shadow: 0 0 60px 14px rgba(255, 240, 196, .9); } 100% { transform: scale(1); } }
@keyframes fanIn { from { opacity: 0; translate: 0 34px; filter: brightness(1.8); } }
@keyframes oracleDescend { from { opacity: 0; transform: translateY(-18px) scale(.985); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spinBorder { to { --spin: 360deg; } }
@keyframes masterGlow {
  0%, 100% { filter: brightness(1); box-shadow: inset 0 0 0 1px rgba(235, 205, 142, .55), 0 10px 34px rgba(0, 0, 0, .45), 0 0 30px rgba(235, 205, 142, .22); }
  50% { filter: brightness(1.2); box-shadow: inset 0 0 0 1px var(--gold-hi), 0 10px 34px rgba(0, 0, 0, .45), 0 0 64px 6px rgba(235, 205, 142, .45); }
}
@keyframes coreBreathe { 0%, 100% { transform: scale(.88); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
/* 星尘从外圈螺旋汇入光核 */
@keyframes stardust {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.5); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--a) + 70deg)) translateX(4px) scale(1.2); }
}
/* 字迹显影：先是一点金色微光，再凝成墨色 */
@keyframes inkIn {
  0% { opacity: 0; filter: blur(6px); text-shadow: 0 0 16px rgba(255, 242, 204, 1); }
  40% { opacity: 1; filter: blur(0); text-shadow: 0 0 12px rgba(255, 242, 204, .8); }
  100% { opacity: 1; filter: none; }
}

/* ---------- 卡牌放大（原画欣赏）---------- */
.zoom-back { position: fixed; inset: 0; z-index: 95; cursor: zoom-out; }
/* 毛玻璃单独放在伪元素上，只淡入淡出 opacity，不去过渡 backdrop-filter 本身（那样很掉帧） */
.zoom-back::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(ellipse at 50% 45%, rgba(40, 26, 92, .5), rgba(5, 3, 15, .82) 70%);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15); }
.zoom-back.in::before { opacity: 1; }
.zoom-back.out::before { transition-duration: .42s; }
.zoom-card { position: fixed; border-radius: 16px; overflow: hidden; cursor: default; background: #0b0820; will-change: transform;
  transition: transform .62s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 0 1px rgba(235, 205, 142, .55), 0 34px 100px rgba(0, 0, 0, .78); }
.zoom-back.in .zoom-card { animation: zoomHalo 4.5s ease-in-out .7s infinite; }
.zoom-back.out .zoom-card { transition-duration: .5s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.zoom-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
/* 先显示已缓存的压缩图，高清原画下好后无缝叠上 */
.zoom-card .hd { opacity: 0; transition: opacity .6s; }
.zoom-card .hd.ok { opacity: 1; }
.zoom-sheen { position: absolute; top: -10%; bottom: -10%; left: -60%; width: 45%; pointer-events: none; opacity: 0; mix-blend-mode: soft-light;
  background: linear-gradient(100deg, transparent, rgba(255, 246, 220, .7) 50%, transparent); transform: skewX(-14deg); }
.zoom-back.in .zoom-sheen { animation: shineSweep 1.8s var(--ease) .55s both; }
.zoom-cap { position: fixed; left: 0; right: 0; text-align: center; pointer-events: none; opacity: 0; translate: 0 8px;
  transition: opacity .45s, translate .6s var(--ease); display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 0 16px; }
.zoom-back.in .zoom-cap { opacity: 1; translate: 0 0; transition-delay: .3s; }
.zoom-cap b { font-family: var(--serif-card, var(--display)); font-size: 22px; letter-spacing: .14em; color: var(--gold-hi); text-shadow: 0 0 22px rgba(235, 205, 142, .45); }
.zoom-cap i { font-style: normal; font-family: var(--display); font-size: 12px; letter-spacing: .3em; color: var(--gold); opacity: .85; }
.zoom-cap span { font-size: 12px; letter-spacing: .14em; padding: 2px 10px; border-radius: 99px; color: var(--teal); box-shadow: inset 0 0 0 1px rgba(94, 224, 209, .4); }
.zoom-cap span.rev { color: var(--rose); box-shadow: inset 0 0 0 1px rgba(255, 126, 185, .4); }
.zoom-tip { position: fixed; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); text-align: center; pointer-events: none;
  font-size: 12.5px; letter-spacing: .3em; color: var(--ink-dim); opacity: 0; transition: opacity .5s .6s; }
.zoom-back.in .zoom-tip { opacity: .7; }
.zoom-x { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 18px; width: 44px; height: 44px; border-radius: 50%; z-index: 1;
  font-size: 24px; line-height: 1; color: var(--gold-hi); background: rgba(20, 13, 48, .6); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; transition: opacity .4s, box-shadow .3s, transform .4s var(--ease); }
.zoom-back.in .zoom-x { opacity: 1; }
.zoom-x:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 0 22px rgba(235, 205, 142, .3); transform: rotate(90deg); }
.zoom-back.out .zoom-cap, .zoom-back.out .zoom-tip, .zoom-back.out .zoom-x { transition-delay: 0s; transition-duration: .2s; }
@media (max-width: 860px) {
  .zoom-back::before { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .zoom-cap b { font-size: 19px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  /* 注意：topbar 的 backdrop-filter 会让内部 position:fixed 的底部导航以 topbar 为包含块，
     导致导航盖在顶栏上。移动端改用不透明背景，让底部导航真正固定在视口底部。 */
  .topbar { height: 58px; gap: 8px; backdrop-filter: none; background: linear-gradient(180deg, rgba(5, 3, 15, .97), rgba(5, 3, 15, .92)); }
  main { padding-top: 58px; }
  .brand-text i { display: none; }
  .brand-text b { font-size: 18px; letter-spacing: .08em; }
  .top-right { gap: 8px; }
  .top-right .btn { padding: 8px 12px; font-size: 13px; letter-spacing: .04em; }
  .page { padding: 34px 18px 92px; }
  .section-head { margin-bottom: 30px; }
  .hero { min-height: calc(100vh - 58px); padding: 24px 16px 64px; }
  .hero .eyebrow::before, .hero .eyebrow::after { width: 30px; }
  .hero-cards .floaty { width: 78px; }
  .hero-badges { gap: 14px 20px; font-size: 14px; margin-top: 36px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 45; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(8, 5, 22, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .nav a { padding: 9px 10px; font-size: 13.5px; letter-spacing: .02em; text-align: center; white-space: nowrap; }
  .footer { padding-bottom: 90px; }
  .avatar-btn span.nm { display: none; } .avatar-btn { padding: 4px; }
  /* 邮箱在小屏也要可见：去掉头像圆，只留截断后的邮箱 */
  .avatar-btn span.user-email { display: block; max-width: 120px; font-size: 13px; }
  .avatar-btn:has(.user-email) { padding: 7px 12px; } .avatar-btn:has(.user-email) .avatar { display: none; }
  .big3 { grid-template-columns: 1fr; }
  .modal { padding: 26px 20px 22px; }
  .toast { bottom: 84px; }
  .gs { grid-template-columns: 42px 1fr; gap: 12px; padding: 16px; } .gs .n { width: 42px; height: 42px; font-size: 18px; }
  .md.oracle-text { font-size: 21px; line-height: 2.1; letter-spacing: .02em; }
  .md.oracle-text p { margin: 16px 0; }
  .md.oracle-text ol li { padding: 12px 14px 12px 52px; }
  .md.oracle-text ol li::before { left: 12px; width: 28px; height: 28px; }
  .md.oracle-text > p:last-child:not(:first-child) { padding: 14px 16px; }
  .oracle .oc { width: 14px; height: 14px; }
  .btn-master { padding: 17px 26px 15px; min-width: 0; width: 100%; } .btn-master .bm-label { font-size: 18.5px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 480px) {
  /* 小屏顶栏只保留登录/音效；购买入口在底部「充值指南」与充值页 */
  .top-right [data-act="redeem"] { display: none; }
  .top-right:has([data-act="logout"]) .energy { display: none; }
  .avatar-btn span.user-email { max-width: 92px; }
}
@media (max-width: 380px) {
  .nav a { font-size: 12.5px; padding: 9px 6px; letter-spacing: 0; }
}

/* ---------- 中 / EN 切换 ---------- */
.lang-btn { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; width: 74px; height: 32px; padding: 3px; flex: none;
  border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .04); transition: box-shadow .3s; }
.lang-btn:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 0 18px rgba(235, 205, 142, .18); }
.lang-btn span { position: relative; z-index: 1; font: 600 12.5px/1 var(--display); letter-spacing: .06em; text-align: center; color: var(--ink-faint); transition: color .45s var(--ease); }
.lang-btn .lb-knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 14px rgba(235, 205, 142, .45); transition: transform .5s var(--ease); }
.lang-btn[data-lang="zh"] .lb-zh, .lang-btn[data-lang="en"] .lb-en { color: #2a1a05; }
.lang-btn[data-lang="en"] .lb-knob { transform: translateX(100%); }
/* 切换语言：文案先淡出微糊，换字后再浮现；整体不刷新、不跳动 */
#view, .nav, .brand-text, .footer, .top-right > :not(.lang-btn), #modalRoot { transition: opacity .2s ease, filter .2s ease; }
.lang-swap #view, .lang-swap .nav, .lang-swap .brand-text, .lang-swap .footer, .lang-swap .top-right > :not(.lang-btn), .lang-swap #modalRoot { opacity: 0; filter: blur(3px); }
/* 英文比中文长，顶栏导航略收紧 */
html[lang="en"] .nav a { letter-spacing: .02em; }
html[lang="en"] .md.oracle-text p { text-indent: 0; }

/* 深度解析按钮上的「推荐」角标 */
.btn-master .bm-badge { font: 600 11px/1 var(--sans); letter-spacing: .16em; padding: 4px 10px; margin-bottom: 4px; border-radius: 99px; color: #2a1a05;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 14px rgba(235, 205, 142, .5); }
@media (max-width: 860px) {
  .lang-btn { width: 64px; height: 30px; }
}
/* 英文界面：楷体里的拉丁字母是等宽的，改用古典衬线 */
html[lang="en"] { --oracle: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif SC", "Songti SC", serif; }
html[lang="en"] .btn-master .bm-label, html[lang="en"] .summon-text { letter-spacing: .04em; }

/* 逐字浮现的星光光标：零宽，不推挤文字、不引起换行抖动 */
.md.oracle-text .oracle-cursor { display: inline-block; width: 0; height: 1em; position: relative; text-indent: 0; vertical-align: baseline; }
.md.oracle-text .oracle-cursor::after { content: "✦"; position: absolute; left: .14em; bottom: .02em; font-size: .6em; font-style: normal; line-height: 1;
  color: var(--gold-hi); text-shadow: 0 0 8px var(--gold), 0 0 20px rgba(235, 205, 142, .75); animation: cursorPulse 1.1s ease-in-out infinite; }
@keyframes cursorPulse { 50% { opacity: .4; transform: scale(.78) rotate(24deg); } }

/* ---------- 星轨加载动画（ui.js loaderHtml / index.html 首屏占位） ---------- */
/* 只动 transform / opacity，交给合成层，手机上不触发重排重绘 */
.astral-loader { min-height: 56vh; display: grid; place-content: center; justify-items: center; gap: 26px; padding: 40px 20px; animation: fade .5s both; }
.astral-loader.boot { min-height: calc(100vh - 160px); }
.al-sky { position: relative; width: 132px; height: 132px; }
.al-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(235, 205, 142, .24);
  transform: rotate(var(--tilt)) rotateX(68deg) rotateZ(0deg); animation: alOrbit var(--dur) linear infinite; }
.al-ring b { position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 8px var(--gold), 0 0 18px rgba(235, 205, 142, .8); }
.al-ring.r1 { --tilt: -18deg; --dur: 3.6s; }
.al-ring.r2 { --tilt: 42deg; --dur: 5.2s; inset: 14px; border-color: rgba(139, 108, 255, .3); animation-direction: reverse; }
.al-ring.r2 b { background: #e4dcff; box-shadow: 0 0 8px var(--violet), 0 0 18px rgba(139, 108, 255, .9); }
.al-ring.r3 { --tilt: 102deg; --dur: 7.4s; inset: -16px; border-color: rgba(94, 224, 209, .16); }
.al-ring.r3 b { width: 4px; height: 4px; margin-left: -2px; top: -2px; background: #d9fffb; box-shadow: 0 0 10px var(--teal); }
.al-halo { position: absolute; inset: 30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 242, 204, .55), rgba(235, 205, 142, .18) 45%, rgba(139, 108, 255, 0) 72%);
  animation: coreBreathe 2.6s ease-in-out infinite; }
.al-core { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: var(--gold-hi);
  text-shadow: 0 0 14px var(--gold), 0 0 34px rgba(235, 205, 142, .7); animation: twinkle 2.6s ease-in-out infinite; }
.al-text { font-family: var(--display); font-size: 14px; letter-spacing: .32em; color: var(--gold); animation: alText 2.6s ease-in-out infinite; }
@keyframes alOrbit { to { transform: rotate(var(--tilt)) rotateX(68deg) rotateZ(360deg); } }
@keyframes alText { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* 按钮内的星轨：一颗星绕光点旋转，按钮本身呼吸发光 */
.btn.is-loading[disabled] { opacity: 1; cursor: progress; }
.btn.is-loading { animation: breathe 1.8s ease-in-out infinite; }
.btn-orbit { position: relative; display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(42, 26, 5, .22); animation: spin 1.1s linear infinite; }
.btn-orbit::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: rgba(42, 26, 5, .55); animation: pulse 1.1s ease-in-out infinite; }
.btn-orbit b { position: absolute; top: -3.5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px #fff, 0 0 12px rgba(255, 255, 255, .9); }

/* ---------- 移动端性能 ---------- */
/* 星空 canvas 每帧都在重绘，压在上面的 backdrop-filter 会被迫每帧重新模糊，是手机卡顿的主因。
   小屏 / 触屏改用更不透明的底色代替毛玻璃，观感几乎一样，滚动和动画顺滑得多。 */
@media (max-width: 860px), (pointer: coarse) {
  .glass, .oracle { backdrop-filter: none; }
  .glass:not(.oracle) { background: rgba(18, 12, 44, .88); } /* 神谕框保留自己的渐变底 */
  .modal-back { backdrop-filter: none; background: rgba(3, 1, 10, .86); }
  .nav { backdrop-filter: none; } /* 底部导航本身已是 .94 不透明底 */
}
@media (min-width: 861px) and (pointer: coarse) {
  .topbar { backdrop-filter: none; background: rgba(5, 3, 15, .92); }
}

/* ---------- 支付选项（充值弹窗）---------- */
.pay-options { display: flex; gap: 14px; margin-bottom: 20px; }
.pay-opt {
  flex: 1; position: relative; cursor: pointer;
  padding: 20px 14px 18px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(235,205,142,.2);
  transition: box-shadow .2s, transform .15s, background .2s, opacity .2s, filter .2s;
}
/* 未选中：整体变暗；选中（.active）：金色描边 + 外发光 + 右上角对勾，一眼看出当前套餐 */
.pay-opt:not(.active) { opacity: .55; filter: saturate(.6); }
.pay-opt:not(.active):hover { opacity: .85; filter: none; background: rgba(255,255,255,.07); transform: translateY(-2px); }
.pay-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pay-opt.active {
  background: rgba(235,205,142,.12); transform: translateY(-3px);
  box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 28px rgba(235,205,142,.35), 0 10px 36px rgba(235,205,142,.18);
}
.pay-opt.active::after {
  content: "✓"; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #1a1000;
  background: linear-gradient(135deg,var(--gold),var(--gold-hi)); box-shadow: 0 0 10px rgba(235,205,142,.6);
}
.pay-opt.active .pay-opt-price { text-shadow: 0 0 16px rgba(235,205,142,.55); }
.pay-opt-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg,var(--gold),var(--gold-hi)); color: #1a1000;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 10px; border-radius: 20px;
}
.pay-opt-name { font-size: 13px; color: var(--ink-dim); letter-spacing: .06em; margin-bottom: 6px; }
.pay-opt-price { font-family: var(--display); font-size: 32px; color: var(--gold-hi); line-height: 1.1; margin-bottom: 4px; }
.pay-opt-desc { font-size: 12px; color: var(--ink-dim); }
/* 支付请求中锁住卡片，但选中那张保持高亮，用户看得清正在付哪一档 */
.pay-opt[disabled] { cursor: not-allowed; pointer-events: none; }
.pay-opt[disabled]:not(.active) { opacity: .35; }

/* 立即支付：通栏醒目大按钮 */
.btn.pay-submit { width: 100%; min-height: 54px; margin-bottom: 18px; font-size: 17px; font-weight: 700;
  letter-spacing: .12em; box-shadow: 0 8px 30px rgba(235,205,142,.28); }
.btn.pay-submit.is-loading { letter-spacing: .06em; }

.pay-qr-row { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.pay-qr-placeholder {
  flex: none; width: 80px; height: 80px; border-radius: 8px;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(235,205,142,.18);
  display: grid; place-items: center; font-size: 11px; color: var(--ink-dim); text-align: center; line-height: 1.5;
}
.pay-qr-tip { flex: 1; font-size: 13px; color: var(--ink-dim); line-height: 1.75; margin: 0; }
