@charset "UTF-8";
:root { color-scheme: dark; --ink: #0b151c; --ink-light: #13242c; --gold: #d5b984; --gold-dim: #9d875f; --text: #ebe8de; --muted: #a2adb1; --line: #ffffff14; --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 78% 32%, #284c4930, transparent 55%), radial-gradient(ellipse at 0% 100%, #101d2830, transparent 55%); z-index: -1; }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible + .switch { outline: 2px solid var(--gold); outline-offset: 5px; }
.skip-link { position: absolute; left: 10px; top: -100px; padding: 10px; background: var(--gold); color: var(--ink); z-index: 10; }
.skip-link:focus { top: 10px; }
.site-header { max-width: 1380px; margin: 0 auto; min-height: 112px; padding: 24px 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); gap: 32px; }
.brand { display: flex; align-items: center; gap: 13px; flex: 1; }
.brand-mark { color: var(--gold); font-family: Georgia, serif; font-size: 43px; line-height: 1; transform: rotate(-20deg); }
.brand-name { font-family: var(--serif); font-size: 26px; letter-spacing: .3em; line-height: 1.2; }
.brand-english { display: block; font-family: Georgia, serif; letter-spacing: .1em; font-size: 10px; color: var(--gold-dim); margin-top: 9px; }
nav { display: flex; gap: 35px; align-items: center; }
nav button, nav a { border: 0; background: none; padding: 10px 0; font-size: 14px; color: var(--muted); position: relative; white-space: nowrap; }
nav button:hover, nav a:hover { color: var(--gold); }
nav button:disabled { opacity: .42; }
nav .nav-active { color: var(--gold); }
nav .nav-active::after { content: ""; width: 16px; height: 1px; background: var(--gold); position: absolute; bottom: 0; left: calc(50% - 8px); }
.edition { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 32px; margin-left: 30px; white-space: nowrap; letter-spacing: .06em; }
main { max-width: 1380px; margin: 0 auto; padding: 0 48px; }
.session { display: grid; grid-template-columns: minmax(330px, 430px) minmax(0, 1fr); gap: 78px; padding: 52px 0 42px; min-height: 720px; align-items: start; }
.eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--gold); }
.tiny-star { font-size: 18px; vertical-align: middle; margin-right: 9px; }
h1 { font-family: var(--serif); font-size: clamp(32px, 3.2vw, 44px); font-weight: 400; letter-spacing: .06em; line-height: 1.5; margin: 18px 0 12px; }
h1 span { color: var(--gold); }
.intro { color: var(--muted); margin: 0 0 30px; font-size: 14px; line-height: 1.9; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { font-size: 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.field-label > span { color: var(--muted); font-size: 12px; }
.textarea-wrap { position: relative; }
textarea { display: block; border: 1px solid #b5b8a929; border-radius: 6px; padding: 14px 15px 26px; background: #ffffff03; width: 100%; min-height: 102px; resize: vertical; color: var(--text); font-size: 14px; line-height: 1.8; }
textarea::placeholder { color: #84959c; }
textarea:focus { background: #ffffff05; border-color: #d5b98470; }
.character-count { position: absolute; right: 13px; bottom: 7px; font-size: 12px; color: #8d9ba1; pointer-events: none; }
.question-chips { display: flex; gap: 9px; flex-wrap: wrap; margin: 10px 0 22px; }
.question-chips button { border: 1px solid var(--line); padding: 4px 11px; border-radius: 20px; color: var(--muted); background: none; font-size: 12px; }
.question-chips button:hover { border-color: #d5b98460; color: var(--gold); }
.question-hint { margin: -12px 0 22px; color: var(--muted); font-size: 12px; }
.deck-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.deck-option { gap: 8px; }
.deck-option strong { font-size: 13px; }
.deck-option small { font-size: 11px; }
.spread-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spread-option { display: flex; align-items: center; gap: 13px; border: 1px solid #ffffff19; background: #ffffff02; border-radius: 6px; padding: 14px 13px; cursor: pointer; position: relative; }
.spread-option:has(input:checked) { border-color: #d5b98490; background: #d5b98408; }
.spread-option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.spread-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.spread-option strong { font-size: 14px; font-weight: 400; display: block; }
.spread-option small { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.spread-icon { width: 17px; height: 26px; border: 1px solid var(--gold-dim); border-radius: 2px; flex-shrink: 0; position: relative; }
.single-icon::after { content: "✧"; color: var(--gold); font-size: 13px; position: absolute; inset: 0; display: grid; place-items: center; }
.triple-icon { margin-left: 3px; margin-right: 3px; }
.triple-icon::before, .triple-icon::after { content: ""; position: absolute; width: 14px; height: 22px; border: 1px solid var(--gold-dim); border-radius: 2px; top: 1px; z-index: -1; }
.triple-icon::before { left: -5px; transform: rotate(-12deg); }.triple-icon::after { right: -5px; transform: rotate(12deg); }
.radio-mark { width: 10px; height: 10px; border: 1px solid #d5b98450; border-radius: 50%; margin-left: auto; flex-shrink: 0; }
input:checked ~ .radio-mark { border: 3px solid var(--gold); }
.reverse-option { display: flex; align-items: center; gap: 10px; margin: 19px 0 24px; font-size: 13px; cursor: pointer; }
.reverse-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 30px; height: 17px; border-radius: 20px; background: #3d4c53; padding: 3px; transition: background .2s; }
.switch::before { content: ""; display: block; width: 11px; height: 11px; border-radius: 50%; background: #d8dcd9; transition: transform .2s; }
.reverse-option input:checked + .switch { background: #a88f60; }
.reverse-option input:checked + .switch::before { transform: translateX(13px); background: #fff0cd; }
.reverse-note { margin-left: auto; font-size: 12px; color: var(--muted); }
fieldset:disabled { opacity: .5; }
fieldset:disabled label { cursor: default; }
.primary-button { width: 100%; border: 1px solid #dfc591; border-radius: 5px; padding: 13px 20px; background: var(--gold); color: #202b2c; font-size: 15px; letter-spacing: .08em; display: flex; align-items: center; justify-content: center; gap: 12px; transition: background .2s, transform .2s; }
.primary-button:hover:not(:disabled) { background: #e5cea5; transform: translateY(-1px); }
.primary-button:disabled { background: #998761; border-color: #998761; color: #10232a; }
.primary-button > span:first-child { font-size: 20px; line-height: 1; }
.restart-button { display: block; margin: 11px auto 0; border: 0; border-bottom: 1px solid #d5b98440; padding: 3px 0; background: none; color: var(--gold); font-size: 13px; }
.privacy-note { text-align: center; color: #8c9da5; font-size: 12px; margin: 10px 0 0; }
.ritual-panel { min-width: 0; padding-top: 5px; }
.progress { margin: 0; padding: 0 4px; list-style: none; display: flex; justify-content: space-between; gap: 20px; color: #8b9aa1; font-size: 12px; }
.progress li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.progress li span { font-family: Georgia, serif; letter-spacing: .08em; color: #8d9a9f; }
.progress li.active, .progress li.active span { color: var(--gold); }
.progress li.done { color: #b4b8ac; }
.ritual-stage { position: relative; min-height: 560px; padding-top: 55px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.orbit { position: absolute; border: 1px solid #d5b98410; border-radius: 50%; pointer-events: none; left: 50%; transform: translateX(-50%); z-index: -1; }
.orbit-one { top: 28px; width: 470px; height: 470px; }.orbit-two { top: 63px; width: 400px; height: 400px; border-style: dashed; border-color: #d5b9840d; }
.stage-star { position: absolute; color: var(--gold-dim); }.star-one { left: 4%; top: 140px; font-size: 30px; }.star-two { right: 9%; top: 410px; font-size: 16px; }
.preview-cards { width: 100%; height: 420px; position: relative; }
.tarot-card { background: #102129; border: 1px solid #b1945d; border-radius: 7px; overflow: hidden; box-shadow: 0 16px 42px #0006; position: relative; }
.preview-cards .tarot-card { position: absolute; top: 8px; left: 50%; width: 200px; }
.preview-fool { transform: translateX(calc(-50% - 140px)) rotate(-13deg); z-index: 1; margin-top: 30px; }
.preview-star { transform: translateX(-50%); z-index: 3; }
.preview-moon { transform: translateX(calc(-50% + 140px)) rotate(13deg); z-index: 2; margin-top: 30px; }
.tarot-card img { width: 100%; display: block; height: auto; }
.card-number { background: #102129; text-align: center; height: 26px; line-height: 26px; font-family: Georgia, serif; font-size: 11px; color: var(--gold); letter-spacing: .14em; }
.card-caption { display: flex; flex-direction: column; text-align: center; color: var(--gold); padding: 9px 6px 10px; background: #102129; }
.card-caption > span { font-family: var(--serif); font-size: 18px; line-height: 1.5; letter-spacing: .2em; padding-left: .2em; }
.card-caption > small { font-family: Georgia, serif; font-size: 9px; line-height: 1.5; letter-spacing: .2em; margin-top: 3px; }
.stage-message { text-align: center; position: relative; margin-top: 16px; max-width: 100%; padding: 0 10px; }
.stage-message p { margin: 0 0 8px; font-family: var(--serif); font-size: 19px; letter-spacing: .15em; color: #d7d4c4; }
.stage-message > span { font-size: 12px; color: #91a1a6; }
.deck-credit { display: flex; justify-content: center; align-items: center; gap: 15px; color: #a99c80; font-size: 12px; letter-spacing: .1em; }
.deck-credit i { font-style: normal; opacity: .5; padding: 0 6px; }
.credit-line { width: 40px; height: 1px; background: #d5b9842a; }
.draw-area { width: 100%; min-height: 383px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.selected-cards { display: flex; justify-content: center; gap: 15px; width: 100%; }
.selected-slot { min-width: 0; width: 184px; display: flex; flex-direction: column; align-items: center; }
.position-label { color: #b1b8b4; font-size: 12px; letter-spacing: .12em; margin-top: 9px; text-align: center; }
.empty-card { width: 118px; height: 177px; border: 1px dashed #d5b98448; border-radius: 6px; display: grid; place-items: center; color: #d5b98460; font-size: 24px; background: #d5b98403; }
.deck-cards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 600px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #9d875f #13242c; scrollbar-width: thin; padding: 14px 8px 10px; }
.deck-card { width: 100%; height: auto; aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; border-radius: 5px; transition: transform .25s, opacity .25s; }
.deck-card:hover:not(:disabled) { transform: translateY(-10px); }.deck-card:focus-visible { transform: translateY(-10px); }
.deck-card.is-picked { opacity: .16; transform: translateY(-5px); }
.card-back { width: 100%; height: 100%; border: 1px solid #ab8d58; border-radius: 6px; background: repeating-linear-gradient(45deg, transparent, transparent 12px, #bca27307 12px, #bca27307 13px), #132730; position: relative; display: grid; place-items: center; box-shadow: 0 10px 22px #0003; }
.card-back::before, .card-back::after { content: ""; position: absolute; inset: 7px; border: 1px solid #a389504f; border-radius: 3px; }
.card-back::after { inset: 11px; border-color: #a3895020; }
.back-corner { position: absolute; color: var(--gold-dim); font-size: 18px; line-height: 1; }.top-left { top: 13px; left: 13px; }.bottom-right { bottom: 13px; right: 13px; transform: rotate(180deg); }
.back-center { width: 55%; aspect-ratio: 1; border: 1px solid #b19a6350; border-radius: 50%; position: relative; display: grid; place-items: center; }
.back-center::before { content: ""; position: absolute; inset: 7px; border: 1px solid #b19a6333; transform: rotate(45deg); }
.back-moon { position: absolute; font-size: clamp(16px, 2vw, 27px); color: var(--gold); font-family: Georgia, serif; line-height: 1; left: 50%; top: 50%; }
.moon-upper { transform: translate(-50%, -80%) rotate(-25deg); }.moon-lower { transform: translate(-50%, -20%) rotate(155deg); }
.is-shuffling .deck-card { animation: shuffle 1s ease-in-out infinite; animation-delay: var(--shuffle-delay, 0s); }
@keyframes shuffle { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.flip-card { width: 184px; height: 364px; padding: 0; border: 0; background: none; perspective: 1000px; border-radius: 7px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.flip-card.is-revealed .flip-inner { transform: rotateY(180deg); }
.flip-card.is-revealed:hover .card-face { border-color: #edd2a1; box-shadow: 0 16px 42px #0006, 0 0 18px #d5b98430; }
.flip-inner > .card-back, .flip-inner > .card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-inner > .card-face { transform: rotateY(180deg); }
.flip-inner .card-face { display: grid; grid-template-rows: 25px minmax(0, 1fr) 60px; }
.flip-inner .card-art img { height: 100%; object-fit: contain; }
.flip-inner .card-caption { padding: 6px; }.flip-inner .card-number { height: 25px; line-height: 25px; }
.card-art { overflow: hidden; }.card-art img { display: block; width: 100%; height: auto; }
.reversed-art img { transform: rotate(180deg); }
.orientation { color: var(--gold); font-size: 12px; margin-top: 5px; }
.three-mode .selected-slot { width: calc((100% - 30px) / 3); max-width: 166px; }
.three-mode .flip-card { width: 100%; height: auto; aspect-ratio: .505; }
.three-mode .card-number { height: 22px; line-height: 22px; }
.three-mode .card-caption > span { font-size: 16px; }.three-mode .card-caption > small { font-size: 9px; letter-spacing: .07em; }
.three-mode .flip-inner .card-face { grid-template-rows: 22px minmax(0, 1fr) 57px; }
.ritual-stage[data-phase="choosing"] .flip-card { width: 118px; height: 177px; aspect-ratio: auto; }
.three-mode .stage-message { margin-top: 14px; }
.reading { border-top: 1px solid #d5b9842a; padding: 44px 0 52px; scroll-margin-top: 25px; }
.reading-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: .05em; margin: 8px 0 0; }
.sample-label { font-size: 12px; color: var(--gold); border: 1px solid #d5b98440; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.reading-question { color: var(--muted); margin: 20px 0; font-size: 14px; overflow-wrap: anywhere; }
.reading-summary { border: 1px solid #d5b98436; background: linear-gradient(110deg, #d5b98409, #14282a50); padding: 23px 28px; display: flex; gap: 25px; align-items: center; border-radius: 6px; }
.summary-symbol { font-size: 39px; line-height: 1; color: var(--gold); }
.reading-summary h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--gold); margin: 0 0 6px; letter-spacing: .08em; }
.reading-summary p { margin: 0; color: #b8c0bf; font-size: 16px; line-height: 1.9; }
#reading-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
#reading-details.single-reading { grid-template-columns: minmax(0, 760px); }
.reading-card { border-top: 1px solid #d5b98445; padding-top: 19px; }
.detail-heading { display: flex; justify-content: space-between; color: #a6b1b3; font-size: 12px; }.detail-orientation { color: var(--gold); }
.reading-card h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; margin: 8px 0 12px; }
.meaning-tags { display: flex; gap: 8px; flex-wrap: wrap; }.meaning-tags span { font-size: 12px; color: #c0b18f; border: 1px solid #d5b98426; padding: 2px 8px; border-radius: 3px; }
.context-meaning { color: #b4bebf; font-size: 16px; line-height: 1.9; }
.practical-action { border-left: 2px solid var(--gold-dim); padding-left: 13px; margin: 23px 0; }
.practical-action h4 { font-weight: 400; color: var(--gold); font-size: 14px; margin: 0 0 5px; }.practical-action p { font-size: 16px; color: #c5cdca; margin: 0; line-height: 1.9; }
.reflection { color: var(--muted); font-size: 14px; line-height: 1.9; }
.meaning-button { min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid #d5b98450; color: var(--gold); background: none; font-size: 13px; text-align: left; }
.reading-note { font-size: 12px; color: var(--muted); margin: 35px 0 0; }
.site-footer { max-width: 1380px; margin: 0 auto; border-top: 1px solid var(--line); padding: 22px 48px; display: flex; justify-content: space-between; gap: 20px; color: #91a0a5; font-size: 12px; letter-spacing: .04em; }
.site-footer > span:first-child { color: #a5ab9f; }.site-footer > span:first-child > span { margin: 0 8px; }
dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 50px); overflow-y: auto; border: 1px solid #d5b98460; border-radius: 10px; color: var(--text); background: #102028; padding: 30px 36px; box-shadow: 0 20px 100px #0008; }
dialog::backdrop { background: #030a0ed9; backdrop-filter: blur(8px); }
.collection-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.collection-heading p { font-size: 14px; color: var(--muted); margin: 10px 0 25px; }
.close-button { border: 1px solid #d5b98430; background: none; width: 36px; height: 36px; border-radius: 50%; color: var(--gold); font-size: 25px; line-height: 1; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }.collection-card .tarot-card { max-width: 235px; margin: 0 auto; }.collection-card p { color: #a9b6b9; font-size: 14px; line-height: 1.9; }
.collection-controls { margin-bottom: 24px; }
.collection-search-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
#collection-search { display: block; width: 100%; padding: 11px 13px; border: 1px solid #d5b98440; border-radius: 5px; background: #ffffff03; color: var(--text); font-size: 14px; }
#collection-search::placeholder { color: #91a1a6; }
#collection-search:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.collection-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.collection-filter { border: 1px solid #d5b98430; background: none; color: var(--muted); padding: 5px 11px; border-radius: 20px; font-size: 12px; }
.collection-filter[aria-pressed="true"] { color: var(--gold); border-color: #d5b98490; background: #d5b9840b; }
.collection-count { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.collection-empty { padding: 25px 0; color: var(--muted); font-size: 14px; }
.collection-note { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.collection-note a { color: var(--gold); margin-left: 7px; text-decoration: underline; text-underline-offset: 3px; }
.collection-details { border-top: 1px solid #d5b98425; padding: 8px 0; color: var(--muted); font-size: 14px; }
.collection-details summary { cursor: pointer; color: var(--gold); padding: 4px 0; }
.collection-details summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.collection-meaning h3 { color: #d4c4a2; font-size: 14px; font-weight: 400; line-height: 1.8; margin: 15px 0 5px; }
.collection-meaning p { margin: 5px 0; font-size: 14px; line-height: 1.9; text-align: left; }
.collection-meaning .collection-action { color: #c3cbc7; }
.card-meaning-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 30px; align-items: start; }
.card-meaning-layout .tarot-card { max-width: 210px; margin: 0 auto; }
.card-meaning-section { border: 1px solid var(--line); border-radius: 6px; padding: 17px 19px; margin-bottom: 16px; }
.card-meaning-section.is-drawn { border-color: #d5b98470; background: #d5b98407; }
.meaning-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.meaning-heading h3 { margin: 0; color: var(--gold); font-family: var(--serif); font-size: 21px; font-weight: 400; }
.drawn-badge { font-size: 11px; color: var(--gold); border: 1px solid #d5b98440; border-radius: 20px; padding: 2px 8px; }
.card-meaning-section .context-meaning, .card-meaning-section .practical-action p { font-size: 14px; }
.card-meaning-section .practical-action { margin: 18px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1500px) { .session { padding-top: 65px; } }
@media (max-width: 1180px) {
  .deck-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .session { gap: 36px; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); }
  .site-header, main, .site-footer { padding-left: 32px; padding-right: 32px; }
  .edition { margin-left: 0; padding-left: 22px; }
  .preview-cards .tarot-card { width: 172px; }.preview-fool { transform: translateX(calc(-50% - 110px)) rotate(-12deg); }.preview-moon { transform: translateX(calc(-50% + 110px)) rotate(12deg); }
  .preview-cards { height: 390px; }.orbit-one { width: 380px; height: 380px; }.orbit-two { width: 320px; height: 320px; }
  .ritual-stage { padding-top: 65px; min-height: 560px; }.selected-cards { gap: 10px; }.three-mode .selected-slot { width: calc((100% - 20px) / 3); }
  .progress { gap: 8px; }.progress li { gap: 5px; font-size: 12px; }
}
@media (max-width: 940px) {
  .site-header { padding: 20px 24px; min-height: 95px; }.edition { display: none; } nav { gap: 24px; }
  main { padding: 0 24px; }.session { grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 28px; padding-top: 38px; }
  h1 { font-size: 34px; letter-spacing: .025em; }.spread-options { gap: 7px; }.spread-option { padding: 11px 9px; gap: 8px; }
  .spread-icon { display: none; }.spread-option small { font-size: 12px; }
  .preview-cards .tarot-card { width: 145px; }.preview-fool { transform: translateX(calc(-50% - 75px)) rotate(-11deg); }.preview-moon { transform: translateX(calc(-50% + 75px)) rotate(11deg); }
  .preview-cards { height: 355px; }.orbit-one { width: 300px; height: 300px; }.orbit-two { width: 260px; height: 260px; }
  .progress { flex-wrap: wrap; justify-content: center; gap: 7px 15px; }.ritual-stage { padding-top: 60px; min-height: 520px; }
  .three-mode .card-caption > span { font-size: 14px; letter-spacing: .08em; padding-left: 0; }.three-mode .card-caption > small { font-size: 8px; }.three-mode .card-number { font-size: 9px; }
  .three-mode .flip-inner .card-face { grid-template-rows: 22px minmax(0, 1fr) 48px; }
  .three-mode .flip-card { aspect-ratio: .44; }.three-mode .card-caption { padding: 4px 2px; }
  .empty-card { width: 75px; height: 112px; }.ritual-stage[data-phase="choosing"] .flip-card { width: 75px; height: 112px; }
  .site-footer { padding: 22px 24px; } #reading-details { gap: 22px; }
}
@media (max-width: 720px) {
  .site-header { gap: 15px; padding: 17px 20px; min-height: 88px; }.brand { gap: 8px; }.brand-name { font-size: 23px; }.brand-mark { font-size: 35px; }.brand-english { font-size: 8px; } nav { gap: 17px; } nav a, nav button { font-size: 12px; }
  nav #reading-nav { display: none; }
  main { padding: 0 22px; }.session { display: flex; flex-direction: column; gap: 35px; padding: 30px 0; }.question-panel { width: 100%; }
  h1 { font-size: 34px; margin-top: 15px; line-height: 1.45; } h1 br { display: none; }.intro { margin-bottom: 24px; }.intro br { display: none; }
  .spread-options { gap: 12px; }.spread-option { padding: 13px; gap: 13px; }.spread-icon { display: block; }
  .ritual-panel { width: 100%; }.progress { justify-content: space-between; flex-wrap: nowrap; gap: 5px; }.ritual-stage { min-height: 490px; padding-top: 42px; }
  .preview-cards .tarot-card { width: clamp(124px, 37vw, 160px); }.preview-fool { transform: translateX(calc(-50% - clamp(54px, 17vw, 83px))) rotate(-11deg); }.preview-moon { transform: translateX(calc(-50% + clamp(54px, 17vw, 83px))) rotate(11deg); }
  .preview-cards { height: 375px; }.orbit-one { top: 16px; width: 330px; height: 330px; }.orbit-two { top: 46px; width: 280px; height: 280px; }.star-one { left: 0; top: 340px; }.star-two { right: 3%; top: 60px; }
  .draw-area { min-height: 355px; gap: 25px; }.empty-card { width: 86px; height: 129px; }.ritual-stage[data-phase="choosing"] .flip-card { width: 86px; height: 129px; }
  .selected-cards { gap: 10px; }.three-mode .selected-slot { max-width: 143px; }.three-mode .flip-card { aspect-ratio: .47; }.three-mode .card-caption > small { font-size: 8px; }
  .stage-message p { font-size: 17px; }.stage-message > span { font-size: 12px; }.stage-message { margin-top: 10px; }
  .reading { padding: 30px 0; }.reading-heading { align-items: flex-start; }.reading-heading h2 { font-size: 23px; }.sample-label { font-size: 11px; padding: 3px 8px; }
  .reading-summary { padding: 20px; gap: 15px; }.summary-symbol { font-size: 29px; } .reading-summary h3 { font-size: 21px; }
  #reading-details { grid-template-columns: 1fr; gap: 25px; }.reading-card h3 { font-size: 26px; }
  .site-footer { flex-direction: column; gap: 5px; padding: 20px 22px; }
  dialog { padding: 25px 22px; }.collection-grid { grid-template-columns: 1fr; gap: 25px; }.collection-card .tarot-card { max-width: 260px; }.collection-card .collection-symbols { text-align: center; margin-bottom: 8px; }
  .card-meaning-layout { grid-template-columns: 1fr; gap: 22px; }.card-meaning-layout .tarot-card { max-width: 160px; }.card-meaning-section { padding: 15px; }
}
@media (max-width: 370px) {
  .deck-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  main { padding: 0 16px; }.site-header { padding: 15px 16px; } nav { gap: 10px; } h1 { font-size: 30px; }
  .preview-cards .tarot-card { width: 124px; }.preview-fool { transform: translateX(calc(-50% - 54px)) rotate(-10deg); }.preview-moon { transform: translateX(calc(-50% + 54px)) rotate(10deg); }
  .orbit-one { width: 280px; height: 280px; }.orbit-two { width: 240px; height: 240px; }.preview-cards { height: 350px; }
  .spread-option { gap: 9px; padding: 11px 10px; }.spread-icon { display: none; }.reverse-note { font-size: 11px; }
  .three-mode .flip-card { aspect-ratio: .44; }.reading-heading { display: block; }.sample-label { display: inline-block; margin-top: 12px; }
}
@media (max-width: 440px) { .spread-icon { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* —— 账户与记录 —— */
.record-actions { margin: 26px auto 0; max-width: 520px; text-align: center; }
.save-record-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #d5b98480; border-radius: 5px; padding: 12px 26px; background: #ffffff05; color: var(--gold); font-size: 14px; letter-spacing: .08em; transition: background .2s, transform .2s, border-color .2s; }
.save-record-button:hover:not(:disabled) { background: #d5b98414; border-color: var(--gold); transform: translateY(-1px); }
.save-record-button.is-saved { border-color: #d5b98430; color: var(--gold-dim); background: none; transform: none; }
.save-record-button > span:first-child { font-size: 18px; line-height: 1; }
.record-hint { color: #8c9da5; font-size: 12px; margin: 10px 0 0; }


.records-list { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.record-item { border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; background: #ffffff03; }
.record-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.record-time { font-family: Georgia, serif; letter-spacing: .04em; color: var(--gold-dim); }
.record-spread::before, .record-scope::before { content: "·"; margin-right: 8px; color: var(--line); }
.record-summary { font-family: var(--serif); font-size: 15px; letter-spacing: .06em; color: var(--text); margin: 10px 0 0; }
.record-question { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.record-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.record-chip { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px 8px 8px; background: #ffffff05; }
.record-chip.is-reversed .record-art { transform: rotate(180deg); }
.record-art { width: 40px; height: 60px; border-radius: 3px; overflow: hidden; flex: none; transition: transform .3s; }
.record-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.record-chip-text { display: flex; flex-direction: column; }
.record-chip-name { font-size: 13px; }
.record-chip-text small { color: var(--muted); font-size: 11px; }
.record-footer { display: flex; justify-content: flex-end; margin-top: 12px; }
.record-delete { border: 1px solid #ffffff1a; background: none; border-radius: 4px; padding: 5px 14px; color: var(--muted); font-size: 12px; }
.record-delete:hover { color: var(--gold); border-color: #d5b98460; }
.record-delete.is-confirming { color: #e0a696; border-color: #d98a7a60; }
.records-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0 10px; }
.records-footer { display: flex; justify-content: center; margin-top: 22px; }
.logout-button { border: 0; border-bottom: 1px solid #d5b98440; padding: 3px 0; background: none; color: var(--gold); font-size: 13px; }
.auth-toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 50; border: 1px solid #d5b98460; border-radius: 6px; padding: 10px 22px; background: #102028; color: var(--text); font-size: 13px; box-shadow: 0 12px 44px #000a; }

@media (max-width: 720px) {
  .record-actions { max-width: none; }
  .record-chip { flex: 1 1 calc(50% - 10px); }
}


/* —— 独立登录页 —— */
.login-page { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 48px 20px; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.login-brand .brand-mark { color: var(--gold); font-family: Georgia, serif; font-size: 60px; line-height: 1; transform: rotate(-20deg); }
.login-brand .brand-name { font-family: var(--serif); font-size: 30px; letter-spacing: .42em; text-indent: .42em; }
.login-brand .brand-english { display: block; font-family: Georgia, serif; letter-spacing: .3em; font-size: 10px; color: var(--gold-dim); margin-top: 8px; text-indent: .3em; }
.login-tagline { color: var(--muted); font-size: 13px; letter-spacing: .14em; margin: 4px 0 0; }
.login-card { width: min(420px, 100%); border: 1px solid #d5b98440; border-radius: 12px; padding: 28px 30px 24px; background: #102028; box-shadow: 0 24px 90px #0009; }
.login-title { font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: .2em; margin: 0 0 18px; text-align: center; }
.login-tabs { display: flex; gap: 26px; justify-content: center; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.login-tab { border: 0; background: none; padding: 8px 2px; font-size: 14px; color: var(--muted); position: relative; }
.login-tab.is-active { color: var(--gold); }
.login-tab.is-active::after { content: ""; width: 100%; height: 1px; background: var(--gold); position: absolute; bottom: -1px; left: 0; }
.login-form label { margin-top: 6px; }
.login-form input { display: block; border: 1px solid #b5b8a929; border-radius: 6px; padding: 11px 14px; background: #ffffff03; width: 100%; color: var(--text); font-size: 14px; }
.login-form input::placeholder { color: #7c8a90; }
.login-error { border: 1px solid #d98a7a40; border-radius: 6px; padding: 9px 12px; margin: 14px 0 0; background: #d98a7a14; color: #e0a696; font-size: 13px; }
.login-submit { width: 100%; margin-top: 20px; border: 1px solid #dfc591; border-radius: 5px; padding: 13px 20px; background: var(--gold); color: #202b2c; font-size: 15px; letter-spacing: .1em; display: flex; align-items: center; justify-content: center; gap: 12px; transition: background .2s, transform .2s; }
.login-submit:hover:not(:disabled) { background: #e5cea5; transform: translateY(-1px); }
.login-submit:disabled { background: #998761; border-color: #998761; color: #10232a; }
.login-submit > span:first-child { font-size: 20px; line-height: 1; }
.login-switch { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.login-switch button { border: 0; background: none; color: var(--gold); font-size: 13px; padding: 0; }
.login-switch button:hover { text-decoration: underline; }
.login-note { color: #7c8a90; font-size: 12px; line-height: 1.8; margin: 18px 0 0; }

/* —— 登录页提示 —— */
.login-notice { border: 1px solid #d5b98450; border-left: 2px solid var(--gold); border-radius: 6px; padding: 10px 14px; margin: 0 0 16px; background: #d5b9840f; color: var(--text); font-size: 13px; line-height: 1.7; }

/* —— 管理后台入口 —— */
.nav-admin { border: 1px solid #d5b98440; border-radius: 4px; padding: 6px 12px !important; color: var(--gold) !important; font-size: 13px; }
.nav-admin:hover { border-color: var(--gold); background: #d5b98414; }

/* —— 管理后台 —— */
.admin-body { padding-bottom: 60px; }
.admin-header { max-width: 1100px; margin: 0 auto; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.admin-brand { display: flex; align-items: center; gap: 13px; }
.admin-brand .brand-mark { color: var(--gold); font-family: Georgia, serif; font-size: 38px; line-height: 1; transform: rotate(-20deg); }
.admin-brand .brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: .3em; }
.admin-brand .brand-english { display: block; font-family: Georgia, serif; letter-spacing: .1em; font-size: 9px; color: var(--gold-dim); margin-top: 7px; }
.admin-nav { display: flex; align-items: center; gap: 22px; }
.admin-nav a, .admin-nav button { border: 0; background: none; padding: 6px 0; color: var(--muted); font-size: 13px; }
.admin-nav a:hover, .admin-nav button:hover { color: var(--gold); }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 34px 32px 0; }
.admin-title h1 { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: .12em; margin: 0 0 8px; }
.admin-title p { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; background: #ffffff03; display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: var(--serif); font-size: 27px; line-height: 1.1; color: var(--text); }
.stat-label { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.stat-card.is-pending { border-color: #d5b98445; }
.stat-card.is-pending .stat-value { color: var(--gold); }
.stat-card.is-approved .stat-value { color: #8fc7a4; }
.stat-card.is-rejected .stat-value { color: #d98a7a; }
.stat-card.is-active .stat-value { color: #8fc7a4; }
.admin-usage-panel { margin-bottom: 26px; }
.admin-usage-panel .admin-stats { margin-bottom: 0; }
.admin-panel { border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; background: #ffffff03; }
.admin-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.admin-panel-head h2 { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: .12em; margin: 0; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-filter { border: 1px solid #ffffff1a; border-radius: 4px; padding: 6px 13px; background: none; color: var(--muted); font-size: 12px; }
.admin-filter:hover { color: var(--gold); border-color: #d5b98460; }
.admin-filter[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: #d5b98414; }
.admin-error { border: 1px solid #d98a7a40; border-radius: 6px; padding: 10px 14px; margin: 0 0 16px; background: #d98a7a14; color: #e0a696; font-size: 13px; }
.admin-users { display: flex; flex-direction: column; gap: 12px; }
.admin-user { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-left: 2px solid #ffffff1a; border-radius: 8px; padding: 14px 18px; background: #ffffff03; }
.admin-user.is-pending { border-left-color: var(--gold); }
.admin-user.is-approved { border-left-color: #8fc7a4; }
.admin-user.is-rejected { border-left-color: #d98a7a; opacity: .78; }
.admin-user-info { min-width: 0; }
.admin-user-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-username { font-family: var(--serif); font-size: 16px; letter-spacing: .08em; }
.admin-user-meta { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.admin-user-usage { color: var(--muted); font-size: 12px; margin: 4px 0 0; opacity: .85; }
.status-chip { border: 1px solid #ffffff1f; border-radius: 999px; padding: 2px 10px; font-size: 11px; color: var(--muted); }
.status-chip.is-pending { color: var(--gold); border-color: #d5b98460; }
.status-chip.is-approved { color: #8fc7a4; border-color: #8fc7a450; }
.status-chip.is-rejected { color: #d98a7a; border-color: #d98a7a50; }
.role-badge { border: 1px solid #7fa8d550; border-radius: 999px; padding: 2px 10px; font-size: 11px; color: #9dc0e4; }
.admin-user-actions { display: flex; align-items: center; gap: 10px; }
.admin-note { color: #7c8a90; font-size: 12px; }
.admin-button { border: 1px solid #d5b98480; border-radius: 5px; padding: 7px 18px; background: none; color: var(--gold); font-size: 13px; transition: background .2s, border-color .2s; }
.admin-button:hover { background: #d5b98414; border-color: var(--gold); }
.admin-button.is-danger { border-color: #d98a7a60; color: #d98a7a; }
.admin-button.is-danger:hover { background: #d98a7a14; border-color: #d98a7a; }
.admin-button.is-confirming { border-color: #d98a7a; background: #d98a7a1f; }
.admin-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 0 10px; }

@media (max-width: 720px) {
  .admin-header { flex-direction: column; align-items: flex-start; padding: 20px 20px; }
  .admin-main { padding: 24px 20px 0; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-user { align-items: flex-start; }
  .admin-user-actions { width: 100%; justify-content: flex-end; }
}

/* —— 登录页 · 抽牌流程预览 —— */
.login-layout { width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 58px; align-items: start; }
.login-layout .login-card { width: 100%; }

/* —— 修改密码 —— */
.password-dialog { width: min(440px, calc(100% - 32px)); }
.password-form label { margin-top: 6px; }
.password-success { border: 1px solid #8fc7a450; border-left: 2px solid #8fc7a4; border-radius: 6px; padding: 10px 14px; margin: 14px 0 0; background: #8fc7a40f; color: #b6ddc5; font-size: 13px; line-height: 1.7; }

/* —— 后台 · 添加用户 —— */
.admin-add { margin-bottom: 22px; }
.admin-panel-head .admin-note { margin: 0; }
.admin-add-form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .9fr) auto; gap: 12px 14px; align-items: end; }
.admin-add-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.admin-add-field .field-label { margin-bottom: 0; }
.admin-add-form input, .admin-add-form select { display: block; border: 1px solid #b5b8a929; border-radius: 6px; padding: 10px 13px; background: #ffffff03; width: 100%; color: var(--text); font-size: 14px; }
.admin-add-form input::placeholder { color: #7c8a90; }
.admin-add-form select { cursor: pointer; }
.admin-add-form .admin-error { grid-column: 1 / -1; margin: 0; }
.admin-add-form button { white-space: nowrap; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .admin-add-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .login-ritual .preview-cards .tarot-card { width: 132px; }
  .login-ritual .preview-fool { transform: translateX(calc(-50% - 92px)) rotate(-13deg); }
  .login-ritual .preview-moon { transform: translateX(calc(-50% + 92px)) rotate(13deg); }
  .admin-add-form { grid-template-columns: minmax(0, 1fr); }
}
.records-footer { gap: 22px; }

/* —— 会员版 AI 解读 —— */
.ai-panel { border: 1px solid #d5b98440; border-radius: 10px; padding: 22px 24px; margin-top: 30px; background: #d5b98408; }
.ai-head h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: .1em; margin: 9px 0 0; }
.ai-tier-badge { margin-left: 12px; border: 1px solid #d5b98470; border-radius: 999px; padding: 1px 9px; font-size: 11px; color: var(--gold); letter-spacing: .08em; }
.ai-note { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 12px 0 0; }
.ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 16px; }
.ai-button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #dfc591; border-radius: 5px; padding: 11px 22px; background: var(--gold); color: #202b2c; font-size: 14px; letter-spacing: .06em; transition: background .2s, transform .2s; }
.ai-button:hover:not(:disabled) { background: #e5cea5; transform: translateY(-1px); }
.ai-button:disabled { background: #998761; border-color: #998761; color: #10232a; }
.ai-button > span:first-child { font-size: 17px; line-height: 1; }
.ai-open { display: inline-flex; gap: 16px; font-size: 13px; }
.ai-open a { color: var(--gold-dim); border-bottom: 1px solid #d5b98440; padding-bottom: 1px; }
.ai-open a:hover { color: var(--gold); }
.ai-status { color: var(--gold); font-size: 13px; margin: 14px 0 0; }
.ai-locked { border: 1px solid #d5b98440; border-left: 2px solid var(--gold); border-radius: 6px; padding: 10px 14px; margin: 16px 0 0; background: #d5b9840f; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ai-preview-wrap { margin-top: 18px; }
.ai-preview { display: block; width: 100%; border: 1px solid #b5b8a929; border-radius: 6px; padding: 14px 15px; background: #ffffff03; color: var(--text); font-size: 13px; line-height: 1.9; resize: vertical; }

/* —— 后台 · 会员等级 —— */
.tier-select { border: 1px solid #ffffff1f; border-radius: 4px; padding: 6px 10px; background: #102028; color: var(--text); font-size: 12px; cursor: pointer; }
.tier-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.admin-add-form select { appearance: none; }

/* —— Plus：页面内 AI 解读 —— */
.ai-link { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 4px 0; }
.ai-link:hover { color: var(--gold); }
.ai-result-wrap { margin-top: 20px; }
.ai-result-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.ai-result-head .field-label { margin-bottom: 0; }
.ai-usage { color: var(--gold-dim); font-size: 12px; }
.ai-result { margin-top: 10px; border: 1px solid #d5b98445; border-radius: 6px; padding: 16px 18px; background: #ffffff04; color: var(--text); font-size: 14px; line-height: 2; white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow-y: auto; }
.record-ai { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.record-ai summary { color: var(--gold); font-size: 13px; cursor: pointer; }
.record-ai-text { margin-top: 10px; color: var(--text); font-size: 13px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow-y: auto; }
.admin-panel-head > div > .admin-note { margin: 6px 0 0; }
.ai-result { max-height: 520px; }
