/* 抽牌流程共用已确认首页的背景组件；仅调整环境位置，不修改牌面和飞牌状态机。 */
.oracle-reading-celestial {
  --stage-center: 390px;
  --scene-center: 390px;
  --stage-orbit: 720px;
  --stage-moon: 66px;
}
.oracle-reading-celestial .celestial-backdrop { height: max(1200px, 135svh); }
.oracle-reading-celestial .celestial-light { height: 1080px; }
.oracle-reading-celestial .celestial-sun { left: 5%; top: 130px; width: 90px; }
.oracle-reading-celestial .celestial-hourglass { right: 5%; top: 143px; width: 62px; }
.oracle-reading-celestial .celestial-eye { left: 5%; top: 680px; width: 56px; }
.oracle-reading-celestial .celestial-lunar-seal { right: 5%; top: 680px; width: 60px; }
.oracle-reading-celestial .moon-left { left: calc(5% - 5px); }
.oracle-reading-celestial .moon-right { right: calc(5% - 5px); }
.oracle-reading-celestial .corner-left { left: calc(5% + 28px); }
.oracle-reading-celestial .corner-right { right: calc(5% + 28px); }
.oracle-reading-celestial.phase-question .celestial-orbit,
.oracle-reading-celestial.phase-question .celestial-corner,
.oracle-reading-celestial.phase-question .celestial-sun,
.oracle-reading-celestial.phase-question .celestial-hourglass,
.oracle-reading-celestial.phase-question .celestial-eye,
.oracle-reading-celestial.phase-question .celestial-lunar-seal,
.oracle-reading-celestial.phase-question .celestial-moon { display: none; }
.oracle-reading-celestial.phase-question .celestial-core { opacity: .22; animation: none; }
.oracle-reading-celestial.phase-question .celestial-axis,
.oracle-reading-celestial.phase-question .celestial-meridian { display: none; }
.oracle-reading-celestial.phase-question .celestial-stars { opacity: .65; }
.oracle-reading-celestial .oracle-wordmark { font-family: var(--o-display); font-size: 34px; font-weight: 400; }
.oracle-reading-celestial.phase-question .oracle-header { height: 116px; width: min(940px, calc(100% - 48px)); padding-top: 22px; }
.oracle-reading-celestial.phase-question .oracle-header-top { min-height: 48px; }
.oracle-reading-celestial.phase-question .oracle-wordmark { font-family: var(--o-display); font-weight: 400; font-size: 34px; letter-spacing: .04em; }
.oracle-reading-celestial.phase-question .oracle-wordmark span { font-family: var(--font-body); font-size: 12px; }
.oracle-reading-celestial.phase-question .oracle-header-seal { width: 34px; height: 34px; margin: 12px auto 0; }
.oracle-reading-celestial .oracle-question-stage { position: relative; isolation: isolate; width: min(1100px, 100%); min-height: 720px; padding: 124px 24px 32px; margin: 0 auto; }
.oracle-reading-celestial .oracle-question-stage h1 { font-family: var(--o-display); font-size: 72px; font-weight: 400; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.oracle-question-stage h1 > span { display: flex; align-items: center; justify-content: center; }
.oracle-question-stage h1 .oracle-sigil { color: var(--o-gold); width: 96px; height: 70px; margin-left: 12px; }
.oracle-reading-celestial .oracle-question-stage > .oracle-phases { display: flex; position: relative; margin: 80px auto 0; height: 18px; }
.oracle-reading-celestial .oracle-question-stage form { width: min(700px, 100%); margin: 36px auto 0; }
.oracle-reading-celestial .oracle-question-field { height: 96px; border-radius: 32px 12px; padding: 13px 24px 22px; background: #241236d9; box-shadow: none; }
.oracle-reading-celestial .oracle-question-field textarea { min-height: 60px; height: 60px; max-height: 60px; resize: none; font-size: 21px; line-height: 1.65; padding: 3px 0; caret-color: #ecdef5; }
.oracle-reading-celestial .oracle-question-field textarea::placeholder { color: #c2add7; }
.oracle-reading-celestial .oracle-question-field:focus-within { box-shadow: 0 0 0 2px #dacbea33; }
.oracle-reading-celestial .oracle-question-stage .oracle-question-submit { margin: 36px auto 0; width: 310px; max-width: 100%; min-height: 56px; border-radius: 32px 10px; background: #33204b77; border: 1px solid #dacbea8c; }
.oracle-reading-celestial .oracle-spread-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; }
.oracle-reading-celestial .oracle-spread-choices span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 8px; white-space: nowrap; }
.oracle-reading-celestial .oracle-spread-choices input:focus-visible + span { outline-color: #e6d8f0; }
.oracle-reading-celestial .oracle-question-stage .oracle-spread-choices + .oracle-question-submit { margin-top: 24px; }
.oracle-reading-celestial .oracle-question-stage .oracle-note { margin: 8px auto; font-size: 12px; max-width: 340px; }
.oracle-reading-celestial .oracle-question-ghosts { display: block; position: absolute; z-index: -1; inset: 0; height: 740px; pointer-events: none; opacity: .62; filter: blur(3px); overflow: hidden; }
.oracle-question-ghosts > div { position: absolute; left: 50%; top: 400px; width: 146px; }
.oracle-reading-celestial .oracle-draw-title h1 { font-family: var(--o-display); font-weight: 400; }
.oracle-reading-celestial .oracle-deck-card:focus-visible { z-index: 100 !important; }
.oracle-reading-celestial .oracle-deck-card.is-deck-hover { z-index: 100 !important; }
.oracle-reading-celestial .oracle-deck-card:hover:not(:disabled) > span { transform: none; }
.oracle-reading-celestial .oracle-deck-card.is-deck-hover > span { filter: brightness(1.22); outline: 1px solid #ead6ff99; outline-offset: 2px; }
/* 阶段标题接收程序焦点供读屏定位，不把它渲染成可操作表单；按钮仍保留键盘焦点框。 */
.oracle-reading-celestial :is(h1, h2)[tabindex="-1"]:focus { outline: none; }
.oracle-reading-celestial .oracle-primary { background: #2a193bcc; border-color: #d8cfe05c; }
.oracle-reading-celestial .oracle-primary:hover { background: #3c2850; border-color: #e2d8ed8f; }
.oracle-reading-celestial .oracle-spread-choices input:checked + span { color: #f1dbc3; border-color: #d2a17db3; background: #63466c66; }
.oracle-reading-celestial.phase-result .celestial-backdrop { opacity: .65; }
.oracle-reading-celestial.phase-result .oracle-reading-text { background: #1e1131e8; }
.oracle-report-share { display: flex; align-items: center; gap: 28px; width: min(820px, 100%); margin: 36px auto 0; padding: 24px 0; border-block: 1px solid #d2a17d40; text-align: left; }
.oracle-report-code { width: 160px; min-height: 160px; flex: 0 0 160px; display: grid; place-items: center; background: #fff; border-radius: 8px; color: #1e1131; overflow: hidden; font-size: 14px; }
.oracle-report-code img { display: block; width: 160px; height: 160px; }
.oracle-report-share-body { flex: 1; min-width: 0; }
.oracle-report-share h2 { font-size: 21px; font-weight: 500; margin: 0 0 8px; }
.oracle-report-share p { font-size: 14px; line-height: 1.75; margin: 6px 0; color: var(--o-muted); }
.oracle-report-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.oracle-report-share-actions .oracle-secondary { min-height: 42px; padding: 8px 13px; font-size: 14px; }
.oracle-report-url { display: block; font-size: 13px; color: var(--o-muted); }
.oracle-report-url input { width: 100%; min-width: 0; background: #1e1131a6; border: 1px solid #d2a17d40; color: var(--o-text); border-radius: 6px; padding: 9px 10px; margin-top: 5px; font-size: 13px; }
.oracle-report-share .oracle-report-privacy { font-size: 12px; }
.oracle-report-share output { font-size: 13px; color: #e5c6a7; }
.oracle-report-code output { color: #1e1131; padding: 12px; text-align: center; }
.oracle-generation-status { display: block; min-height: 24px; margin-top: 12px; color: var(--o-muted); font-size: 13px; }
.oracle-spin, .is-spinning { animation: oracle-interface-spin .85s linear infinite; }
.oracle-reading-source { display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: min(680px, 100%); margin: 11px auto 0; padding: 7px 12px; border-radius: 999px; color: var(--o-muted); background: #e9d4ff0b; border: 1px solid #d2a17d2b; font-size: 12px; line-height: 1.5; }
.oracle-reading-source.is-ai { color: #f0d2b2; background: #d2a17d12; }
@keyframes oracle-interface-spin { to { transform: rotate(360deg); } }
.oracle-report-message { padding: 15vh 24px; text-align: center; min-height: 100svh; }
.oracle-report-message h1 { font-size: 30px; }
.oracle-report-message p { margin: 18px 0 28px; }
@media (max-width: 700px) {
  .oracle-report-share { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 8px; }
  .oracle-report-code { align-self: center; }
  .oracle-report-share-actions .oracle-secondary { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .oracle-spin, .is-spinning { animation: none !important; }
}
@media (max-width: 1050px) and (min-width: 701px) {
  .oracle-reading-celestial .celestial-sun { left: 2%; width: 64px; }
  .oracle-reading-celestial .celestial-hourglass { right: 2%; width: 48px; }
  .oracle-reading-celestial .celestial-eye { left: 2%; width: 44px; }
  .oracle-reading-celestial .celestial-lunar-seal { right: 2%; width: 46px; }
  .oracle-reading-celestial .celestial-moon { opacity: .55; }
}
@media (max-width: 700px) {
  .oracle-reading-celestial { --scene-center: 350px; }
  .oracle-reading-celestial .celestial-backdrop { height: 1200px; }
  .oracle-reading-celestial .celestial-light { height: 1040px; }
  .oracle-reading-celestial .celestial-orbit { top: 100px; }
  .oracle-reading-celestial .celestial-axis { top: 350px; }
  .oracle-reading-celestial .celestial-meridian { top: 100px; }
  .oracle-reading-celestial .celestial-sun { left: 6%; top: 91px; width: 48px; }
  .oracle-reading-celestial .celestial-hourglass { right: 7%; top: 96px; width: 36px; }
  .oracle-reading-celestial .celestial-eye { left: 6%; top: 720px; width: 32px; }
  .oracle-reading-celestial .celestial-lunar-seal { right: 6%; top: 720px; width: 34px; }
  .oracle-reading-celestial .celestial-moon { width: 36px; height: 36px; top: 334px; opacity: .52; }
  .oracle-reading-celestial .moon-left { left: 12px; }
  .oracle-reading-celestial .moon-right { right: 12px; }
  .oracle-reading-celestial.phase-question .celestial-moon { top: 157px; }
  .oracle-reading-celestial .celestial-corner { opacity: .4; }
  .oracle-reading-celestial.phase-question .oracle-header { height: 105px; width: calc(100% - 28px); padding-top: 14px; }
  .oracle-reading-celestial .oracle-wordmark { font-size: 28px; }
  .oracle-reading-celestial.phase-question .oracle-wordmark { font-size: 28px; }
  .oracle-reading-celestial.phase-question .oracle-header-seal { width: 29px; height: 29px; margin-top: 5px; }
  .oracle-reading-celestial .oracle-question-stage { min-height: 570px; padding: 64px 24px 24px; }
  .oracle-reading-celestial .oracle-question-stage h1 { font-size: 42px; line-height: 1.18; letter-spacing: -.02em; }
  .oracle-question-stage h1 .oracle-sigil { width: 60px; height: 44px; margin-left: 6px; }
  .oracle-reading-celestial .oracle-question-stage > .oracle-phases { margin-top: 34px; height: 16px; }
  .oracle-reading-celestial .oracle-question-stage form { margin-top: 22px; }
  .oracle-reading-celestial .oracle-question-field { height: 86px; padding: 11px 18px 21px; border-radius: 27px 10px; }
  .oracle-reading-celestial .oracle-question-field textarea { height: 54px; min-height: 54px; max-height: 54px; font-size: 17px; }
  .oracle-reading-celestial .oracle-question-stage .oracle-question-submit { width: 252px; min-height: 48px; margin-top: 24px; font-size: 14px; }
  .oracle-reading-celestial .oracle-spread-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
  .oracle-reading-celestial .oracle-question-ghosts { left: -27%; width: 154%; transform: scale(.65); transform-origin: 50% 35%; opacity: .5; }
  .oracle-reading-celestial .oracle-fan-board::before, .oracle-reading-celestial .oracle-fan-board::after { top: 171px; }
  .oracle-reading-celestial .oracle-reading-links a { display: inline-flex; min-height: 44px; align-items: center; }
  .oracle-reading-celestial.phase-draw .celestial-sun,
  .oracle-reading-celestial.phase-draw .celestial-hourglass { opacity: .35; }
}
