/* Reading pages keep the room's paper, brass and ink, without covering the text with scenery. */
.tarot-room.story-room[data-step=letter].t-without-scene .t-main{height:100dvh;min-height:0;box-sizing:border-box;padding:70px max(4%,calc((100vw - 1020px)/2)) 65px;display:flex;flex-direction:column;gap:12px}
.tarot-room[data-step=letter] .t-main>.t-heading{flex:none;margin:0;text-align:center;text-shadow:0 2px 8px #000}
.tarot-room[data-step=letter] .t-heading h1{margin:0;font-size:25px}.tarot-room[data-step=letter] .t-heading .t-eyebrow{display:none}
.t-reading-workspace{min-height:0;flex:1;display:flex;flex-direction:column;background:linear-gradient(100deg,#ceba95,#f0e3c7 7%,#eadbb9 94%,#c5ab7f);border:1px solid #a78a53;outline:1px solid #e3c68766;outline-offset:4px;border-radius:3px 8px 3px 5px;color:#4b3421;box-shadow:0 16px 60px #000b,inset 0 0 45px #9e783b33;overflow:hidden}
.t-reading-question{padding:16px 30px 12px;text-align:center;border-bottom:1px solid #a58b5b66}.t-reading-question>span{font-size:10px;letter-spacing:3px;color:#886a42}.t-reading-question>p{margin:6px 0 0;font-size:17px;line-height:1.5;overflow-wrap:anywhere;max-height:3em;overflow:auto}
.t-reading-tabs{display:flex;flex:none;border-bottom:1px solid #9e805066;padding:0 20px;gap:12px}.tarot-room .t-reading-tabs>button{flex:1;min-height:46px;border:0;border-radius:0;background:none;color:#806441;font:inherit;font-size:14px;letter-spacing:1px;box-shadow:none;transform:none}.tarot-room .t-reading-tabs>button[aria-selected=true]{color:#5f3524;box-shadow:inset 0 -2px #85512f}
.tarot-room .t-reading-tabs,.tarot-room .t-reading-tools{margin:0}.tarot-room .t-reading-tabs>button,.tarot-room .t-reading-tools>button{display:block}
.t-reading-pages{flex:1;min-height:0;position:relative}.t-reading-page{height:100%;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:20px 28px;scrollbar-color:#9e8050 transparent;scrollbar-width:thin}.t-reading-page[hidden],.t-new-question[hidden]{display:none!important}
.t-reading-page .t-letter{max-width:none;width:100%;box-sizing:border-box;margin:16px auto;padding:20px 14px;background:none;border:0;outline:0;box-shadow:none;animation:none}.t-reading-page .t-letter-head{font-size:12px;padding-bottom:14px}.t-reading-page .t-letter>p{min-height:100px;font:18px/2 'STKaiti','KaiTi',serif;white-space:pre-wrap}.t-reading-page .t-letter-sign{font-size:30px}.t-reading-page .t-letter-controls{font-size:11px;gap:12px}.t-reading-page .t-letter-controls select{width:65px;color:#543a24;background:#fbf3df88;border:1px solid #b39b73}.t-reading-page .t-actions{margin:16px auto 8px;flex-wrap:wrap;gap:12px}
.tarot-room .t-reading-workspace .t-quiet{color:#755332!important;font:inherit;font-size:12px;letter-spacing:.6px;min-height:36px}.tarot-room .t-reading-workspace .t-brass{background:linear-gradient(#75562d,#543c22);color:#f2dfb7;border-color:#aa864f;box-shadow:0 2px 5px #5a3c2026;min-height:42px;font-size:12px}.t-reading-workspace button:hover{transform:none;filter:drop-shadow(0 0 3px #fff9)}.t-reading-workspace button:focus-visible{outline:2px solid #83542d;outline-offset:2px}.t-reading-workspace button:disabled{opacity:.5}
.t-reading-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:18px;padding:5px 10px;border-top:1px solid #9e805044;background:#cfb98b33;flex:none}.t-reading-tools .t-quiet{font-size:11px}
.t-reading-tools>.t-quiet{flex:1;min-width:0;padding:4px 0;white-space:nowrap}
.t-reading-intro{color:#886a45;font-size:12px;line-height:1.8;margin:0 0 12px}.t-reading-card-nav{display:flex;gap:8px;justify-content:center;margin-bottom:16px}.t-reading-card-nav .t-quiet{flex:1;border-bottom:1px solid transparent;font-size:12px;text-decoration:none}.t-reading-card-nav .t-quiet[aria-pressed=true]{border-color:#8c6338;color:#57321e}
.t-reading-card-pages{display:flex;width:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#b39463 transparent;position:relative;overscroll-behavior-x:contain}.t-reading-card{flex:0 0 100%;min-width:0;box-sizing:border-box;scroll-snap-align:start;display:grid;grid-template-columns:minmax(100px,30%) 1fr;align-items:start;gap:30px;padding:6px 12px 20px}.t-reading-card h3{font:26px 'STKaiti','KaiTi',serif;margin:10px 0 18px;color:#5c3921}.t-reading-card p{font-size:16px;line-height:2;overflow-wrap:anywhere;margin:0 0 14px}.t-reading-card .t-eyebrow{color:#87613e;font-size:11px;letter-spacing:1px}.tarot-room .t-reading-face{padding:0;border:0;background:none;box-shadow:2px 5px 12px #5b3d2444;border-radius:4px;overflow:hidden}.t-reading-face img{display:block;width:100%;height:auto}.t-reading-face img.reversed{transform:rotate(180deg)}
.t-reading-card-pages{scrollbar-width:none}.t-reading-card-pages::-webkit-scrollbar{display:none}
.t-reading-page .t-follow-up{width:100%;box-sizing:border-box;margin:0;padding:0;background:none;border:0;outline:0;box-shadow:none}.t-reading-page .t-follow-up h3{font-size:23px}.t-follow-cards{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 20px}.t-follow-cards span{border:1px solid #a58b5b66;padding:4px 8px;font-size:10px;color:#7e5e37;background:#d0b88c26}
#t-follow-history{display:flex;flex-direction:column;gap:14px;margin-bottom:20px}.t-follow-message{max-width:85%;padding:12px 17px;border:1px solid #a58b5b66;background:#faf0d680;border-radius:2px 12px 12px 12px;align-self:flex-start}.t-follow-message.is-user{align-self:flex-end;background:#d4bd8c66;border-radius:12px 2px 12px 12px}.t-follow-message small{font-size:10px;letter-spacing:1px;color:#977141}.t-follow-message p{font-size:15px;line-height:1.9;margin:5px 0 0;white-space:pre-wrap}.t-follow-empty{font-size:13px;color:#94744f;text-align:center;padding:14px}.t-follow-up #t-follow-status{color:#805a36;font-size:12px;line-height:1.8;letter-spacing:0;white-space:normal}.t-new-question{padding:16px;border:1px solid #9c794c;background:#e0cca340}.t-new-question h4{font-size:18px;font-weight:400;margin:0 0 12px}.t-new-question p{font-size:12px;color:#87663f}
@media(max-width:650px){
 .tarot-room.story-room[data-step=letter].t-without-scene .t-main{padding:64px 4% 48px;gap:10px}.tarot-room[data-step=letter] .t-heading h1{font-size:19px}.tarot-room[data-step=letter] .t-heading p{display:none}
 .t-reading-question{padding:12px 15px 10px}.t-reading-question>p{font-size:15px}.t-reading-tabs{padding:0 10px;gap:0}.tarot-room .t-reading-tabs>button{font-size:12px;min-height:43px}.t-reading-page{padding:16px 15px}.t-reading-page .t-letter{padding:6px 0}.t-reading-page .t-letter>p{font-size:16px;line-height:1.95}.t-reading-page .t-letter-head{font-size:10px;letter-spacing:1px}.t-reading-tools{gap:11px}.t-reading-tools .t-quiet{font-size:10px}.t-reading-card-nav{gap:4px;margin-bottom:12px}.t-reading-card-nav .t-quiet{font-size:10px;padding:5px 2px;letter-spacing:0}.t-reading-card{grid-template-columns:82px 1fr;gap:15px;padding:4px 0 15px}.t-reading-card h3{font-size:22px;margin:7px 0 12px}.t-reading-card p{font-size:14px;line-height:1.9}.t-reading-card .t-eyebrow{font-size:9px}.t-reading-page .t-follow-up h3{font-size:20px}.t-follow-message{max-width:90%;padding:10px 12px}.t-follow-message p{font-size:14px}.t-reading-page .t-actions{gap:10px}.t-reading-workspace textarea{font-size:16px;min-height:75px}
}
@media(prefers-reduced-motion:reduce){.t-reading-card-pages{scroll-behavior:auto}}

.t-original-context{margin:10px 0 18px;padding:12px;border:1px solid #a58b5b66;font-size:12px;color:#795a37}.t-original-context summary{cursor:pointer;line-height:1.8}.t-original-context p{font-size:13px;line-height:1.9;white-space:pre-wrap}

/* The result is one scrollable journal, from the first spread to the next question. */
.tarot-room.story-room:is(.t-without-scene,.d-room):is([data-step=letter],[data-step=deck-reading]) .t-main:has(.reading-thread) {
 box-sizing:border-box; display:flex; flex-direction:column; gap:0;
 width:100%; height:100dvh; min-height:0; overflow:hidden;
 padding:calc(var(--phone-header,74px) + 6px) max(3.5%,calc((100vw - 880px)/2)) max(16px,env(safe-area-inset-bottom));
}
.tarot-room:is([data-step=letter],[data-step=deck-reading]):has(.reading-thread) :is(.t-progress,.d-progress) { display:none }
.tarot-room:is([data-step=letter],[data-step=deck-reading]):has(.reading-thread) .t-main > :is(.t-heading,.d-caption) { display:none }
.tarot-room:is([data-step=letter],[data-step=deck-reading]) .t-main > .reading-thread,
.tarot-room .reading-thread {
 display:flex; flex:1 1 auto; flex-direction:column; width:100%; min-width:0; min-height:0;
 box-sizing:border-box; border:1px solid #a48a5e; border-radius:3px 7px 5px 3px;
 background:linear-gradient(100deg,#ddcbab,#f4e9d3 7%,#f1e3c9 88%,#deccac);
 color:#493424; box-shadow:0 12px 48px #120c17a6; overflow:hidden; text-shadow:none; text-align:start;
}
.reading-thread .reading-scroll {
 flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin;
 scrollbar-color:#a88a5b transparent; scroll-padding-block:12px;
 padding:clamp(18px,3vw,34px) clamp(15px,4.5vw,52px);
}
.reading-turn { min-width:0; overflow-wrap:anywhere; scroll-margin-top:4px }
.reading-turn + .reading-turn { border-top:1px solid #997b5159; margin-top:32px; padding-top:26px }
.reading-turn :is(.t-reading-question,.reading-turn-head) {
 position:static; display:block; width:auto; min-height:0; height:auto; margin:0; padding:0 0 12px;
 border:0; background:none; box-shadow:none; text-align:start;
}
.reading-turn :is(.t-reading-question,.reading-turn-head) > :is(span,small) {
 font-size:12px; line-height:1.6; font-weight:500; color:#785937; letter-spacing:.08em;
}
.reading-turn :is(.t-reading-question,.reading-turn-head) > h2 {
 color:#553923; margin:4px 0 10px; font:500 clamp(20px,3vw,28px)/1.5 'TaShuo Hand','KaiTi',serif;
 letter-spacing:normal; text-shadow:none;
}
.reading-turn .result-spread-board {
 position:relative; box-sizing:border-box; margin:4px 0 20px; padding:14px clamp(8px,2vw,20px);
 border:1px solid #806646; border-radius:5px; color:#e8d3aa;
 background:radial-gradient(ellipse at 50% 38%,#473444,#352834 65%,#291e2a);
 box-shadow:inset 0 0 0 4px #312331,inset 0 0 0 5px #ab8e6354;
}
.reading-turn .result-spread-board .t-spread-map {
 width:min(100%,calc(min(360px,55dvh) * var(--map-ratio))); margin:0 auto; color:inherit;
}
.reading-turn .t-map-card small { color:#f0dfc0; text-shadow:0 1px 2px #211622 }
.reading-turn .t-map-number { background:#33262e; color:#f8e5bd; border-color:#baa277; text-align:center }
.reading-turn .t-map-card { touch-action:manipulation }
.reading-turn .t-map-card:is(:hover,:focus-visible) .t-map-face,
.reading-turn .result-spread-card:is(:hover,:focus-visible) .result-card-face { outline:1px solid white; box-shadow:0 0 6px #ffffffe0 }
.reading-turn .t-map-card[aria-pressed=true] .t-map-face,
.reading-turn .result-spread-card[aria-expanded=true] .result-card-face { outline:2px solid #efcf92; outline-offset:2px }
.reading-turn .t-map-celtic-cross .t-map-card[data-map-index="1"] { transform:translate(-50%,-50%) rotate(var(--layout-angle)) }
.reading-turn .t-map-celtic-cross .t-map-card[data-map-index="1"] .t-map-face { rotate:none }
.reading-turn .t-map-celtic-cross .t-map-card[data-map-index="1"] .t-map-number { rotate:calc(-1 * var(--layout-angle)) }
.reading-turn .t-map-celtic-cross .t-map-card:nth-of-type(n+7) > small {
 inset:auto calc(100% + 6px) 50% auto; width:max-content; margin:0; transform:translateY(50%);
 max-width:125%; white-space:normal; text-align:end; line-height:1.25;
}
.reading-turn .result-spread-row {
 display:grid; grid-template-columns:repeat(var(--spread-count),minmax(0,130px)); justify-content:center;
 align-items:start; gap:clamp(5px,2vw,18px); padding:clamp(12px,2.5vw,24px) 3px;
}
.reading-turn .result-spread-card {
 display:grid; align-content:start; justify-items:center; gap:3px; min-width:0; width:100%; padding:0;
 color:#f3dfbb; background:none; border:0; box-shadow:none; border-radius:3px; text-align:center;
 font:inherit; line-height:1.45; letter-spacing:normal; cursor:pointer; overflow-wrap:anywhere; touch-action:manipulation;
}
.reading-turn .result-card-face {
 position:relative; display:grid; place-items:center; width:100%; aspect-ratio:2 / 3; align-self:start;
 margin:0 0 5px; overflow:hidden; border-radius:4px; pointer-events:none;
 background:linear-gradient(140deg,#493642,#302332); box-shadow:inset 0 0 0 1px #b49768,inset 0 0 0 4px #352835,inset 0 0 0 5px #ab8e6354;
}
.reading-turn .result-card-face::before {
 content:"查看解读"; writing-mode:vertical-rl; font:12px/1.2 'TaShuo Hand','KaiTi',serif; letter-spacing:.08em; color:#f0d9ac;
}
.reading-turn .result-card-face > .d-card-art { position:absolute; inset:0; width:100%; height:100%; display:block; margin:0 }
.reading-turn .result-card-face img[data-asset-state=failed] { visibility:hidden }
.reading-turn .result-spread-card small { font-size:12px; color:#dcc59e }
.reading-turn .result-spread-card strong { font-size:15px; font-weight:500 }
.reading-turn .reading-supplement .result-spread-row {
 justify-content:start; grid-template-columns:minmax(70px,100px); padding:10px 0;
}
.reading-turn .reading-supplement .result-spread-card,.reading-turn .reading-supplement .result-spread-card small { color:#68482c }
@supports (grid-template-rows:subgrid) {
 .reading-turn .result-spread-card { grid-row:span 3; grid-template-rows:subgrid; align-self:stretch }
}
.reading-turn .reading-section-title,.reading-turn .reading-overview > summary {
 color:#613e25; font:500 21px/1.6 'TaShuo Hand','KaiTi',serif; text-align:start; margin:0 0 12px;
}
.reading-turn .reading-overview > summary { cursor:pointer; padding-block:6px }
.reading-turn .t-result-positions { color:#735537; font-size:14px }
.reading-turn .t-result-positions summary { min-height:40px; line-height:1.6; cursor:pointer }
.reading-turn .t-result-positions p { line-height:1.75; margin:0 }
.reading-turn .reading-overview,.reading-turn .reading-turn-body { min-width:0 }
.reading-turn .t-current-card:not([hidden]),.reading-turn .reading-card-detail:not([hidden]) {
 min-height:0; margin:14px 0 24px; padding:clamp(12px,2.5vw,22px);
 border:1px solid #ae916559; border-inline-start:3px solid #a27e4c; border-radius:3px; background:#fffaec77;
}
.reading-turn :is(.t-current-card,.reading-card-detail)[hidden] { display:none }
.reading-card-detail h3,.reading-card-detail h4 { margin:0 0 8px; color:#62432b; font-size:18px }
.reading-card-detail h4 { margin-top:18px }
.reading-card-detail p { font-size:15px; line-height:1.85; margin:0 0 8px }
.reading-turn .t-current-card .t-reading-card { padding:0; gap:clamp(12px,3vw,28px); grid-template-columns:minmax(66px,21%) minmax(0,1fr) }
.reading-turn .t-current-card .t-reading-card p { font-size:16px; text-align:start }
.reading-turn .t-current-card .t-reading-card h3 { margin-block:5px 12px }
.reading-turn .t-current-card img.t-reading-face.reversed { transform:rotate(180deg) }
.reading-turn .t-general-meaning summary,.reading-turn .t-result-positions summary { cursor:pointer }
.reading-turn .t-reading-card h4 { margin:12px 0 6px; font-weight:600; color:#664525 }
.reading-turn .t-letter,.reading-turn .d-reading {
 box-sizing:border-box; width:100%; max-width:none; margin:16px 0; padding:10px 0;
 color:#4b3625; background:none; border:0; outline:0; border-radius:0; box-shadow:none; animation:none; text-shadow:none;
}
.reading-turn .t-letter > p,.reading-turn .reading-turn-body > p {
 min-height:0; color:#473525; font:17px/1.95 'TaShuo Hand','KaiTi',serif; text-align:start; overflow-wrap:anywhere;
}
.reading-turn .t-letter>p { white-space:pre-wrap }
.reading-thread :is(.t-follow-history,.reading-exchanges) { display:flex; flex-direction:column; gap:12px; text-align:start }
.reading-thread .t-follow-message { box-sizing:border-box; overflow-wrap:anywhere }
.reading-thread .reading-message {
 align-self:flex-start; max-width:85%; padding:10px 16px; border:1px solid #a58b5b66;
 border-radius:2px 12px 12px; background:#faf0d680; overflow-wrap:anywhere;
}
.reading-thread .reading-message.is-user { align-self:flex-end; background:#d4bd8c66; border-radius:12px 2px 12px 12px }
.reading-message strong { color:#76532f; font-size:12px; font-weight:500 }
.reading-message p { margin:4px 0; font-size:15px; line-height:1.85 }
.reading-thread .reading-tools {
 display:flex; flex-wrap:wrap; align-items:center; gap:4px 18px;
 padding-block:10px; border-block:1px solid #a4835538; margin-top:20px;
}
.tarot-room .reading-thread .t-quiet { min-height:40px; color:#755332!important; font-size:13px; letter-spacing:normal }
.tarot-room .reading-thread .t-brass,.tarot-room .reading-thread .t-brass:hover {
 color:#fff1d0; background:linear-gradient(145deg,#745634,#533b27); border:1px solid #997447!important;
 min-height:44px; transform:none; text-shadow:none;
}
.tarot-room .reading-thread .t-brass:hover { box-shadow:0 0 0 1px white,0 0 5px white }
.reading-thread .d-follow-status { color:#765635; font-size:13px; line-height:1.65; text-align:start }
.reading-thread .t-follow-up > .t-whisper:empty,.reading-thread .d-follow-status:empty { display:none }
.tarot-room.story-room.t-has-drawing-history { overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain }
.t-has-drawing-history .t-drawing-prior {
 position:relative; z-index:2; width:min(94%,840px); height:auto; margin:calc(var(--phone-header,74px) + 12px) auto 16px; overflow:visible;
}
.t-has-drawing-history .t-drawing-prior .reading-scroll { height:auto; flex:none; overflow:visible }
.t-drawing-prior .reading-turn { scroll-margin-top:calc(var(--phone-header,74px) + 10px) }
.tarot-room .t-header .t-draw-history-trigger { min-height:44px; padding-inline:6px; color:#f5deab; white-space:nowrap }
.reading-thread :is(.reading-composer,.t-follow-up) {
 box-sizing:border-box; width:100%; margin:22px 0 0; padding:18px 0 4px;
 border:0; border-top:1px solid #ad91625c; border-radius:0; background:none; color:inherit; box-shadow:none; outline:0; text-align:start;
}
.reading-thread :is(.reading-note,.reading-composer) label { display:block; font-size:16px; color:#65472d }
.reading-thread .reading-note { margin-block:18px; color:#6a4f35 }
.reading-thread .reading-note summary { line-height:1.6; min-height:40px; font-size:15px; cursor:pointer }
.reading-thread :is(.reading-composer,.reading-note,.t-follow-up) textarea {
 display:block; box-sizing:border-box; width:100%; min-height:76px; margin-block:8px; padding:10px 12px;
 border:1px solid #a68b62; border-radius:3px; color:#493424; background:#fff9ea; font:inherit; font-size:16px; line-height:1.6; resize:vertical;
}
.reading-thread :is(.t-follow-up,.reading-composer) :is(textarea,button):focus-visible {
 outline:2px solid #80623e; outline-offset:2px;
}
@media(max-width:650px) {
 .tarot-room.story-room:is(.t-without-scene,.d-room):is([data-step=letter],[data-step=deck-reading]) .t-main:has(.reading-thread) {
  padding-inline:max(7px,env(safe-area-inset-left)) max(7px,env(safe-area-inset-right));
  padding-bottom:max(8px,env(safe-area-inset-bottom));
 }
 .reading-thread .reading-scroll { padding:17px 12px }
 .reading-turn .result-spread-board { margin-bottom:16px; padding:11px 7px }
 .reading-turn .t-map-card small { font-size:10px }
 .reading-turn .result-spread-card small { font-size:11px }
 .reading-turn .result-spread-card strong { font-size:13px }
 .reading-turn .t-current-card .t-reading-card p { font-size:15px }
 .reading-turn .t-letter>p,.reading-turn .reading-turn-body>p { font-size:16px }
}
