/* Shared PC / mobile web / native tarot refinement. */
.tarot-flow,.reading-desk,.desk-config,.desk-config-selection{font-family:var(--serif)}
body.tarot-immersive-mode .desk-spread-switch{background:transparent;border:0;border-bottom:1px solid #d5c6a13d;border-radius:0;box-shadow:none;color:var(--table-text,#ede3c7);font:13px/1.7 var(--serif);padding:6px 0;min-height:36px}
.desk-optional-question>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font:13px/1.7 var(--serif);color:var(--muted)}.desk-optional-question textarea{min-height:76px!important}.event-tarot .desk-config-preview>h3{font-size:20px;margin:4px 0 8px}.event-tarot .desk-config-preview>p:not(.desk-config-caption):not(.desk-position-preview){display:none}.event-tarot .desk-config-selection>.desk-orient{margin:8px 0 18px}.event-tarot .desk-config-preview{margin-bottom:12px}.event-tarot .desk-config-caption{font-size:11px}.event-tarot .desk-spread-option{min-height:72px}.event-tarot .desk-spread-option strong{font-weight:500}
body.tarot-immersive-mode .free-pick-table,body.tarot-immersive-mode .event-tarot .pick-table{position:relative}.free-start-reveal,.event-tarot .pick-table>[data-event-tarot-step=finish]{position:absolute;z-index:250;right:18px;top:8px;min-height:44px;font:13px/1.7 var(--serif);padding:8px 12px;border:1px solid #d8c99a55!important;border-radius:2px;background:#314442d9!important;color:#ede3c7!important;box-shadow:none}
body.tarot-immersive-mode .event-tarot .free-deck .deck-card.is-tap-ready{transform:translateY(calc(var(--fan-rise,0px) - 16px)) rotate(var(--fan-angle,0deg));z-index:200;outline:1px solid #d6be82;outline-offset:2px}.card-in-flight{filter:drop-shadow(0 6px 4px #111b1940);pointer-events:none}.card-in-flight .tarot-back-art{display:block;width:100%;height:100%}.free-drop-preview{transition:left .12s,top .12s,width .12s,height .12s;pointer-events:none}
body.tarot-immersive-mode .desk-reveal-table>.table-actions{left:50%;right:auto;bottom:14px;transform:translateX(-50%);justify-content:center;gap:22px!important;width:max-content;max-width:calc(100% - 32px);margin:0 auto;min-height:50px}.desk-reveal-table>.table-actions>a.table-button,.event-tarot .desk-reveal-table>.table-actions>[data-action=event-tarot-result],.event-tarot .desk-reveal-table>.table-actions>[data-action=daily-tarot-result]{order:-1;min-height:48px!important;padding:9px 22px!important;border:1px solid #d8c99a75!important;background:#ede3c70c!important;font-weight:500}.desk-reshuffle-tools{opacity:.7}.desk-reshuffle-tools:hover,.desk-reshuffle-tools:focus-within{opacity:1}.desk-reshuffle-tools button{font-family:var(--serif)}
.desk-reveal-table .board-card-name,.desk-reveal-table .slot-card-name{font:12px/1.7 var(--serif)}.desk-focus-compact .desk-peek-title{font-size:19px}.desk-focus-compact .desk-position{font-size:11px}.desk-focus-compact .desk-peek-keywords{font-size:12px;line-height:1.8}
@media(max-width:620px){.event-tarot .desk-config-preview h3{font-size:19px}.desk-config-selection{padding-top:12px}.desk-reveal-table .table-actions .table-button{font-size:13px}.desk-reshuffle-tools{right:12px!important;bottom:90px!important}.desk-reshuffle-tools svg{width:28px;height:36px}.desk-flow-head{gap:12px}.desk-flow-progress{font-size:12px}}
@media(min-width:900px){.tarot-desk-mode #main{max-width:1180px}.event-tarot .free-board{max-width:920px;margin-inline:auto}.desk-config-library{min-width:0}.desk-config-selection{max-width:440px}}
@media(prefers-reduced-motion:reduce){.free-drop-preview,.is-tap-ready{transition:none!important}.shuffle-card{animation-duration:.001ms!important}}
/* Single-card reading focus keeps the image ratio; multi-card and free coordinates stay intact. */
.reading-desk .layout-single{--card-width:clamp(130px,19vw,184px)}.reading-desk .layout-single .table-card{aspect-ratio:62/106;height:auto}.reading-desk .layout-single .table-card img{width:100%;height:100%;object-fit:contain}.desk-focus-card{border-top-color:#d6d1c570}.event-tarot .desk-spread-switch{color:var(--table-text,#ede3c7)!important}.event-tarot .desk-spread-choices label{border-radius:1px}.event-tarot .desk-config-preview{border-bottom:0}.event-tarot .desk-optional-question{border-block:1px solid var(--line)}
@media(min-width:760px){.event-tarot .event-tarot-rail{cursor:grab}.event-tarot .event-tarot-rail:active{cursor:grabbing}}
/* Free cards retain one viewport geometry across selection and reveal. */
body.tarot-immersive-mode .event-tarot .free-canvas,body.tarot-immersive-mode .event-tarot .desk-reveal-table:has(>.desk-board-viewport .free-board)>.desk-board-viewport{position:relative;flex:0 0 auto;width:100%;height:max(190px,calc(100dvh - 340px));max-height:none;min-height:0;margin:0;padding:0;overflow:visible}
body.tarot-immersive-mode .event-tarot .free-board{width:100%;height:100%;min-width:0;max-width:none;margin:0}
body.tarot-immersive-mode .event-tarot .free-board>.event-free-card{width:17.2222%;height:auto;aspect-ratio:62/106}
body.tarot-immersive-mode .event-tarot .free-board>.event-free-card>.table-card,body.tarot-immersive-mode .event-tarot .free-board>.event-free-card>.numbered-card{width:100%;height:auto;aspect-ratio:62/106}
body.tarot-immersive-mode .event-tarot .free-board>.event-free-card .table-card{width:100%;height:auto;aspect-ratio:62/106}
body.tarot-immersive-mode .event-tarot .pick-table:has(.free-board),body.tarot-immersive-mode .event-tarot .desk-reveal-table:has(.free-board){padding:0!important;justify-content:flex-start;gap:0}
body.tarot-immersive-mode .event-tarot .pick-table:has(.free-board)>.table-caption,body.tarot-immersive-mode .event-tarot .desk-reveal-table:has(.free-board)>.table-line{display:none}
body.tarot-immersive-mode .event-tarot .event-free-card{height:auto!important;min-height:0!important;aspect-ratio:62/106}
body.tarot-immersive-mode .event-tarot .event-free-card .numbered-card{display:block;padding:0;margin:0;height:100%;min-height:0;aspect-ratio:62/106}
body.tarot-immersive-mode .event-tarot .event-free-card .table-card{display:block;padding:0!important;margin:0!important;min-height:0;height:auto;aspect-ratio:62/106}
body.tarot-immersive-mode .event-tarot .event-free-card .table-card:hover,body.tarot-immersive-mode .event-tarot .event-free-card .table-card:active{transform:none}
body.tarot-immersive-mode .event-tarot .desk-reveal-table:not(:has(.free-board))>.desk-board-viewport{flex:1;min-height:160px;width:100%;max-height:none;margin:0 0 76px;overflow:hidden}
body.tarot-immersive-mode .event-tarot .pick-table:not(:has(.free-board))>.desk-board-viewport{flex:1;min-height:100px;max-height:none;overflow:hidden}
.draw-board-fit .board-card-name{display:none}.draw-board-fit .slot-label{display:block;font:10px/1.5 var(--serif);max-width:100%;margin:0 0 7px;text-align:center}.draw-board-fit .layout-celtic{--card-width:78px}.draw-board-fit .layout-choice-many{--card-width:72px}.draw-board-fit .layout-grid{--card-width:82px}
.event-tarot .layout-choice-many{display:grid;--choices:3;grid-template-columns:repeat(var(--choices),var(--card-width))}
.event-tarot .layout-choice-many.count-9{--choices:4}.event-tarot .layout-choice-many.count-11{--choices:5}
.event-tarot .desk-board-viewport.desk-board-scrollable{overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin}
.event-tarot .draw-board-surface{position:relative;flex:none}
/* Keep the mobile resting pack lower without changing card proportions. */
@media(max-width:620px){body.tarot-immersive-mode .desk-shuffle .shuffle-stack{transform:translateY(clamp(8px,1.8dvh,16px))}.desk-shuffle-actions{min-height:44px}.desk-about{font-size:16px;min-width:36px}}
/* The stage rail is centred on the screen, independently of back/help widths. */
.tarot-flow>.desk-flow-head{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:52px;flex-wrap:nowrap}
.tarot-flow>.desk-flow-head>.desk-flow-progress{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:18px;width:max-content;max-width:calc(100% - 136px);margin:0;white-space:nowrap}
.tarot-flow>.desk-flow-head>.back,.tarot-flow>.desk-flow-head>[data-action=event-tarot-back],.tarot-flow>.desk-flow-head>[data-action=today]{position:relative;z-index:1;min-width:44px;min-height:44px}
.tarot-flow>.desk-flow-head>.desk-about{margin-left:auto;min-width:36px;min-height:44px}
.desk-shuffle-actions{display:flex;align-items:center;justify-content:center;gap:24px}.desk-shuffle-actions>div{display:flex;align-items:center;justify-content:center;gap:24px}.desk-shuffle-actions .table-button{width:auto!important;min-width:72px;min-height:44px}
@media(max-width:360px){.tarot-flow>.desk-flow-head>.desk-flow-progress{gap:12px;font-size:11px;max-width:calc(100% - 112px)}}
/* Cutting is a visual split and gather within the wash, never another choice. */
.shuffle-card{--cut-x:0px;--cut-y:-12px}.shuffle-card:nth-child(3n+1){--cut-x:-72px;--cut-y:8px}.shuffle-card:nth-child(3n){--cut-x:72px;--cut-y:8px}
.shuffle-stack.is-shuffling .shuffle-card{animation:tarot-wash-cut 1450ms cubic-bezier(.4,0,.3,1) 0ms both}
@keyframes tarot-wash-cut{0%,100%{transform:translate(var(--rest-x),var(--rest-y)) rotate(var(--rest-r))}15%{transform:translate(var(--sx),var(--sy)) rotate(var(--sr))}30%{transform:translate(var(--mx),var(--my)) rotate(var(--mr))}44%{transform:translate(var(--tx),var(--ty)) rotate(var(--tr))}54%{transform:translate(var(--rest-x),var(--rest-y)) rotate(var(--rest-r))}70%,82%{transform:translate(calc(var(--rest-x) + var(--cut-x)),calc(var(--rest-y) + var(--cut-y))) rotate(var(--rest-r))}}
@media(prefers-reduced-motion:reduce){.shuffle-stack.is-shuffling .shuffle-card{animation:none!important}}
/* One single-card geometry from the empty slot through face reveal. */
body.tarot-immersive-mode .tarot-flow .layout-single{--card-width:96px!important}
body.tarot-immersive-mode .tarot-flow .layout-single .table-card{width:96px!important;height:auto!important;min-height:0;padding:0;aspect-ratio:62/106}
body.tarot-immersive-mode .tarot-flow .layout-single .table-card img,body.tarot-immersive-mode .tarot-flow .layout-single .tarot-back-art{display:block;width:100%;height:100%;aspect-ratio:62/106;object-fit:contain}
body.tarot-immersive-mode .desk-reveal-table>.table-actions{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));top:auto;display:flex;align-items:center}
body.tarot-immersive-mode .desk-reveal-table>.table-actions>button{font:400 13px/1.7 var(--serif)!important;min-height:44px;padding:9px 18px;color:var(--table-text,#ede3c7);background:transparent;border:1px solid #d8c99a55;border-radius:1px}
@media(max-width:620px){body.tarot-immersive-mode .desk-shuffle .shuffle-stack{transform:translateY(clamp(26px,4.5dvh,38px))}}

/* On-desk card reading shares the paper palette and leaves the desk intact. */
.tarot-peek-overlay{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px;background:rgba(35,34,29,.45);overscroll-behavior:contain}
.tarot-peek{position:relative;max-height:calc(100dvh - 48px);overflow:auto;width:min(620px,100%);box-sizing:border-box;padding:40px 28px 28px;background:#f7f4eb;color:#292b25;display:grid;grid-template-columns:minmax(110px,220px) 1fr;gap:28px;align-items:center;font-family:"Helemate Noto Serif SC",serif}
.tarot-peek>img{display:block;width:100%;height:auto;aspect-ratio:62/106;object-fit:contain}.tarot-peek img.reversed{transform:rotate(180deg)}
.tarot-peek-close{position:absolute;right:6px;top:6px;width:44px;height:44px;border:0;background:none;font:26px serif;color:inherit}.tarot-peek h2{font-size:22px;line-height:1.6}.tarot-peek h2 small{display:block;font-size:14px;font-weight:400}.tarot-peek p{font-size:15px;line-height:1.9}.tarot-peek .table-button{font:inherit}
@media(max-width:520px){.tarot-peek{grid-template-columns:1fr;gap:12px;padding:44px 24px 24px;text-align:center}.tarot-peek>img{width:min(180px,48vw);margin:auto}.tarot-peek h2{margin:4px 0}.tarot-peek h2 small{display:inline;margin-left:8px}.tarot-peek p{margin:8px 0 16px}}
.desk-spread-overview{margin:0 0 18px;border:0;padding:0 0 14px;font:inherit}.desk-spread-overview summary{cursor:pointer;color:inherit;font-size:14px}.desk-spread-overview dl{margin:16px 0 0;display:grid;gap:14px}.desk-spread-overview dl>div{display:block}.desk-spread-overview dt{font-size:15px;color:inherit}.desk-spread-overview dt small{margin-left:10px;font-size:11px;opacity:.65}.desk-spread-overview dd{margin:4px 0 0;font-size:12px;line-height:1.7;opacity:.75}
.tarot-peek{width:min(880px,100%);grid-template-columns:minmax(110px,220px) minmax(0,1fr)}.tarot-peek .meaning-tabs,.tarot-peek .meaning-options{display:flex;gap:12px;overflow:auto;padding-bottom:6px;flex-wrap:wrap}.tarot-peek .meaning-tabs button,.tarot-peek .meaning-options button{font:inherit;font-size:13px;color:inherit;border:0;border-bottom:1px solid transparent;background:none;white-space:nowrap;padding:8px 0;cursor:pointer}.tarot-peek .meaning-tabs [aria-selected=true],.tarot-peek .meaning-options [aria-pressed=true]{border-color:#8d573f;color:#8d573f}.tarot-peek .meaning-panel p{font-size:14px;line-height:1.9}.tarot-peek [hidden]{display:none!important}
@media(max-width:520px){.tarot-peek{grid-template-columns:1fr;padding:42px 22px 22px}.tarot-peek>img{width:min(140px,40vw)}.tarot-peek .meaning-tabs,.tarot-peek .meaning-options{justify-content:center;gap:14px}.tarot-peek .meaning-panel{text-align:left}.tarot-peek h2{font-size:20px}}

/* Fit the free table to the actual safe-area-adjusted container, not 100dvh. */
body.tarot-immersive-mode .event-tarot{--free-pack-space:236px}
body.tarot-immersive-mode .event-tarot .pick-table>.free-canvas,
body.tarot-immersive-mode .event-tarot .desk-reveal-table:has(>.desk-board-viewport .free-board)>.desk-board-viewport{height:max(0px,calc(100% - var(--free-pack-space)));flex:0 1 auto;min-height:0}
/* The fan moves down as it turns; reserve room for the transformed card edges. */
body.tarot-immersive-mode .tarot-flow .free-deck,
body.tarot-immersive-mode .free-pick-table .free-deck{padding-bottom:72px}
@media(min-width:900px){body.tarot-immersive-mode .event-tarot{--free-pack-space:274px}}
/* One separator between record tabs and the question, shared with native. */
.reading-desk .desk-card-question{border-top:0!important;border-bottom:0!important;margin:0;padding:9px 0}
.record-detail.reading-desk [data-record-panel="cards"]{border:0;padding:0}
.record-detail.reading-desk .desk-card-view{gap:8px}
/* Same physical card size in pack, placement and reveal; enlarge only in reader. */
body.tarot-immersive-mode .tarot-flow{--draw-card-width:70px;--draw-card-height:120px}
body.tarot-immersive-mode .tarot-flow .layout-single{--card-width:var(--draw-card-width)!important}
body.tarot-immersive-mode .tarot-flow .layout-single .table-card{width:var(--draw-card-width)!important;height:var(--draw-card-height)!important;aspect-ratio:62/106}
@media(min-width:900px){body.tarot-immersive-mode .tarot-flow{--draw-card-width:92px;--draw-card-height:158px}}
body.tarot-immersive-mode .event-tarot:not(.saved-free-table) .event-free-card{width:var(--draw-card-width)}
body.tarot-immersive-mode .event-tarot:not(.saved-free-table) .event-free-card .table-card{width:100%;height:var(--draw-card-height);aspect-ratio:62/106}
.tarot-peek .desk-meaning-tabs{display:flex;flex-wrap:wrap;gap:6px}.tarot-peek .desk-meaning-tabs button{font:13px var(--serif);color:inherit;padding:8px 10px;border:0;background:none;min-height:40px}.tarot-peek .desk-meaning-tabs [aria-pressed=true]{background:#e5ded2;color:#8d573f}.tarot-peek .desk-meaning-text{font:14px/1.9 var(--serif);text-align:left}
.record-detail.reading-desk .saved-record-board{background:none;box-shadow:none;height:320px;min-height:260px}.record-detail.reading-desk .saved-record-board figure{display:flex;flex-direction:column;width:auto}.record-detail.reading-desk .saved-record-board .slot-label{display:block;font:11px/1.6 var(--serif);color:var(--muted);margin:0 0 8px}.record-detail.reading-desk .slot-card-name{font:12px/1.7 var(--serif);color:var(--muted);margin:8px 0 0}.record-detail.reading-desk .desk-focus-card{padding:0;border:0}.record-detail.reading-desk .desk-card-strip [aria-pressed=true]{background:transparent;border-radius:0;color:var(--accent);border-color:var(--accent)}
.record-detail.reading-desk .desk-tabs{margin-bottom:0}.record-detail.reading-desk .saved-tarot-original{background:transparent;box-shadow:none}.record-detail.reading-desk .saved-record-board,.record-detail.reading-desk .saved-record-board .desk-board-viewport{height:334px;min-height:0}.record-detail.reading-desk .desk-card-strip button[aria-pressed=true]{background:#e5ded2;border:0;border-radius:3px}.record-detail.reading-desk .desk-focus-card{border-top:1px solid var(--line);padding-top:10px}.record-detail.reading-desk .desk-peek-actions{justify-content:flex-end}
.record-detail.reading-desk .saved-record-board .layout-single{--card-width:160px}.record-detail.reading-desk .saved-record-board .layout-single .slot-label,.record-detail.reading-desk .saved-record-board .layout-single .slot-card-name{display:none}.record-detail.reading-desk .saved-record-board .layout-single .table-card{width:160px;height:274px}.record-detail.reading-desk .saved-record-board .layout-single img{max-height:none;width:100%;height:100%;object-fit:contain}
/* One quiet rail on the lower right; the card table remains the main interaction. */
body.tarot-immersive-mode .desk-reveal-table>.table-actions.desk-tool-rail{left:auto;right:8px;bottom:18px;top:auto;transform:none;width:68px;max-width:68px;display:flex;flex-direction:column;align-items:center;gap:12px!important;margin:0;z-index:250}
body.tarot-immersive-mode .desk-tool-rail>:is(button,a.table-button),body.tarot-immersive-mode .desk-tool-standalone{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:60px;min-height:54px!important;padding:5px 2px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--table-text,#ede3c7)!important;font:12px/1.5 var(--serif)!important;order:0!important;text-align:center;text-decoration:none}
body.tarot-immersive-mode .desk-tool-rail svg,body.tarot-immersive-mode .desk-tool-standalone svg{width:26px;height:28px;flex:none}
body.tarot-immersive-mode .desk-tool-rail [role=status]{font:11px/1.6 var(--serif);text-align:center;color:var(--table-text,#ede3c7)}
body.tarot-immersive-mode .free-start-reveal.desk-tool-standalone,body.tarot-immersive-mode .event-tarot .pick-table>.desk-tool-standalone{position:absolute;right:8px;top:auto;bottom:calc(var(--free-pack-space,236px) + 12px);z-index:250;width:68px}
body.tarot-immersive-mode .desk-reveal-table>.desk-board-viewport{max-width:calc(100% - 78px);margin-right:78px!important}
body.tarot-immersive-mode .desk-reveal-table:has(.free-board)>.desk-board-viewport{max-width:100%;margin-right:0!important}
.reading-desk .desk-selected .table-card,.reading-desk .desk-selected img,.reading-desk .desk-branch-slot.desk-selected img{outline:0!important;box-shadow:none!important}
.record-detail.reading-desk .saved-record-board,.record-detail.reading-desk .saved-record-board .desk-board-viewport{height:250px;min-height:0}
.reading-desk .layout-single{--card-width:110px}
.record-detail.reading-desk .saved-record-board .layout-single{--card-width:110px}
.record-detail.reading-desk .saved-record-board .layout-single .table-card{width:110px;height:188px}
.relation-question{min-width:0}.relation-question small{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}.relation-question p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.relation-question textarea{display:block;width:100%;box-sizing:border-box;min-height:68px;padding:9px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;line-height:1.7;resize:vertical}
@media(min-width:900px){.reading-desk .layout-single{--card-width:132px}.record-detail.reading-desk .saved-record-board .layout-single .table-card{width:132px;height:226px}}
body.tarot-immersive-mode .desk-reveal-table>.table-actions.desk-tool-rail{position:absolute!important;left:auto!important;right:8px!important;bottom:18px!important}
body.tarot-immersive-mode .event-tarot .pick-table>[data-event-tarot-step=finish].desk-tool-standalone,body.tarot-immersive-mode .free-pick-table>.free-start-reveal.desk-tool-standalone{border:0!important;background:transparent!important;box-shadow:none!important}
/* Saved free layouts retain draw-size cards; a selected index exposes its meaning below. */
.reading-desk .saved-free-table .tarot-table{padding:0;background:transparent;box-shadow:none}
.reading-desk .saved-free-table .desk-board-viewport{border:0;border-radius:3px}
.reading-desk .saved-free-table .event-free-card,.reading-desk .saved-free-table .event-free-card>.table-card{width:70px;height:120px}
.reading-desk .saved-free-table .event-free-card img{width:100%;height:100%;object-fit:contain}
.reading-desk .desk-card-view>.desk-board-viewport{flex:none;height:250px;min-height:0}
.reading-desk .saved-free-table .desk-board-viewport{height:300px;min-height:300px}
/* Screenshot review: setup is a separate screen, commerce is not a rail item. */
.tarot-flow:has(#event-tarot-config)>.desk-flow-head{justify-content:flex-start;gap:24px;min-height:60px;margin-bottom:18px}
.tarot-flow:has(#event-tarot-config) .desk-flow-title{position:static!important;display:block!important;font:24px/1.4 var(--serif);margin:0;transform:none!important}
.tarot-flow:has(#event-tarot-config)>.desk-draw-meta{display:none}
body.tarot-immersive-mode .desk-analysis-separate{position:absolute;left:12px;bottom:18px;max-width:calc(100% - 112px);width:auto;z-index:249}
body.tarot-immersive-mode .desk-analysis-separate .tarot-ai-entry{display:flex;align-items:flex-start;flex-direction:column;gap:4px;margin:0;padding:0;max-width:100%;border:0}
body.tarot-immersive-mode .desk-analysis-separate .tarot-ai-entry button{font:13px/1.6 var(--serif);white-space:normal;padding:7px 0;background:none;border:0;color:var(--table-text,#ede3c7)}
body.tarot-immersive-mode .desk-analysis-separate .tarot-ai-entry small{white-space:normal;overflow-wrap:anywhere;font:10px/1.6 var(--serif)}
body.tarot-immersive-mode .desk-reveal-table>.desk-board-viewport{max-width:100%;margin-right:0!important}
body.tarot-immersive-mode .tarot-flow .free-deck,body.tarot-immersive-mode .free-pick-table .free-deck{padding-bottom:40px}
body.tarot-immersive-mode .event-tarot{--free-pack-space:204px}
body.tarot-immersive-mode .desk-tool-rail .reshuffle-mini-pack{display:block;position:relative;width:26px;height:28px}
body.tarot-immersive-mode .desk-tool-rail .reshuffle-mini-pack i{display:none}
.spread-catalog-dialog{box-sizing:border-box;width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 60px);padding:22px;border:0;border-radius:3px;background:#eeece3;color:#2c3029;font:14px/1.75 var(--serif)}
.spread-catalog-dialog::backdrop{background:#172d32b8}
.spread-catalog-dialog>header{display:flex;align-items:center;gap:14px;margin-bottom:18px}.spread-catalog-dialog h2{flex:1;font:23px/1.4 var(--serif);margin:0}.spread-catalog-dialog button{font-family:var(--serif);color:inherit;cursor:pointer}.spread-catalog-dialog>header button{background:none;border:0;font-size:24px;min-width:44px;min-height:44px}.spread-catalog-dialog [hidden]{display:none!important}
.spread-catalog-dialog nav{display:flex;gap:16px;overflow:auto;border-bottom:1px solid #bdb8a944;margin-bottom:12px}.spread-catalog-dialog nav button{white-space:nowrap;border:0;border-bottom:2px solid transparent;background:none;padding:8px 0;font-size:13px}.spread-catalog-dialog nav [aria-pressed=true]{color:#8d573f;border-color:#8d573f}
.catalog-list>button{display:flex;width:100%;align-items:center;gap:20px;padding:20px 0;background:none;border:0;border-bottom:1px solid #bdb8a944;text-align:left}.catalog-list>button>span:nth-child(2){flex:1;min-width:0}.catalog-list strong{font-size:17px;font-weight:500;display:block}.catalog-list small{font-size:11px;color:#7a7a6c;margin-left:7px}.catalog-list em{font-size:12px;font-style:normal;color:#8d573f}.catalog-list p{font-size:12px;line-height:1.8;margin:5px 0 0}.catalog-mini{display:flex;width:66px;flex:none;flex-wrap:wrap;justify-content:center;gap:3px}.catalog-mini i{width:10px;height:17px;border:1px solid #8e8e7f;font:8px/17px var(--serif);text-align:center;font-style:normal}
.catalog-detail>p{font-size:14px;line-height:1.9}.catalog-detail .catalog-scenario{color:#8d573f}.catalog-position-map{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 12px;margin:26px 0;padding:18px 0}.catalog-position-map figure{width:78px;margin:0;text-align:center}.catalog-position-map i{display:block;border:1px solid #8e8e7f;width:43px;height:74px;margin:0 auto 9px;font:20px/74px var(--serif);font-style:normal}.catalog-position-map figcaption{font:11px/1.7 var(--serif)}.catalog-detail>.primary{display:block;width:100%;margin-top:24px;min-height:46px;background:#30392e;border:0;color:#eeece3;font:15px var(--serif)}
@media(min-width:900px){body.tarot-immersive-mode .event-tarot{--free-pack-space:242px}}
.catalog-position-map{display:block;padding:0}.catalog-map{display:block;width:min(100%,300px);height:260px;margin:auto;overflow:visible}.catalog-map rect{fill:#f7f4e9;stroke:#8d8d7d;stroke-width:1}.catalog-map text{fill:#5e6555;font:16px var(--serif)}.catalog-position-key{columns:2;column-gap:26px;margin:14px 0 0;padding-left:22px;font:12px/1.9 var(--serif)}.catalog-position-key li{break-inside:avoid;padding:3px 0}
/* Fixed spreads use the same lower tabletop before and after flipping. */


/* Approved atelier material and action objects, 2026-10-27. */
/* Presentation-only changes: keep the production deck geometry and gesture controller. */
:root{--serif:"Helemate Noto Serif SC","Songti SC",serif;--table-text:#e7e1cf;--table-muted:#b4b7a7;--table-base:#29382f;--table-glow:#81917a16;font-synthesis:none;-webkit-text-size-adjust:100%}
body.tarot-immersive-mode:before{content:"";position:fixed;inset:0;z-index:-1;background:url('/assets/home-paper-fiber-v1.webp') center/680px;opacity:.1;mix-blend-mode:soft-light;pointer-events:none}
body[data-tarot-tone=tea]{--table-base:#39382f;--table-glow:#99896719}body[data-tarot-tone=paper]{--table-base:#e5dfcd;--table-glow:#fffef538;--table-text:#353c30;--table-muted:#68705d}
/* A chooser on the table uses the table palette, including its editable fields. */
body.tarot-immersive-mode .event-tarot .desk-legacy-setup{--ink:var(--table-text);--muted:color-mix(in srgb,var(--table-muted),var(--table-text));--line:color-mix(in srgb,var(--table-base) 35%,var(--table-text));--accent:var(--table-text);color:var(--ink);color-scheme:dark}
body.tarot-immersive-mode[data-tarot-tone=paper] .event-tarot .desk-legacy-setup{color-scheme:light}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup .desk-spread-option{background:transparent;color:var(--ink);border-color:var(--line)}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup .desk-spread-option:has(input:checked){background:color-mix(in srgb,var(--table-base) 92%,var(--table-text));border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup .desk-spread-option:has(input:checked) b{color:var(--ink)}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup .desk-spread-overview :is(dt small,dd){color:var(--muted);opacity:1}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup :is(input:not([type=radio]),textarea){color:var(--ink);background:var(--table-base);border:1px solid var(--line);border-radius:1px}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup .primary{color:var(--table-base);background:var(--ink);border:1px solid var(--ink)}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup :is(button,summary,input:not([type=radio]),textarea):focus-visible,body.tarot-immersive-mode .event-tarot .desk-legacy-setup .desk-spread-option:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:3px}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup :is(fieldset,button,input,textarea):disabled{opacity:1}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup :is(input:not([type=radio]),textarea):disabled{-webkit-text-fill-color:var(--ink)}
body.tarot-immersive-mode .event-tarot .desk-legacy-setup :is(button:disabled,input:disabled,textarea:disabled,.desk-spread-option:has(input:disabled)){cursor:default;border-style:dashed}
body.tarot-immersive-mode .tarot-flow{padding-top:12px;padding-bottom:calc(36px + env(safe-area-inset-bottom,0px));font-family:var(--serif);font-synthesis:none}
body.tarot-immersive-mode .desk-flow-head{min-height:44px;position:relative;display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
body.tarot-immersive-mode .desk-flow-head button,body.tarot-immersive-mode .desk-flow-progress,body.tarot-immersive-mode .desk-draw-meta,body.tarot-immersive-mode .desk-spread-switch{font-family:var(--serif)!important;font-size:13px!important;font-weight:400!important;line-height:1.7!important;letter-spacing:0!important}
.atelier-looks{position:relative;z-index:3;min-width:48px;min-height:44px;padding:0!important;color:var(--table-text)!important;white-space:nowrap}
body.tarot-immersive-mode .desk-flow-progress{gap:18px;pointer-events:none}
body.tarot-immersive-mode .desk-draw-meta{justify-content:flex-start;min-height:40px}
body.tarot-immersive-mode .desk-draw-meta>span:last-child{font-size:13px}
body.tarot-immersive-mode .tarot-back-art,body.tarot-immersive-mode .table-card img{box-shadow:0 2px 3px #07110b35,0 6px 9px #07110b16;filter:none}
body.tarot-immersive-mode .desk-tool-rail>:is(button,a.table-button),body.tarot-immersive-mode .desk-tool-standalone{font:400 12px/1.7 var(--serif)!important;gap:8px;padding:6px!important;min-width:54px;color:var(--table-text)!important}
body.tarot-immersive-mode .desk-tool-rail svg,body.tarot-immersive-mode .desk-tool-standalone svg{width:22px;height:26px;opacity:.85}
body.tarot-immersive-mode .desk-tool-rail{gap:16px!important}
body.tarot-immersive-mode .deck-card-number{font-family:var(--serif)!important;font-weight:400}
body.tarot-immersive-mode .table-card.is-face img{animation:none}
body.tarot-immersive-mode .tarot-flow>.pick-table{padding-bottom:0}

@media(min-width:900px){body.tarot-immersive-mode .tarot-flow{padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))}}

/* Labels own their measured width; never allow a five-character action to wrap. */
body.tarot-immersive-mode .desk-reveal-table>.table-actions.desk-tool-rail{width:88px;max-width:88px;right:6px!important;gap:20px!important}
body.tarot-immersive-mode .desk-tool-rail>:is(button,a.table-button),body.tarot-immersive-mode .desk-tool-standalone{box-sizing:border-box;width:88px;min-width:88px;max-width:none;flex-shrink:0;white-space:nowrap!important;word-break:keep-all;overflow-wrap:normal;line-height:1.65!important;letter-spacing:0!important;gap:7px}
body.tarot-immersive-mode .desk-tool-rail>:is(button,a.table-button)>span,body.tarot-immersive-mode .desk-tool-standalone>span{display:block;white-space:nowrap!important;word-break:keep-all;overflow-wrap:normal;line-height:1.65}
body.tarot-immersive-mode .desk-tool-rail svg,body.tarot-immersive-mode .desk-tool-standalone svg{width:30px;height:32px;opacity:.94;overflow:visible}

@media(max-width:360px){body.tarot-immersive-mode .tarot-flow{padding-bottom:calc(42px + env(safe-area-inset-bottom,0px))}}

/* Entrance is automatic, with no extra shuffle/cut decision or tap. */


.atelier-preparing .event-tarot-rail{visibility:hidden;pointer-events:none}.atelier-preparing .pick-table{pointer-events:none}
.atelier-card-motion{position:fixed;inset:0;z-index:20;overflow:hidden;pointer-events:none;contain:strict}
.atelier-motion-card{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;box-sizing:border-box}
.atelier-motion-card .tarot-back-art{display:block;width:100%;height:100%;box-sizing:border-box;border-radius:3px;box-shadow:0 2px 3px #07110b35,0 6px 9px #07110b16}
.atelier-motion-card img{display:block;width:100%;height:100%;object-fit:contain}
/* One contact shadow for the pile, rather than 78 shadows accumulating black. */
.atelier-card-motion{filter:drop-shadow(0 3px 3px #07110b42)}
.atelier-motion-card .tarot-back-art{box-shadow:none}

.atelier-card-motion .atelier-motion-card .tarot-back-art{box-shadow:none!important}
body.tarot-immersive-mode .desk-flow-title{display:none}
body.tarot-immersive-mode .desk-tool-rail>:is(button,a.table-button)>span,body.tarot-immersive-mode .desk-tool-standalone>span{white-space:nowrap!important}
body.tarot-immersive-mode .desk-tool-rail .reshuffle-mini-pack{display:none}
.tarot-appearance{box-sizing:border-box;width:min(390px,calc(100vw - 24px));max-height:min(80dvh,620px);padding:22px 24px;background:#efede4;color:#33372c;border:0;font:14px/1.75 var(--serif);box-shadow:0 10px 40px #101d1930}
.tarot-appearance::backdrop{background:#101b175c;backdrop-filter:blur(3px)}.tarot-appearance header{display:flex;align-items:center;justify-content:space-between;gap:20px}.tarot-appearance h2{font:500 22px/1.5 var(--serif);white-space:nowrap;margin:0}.tarot-appearance button{font:inherit;color:inherit;cursor:pointer}.tarot-appearance header button{border:0;background:none;font-size:26px;min-width:44px;min-height:44px}.tarot-appearance nav{display:flex;gap:24px;margin:16px 0 22px;border-bottom:1px solid #b8b4a64d}.tarot-appearance nav button{border:0;border-bottom:2px solid transparent;background:none;padding:10px 0;white-space:nowrap}.tarot-appearance nav [aria-pressed=true]{color:#8e543e;border-color:#8e543e}.tarot-table-tones{display:flex;justify-content:space-around;gap:16px;margin-block:30px}.tarot-table-tones button{border:0;background:none;min-width:64px;padding:5px}.tarot-table-tones i{display:block;width:46px;height:46px;border-radius:50%;margin:0 auto 10px;outline:1px solid #33372c2b;outline-offset:4px}.tarot-table-tones [aria-pressed=true] i{outline-color:#8e543e;outline-width:2px}.tarot-look-done{display:block;width:100%;min-height:44px;border:0;background:#303d31;color:#eee8d9!important;margin-top:28px}.tarot-owned-deck{display:flex;align-items:center;gap:24px;margin-block:22px}.tarot-owned-deck>.tarot-owned-back{display:block;position:static!important;inset:auto!important;flex:0 0 66px!important;width:66px!important;max-width:66px!important;height:113px!important;max-height:113px!important;object-fit:contain;aspect-ratio:62/106;box-sizing:border-box;border-radius:3px;transform:none!important}.tarot-owned-deck h3{font:500 18px var(--serif);margin:0 0 8px}.tarot-owned-deck p,.tarot-owned-deck small{margin:0;font-size:12px;color:#77776b}
@media(max-width:620px){.tarot-appearance{margin:auto auto 12px}}

body.tarot-immersive-mode .desk-flow-head a{font:400 13px/1.7 var(--serif);letter-spacing:0}

/* Reserve real space for the fixed-spread fan; the destination never shares its row. */
body.tarot-immersive-mode{--fixed-pack-height:196px;background:radial-gradient(ellipse at 32% 30%,var(--table-glow),transparent 70%),var(--table-base)!important;color:var(--table-text)}
body.tarot-immersive-mode .desk-fixed-pick>.pick-table{display:grid!important;grid-template-rows:minmax(0,1fr) 32px var(--fixed-pack-height);gap:0;padding:0!important;min-height:0}
body.tarot-immersive-mode .desk-fixed-pick>.pick-table>.desk-board-viewport{position:relative!important;inset:auto!important;grid-row:1;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:100%!important;margin:0!important;flex:none!important}
body.tarot-immersive-mode .desk-fixed-pick>.pick-table>.deck-instruction{grid-row:2;margin:0!important;padding:0!important;min-height:0;height:32px;display:flex;align-items:center;justify-content:center}
body.tarot-immersive-mode .deck-instruction h2{font:400 12px/1.6 var(--serif)!important;margin:0}
body.tarot-immersive-mode .desk-fixed-pick>.pick-table>.deck-rail{grid-row:3;box-sizing:border-box;height:var(--fixed-pack-height)!important;min-height:0!important;max-height:none!important;margin:0!important;padding-top:36px!important;padding-bottom:40px!important;transform:none!important;align-self:end}
/* The fan is gone on reveal; reserve only the actual lower action rail. */
body.tarot-immersive-mode .desk-reveal-table:not(:has(.free-board))>.desk-board-viewport{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;max-width:100%!important;margin:0 0 96px!important;flex:1!important}
body.tarot-immersive-mode .draw-board-fit .slot-label,body.tarot-immersive-mode .draw-board-fit .board-card-name{display:none!important}
body.tarot-immersive-mode .desk-reveal-table>.table-line{display:none!important}
body.tarot-immersive-mode .atelier-looks{appearance:none!important;-webkit-appearance:none!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;width:auto!important;outline-offset:3px}
body.tarot-immersive-mode .desk-reveal-table>.table-actions.desk-tool-rail>:is(button,a.table-button),body.tarot-immersive-mode .desk-tool-standalone{appearance:none!important;-webkit-appearance:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:6px!important;font-weight:400!important}
body.tarot-immersive-mode .desk-tool-rail>[hidden]{display:none!important}
.atelier-preparing .pick-table>:is(.desk-board-viewport,.deck-instruction,.free-canvas,.deck-rail,.free-deck){visibility:hidden!important;pointer-events:none}
body.tarot-desk-mode:not(.tarot-immersive-mode) .reading-desk{height:auto!important;min-height:0;overflow:visible}
body.tarot-desk-mode:not(.tarot-immersive-mode) .desk-card-view{flex:none;min-height:0;height:auto}
body.tarot-desk-mode:not(.tarot-immersive-mode) .desk-card-view>.tarot-ai-entry{position:static!important;inset:auto!important;transform:none!important;grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 0;margin:0;flex:none;clear:both}
body.tarot-desk-mode:not(.tarot-immersive-mode) .desk-card-view>.tarot-ai-entry button{background:transparent;border:0;border-bottom:1px solid currentColor;border-radius:0;color:var(--accent,#8d533f);font:400 14px/1.7 var(--serif);padding:8px 0;min-height:44px}
@media(min-width:900px){body.tarot-immersive-mode{--fixed-pack-height:238px}}

body.tarot-immersive-mode .desk-reveal-table>.table-actions.desk-tool-rail>button[hidden]{display:none!important}
body.tarot-immersive-mode .desk-board-fit .layout-single{padding:0!important}
body.tarot-immersive-mode .deck-card-number>svg,body.tarot-immersive-mode .source-number>svg{display:none}
body.tarot-immersive-mode .draw-board-fit .board-slot{position:relative}
body.tarot-immersive-mode .desk-board-fit .layout-row{--card-width:70px}
@media(min-width:900px){body.tarot-immersive-mode .desk-board-fit .layout-row{--card-width:92px}}
body.tarot-immersive-mode:before{height:auto}

/* Deep reading is the first right-hand action, and a visible record action. */
body.tarot-immersive-mode .desk-tool-rail>.desk-analysis-host{position:static!important;inset:auto!important;transform:none!important;display:flex;flex-direction:column;align-items:center;order:-2!important;width:88px;max-width:88px;padding:0!important;margin:0;flex:none}
body.tarot-immersive-mode .desk-analysis-host .tarot-ai-entry{display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;width:88px}
body.tarot-immersive-mode .desk-reveal-table>.desk-tool-rail .desk-analysis-host button{appearance:none;background:none!important;border:0!important;box-shadow:none!important;color:var(--table-text)!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:88px;min-height:64px;padding:6px!important;font:400 12px/1.65 var(--serif)!important;white-space:nowrap}
body.tarot-immersive-mode .desk-analysis-host small{font:10px/1.5 var(--serif);white-space:normal;text-align:center;color:var(--table-muted);max-width:88px}
body.tarot-immersive-mode .desk-analysis-host .tarot-ai-entry button::before{content:none!important;display:none!important}
body:not(.tarot-immersive-mode) .tarot-record-analysis{display:flex!important;position:static!important;align-items:center;justify-content:flex-end;gap:12px;flex:none;padding:0 0 10px!important;margin:0!important;min-height:44px;grid-column:1/-1}
body:not(.tarot-immersive-mode) .tarot-record-analysis button{font:400 14px/1.7 var(--serif);padding:8px 0;min-height:44px;color:var(--accent,#8d533f);background:none;border:0;border-bottom:1px solid currentColor;border-radius:0;white-space:nowrap}
body.tarot-desk-mode:not(.tarot-immersive-mode){height:auto!important;min-height:100dvh;overflow-y:auto!important}
body.tarot-desk-mode:not(.tarot-immersive-mode) #main{height:auto!important;min-height:0;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}

/* Back art follows the same preference in the fan, moving actors and reveal. */
body[data-tarot-back] .tarot-back-art{background-image:var(--tarot-selected-back)!important;background-size:100% 100%;background-position:center;background-repeat:no-repeat}
.tarot-back-options>button{display:flex;align-items:center;gap:22px;width:100%;padding:12px 0;border:0;background:none;text-align:left;min-height:137px}
.tarot-back-options .tarot-owned-back{position:static!important;display:block;inset:auto!important;width:66px!important;height:113px!important;max-width:66px!important;max-height:113px!important;flex:0 0 66px;object-fit:contain;transform:none!important;border-radius:3px}
.tarot-back-options strong,.tarot-back-options small,.tarot-back-options em{display:block;font-style:normal;font-weight:400}
.tarot-back-options strong{font-size:18px}.tarot-back-options small{font-size:12px;color:#77776b;margin:7px 0}.tarot-back-options em{font-size:12px;color:#8e543e}
.tarot-appearance nav{gap:clamp(12px,4vw,24px)}

/* The shared question journey keeps its composer at the product viewport edge. */
.tarot-question-journey[open]{position:fixed;inset:var(--tarot-journey-top,0px) auto auto 50%;transform:translateX(-50%);display:flex;flex-direction:column;width:min(680px,100%);height:var(--tarot-journey-height,100dvh);max-width:none;max-height:none;min-height:0;margin:0;padding:0;border:0;border-inline:1px solid var(--line,#d7d0c5);border-radius:0;overflow:hidden;overscroll-behavior:contain;background:var(--paper,#f3efe6);color:var(--ink,#292820);font-family:var(--serif,serif)}
.tarot-question-journey .tarot-journey-head{position:relative;flex:none;padding:calc(18px + env(safe-area-inset-top,0px)) 24px 14px}
.tarot-question-journey .tarot-journey-head h2{margin:0 48px 0 0;font:500 23px/1.5 var(--serif,serif)}
.tarot-question-journey .tarot-ai-close{top:calc(12px + env(safe-area-inset-top,0px));right:12px}
.tarot-question-journey .tarot-journey-scroll{flex:1 1 0;min-height:0;padding:12px 24px 24px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-block:16px;-webkit-overflow-scrolling:touch}
.tarot-question-journey .tarot-journey-scroll:focus-visible{outline:1px solid var(--accent,#8d533f);outline-offset:-3px}
.tarot-question-journey .tarot-followup-suggestions{display:flex;flex-direction:column;margin:0;gap:10px;align-items:flex-start}
.tarot-question-journey button.tarot-followup-suggestion{width:fit-content;max-width:94%;padding:11px 16px;border:1px solid var(--line,#d7d0c5);border-radius:18px 18px 18px 5px;background:transparent;color:inherit;font:15px/1.7 var(--serif,serif);text-align:start;overflow-wrap:anywhere}
.tarot-question-journey .tarot-user-bubble{width:fit-content;max-width:90%;box-sizing:border-box;margin:0 0 24px auto;padding:11px 16px;border-radius:18px 18px 5px 18px;background:var(--line,#dfdad0);color:inherit;font:15px/1.7 var(--serif,serif);overflow-wrap:anywhere;white-space:pre-wrap}
.tarot-question-journey .tarot-journey-bottom{flex:none;min-width:0;margin:0;padding:12px 24px calc(14px + env(safe-area-inset-bottom,0px));background:var(--paper,#f3efe6)}
.tarot-question-journey .tarot-journey-draw-actions{border-top:1px solid var(--line,#d7d0c5)}
.tarot-question-journey .tarot-question-compose{display:flex;flex-direction:column;gap:8px}
.tarot-question-journey .tarot-question-compose textarea{display:block;flex:none;width:100%;height:auto;min-height:64px;max-height:160px;margin:0;padding:11px 14px;border:1px solid var(--line,#d7d0c5);border-radius:18px;background:transparent;color:inherit;font:16px/1.65 var(--serif,serif);resize:none;overflow-y:auto;overscroll-behavior:contain}
.tarot-question-journey .tarot-question-compose textarea:focus-visible{outline:1px solid var(--accent,#8d533f);outline-offset:1px}
.tarot-question-journey .tarot-journey-compose-actions,.tarot-question-journey .tarot-journey-draw-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tarot-question-journey .tarot-journey-compose-actions>button[type=submit]{margin-left:auto}
.tarot-question-journey .tarot-journey-draw-actions>button:last-child{flex:1}
.tarot-question-journey button{font:15px/1.6 var(--serif,serif)}
.tarot-question-journey button.tarot-journey-secondary{padding:10px 0;background:transparent;border-color:transparent;color:var(--muted,#77776b)}
.tarot-question-journey .record-voice-bar{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-height:0}
.tarot-question-journey .record-voice-button{display:flex;align-items:center;gap:6px;min-height:36px;padding:4px 0;color:var(--accent,#8d533f);background:transparent;border:0;font-size:12px}
.tarot-question-journey .record-voice-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.tarot-question-journey .record-voice-status{font:12px/1.6 var(--serif,serif);color:var(--muted,#77776b);overflow-wrap:anywhere}
.tarot-question-journey .tarot-journey-spreads{min-width:0;margin:0;padding:0;border:0}
.tarot-question-journey .tarot-journey-spread{display:flex;align-items:flex-start;gap:12px;min-height:44px;margin:0 0 12px;padding:14px;border:1px solid var(--line,#d7d0c5);border-radius:2px;cursor:pointer}
.tarot-question-journey .tarot-journey-spread:has(input:checked){border-color:var(--accent,#8d533f)}
.tarot-question-journey .tarot-journey-spread input{flex:none;margin:5px 0 0;accent-color:var(--accent,#8d533f)}
.tarot-question-journey .tarot-journey-spread>span{min-width:0}
.tarot-question-journey .tarot-journey-spread strong{display:block;font-size:17px;font-weight:500;line-height:1.7}
.tarot-question-journey .tarot-journey-spread small{display:block;margin-top:6px;color:var(--muted,#77776b);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.tarot-question-journey .tarot-journey-spread-card{min-width:0;margin:0 0 12px;padding:14px;border:1px solid var(--line,#d7d0c5);border-radius:2px}
.tarot-question-journey .tarot-journey-spread-card:has(input:checked){border-color:var(--accent,#8d533f)}
.tarot-question-journey .tarot-journey-spread-card>.tarot-journey-spread{margin:0;padding:0;border:0}
.tarot-question-journey .tarot-journey-count{color:var(--ink,#292820)}
.tarot-question-journey .tarot-journey-thumbnail{display:grid;grid-template-columns:repeat(var(--spread-columns,3),minmax(0,1fr));gap:9px 8px;width:100%;max-width:270px;margin:16px auto 8px;align-items:start}
.tarot-question-journey .tarot-journey-thumbnail figure{position:relative;width:min(40px,100%);margin:0;justify-self:center;transform:translateY(var(--rise,0px))}
.tarot-question-journey .tarot-journey-thumbnail img{display:block;width:100%;height:auto;border-radius:2px}
.tarot-question-journey .tarot-journey-thumbnail figcaption{text-align:center;font:11px/1.5 var(--serif,serif);color:var(--muted,#77776b)}
.tarot-question-journey .tarot-journey-thumbnail[data-spread-layout=horseshoe]{padding-bottom:18px}
.tarot-question-journey .tarot-journey-thumbnail .is-crossing{z-index:1}
.tarot-question-journey .tarot-journey-thumbnail .is-crossing img{transform:rotate(90deg)}
.tarot-question-journey .tarot-journey-spread-roles{margin-top:8px}
.tarot-question-journey .tarot-journey-spread-roles>summary{min-height:44px;display:flex;align-items:center;color:var(--accent,#8d533f);font:13px/1.7 var(--serif,serif);cursor:pointer}
.tarot-question-journey .tarot-journey-spread-roles>summary::before{content:'＋';margin-right:8px}
.tarot-question-journey .tarot-journey-spread-roles[open]>summary::before{content:'−'}
.tarot-question-journey .tarot-journey-spread-roles ol{margin:0;padding-left:24px;font:13px/1.8 var(--serif,serif);overflow-wrap:anywhere}
.tarot-question-journey .tarot-journey-spread-options>summary{display:flex;align-items:center;min-height:44px;margin:4px 0 12px;color:var(--accent,#8d533f);font:14px/1.7 var(--serif,serif);cursor:pointer}
.tarot-question-journey .tarot-journey-spread-options>summary::before{content:'＋';margin-right:8px}
.tarot-question-journey .tarot-journey-spread-options[open]>summary::before{content:'−'}
.tarot-question-journey .tarot-journey-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:420px){.tarot-question-journey .tarot-journey-head{padding-inline:18px}.tarot-question-journey .tarot-journey-scroll{padding-inline:18px}.tarot-question-journey .tarot-journey-bottom{padding-inline:18px}.tarot-question-journey .tarot-journey-head h2{font-size:21px}}
/* The composer can yield height before its send/back actions leave the view. */
.tarot-question-journey.tarot-viewport-compact .tarot-question-compose{flex:0 1 auto;min-height:0;max-height:calc(var(--tarot-journey-height,100dvh) - 80px);overflow-y:auto}
.tarot-question-journey.tarot-viewport-compact .tarot-question-compose textarea{flex:1 1 auto;min-height:32px;height:auto!important;overflow-y:auto}
.tarot-question-journey.tarot-viewport-compact .tarot-journey-compose-actions{position:sticky;bottom:0;flex:none;min-height:44px;background:var(--paper,#f3efe6)}
.tarot-question-journey.tarot-viewport-compact .record-voice-bar{flex:none;max-height:48px;overflow-y:auto}
.tarot-question-journey .tarot-question-compose textarea{scrollbar-width:none}
.tarot-question-journey .tarot-question-compose textarea::-webkit-scrollbar{display:none;width:0;height:0}
.tarot-question-journey .tarot-journey-scroll{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--muted,#77776b) 65%,var(--paper,#f3efe6)) transparent}
.tarot-question-journey .tarot-journey-scroll::-webkit-scrollbar{width:4px;height:4px}
.tarot-question-journey .tarot-journey-scroll::-webkit-scrollbar-track{background:transparent}
.tarot-question-journey .tarot-journey-scroll::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted,#77776b) 65%,var(--paper,#f3efe6));border-radius:2px}
