/* 大厅（今日预言）、开屏、结算（这条链）、创世录、分享这些页面自己的样式。全局 token 在 styles.css。 */

/* ---------------- 开屏：卷首语 + 世界尽头的石碑 ---------------- */
.splash-myth { margin-top: clamp(10px, 2vh, 18px); font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; letter-spacing: 0.06em; color: var(--gold); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.splash-device .mono-svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; animation: float 4s ease-in-out infinite; }
.splash-ways li.soon { border-style: dashed; border-color: rgba(245, 223, 152, 0.45); }
.splash-ways li.soon b { color: var(--gold); }

/* ---------------- 大厅：今日预言 ---------------- */
.prophecy .oracle { margin: -2px 0 14px; max-width: 70ch; font-family: var(--display); font-weight: 800; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--gold); }
.boss-card .portrait.m { width: 86px; height: 86px; }
.teaser-shadow .boss-medal { filter: brightness(0.2) saturate(0); box-shadow: 0 0 0 2px rgba(202, 255, 96, 0.55), 0 0 14px rgba(202, 255, 96, 0.45) !important; }
.teaser-shadow .keeper svg { filter: brightness(0.2) drop-shadow(0 0 6px rgba(202, 255, 96, 0.7)); }

/* 排行榜 / 抽奖 / 邀请原来的位置：联网功能上线前只留一句 */
.lobby-soon { max-width: 1320px; margin: 22px auto 0; padding: 0 clamp(16px, 5vw, 80px); }
.soon-note { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 20px; text-align: left; color: var(--cream); background: rgba(245, 223, 152, 0.08); border: 1.5px dashed rgba(245, 223, 152, 0.35); }
.soon-note .icon { flex: none; width: 30px; height: 30px; color: var(--gold); }
.soon-note b { display: block; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--gold); }
.soon-note span { display: block; font-size: 12px; color: var(--muted); }
.panel .soon-note { width: 100%; color: var(--ink); background: rgba(245, 223, 152, 0.3); border-color: rgba(168, 131, 44, 0.45); }
.panel .soon-note b { color: #7a5a12; }
.panel .soon-note span { color: var(--ink-2); }
.panel .soon-note .icon { color: #a8832c; }
.soon-note.compact { padding: 8px 12px; }
.soon-note.compact .icon { width: 24px; height: 24px; }
.soon-note.compact span { display: none; }

/* ---------------- 结算：这条链（9 个区块） ---------------- */
.chain-box { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 18px; text-align: left; background: rgba(16, 32, 26, 0.06); }
.chain-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chain-head span { font-family: var(--display); font-weight: 800; font-size: 17px; }
.chain-head small { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.chain { position: relative; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.chain::before { content: ''; position: absolute; left: 4%; right: 4%; top: 50%; height: 3px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, rgba(16, 32, 26, 0.25) 0 6px, transparent 6px 10px); }
.block { position: relative; min-width: 0; aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--num); line-height: 1; }
.block small { font-size: 10px; font-weight: 800; opacity: 0.7; }
.block b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 900; }
.block .block-kind { display: grid; place-items: center; font-family: var(--display); font-size: 12px; font-weight: 800; }
.block .block-kind .icon { width: 15px; height: 15px; }
.block.confirmed { color: var(--lime-ink); background: var(--lime); box-shadow: 0 3px 0 var(--lime-3); }
.block.confirmed.k-boss { background: linear-gradient(160deg, #e2ff9c, var(--lime-2)); }
.block.confirmed.k-final { color: #4a3400; background: linear-gradient(160deg, #fff3c4, var(--gold-2)); box-shadow: 0 3px 0 var(--gold-3), 0 0 16px rgba(245, 223, 152, 0.7); }
.block.confirmed.revived { background: repeating-linear-gradient(135deg, var(--lime) 0 6px, #e2ff9c 6px 12px); }
.block.orphan { color: #ffb3a1; background: #3b1414; box-shadow: inset 0 0 0 2px var(--coral), 0 3px 0 rgba(0, 0, 0, 0.25); }
.block.orphan::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(60deg, transparent 46%, rgba(255, 107, 74, 0.9) 47% 50%, transparent 51%), linear-gradient(-40deg, transparent 58%, rgba(255, 107, 74, 0.7) 59% 61%, transparent 62%); }
.block.pending { color: var(--ink-3); background: rgba(255, 255, 255, 0.55); outline: 2px dashed rgba(16, 32, 26, 0.2); outline-offset: -2px; }
.chain.mined .block.confirmed { animation: minedglow 2.4s ease-in-out infinite; }
.chain.mined .block:nth-child(2n) { animation-delay: -0.6s; }
.chain.mined .block:nth-child(3n) { animation-delay: -1.2s; }
@keyframes minedglow { 50% { filter: brightness(1.12) saturate(1.2); } }
.chain-hash { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12px; color: var(--ink-2); }
.chain-hash span { font-weight: 800; }
.chain-hash code { padding: 1px 8px; border-radius: 8px; font-family: var(--num); font-size: 15px; font-weight: 900; letter-spacing: 0.04em; color: var(--ink); background: #fff; }
.chain-hash small { width: 100%; font-size: 11px; }

/* ---------------- 创世录 ---------------- */
.codex-sec { margin-top: 20px; }
.codex-sec .sec-head { margin-bottom: 6px; }
.codex-sec .sec-head h3 { font-size: 21px; color: var(--ink); }
.codex-sec .sec-head .muted { color: var(--ink-2); font-family: var(--num); font-weight: 800; }
.codex-realms { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.realm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--suit) 40%, transparent); }
.realm-pill .suit-icon { width: 22px; height: 22px; color: var(--suit); }
.realm-pill b { font-family: var(--display); font-weight: 800; color: var(--ink); }
.realm-pill small { font-size: 11px; color: var(--ink-2); }
.codex-boss { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; text-align: center; cursor: default; }
.codex-boss b { font-family: var(--display); font-weight: 800; line-height: 1.2; color: var(--ink); }
.codex-boss .portrait.m { width: 76px; height: 76px; }
.codex-face { display: grid; place-items: center; height: 125px; cursor: default; }
.codex-face .card { position: relative; --cw: 84px; transform: none !important; pointer-events: none; }
.codex-face .card-inner { animation: none; }
.collection-grid .cons { --jw: 88px; cursor: default; }
.collection-grid .cons-inner { animation: none; }
.ach-medal .icon { width: 24px; height: 24px; }

/* ---------------- 手机 ---------------- */
@media (max-width: 560px) {
  .chain { gap: 3px; }
  .block { border-radius: 7px; }
  .block small { font-size: 9px; }
  .block b { display: none; }
  .prophecy .oracle { font-size: 16px; }
  .codex-face { height: 106px; }
  .codex-face .card { --cw: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .chain.mined .block.confirmed, .splash-device .mono-svg { animation: none; }
}
